From counting words to thinking it through.

A visual history of language models: how word counts became context, how attention changed the architecture, and how training turned text predictors into assistants.

1970sBag-of-words

Bag-of-words represented text through word counts, making simple search and classification practical. It ignored word order, so “dog bites man” and “man bites dog” produced the same representation.

Dog bites mandog: 1 · bites: 1 · man: 1
=
Man bites dogdog: 1 · bites: 1 · man: 1
Different meanings, identical word counts. Bag-of-words lost the order that distinguished these sentences.

1990Recurrent neural networks

Early recurrent neural networks processed sequences one step at a time, carrying information forward in a hidden state. They captured order, but struggled to preserve distant context and depended on slow, sequential processing.

“The”Read a word; update the memory.
“dog”Carry that memory into the next step.
“runs”Combine the new word with earlier context.
An RNN read in sequence. Each step passed a memory state to the next; information from distant words could fade.

1997LSTM

LSTMs used gates to control what entered, stayed in, and left their memory, helping them learn longer-range relationships. GRUs offered a related design in 2014, but both still depended on sequential processing and had limits on memory.

Previous memory + new wordInformation entered the next step.
Gates controlled the memoryDecide what to forget, what to add, and what to expose.
Updated memory + outputPass useful information onward.
A simplified LSTM step. Its gates regulated information inside each step, helping useful context survive longer.

2013Word2Vec

Word2Vec learned compact word vectors from surrounding context, capturing useful similarities and relationships. Its static representations combined different senses of a word, so “bank” received the same vector in river and financial contexts.

2014Attention

Attention let a decoder consult relevant parts of its input instead of relying on one fixed summary. The influential translation approach appeared in 2014, but its recurrent architecture still processed sequences step by step.

A useful connectionThedogstoppedbecauseitwastired

The dog stopped because it was tired.

dog ↔ itAn illustrative attention connection
An illustrative connection: resolving “it” may require looking back at “dog.” Actual attention patterns vary by model and layer.

2017The Transformer

The Transformer replaced recurrence with attention, linking distant tokens and allowing parallel processing during training. Standard attention remained expensive on long inputs, and GPT-style generation still produced tokens one after another.

2018BERT & GPT

BERT learned to fill gaps using context on both sides, while GPT predicted the next token using earlier text. Both made pretraining more useful, but BERT was not built for free-form generation and the original GPT was not a ready-made assistant.

BERT · FILL THE GAPThe cat sat[MASK]the window.GPT · PREDICT WHAT COMES NEXTThe cat sat by thewindow
BERT · fill the gapThe cat sat [MASK] the window.
GPT · predict the next tokenThe cat sat by the → window
Two simplified training examples. Tokens are chunks of text, so they need not correspond to whole words.

2020Scaling & GPT-3

GPT-3 scaled language modelling to 175 billion parameters and demonstrated many tasks from examples in a prompt, without updating its weights for each task. Its broad capabilities still came with unreliable answers and limited suitability for conversation.

The surprise was how much stronger task abilities became as models grew. In the GPT-3 paper, three-digit addition accuracy rose from 8.4% for the 13-billion-parameter model to 80.4% for the 175-billion-parameter model, with examples in the prompt. A general text predictor had learned substantial arithmetic ability without dedicated arithmetic fine-tuning—although it still struggled with longer calculations.

13 billion parameters8.4%
175 billion parameters80.4%

Three-digit addition accuracy · published few-shot evaluation

Examples in the promptcat → chat
dog → chien
GPT-3Use the examples as context; weights stay unchanged.
A new translationhorse → cheval
An illustrative few-shot prompt: examples guided a new answer without retraining the model for the request.

2022Chinchilla

Chinchilla balanced model size with much more training data, outperforming the larger Gopher across many evaluations at the same training compute budget. Better pretraining efficiency still left the work of turning a base model into a useful assistant.

Gopher280 billion parameters300 billion training tokens
Chinchilla70 billion parameters1.4 trillion training tokens
Same training compute budget. Chinchilla was smaller but trained on much more text, and performed better across many evaluations. The lesson was to balance model size with training data.

Nov 2022ChatGPT

ChatGPT applied conversation examples and human-feedback training to a GPT-3.5-series model, making an assistant accessible to everyday users. Its helpful responses could still be incorrect, inconsistent, or sensitive to small changes in the prompt.

Example conversationsPeople demonstrated helpful replies.
Ranked responsesPeople compared possible answers, helping train a reward model.
Further trainingReinforcement learning used that feedback to improve replies.
A simplified view of the human-feedback training used for the original ChatGPT. It helped turn a text predictor into a more useful assistant.

2024+Reasoning models

Reasoning models use additional computation to work through intermediate steps before answering, improving performance on demanding tasks. Their internal reasoning need not be shown to the user, and the extra time and cost do not guarantee correctness.

A problemA ₹1,000 item gets 20% off, then another 10%. What is the final price?
Work through the steps₹1,000 × 0.8 = ₹800
₹800 × 0.9 = ₹720
An answer₹720, a total discount of 28%.
An illustrative calculation, not a recorded model response. Reasoning models spend extra computation before answering; this can help on harder problems, but does not guarantee correctness.

The thread running through it all

This history is about more than making models bigger. Better representations gave words useful relationships; better architectures handled context; better training made models easier to use; and extra computation opened another route to stronger answers. Each advance removed a constraint while leaving others behind. The interesting question is what a model learns to do with the data, structure, and computation it is given.

References 15 sources