Manas Bihani
About

the questions

  1. What is a moat in an AI world?
  2. Why do AI products converge?
  3. What becomes scarce when intelligence becomes cheap?
  4. Does distribution matter more than technology?
  5. Why might human-made things become more valuable?
  6. What happens to expertise when everyone has the same models?
  7. Which parts of an AI startup are actually defensible?
  8. Where does value move when intelligence becomes commoditized?

everything on the desk

  1. OpenAI and Anthropic Say They Broke the Same “Unbreakable” Law of Computing. Six Hours Apart.Story
  2. The New York Times Said Flight Was a Million Years Away. The Wright Brothers Flew 69 Days Later.Story
  3. Ten People Drew a Straight Line on a Graph. It's Now an $800 Billion Bet.Story
  4. Before ChatGPT There Was JARVIS. Before JARVIS There Was a Butler.Story
  5. Every CEO Is About to Make the Right Decision About AI. That's the Problem.Story
  6. we need to talk about the ai situationshipsEssay
  7. The AI situationshipVisualization
  8. The periodic table of the AI stackVisualization
  9. What is a moat when the model isn't yours?Note
  10. The problem-selection premiumNote
  11. Same model, different wiringNote
  12. Selection is the new bottleneckNote
  13. Get friendly with the AI raceEssay
  14. The convergence taxNote
  15. The luxury of realityNote
  16. The non-technical technical advantageNote
  17. The verification economyNote
  18. The bets against the wallVisualization
  19. You can't buy your way outVisualization
  20. How a chatbot writes one wordVisualization
  21. The grid is the last wallVisualization
  22. Who got paidVisualization
  23. Why this paper mattersExplainer
  24. Transformer: Why did transformers replace RNNs?Vaswani et al., NeurIPS 2017
  25. KV cache: Why does a long conversation get slower and cost more than a short one?Shazeer, 2019
  26. Mixture of experts: Why do some AI models have experts?Fedus, Zoph and Shazeer, 2021
  27. FlashAttention: Why is attention slow when the GPU is barely doing any arithmetic?Dao et al., NeurIPS 2022
  28. Mamba: Why does a model reread the whole conversation instead of just remembering it?Gu & Dao, 2023
  29. PagedAttention: Why does a GPU with free memory still refuse new requests?Kwon et al., SOSP 2023
  30. DeepSeek: How did DeepSeek train a frontier model so cheaply?DeepSeek-AI, 2024
  31. Jamba: Why does Jamba matter?Lieber et al., AI21 Labs, 2024
  32. BitNet: Why does BitNet matter?Ma et al., Microsoft Research, 2025
  33. DeepSeek-R1: Can a small AI model learn to reason like a huge one?DeepSeek-AI, 2025
  34. Kimi K2: Why does Kimi K2 matter?Kimi Team, Moonshot AI, 2025
  35. Sliding-window attention: How do models handle huge context windows without the memory bill exploding?Gemma Team, Google DeepMind, 2025
  36. How electricity becomes intelligenceVisualization
  37. This desk, as a datasetDataset
  38. The first version of this roomNote
  39. The aura dividendNote
  40. Distribution is rented attentionNote
  41. The Convergence TestNote
  42. A shelf for thinking about cheap intelligenceCollection
  43. Anatomy of an AI startupNote
  44. Six shocks to expertiseNote
  45. Nineteen Public KeysEssay
  46. The value migration machineModel
  47. AAA-Rated GPUsEssay
  48. Moats, before and afterVisualization
  49. The rhinoceros problemNote
  50. What becomes scarce when intelligence becomes cheap?Essay
  51. AI Has Passed Every Exam. It Has Never Had an Idea.Essay
  52. What Becomes Scarce After Intelligence?Essay
  53. India’s Carbon Markets : A New Test for Global Climate PolicyEssay
  54. Google Wants AI to Become BoringEssay
  55. The Wall That Wasn’t YoursEssay
  56. The Rate-Limiting StepEssay
  57. The Speed of Being WrongEssay
  58. Uber Burned a Year of AI Budget in Four Months. A Rat Catcher in 1902 Knew WhyEssay
  59. Finding a Flat in India Is Broken. We Have the Technology to Fix It. Nobody With Power Wants To.Essay
  60. Why We Can Never Have Good Social MediaEssay
  61. Gen Z Is Going OfflineEssay

rooms

  1. Home
  2. Writing
  3. Projects
  4. All the questions
  5. Everything, as a contact sheet
  6. About

Why this paper matters · 2 of 12

Why does a long conversation get slower and cost more than a short one?

the paper →Fast Transformer Decoding: One Write-Head is All You NeedShazeer, 2019 ↗Nine pages, and the one that names the problem: decoding is bound by reloading keys and values, not by arithmetic. Multi-query attention is the fix proposed here.
KV cacheInference lands on Memory, Servingbytes of state per token

Previously computed state is worth more than recomputing it.

Why does a long conversation with a chatbot feel slower than a short one? It is not thinking harder. Before writing each word, the model reads back a notebook containing everything already said — the whole notebook, every word, every time. That notebook is the KV cache. It is why your conversation has a price, and why a machine with 640 GB of memory serves fifty people rather than five thousand.

On the machineThis lands on HBM, station 3 of 10 on the path the constraint took through the hardware. The second occupant of HBM, and the only one that grows with every conversation. See it on the drawing →
This machine costs about what a house costs. With everyone holding a 32k conversation, how many people is it talking to at once?
one token · 6.0 ms
arithmetic0.05 ms
memory traffic6.0 ms

The step waits for the longer one. Right now that is memory traffic — and what grows with the conversation is no longer the wait. It is how much of the machine you are holding, which is the row below.

shown at ×10 slower than real
your conversation32k
everyone else on this machine50 conversations fit
10.0 GB of cache each · 500 GB of pool once the 140 GB of weights are resident

Read as far as you want. Each level assumes the one above it and nothing more.

Every word the model has already read contributes two vectors to attention: a key and a value. They are fixed the moment that word exists, and nothing later changes them. The KV cache is simply those vectors, held in the GPU’s memory so each new word can attend over the past without rebuilding it from scratch. It is memory spent to delete arithmetic, and the bill arrives in bandwidth.

4Mathematics and memory layout
5Optimisations and system-wide effects
where this comes from
Fast Transformer Decoding: One Write-Head is All You Need ↗Shazeer, 2019 Nine pages, and the one that names the problem: decoding is bound by reloading keys and values, not by arithmetic. Multi-query attention is the fix proposed here.GQA: Training Generalized Multi-Query Transformer Checkpoints ↗Ainslie et al., 2023 The compromise that stuck. Read it for the ablation showing why one shared kv head was too few.
read next
PagedAttention →What the layer below does with the bytes this page just derived. The cache is the cost; where to put it, and how much of it is being held for tokens that never arrive, is the next question anyone running a server asks.FlashAttention →The other half of the same layer, pulling the opposite way: it spends arithmetic to save traffic, where the cache spends memory to save arithmetic. It also solves only prefill, which is why the cache had to exist at all.