Highlights

Contents

OCTLM / UNIT VI / RESEARCH ARCHITECTURESChanging theDecoderAttention, memory, future tokens, and theexperiment that tells you what improved.full causal memorychange the connectionssmaller representationthen measurewhat was lostA HAND-DRAWN FIELD GUIDE
Before we start

How to read this chapter

A decoder can use less memory and still give worse answers. This chapter explains proposed mechanisms and the evidence needed to judge whether they help.

Distinguish removing comparisons, summarizing history, and changing the representation stored in memory. Multi-token prediction changes training; speculative decoding changes execution. The final parts show how to isolate a change in an experiment and avoid claiming more than the evidence supports.

Each part ends with an “In one breath” recap. The interview page has questions, graded exercises, and worked solutions; try the reasoning before reading the answer.

The running example

Finch-24 under controlled changes

Finch-24 provides a fixed causal GQA baseline. Variants are labeled explicitly and require their own training and evaluation. Storage comparisons refer to named tensor payloads; temporary buffers, allocation overhead, and weights are separate.

Setting Symbol Value Convention
Vocabulary V 32,000 Tied output head
Model width d 512 No projection biases
Layers L 8 Pre-norm RMSNorm
Query and KV heads H, H_kv 8, 2 Grouped-query baseline
Head width d_h 64 Content width in baseline
Feed-forward width f 1,536 SwiGLU
Base parameter count P 40,509,952 Recomputed in Python

The historical references are the multi-token prediction, DeepSeek latent-attention, and speculative-decoding papers linked beside their mechanisms. Their findings do not transfer automatically to Finch. The OCTLM case study concerns a recorded project decision, not a measured ranking of every proposed architecture.

The map

What is inside

Start with the cost of dense attention, change one mechanism at a time, and finish with a research decision that the measurements can support.

THE ARCHITECTURE INVESTIGATIONCost + future tokens01Sparse connections02Compressed history03Latent memory04Compare KV designs05Speculative decoding06Controlled experiment07Interpret + decide08
  1. 01The cost and the next few tokensSections 1 to 3. Attention cost and training objectives are separate concerns.
  2. 02Choosing fewer connectionsSections 4 to 8. Most possible comparisons may be unnecessary for a task.
  3. 03Keeping a smaller pastSections 9 to 11. Old history can be summarized instead of retained exactly.
  4. 04Storing a latent instead of full headsSections 12 to 13. Shared latent features can represent several heads' content memory.
  5. 05Comparing what the cache storesSections 14 to 18. A memory saving depends on its baseline.
  6. 06Drafting more than one tokenSections 19 to 20. A cheap draft can reduce expensive sequential target work.
  7. 07Making the comparison believableSections 21 to 25. An implemented idea is not yet an established improvement.
  8. 08From an idea to a defensible resultSections 26 to 28. Research claims depend on what was actually tested.
  9. +Interview prepInterview question bank, graded exercises and worked solutions.