---
id: HIST-010
title: "The Transformer and Foundation Model Era, 2017-2022"
alternative_names:
  - "The Pretraining Era"
  - "From Attention Is All You Need to ChatGPT"
category: "History → Modern Deep Learning"
volume: II
chapter: 13
entry_type: "Historical Record"
level: 3
status: "Draft"
last_reviewed: 2026-10-15
version: "0.1.0"
prerequisites:
  - "TECH-ARCH-001"
  - "HIST-005"
related_entries:
  - "HIST-011"
  - "HIST-012"
  - "HIST-013"
  - "TECH-LLM-001"
  - "TECH-SCALE-001"
  - "TECH-DIFF-001"
  - "CAP-GENAI-001"
---

# The Transformer and Foundation Model Era, 2017-2022

## 1. Concise Definition
The **Transformer and Foundation Model Era** is the period from the 2017 publication of the Transformer architecture to the public release of ChatGPT at the end of 2022. In it, large neural networks pretrained on broad data with self-supervised objectives became general-purpose starting points that could be adapted to many tasks; Bommasani et al. (2021) named such models **foundation models**.

## 2. Overview & Significance
Before 2017, state-of-the-art systems in language, vision and speech were mostly built separately and trained for specific tasks. In the following five years a single architecture, the Transformer, and a single recipe, large-scale pretraining followed by adaptation, spread across language, images, protein structure and other fields. The period also produced the empirical study of scaling, the first widely used instruction-following chat models, and an early public debate about the risks and costs of ever larger models.

This article gives the chronology and the principal sources. The architecture itself is treated in [[TECH-ARCH-001] The Transformer Architecture](../vol03_technical/TECH-ARCH-001_transformer_architecture.md), language models in [[TECH-LLM-001] Large Language Models](../vol03_technical/TECH-LLM-001_large_language_models.md), and events after 2022 in [[HIST-011] The Contemporary AI Era, 2022 onward (living record)](./HIST-011_the_contemporary_ai_era_2022_onward_living_record.md). Fast-changing figures are deliberately omitted; see [[MODEL-001] Model Registry](../reference/factbook/MODEL-001_model_registry.md).

## 3. Historical Development

### 3.1 The architecture (2017)
Vaswani et al. (2017) proposed the Transformer, a sequence-transduction model "based solely on attention mechanisms, dispensing with recurrence and convolutions entirely." They reported 28.4 BLEU on the WMT 2014 English-to-German task and 41.8 BLEU on English-to-French, with training costs lower than the best prior models they compared against. The design's main practical advantage was parallelism across sequence positions, which suited the GPU and accelerator hardware of the time.

### 3.2 Pretraining for language (2018-2019)
Peters et al. (2018) showed that contextual word representations, derived from the internal states of a pretrained bidirectional language model (ELMo), improved a range of language tasks. Devlin et al. (2018) introduced BERT, a Transformer encoder pretrained with a masked-language-modelling objective and then fine-tuned on each task; they reported state-of-the-art results on a range of benchmarks. Raffel et al. (2019) proposed the T5 framework that casts every language task as text-to-text and systematically compared pretraining choices. The dominant pattern in this phase was *pretrain, then fine-tune on a labelled task*.

### 3.3 Scaling and few-shot prompting (2020)
Kaplan et al. (2020) measured how language-model loss varies with model size, dataset size and training compute, and reported smooth power-law trends over several orders of magnitude. Brown et al. (2020) trained GPT-3, an autoregressive model with 175 billion parameters, and showed that it could perform many tasks from a few examples placed in its prompt, without gradient updates ("few-shot" or in-context learning), sometimes competitively with fine-tuned systems. These results shifted attention from task-specific fine-tuning towards prompting a single large model.

### 3.4 Compute-optimal training and the largest dense models (2022)
Hoffmann et al. (2022) trained over 400 models and concluded that, for a fixed compute budget, parameter count and training tokens should be scaled in equal proportion; their model Chinchilla (70 billion parameters trained on about four times as much data as the 280-billion-parameter Gopher) outperformed several larger models on their evaluations. Chowdhery et al. (2022) reported PaLM, a 540-billion-parameter dense Transformer language model. Together, these papers made the trade-off between model size and data a central question for system design; see [[TECH-SCALE-001] Scaling Laws](../vol03_technical/TECH-SCALE-001_scaling_laws.md).

