Schrödinger's AI is your invitation to look inside. Right now, AI feels like a mystery , wired like a brain, yet running on pure math.

Each article is a new layer of the box. We start with the first spark of an idea and move all the way to the models reshaping everything we thought we knew .Train Once, Use Everywhere

Schrödinger’s AI

Part 6: Foundation Models: Everything, Everywhere, All at Once!

Old-school AI models were like one-trick ponies, you’d train one just to spot cats, another to translate French, another to detect spam. Boring.

Rikam FM

A foundation model (FM): Something that you train it once on insane amounts of data, text, images, maybe even video, so it learns the general patterns of the world. After that, you don’t start from scratch every time. You just tweak it, prompt it, or fine-tune it, and suddenly it’s writing essays, generating images, summarizing emails, running chatbots, or even powering self-driving cars.

Generative AI runs on foundation models. Instead of grinding through labeled data and building a separate model for each task, you build one powerhouse FM and flex it across endless use cases.

Few examples

The Anatomy

1. Transformer Architecture

Almost every modern foundation model is transformer-based. So, what’s a transformer? If you have time, read the original paper “Attention is All You Need” by Vaswani et al., 2017. But here’s the short version:

Rikam Palkar FM Transformer Architecture
  1. Input Embedding: Words get turned into numbers (vectors) that capture meaning. Positional encoding gets added so the model knows the word order, transformers don’t read left-to-right like humans.

  2. Self-Attention: Each word checks out the other words in the sentence to get context. Example: in “The cat sat on the mat,” “sat” pays attention to “cat” to know who’s sitting. Weighted scores decide which words matter most.

  3. Multi-Head Attention: Instead of one perspective, the model uses multiple “attention heads” to see different relationships at once like looking at a sentence through multiple lenses.

  4. Feed-Forward Network: Each word’s vector gets passed through a mini neural net to tweak and refine its meaning.

  5. Layer Norm + Residual Connections: Keep things stable and prevent the signal from vanishing, basically, make training deep models smooth and reliable.

2. Pretraining

Pretraining is where the foundation model eats insane amounts of data, text, images, maybe even video, and just… learns. No specific task yet, just figuring out how the world works: grammar, facts, patterns, relationships.

3. Scale

Think billions and trillions of parameters plus huge compute budgets. Scale unlocks capabilities that smaller models don’t show.

4. Adaptation

After the big pretrain, you can:

5. Multimodal

Some foundational models train on mixed inputs (text + images + audio) so they can reason across media, like reading a meme and writing the caption or subtitles.

Risks

Making Your FM Actually Behave

1. Prompt Engineering

Your foundation model is a super-smart but lazy intern. It knows everything, but it won’t act unless you tell it exactly what you want. That’s where prompts come in.

Rikam Palkar Prompt Eng

And honestly, this is why they’re making you learn prompt engineering: because the model got trained, not you. You gotta speak its language if you want it to behave.

2. Knowledge Base

A knowledge base is a structured stash of facts, documents, or info that a model can reference, like a personal library, encyclopedia, or cheat sheet.

Rikam Palkar KB

3. RAG: Retrieval Augmented Generation

Foundation models only know what they’ve seen during pretraining. They can hallucinate, get outdated, or just straight-up forget stuff. That’s where RAG comes in:

Rikam Palkar RAG

4. Guardrails

If foundation models are left unchecked, they can spit out nonsense, offensive stuff, or even confidential info. That’s why you need guardrails:

Rikam Palkar Fm GuardRails

5. Evaluation & Feedback Loops

Rikam Palkar FM Feedback loops

Powering Your FM

AWS

Azure

Google Cloud

Why is this different from “old” ML / DL?

Older models were built for one job and trained end-to-end for that task. Foundational models are trained once to learn general knowledge/skills, then reused.

My 2 cents

And there you have it, foundation models: you train them once, and suddenly they’re capable of doing everything. Sure, they come with risks, hallucinations, bias, privacy concerns, and hefty costs, but with prompt engineering, knowledge bases, RAG, guardrails, and feedback loops, we can harness their power safely and effectively.

The cat is neither alive nor dead and honestly, that's the most exciting place to be. There are a lot more layers to uncover.

Previous: Part 5: Transformers in AI

Next: Part 7: What Is an AI Agent