Series in the AI archive

In my RAG evaluation , one pipeline could ask for more evidence before writing an answer. The model generated a retrieval request. The surrounding program ran it and supplied the result in a new call. That one extra call raises four questions. What can fit in the model’s context? What teaches it when to call a tool? What does another call cost? And what decides whether it can run?

Architecture changed what a model can carry forward Link to heading

The 2017 Transformer used attention in an encoder–decoder design for translation. GPT-3 used a decoder-only model and evaluated how task descriptions and examples in its prompt changed performance. That setup made the prefix an input the model could use to adapt its behavior on a particular request. Every additional token also became part of the serving workload. Later designs reduce how much information the server stores per token or how much of the earlier text each token has to read. Transformer · GPT-3 · GQA · DeepSeek-V2 · DeepSeek-V4

The important change is visible in the decoder. Attention determines which earlier positions can influence the current one and how their information reaches it. The feed-forward block transforms the current representation. Mixture-of-experts makes that block conditional so different tokens can use different subsets of weights. A model can combine sparse experts with dense attention, or change the attention without using experts. Switch Transformers · DeepSeek-V3

Diagram source
flowchart LR
    T["Text → token IDs"] --> E["Embeddings"]
    E --> A["Masked attention"]
    A --> F["Feed-forward block"]
    F --> V["Next-token scores"]

Attention and the feed-forward block repeat at each layer. Position information enters through the embeddings or attention, depending on the model.

Training gave the model feedback about what to do Link to heading

GPT-3 is a good starting point for understanding in-context learning. InstructGPT adds demonstrations and human feedback to train a model that better follows requests. DeepSeek-R1 shows how checkable outcomes can supply a reward for some reasoning tasks, and Olmo 3 exposes data and checkpoints across stages so a reader can trace a contemporary recipe. These are different kinds of evidence. A task with a verifiable answer provides a training signal for the answer it can check. A tool environment can also grade a sequence of actions. That makes the choice of test part of the training recipe. GPT-3 · InstructGPT · DeepSeek-R1 · Olmo 3 · SWE-Gym

Inference made repeated calls practical Link to heading

A model server first processes the prompt, then generates successive tokens. FlashAttention changes how the attention calculation moves data through GPU memory. PagedAttention changes how the server allocates space for cached keys and values. Speculative decoding can use a draft model to propose several tokens that the target model verifies together. A reasoning system can also choose to spend more compute on candidates or verification. That last choice is about solving the task. The others address the cost of running the model. FlashAttention · PagedAttention · Speculative decoding · Test-time compute

The harness made observations available for the next action Link to heading

ReAct shows the basic loop. Generate an action, execute it in an environment, and return the observation. In the research agent case study , workers log source IDs and the system keeps the corresponding documents in a shared store. The historical synthesis call received summaries and a document catalog. Supplying the original spans at synthesis is another design decision. Worker log · Synthesis inputs It depends on which state the system keeps, which identity can act, and when the system stops. A larger context window can make room for more evidence. Whether the right passage reaches the relevant call is still a design and evaluation question. ReAct · Lost in the Middle · Anthropic’s harness case study

A reading path through the changes Link to heading

Question What changed Start with
What changed inside the model? Designs store fewer bytes per token, read fewer positions, or use fewer weights for each token. Architecture
How are the weights trained? Training can use written text, worked examples, preferences, and results a program can check. Training
Where does inference spend time? Prompt processing and token generation have different costs. Inference
How does a model’s output become an action? A surrounding program checks the request, runs the tool, and gives its result back to the model. Agent harnesses

For a paper-first reading path, start with GPT-3 , Llama 3 , then Olmo 3 . Compare DeepSeek-V4 and Gemma 4 for two 2026 designs.