### 3.5 Prompting for reasoning and the emergence debate (2022)
Wei et al. (2022a) reported that prompting large models to produce intermediate reasoning steps ("chain of thought") improved performance on arithmetic, commonsense and symbolic reasoning tasks. Wei et al. (2022b) described "emergent abilities", defined as abilities not present in smaller models but present in larger ones, which cannot be predicted by extrapolating smaller models. Schaeffer, Miranda, and Koyejo (2023) argued that apparent emergence can result from the researcher's choice of a nonlinear or discontinuous metric rather than from sharp changes in model behaviour. Whether emergent abilities are real discontinuities or measurement artefacts is contested.

### 3.6 Alignment through human feedback
Ouyang et al. (2022) fine-tuned GPT-3 first on labeler-written demonstrations and then using reinforcement learning from human feedback (RLHF) on ranked outputs, producing InstructGPT. In their human evaluations, outputs of the 1.3-billion-parameter InstructGPT were preferred to those of the 175-billion-parameter GPT-3. On 2022-11-30 OpenAI introduced ChatGPT as a free research preview, describing it as a sibling model to InstructGPT trained for dialogue (OpenAI, 2022). Technical details of ChatGPT were not published in a paper at the time; this article makes no claims about them beyond OpenAI's blog statement.

### 3.7 Beyond text
- **Vision**: Dosovitskiy et al. (2020) showed that a pure Transformer applied to sequences of image patches (ViT) could match or exceed convolutional networks on image classification when pretrained on large data. Radford et al. (2021) trained CLIP on 400 million image-text pairs to enable zero-shot transfer to many vision tasks.
- **Image generation**: Ramesh et al. (2021) described a Transformer for text-to-image generation. Ho, Jain, and Abbeel (2020) introduced denoising diffusion probabilistic models, and Rombach et al. (2022) applied diffusion in a learned latent space, the basis of widely used open image generators; see [[TECH-DIFF-001] Diffusion Models](../vol03_technical/TECH-DIFF-001_diffusion_models.md).
- **Science**: Jumper et al. (2021) reported AlphaFold, which predicted protein structures with accuracy competitive with experimental accuracy in a majority of cases, as reported by the authors, at the 14th Critical Assessment of protein Structure Prediction (CASP14). See [[APP-SCI-001] AI in Science](../vol07_applications/APP-SCI-001_ai_in_science.md).

### 3.8 Critique and risk
Bender, Gebru, McMillan-Major, and Shmitchell (2021) raised concerns about the environmental and financial costs, training-data documentation, and social risks of ever larger language models. This article cites it as a primary statement of these concerns, not as a verdict on them.

## 4. Technical / Conceptual Explanation

### 4.1 Self-attention
Given input vectors stacked as a matrix $X$, a Transformer layer computes queries, keys and values $Q=XW_Q$, $K=XW_K$, $V=XW_V$ and

$$\operatorname{Attention}(Q,K,V)=\operatorname{softmax}\!\Big(\frac{QK^\top}{\sqrt{d_k}}\Big)V,$$

so every position can attend directly to every other position (Vaswani et al., 2017).

### 4.2 Pretraining objectives
- *Masked language modelling* (BERT): predict randomly hidden tokens from bidirectional context (Devlin et al., 2018).
- *Autoregressive modelling* (GPT-3): predict the next token, $p(x)=\prod_t p(x_t\mid x_{<t})$ (Brown et al., 2020).
- *Text-to-text* (T5): every task is mapped to input text and output text (Raffel et al., 2019).

### 4.3 Scaling relationships
Kaplan et al. (2020) fit loss as a power law in parameters, data and compute. Hoffmann et al. (2022) found the compute-optimal allocation scales parameters and tokens at the same rate, which revised earlier practice of growing parameters faster than data. These are empirical fits for particular model families and training setups, not laws of nature.

