A foundation model is a large neural network trained on vast, broad datasets so that it can serve as a versatile base for many different tasks rather than a single purpose. Two architectural patterns dominate the field: Transformers, which process sequences of text and power language understanding and generation, and Diffusion models, which learn to reverse a noising process and dominate image generation. The architecture largely determines what the model can do well — and each carries documented risks, from bias to hallucination, that governance mechanisms such as AI Bills of Materials are being designed to address.

What are Foundation Models?

The name itself is a statement of intent. As researchers at the Alan Turing Institute put it, "the term Foundation Model reflects the expectation that these models can be the foundation for many different kinds of tasks and applications." Instead of building one model per problem — one for translation, another for summarization, a third for image editing — a foundation model is pre-trained once on a huge corpus and then adapted to many downstream uses.

IBM's explainer describes these models as large-scale systems whose defining trait is breadth: they are trained on massive datasets and then applied across a wide range of tasks. That breadth is what separates a foundation model from the narrower task-specific neural networks that preceded it. The same underlying model, with modest adaptation, can summarize a document, extract named entities from it, or draft new creative text.

It is worth being precise about what "foundation" does not mean. It does not mean the model understands the world the way a person does, nor that it is reliable by default. It means the model has absorbed enough statistical structure from its training data that many capabilities — some anticipated by its designers, some not — emerge from it. That combination of versatility and unpredictability is the thread running through everything that follows.

YouTube video playerTo provide a concise, non-technical overview of what foundation models are from a leading research institution, reinforcing the article's introductory concepts.Watch on YouTube

The Transformer Architecture: Powering Language Understanding

The Transformer, first introduced in the 2017 paper "Attention is All You Need," is the architecture that, in the words of the Georgia Tech–affiliated Transformer Explainer project, "fundamentally changed the approach to Artificial Intelligence." It has become the go-to architecture for deep learning models, powering text-generative systems like OpenAI's GPT, Meta's Llama, and Google's Gemini.

Its key innovation is self-attention. IBM's description is usefully concrete: a self-attention mechanism allows Transformers to "focus their attention" on the most important tokens in the input sequence, regardless of their position. In a long sentence, the model can weigh which earlier words matter for interpreting a later one, without processing the text strictly in order. This is what lets a Transformer hold long-range context — the reason a pronoun at the end of a paragraph can be tied to a name at the beginning.

A standard Transformer pairs two components: an encoder, which converts input into contextual representations called embeddings, and a decoder, which uses self-attention together with those embeddings to generate, in IBM's phrasing, "the most statistically probable output sequence." The decoder is, in effect, a very sophisticated probability engine: given everything so far, it predicts what plausibly comes next.

That mechanism explains both the strengths and the characteristic failure of language models. Because output is probabilistic, the model can produce fluent, coherent, creative text — and it can just as fluently produce statements that are false. The architecture has no built-in fact-checker; it has a next-token predictor.

Notably, the Transformer's reach extends beyond language. The Transformer Explainer notes that it is also applied in audio generation, image recognition, protein structure prediction, and even game playing — evidence of its versatility across numerous domains. But its stronghold, and the reason it anchors most foundation models, remains text.