1. A map, not a prediction
The previous 29 lessons built a vocabulary for understanding language models: representations, objectives, context, attention, training and deployment. Those ideas help us ask useful questions about directions that do not have a settled endpoint.
This final main lesson changes the emphasis. Rather than introducing one more component, it connects several research and engineering questions: can models use computation more effectively, connect language to other signals, act through tools, retrieve useful information and become cheaper to run?
Treat these as overlapping directions, not a complete list of everything happening in AI or a forecast of what must come next. A method may work in one setting and disappoint in another. The earlier course progression was also a teaching route, not a complete linear history.
Think
Spend computation at inference
Can additional attempts, revision or verification improve this task?
Inspect the trade-off
More latency and computation; improvement depends on the model, task and verifier.
See
How can language connect to images, audio and video?
Inspect the trade-off
Representations need alignment; perception and grounded understanding can still fail.
Act
Can a system complete a task through several checked actions?
Inspect the trade-off
Errors compound, and tool permissions and recovery become part of the design.
Remember
What should remain in context, and what should be fetched when needed?
Inspect the trade-off
Retrieval can miss evidence; persistent memory needs explicit storage and update rules.
Save
Which costs can be reduced without losing the capabilities the task needs?
Inspect the trade-off
Quantisation, routing and distillation have different accuracy, memory and latency effects.
Question
What evidence would show that a proposed improvement really works?
Inspect the trade-off
Data quality, evaluation, reliability and interpretability remain separate challenges.
2. Think further: computation at inference time
Training changes a model's parameters. Inference uses a trained model to process an input. Test-time computation asks how spending additional work during inference can change the quality of a result.
Possible strategies include generating intermediate steps, revising a candidate, sampling several candidates, searching alternatives or using a verifier to select among them. These are different mechanisms: a longer response alone is not evidence of better reasoning.
For example, a coding system might produce several solutions and run tests against each one. The tests provide evidence beyond how convincing the explanation sounds. But passing an incomplete test suite is not proof that a program is correct.
One candidate
- Read the problem
- Generate one candidate
- Return the answer
Additional inference work
- Read the problem
- Generate, revise or search candidates
- Check against a criterion
- Select an answer or report uncertainty
A useful abstraction is to select an inference strategy under a budget :
Here is an input, is the strategy's output, measures task quality and measures a chosen resource such as computation or elapsed time. This is a design objective, not a formula promising an improvement. In practice, quality is estimated on evaluations, and both runtime and output can vary.
Reinforcement learning with verifiable rewards can train behaviour using outcomes that are automatically checked, such as an exact answer or a program test result. It connects to reinforcement learning in model training. A checker can still be incomplete or exploitable, and many useful tasks have no simple automatic ground truth.
Training and inference computation are complementary. More inference work does not eliminate training, and unlimited retries do not repair every missing capability. Additional work may increase latency without improving a difficult answer.
3. See more: connect language to other signals
A text tokenizer maps text into discrete identifiers, which become vectors. A multimodal system also needs representations for other inputs: image patches, segments of audio, video frames or other signals.
A schematic image pathway is:
The visual representations do not have to be ordinary text tokens. Architectures can use separate encoders, learned projections, cross-attention or other fusion mechanisms. Joint training helps align information from different modalities; simply concatenating arbitrary vectors does not establish that alignment.
A system might answer questions about a photograph, transcribe speech or summarise a video. These tasks introduce new difficulties: small text can be missed, sound can be ambiguous, and selecting frames can discard important events. Temporal order also matters when describing what happened in a video.
Multimodal inputs provide additional evidence about the world. Successful perception on selected tasks does not by itself establish complete physical understanding. Ask which inputs the system actually receives, how they are represented and which failures were tested.
Revisit vectors, tokenizers and attention.
4. Do more: models inside a tool-use loop
A model can propose an action, such as searching documents, running code or requesting an API operation. An application can validate that request, execute a permitted tool and return its result to the model. Repeating this process creates a system that can work through a multi-step task.
This is one useful way to understand an agent. The term covers different designs; a fixed workflow and an open-ended planning loop need not have the same behaviour or reliability.
01Plan
Choose a bounded next step from the goal and observations.
02Act
Request a permitted tool operation with explicit arguments.
03Observe
Read the actual tool result, including failures.
04Check
Verify progress, revise the plan, or stop and ask for input.
Consider a repository task: inspect the files, propose a change, edit, run checks, read the failures and revise. The useful information comes partly from the observations returned by the tools, not only from generating more text.
Each step can fail. A search can retrieve irrelevant text, a tool can time out and a plausible plan can depend on a false assumption. Good design therefore includes explicit success conditions, bounded retries, logs, permission checks and a way to stop when progress is blocked.
A simplified reliability calculation illustrates why long tasks are demanding. If each of essential steps succeeds independently with the same probability , and there is no recovery, then:
Real errors are not generally independent or equally likely, so this is a toy model rather than an agent benchmark. Its lesson is that checking intermediate results and recovering from failures are part of the system, not optional extras.
Tool use can consume additional inference computation, but it also obtains new evidence or changes external state. These are related capabilities, not identical definitions.
5. Remember more, spend less
Long context, retrieval and persistent memory solve different problems. A larger context window lets more information be provided in one request. It does not guarantee that every relevant detail will be used correctly, or that the information will survive into a later session.
Retrieval-augmented generation, or RAG, retrieves relevant material and conditions generation on that evidence. A simple application pipeline is:
Here is an external collection. Updating that collection can change the information available without retraining the language model. Retrieval can still miss the right passage or return outdated evidence; generation must use it accurately.
Cross-session memory needs explicit storage, selection, retrieval and update rules. It is application state, not an automatic consequence of a large context window. The KV cache is another distinct mechanism: it reuses attention computations during decoding rather than serving as a general database of user facts.
Efficiency also has several dimensions. Weight memory, KV-cache memory, latency, throughput and quality are different measurements.
- MoE routes tokens through a subset of experts. It reduces active expert computation relative to activating every expert, but inactive weights still need storage somewhere and routing introduces overhead.
- Quantisation represents values with fewer bits. As an idealised weight-storage estimate, parameters at bits require bytes. Actual memory also includes scales, metadata, caches and runtime buffers; speed depends on kernels and hardware.
- Distillation trains a student using teacher information. A suitable student can reduce deployment cost, but teaching has an upfront cost and capability transfer must be evaluated.
Revisit MoE, distillation and efficient attention. None of these techniques guarantees that an arbitrary model will fit on a phone or meet a particular latency target.
6. The difficult questions remain
Data quality and coverage. Useful training data is neither unlimited nor interchangeable. Licensing, duplication, coverage and contamination matter. Synthetic examples can help when generated and filtered carefully; repeatedly learning from unchecked outputs can also propagate errors or narrow coverage. There is no single established date when all useful data “runs out”.
Alignment, reliability and interpretability. Following instructions, avoiding harmful behaviour and explaining internal computations are related but distinct goals. Better average benchmark performance does not establish dependable behaviour under every distribution shift or adversarial input. An explanation generated by the model is not a complete account of its internal mechanism.
Architectural cost. Dense full-sequence attention computes pairwise interactions with work proportional to for sequence length and head dimension . FlashAttention improves data movement and avoids materialising the full score matrix, but it does not make dense attention's pairwise arithmetic linear. Sparse attention, linear attention and selective state-space models explore different trade-offs. They should be compared on quality and real runtime, not asymptotic notation alone.
Evaluation. A high score is meaningful only in relation to a task, dataset and measurement procedure. Contamination, narrow test coverage and repeated tuning can complicate comparisons. For an application, include realistic cases, failure recovery, cost and robustness rather than treating one examination score as general intelligence.
These questions interact. A cheaper model may permit more verification attempts; a longer context can increase cost; a tool can improve an answer while introducing a new failure mode. There is no single axis called “better”.
7. Carry the questions forward
From the first vector to a complete language-model system, the course has repeatedly connected a problem to a representation, a mechanism and a remaining limitation. That habit is more durable than memorising the newest model name.
When you encounter a new technique, ask:
- What problem is it trying to solve? State the task and the baseline.
- What changes in the mechanism? Separate model training, inference strategy and application infrastructure.
- What evidence supports it? Look for evaluation conditions and comparisons at a stated budget.
- What does it leave unresolved? Identify costs, failure modes and conditions where it may not help.
The main sequence ends here. The previous recap connects the core model families; this lesson provides a map for exploring what comes after them. A research direction is an invitation to test an idea, not a promise about the future.