## 5. Types, Components & Classifications
| Type | Examples | Source |
| :--- | :--- | :--- |
| Encoder-only | BERT | Devlin et al. (2018) |
| Decoder-only (autoregressive) | GPT-3, PaLM | Brown et al. (2020); Chowdhery et al. (2022) |
| Encoder-decoder | T5, original Transformer | Raffel et al. (2019); Vaswani et al. (2017) |
| Vision Transformers | ViT | Dosovitskiy et al. (2020) |
| Contrastive image-text | CLIP | Radford et al. (2021) |
| Diffusion generators | DDPM, latent diffusion | Ho et al. (2020); Rombach et al. (2022) |
| Instruction-tuned / RLHF | InstructGPT, ChatGPT | Ouyang et al. (2022); OpenAI (2022) |

## 6. Applications & Concrete Examples
- **Public chat assistant**: ChatGPT as a free research preview from 2022-11-30 (OpenAI, 2022). This article does not state user-count figures; early-growth figures in secondary sources conflict and were not verified.
- **Text-to-image tools** built on latent diffusion (Rombach et al., 2022).
- **Protein structure prediction** (Jumper et al., 2021).
- **Translation and language understanding benchmarks** (Vaswani et al., 2017; Devlin et al., 2018).

Benchmark scores quoted in the primary papers are not repeated here beyond the examples above, because they were superseded quickly; see [[CAP-BENCH-001] AI Evaluation](../vol04_capabilities/CAP-BENCH-001_ai_evaluation.md).

## 7. Advantages, Limitations & Unresolved Questions
**Advantages.** A shared architecture and recipe allowed rapid transfer of methods between fields; pretrained models reduced the labelled data needed for many tasks; scaling trends gave planners a way to predict improvement in loss.

**Limitations.**
- Cost: training the largest models required large compute budgets and specialised hardware (see [[TECH-HW-001] AI Hardware](../vol03_technical/TECH-HW-001_ai_hardware.md)).
- Reliability: models trained on text can produce untruthful or toxic outputs; Ouyang et al. (2022) report reductions after RLHF but state that InstructGPT still makes simple mistakes.
- Transparency: from 2022 onward, frontier developers published fewer technical details; architectures and training data of many later models are undisclosed.
- Evaluation validity: benchmark contamination and metric choice complicate interpretation (Schaeffer et al., 2023).

**Open questions.** Whether emergent abilities are real discontinuities (contested); whether scaling alone will continue to improve capabilities; and how to assess the societal costs raised by Bender et al. (2021).

## 8. Current State of Knowledge
The Transformer remained the dominant architecture for large language and multimodal models through the end of the period covered, and pretraining followed by adaptation was the standard recipe. Evidence for the scaling trends is Well Supported within the ranges studied (Kaplan et al., 2020; Hoffmann et al., 2022); extrapolation beyond them is not established. Interpretation of "emergence" is contested. For developments after 2022, see [[HIST-011] The Contemporary AI Era, 2022 onward (living record)](./HIST-011_the_contemporary_ai_era_2022_onward_living_record.md).

## 9. Future Trajectory & Strategic Outlook
No forecasts are registered in this article. As an observed trend, the architecture, objective and scale choices described here are the baseline against which later work (reasoning models, multimodal models, mixture-of-experts) is compared. For forecasts, see [[FCST-REG-001] Forecast Register](../reference/factbook/FCST-REG-001_forecast_register.md).

## 10. Related Entries & Knowledge Graph
- **Foundational Concepts**:
  - [[TECH-ARCH-001] The Transformer Architecture](../vol03_technical/TECH-ARCH-001_transformer_architecture.md): detailed mechanics.
  - [[HIST-005] The Deep Learning Breakthrough (2012)](./HIST-005_deep_learning_breakthrough.md): the preceding era.
- **Related Methods & Technologies**:
  - [[TECH-LLM-001] Large Language Models](../vol03_technical/TECH-LLM-001_large_language_models.md): technical treatment.
  - [[TECH-SCALE-001] Scaling Laws](../vol03_technical/TECH-SCALE-001_scaling_laws.md): the empirical scaling relationships.
  - [[TECH-ALIGN-001] Pretraining, Fine-Tuning and RLHF](../vol03_technical/TECH-ALIGN-001_pretraining_fine_tuning_and_rlhf.md): the training pipeline.
  - [[TECH-DIFF-001] Diffusion Models](../vol03_technical/TECH-DIFF-001_diffusion_models.md): image generation.
  - [[CAP-GENAI-001] Generative AI](../vol04_capabilities/CAP-GENAI-001_generative_ai.md): capabilities overview.
- **Advanced Implications & Future Trajectories**:
  - [[HIST-011] The Contemporary AI Era, 2022 onward (living record)](./HIST-011_the_contemporary_ai_era_2022_onward_living_record.md): events after 2022.
  - [[HIST-012] Natural Language Processing: A History](./HIST-012_natural_language_processing_a_history.md): the NLP lineage.
  - [[HIST-013] Computer Vision: A History](./HIST-013_computer_vision_a_history.md): the vision lineage.

## 11. References & Foundational Literature
1. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017). Attention is all you need. *Advances in Neural Information Processing Systems 30 (NeurIPS 2017)*. arXiv:1706.03762. [Introduces the Transformer; reports 28.4 and 41.8 BLEU on WMT 2014 En-De and En-Fr.]
2. Peters, M. E., Neumann, M., Iyyer, M., Gardner, M., Clark, C., Lee, K., & Zettlemoyer, L. (2018). Deep contextualized word representations. *Proceedings of NAACL-HLT 2018*. arXiv:1802.05365. [ELMo: contextual representations from a pretrained bidirectional language model.]
3. Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2018). BERT: Pre-training of deep bidirectional Transformers for language understanding. *Proceedings of NAACL-HLT 2019*. arXiv:1810.04805; https://aclanthology.org/N19-1423/. [Masked-language-model pretraining and fine-tuning.]
4. Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., Zhou, Y., Li, W., & Liu, P. J. (2019). Exploring the limits of transfer learning with a unified text-to-text Transformer. arXiv:1910.10683. [T5 text-to-text framework and systematic pretraining study.]
5. Kaplan, J., McCandlish, S., Henighan, T., Brown, T. B., Chess, B., Child, R., Gray, S., Radford, A., Wu, J., & Amodei, D. (2020). Scaling laws for neural language models. arXiv:2001.08361. [Power-law relations of loss with parameters, data and compute.]
6. Brown, T. B., et al. (2020). Language models are few-shot learners. *Advances in Neural Information Processing Systems 33 (NeurIPS 2020)*. arXiv:2005.14165. [GPT-3, 175 billion parameters, few-shot prompting.]
7. Hoffmann, J., Borgeaud, S., Mensch, A., et al. (2022). Training compute-optimal large language models. arXiv:2203.15556. [Chinchilla; equal scaling of parameters and tokens.]
8. Chowdhery, A., Narang, S., Devlin, J., et al. (2022). PaLM: Scaling language modeling with Pathways. arXiv:2204.02311. [540-billion-parameter dense Transformer language model.]
9. Wei, J., Wang, X., Schuurmans, D., Bosma, M., Ichter, B., Xia, F., Chi, E., Le, Q., & Zhou, D. (2022a). Chain-of-thought prompting elicits reasoning in large language models. arXiv:2201.11903. [Intermediate reasoning steps in prompts improve reasoning performance.]
10. Wei, J., Tay, Y., Bommasani, R., Raffel, C., Zoph, B., Borgeaud, S., Yogatama, D., Bosma, M., Zhou, D., Metzler, D., Chi, E. H., Hashimoto, T., Vinyals, O., Liang, P., Dean, J., & Fedus, W. (2022b). Emergent abilities of large language models. arXiv:2206.07682. [Defines and reports emergent abilities.]
11. Schaeffer, R., Miranda, B., & Koyejo, S. (2023). Are emergent abilities of large language models a mirage? arXiv:2304.15004. [Argues apparent emergence depends on metric choice.]
12. Ouyang, L., Wu, J., Jiang, X., et al. (2022). Training language models to follow instructions with human feedback. arXiv:2203.02155. [InstructGPT and RLHF; 1.3B model preferred to 175B GPT-3.]
13. OpenAI. (2022, November 30). *ChatGPT: Optimizing language models for dialogue*. https://openai.com/blog/chatgpt (archived copy dated 2022-11-30: https://web.archive.org/web/20221130/https://openai.com/blog/chatgpt). [Developer announcement of the ChatGPT research preview.]
14. Bommasani, R., Hudson, D. A., Adeli, E., et al. (2021). On the opportunities and risks of foundation models. arXiv:2108.07258. [Defines and surveys foundation models.]
15. Dosovitskiy, A., Beyer, L., Kolesnikov, A., et al. (2020). An image is worth 16x16 words: Transformers for image recognition at scale. arXiv:2010.11929. [Vision Transformer.]
16. Radford, A., Kim, J. W., Hallacy, C., et al. (2021). Learning transferable visual models from natural language supervision. arXiv:2103.00020. [CLIP; 400 million image-text pairs.]
17. Ramesh, A., Pavlov, M., Goh, G., Gray, S., Voss, C., Radford, A., Chen, M., & Sutskever, I. (2021). Zero-shot text-to-image generation. arXiv:2102.12092. [Transformer-based text-to-image generation.]
18. Ho, J., Jain, A., & Abbeel, P. (2020). Denoising diffusion probabilistic models. arXiv:2006.11239. [Diffusion models for image synthesis.]
19. Rombach, R., Blattmann, A., Lorenz, D., Esser, P., & Ommer, B. (2022). High-resolution image synthesis with latent diffusion models. arXiv:2112.10752. [Latent diffusion.]
20. Jumper, J., Evans, R., Pritzel, A., et al. (2021). Highly accurate protein structure prediction with AlphaFold. *Nature*, 596(7873), 583-589. https://doi.org/10.1038/s41586-021-03819-2. [AlphaFold at CASP14.]
21. Bender, E. M., Gebru, T., McMillan-Major, A., & Shmitchell, S. (2021). On the dangers of stochastic parrots: Can language models be too big? *Proceedings of the 2021 ACM Conference on Fairness, Accountability, and Transparency (FAccT '21)*, 610-623. https://doi.org/10.1145/3442188.3445922. [Critique of costs and risks of large language models.]

## 12. Evidential Classification Matrix
| Section / Claim | Evidence Category | Supporting Source | Confidence / Status |
| :--- | :--- | :--- | :--- |
| Transformer architecture and its translation results | Established | Vaswani et al. (2017) | High |
| Pretrain-then-fine-tune improves language tasks | Well Supported | Peters et al. (2018); Devlin et al. (2018); Raffel et al. (2019) | High |
| Power-law scaling of loss with model, data, compute | Well Supported (within studied ranges) | Kaplan et al. (2020); Hoffmann et al. (2022) | High within range |
| Few-shot in-context learning at 175B parameters | Well Supported | Brown et al. (2020) | High |
| Chain-of-thought prompting improves reasoning tasks | Well Supported | Wei et al. (2022a) | Moderate to high |
| Emergent abilities are real discontinuities | Contested | Wei et al. (2022b); Schaeffer et al. (2023) | Low to moderate |
| RLHF improves preference-rated helpfulness; 1.3B preferred to 175B | Well Supported (developer-reported, human evaluation) | Ouyang et al. (2022) | Moderate to high |
| ChatGPT research preview released 2022-11-30 | Established (primary announcement, archived) | OpenAI (2022) | High |
| Foundation-model framing | Well Supported (conceptual framing) | Bommasani et al. (2021) | Moderate |
| Pure Transformers work for vision; contrastive image-text pretraining | Well Supported | Dosovitskiy et al. (2020); Radford et al. (2021) | High |
| Diffusion models for image generation | Well Supported | Ho et al. (2020); Rombach et al. (2022); Ramesh et al. (2021) | High |
| AlphaFold accuracy at CASP14 | Well Supported | Jumper et al. (2021) | High |
| Costs and risks of larger models | Contested (normative and empirical elements) | Bender et al. (2021) | Moderate |

## 13. Revision History
- **v0.1.0** (2026-10-15): Initial draft. Citations checked against arXiv/Crossref/publisher pages where marked; not independently fact-checked.
