## Introduction: The Disconnect Norris: Hello and welcome back to Mechanical Dreams. I’m Professor Norris. Linda: And I’m Linda. Professor, you look a little... pensive today. Everything alright? Norris: Pensive? Perhaps. Concerned is more like it. I was reading the introduction to the paper you sent over, and it starts with a rather stark statistic. It mentions 1976. Linda: A fine year. But I assume you aren't reminiscing about the music. Norris: Not today. The paper points out that back in 1976, about 40% of the papers at computer architecture conferences came from industry. Real people, building real machines, solving practical problems. Linda: And let me guess, that number has gone down? Norris: Down is an understatement. It fell below 4% at the 2025 International Symposium on Compute Architecture. Four percent! It suggests a near-total disconnect between academic research and actual practice. We’re in the ivory tower moving symbols around, while the industry is out there facing real fire. Linda: Well, that is precisely why I chose this week's paper. It’s a call to arms to fix exactly that disconnect. It’s titled "Challenges and Research Directions for Large Language Model Inference Hardware." Norris: A practical title. And who are the brave souls trying to bridge this 40-year gap? Linda: Xiaoyu Ma and David Patterson from Google. Norris: Wait. David Patterson? As in... Turing Award winner, father of RISC, wrote-the-textbook-on-architecture David Patterson? Linda: The very same. So when you said we're in an ivory tower, Patterson is essentially shouting from the industry side telling us where to look. Norris: Well, if Patterson says we have a hardware problem, we have a hardware problem. I am officially listening. What is the diagnosis? Linda: The diagnosis is that Large Language Model inference is a "crisis." Not a challenge, a crisis. They argue that while training gets all the headlines for being expensive, the cost of *inference*—actually serving these models to users—is what determines economic viability. Norris: That makes sense. You train a model once, hopefully, but you query it a billion times. If the inference is inefficient, you bleed money with every token generated. Linda: Exactly. They project inference chip sales to grow 4 to 6 times over the next few years. The demand is exploding, but as we'll see, our current hardware isn't really built for it. Norris: A crisis of success, then. We built models so good everyone wants to use them, but we can't afford to run them. Typical. Linda: So, to restore that historic bond between research and practice, Ma and Patterson are proposing some radical changes to how we build hardware. They want us to stop focusing on just raw compute and start looking at where the real bottlenecks are. Norris: Alright, Linda. You've hooked me. What makes LLM inference so different that it constitutes a crisis? I assume it’s not just about needing more chips? ## The Inference Crisis: Prefill vs. Decode Norris: So, Linda, you've convinced me that we have a problem. But I look at these massive data centers filled with H100s and TPUs, and they seem to be doing *something*. Why exactly is inference such a crisis? Can't we just treat it like a smaller version of training? Linda: That’s exactly the trap everyone falls into! And Ma and Patterson argue that this misconception is costing the industry billions. It turns out that LLM inference has two distinct phases with completely opposite hardware needs: 'Prefill' and 'Decode.' Norris: Prefill and Decode. Sounds like a wash cycle on a futuristic laundry machine. Linda: It’s a bit like that! Think of 'Prefill' as the intake. You type your prompt—"Summarize this article"—and the model processes all those input tokens simultaneously. It’s highly parallel. The GPUs love this phase because they can saturate their compute units. It looks a lot like training. Norris: Right, dense matrix multiplications. High arithmetic intensity. That's what these chips were born to do. Linda: Exactly. But once the prompt is processed, we enter the 'Decode' phase. This is where the model generates the answer. And here is the kicker: it’s autoregressive. Norris: Ah, the serial bottleneck. It generates one token, feeds it back in, generates the next, feeds it back in. You can't parallelize the future. Linda: Precisely. And because it's generating one token at a time, for *every single token*, the chip has to read the entire set of active model weights from memory just to perform a tiny amount of compute. Norris: Ouch. That is painful to even think about. If you have a massive model—say, hundreds of gigabytes—you are moving all that data across the wire just to figure out if the next word is "the" or "and"? Linda: That’s the crisis. The Decode phase is entirely memory-bound. The compute units are sitting idle, waiting for data to arrive from memory. It’s what we call the 'Memory Wall,' but on steroids. Norris: The Memory Wall. I've been lecturing on that since the 90s. We always knew processors were getting faster than memory, but I didn't realize the disparity had gotten this bad in the AI space. Linda: The paper has a terrifying statistic on that. They looked at Nvidia GPUs from 2012 to 2022. In that decade, the raw compute power—the FLOPS—increased by 80 times. Norris: That sounds about right. Moore’s Law and architectural improvements. Linda: But the memory bandwidth? It only grew by 17 times. The gap is widening every single year. We are building these Ferrari engines and feeding them fuel through a coffee straw. Norris: So, our current hardware philosophy—giant chips, massive FLOPS—is perfectly designed for training and Prefill, but it is fundamentally inefficient for Decode. We are paying for compute we can't use. Linda: And it gets worse, Professor. The new trends in AI are making this specific bottleneck even tighter. Take 'Long Context' for example. We want models to remember whole books or codebases. Norris: Which means storing all that history somewhere. Linda: Right, in the KV Cache—the Key-Value Cache. During Decode, you have to access this growing cache for every step. So now you aren't just loading weights; you're loading this massive history of the conversation. It strains memory capacity and bandwidth simultaneously. Norris: And what about these 'Mixture of Experts' models I keep hearing about? Like DeepSeek or Mixtral? Don't they help? Linda: They help with training costs, but they actually hurt inference hardware. MoE models use 'sparsity'—they have huge parameter counts but only use a few 'experts' for each token. This keeps the compute low, which is great, but the model size is gigantic. Norris: I see. You still need to store all the experts in memory because you don't know which one you'll need next. So you have a massive memory footprint, requiring tons of expensive HBM chips, but you're doing very little math. Linda: Exactly. It exacerbates the disconnect. We have low compute intensity but massive memory demand. And then add 'Reasoning models' on top of that—models that 'think' before they answer. Norris: Right, generating that internal monologue. "Let me check step one... let me verify step two..." Linda: That internal monologue consists of thousands of tokens generated in that inefficient, serial Decode phase. It pushes latency through the roof. The user is waiting seconds, maybe minutes, while the hardware struggles against the bandwidth limit. Norris: So, to summarize: We have a workload that hates latency, demands infinite memory bandwidth, and wastes our expensive compute units. And the industry keeps selling us chips designed for the exact opposite. Linda: That is the definition of the crisis. And that is why Ma and Patterson are proposing we stop just scaling up the same old architecture and start doing something radical. ## Solution 1: High Bandwidth Flash Norris: Alright, Linda, enough doom and gloom. We’ve established that the 'Decode' phase is a memory-bound nightmare and that our current hardware is ill-equipped to handle it. What do Ma and Patterson propose we do? Surely the answer isn't just "buy more HBM"? Linda: Definitely not. In fact, they argue HBM is becoming part of the problem—it's too expensive and the capacity isn't scaling fast enough. Their first big proposal is something called High Bandwidth Flash, or HBF. Norris: Flash? You mean NAND Flash? Like in my USB drive or my laptop's SSD? Linda, that stuff is glacial compared to DRAM. You can't run a high-performance neural net off a solid-state drive. Linda: That was my first reaction too! But hear them out. They aren't suggesting we plug a USB stick into a TPU. The idea is to package Flash memory exactly like we package HBM—stacking the dies vertically with Through Silicon Vias. Norris: I see. So you borrow the packaging technology from HBM—the wide data paths, the vertical stacking—but you put Flash silicon inside instead of DRAM? Linda: Exactly. By doing this, they claim you can achieve HBM-like bandwidth—we're talking gigabytes per second—but with 10 times the capacity per chip. Norris: Okay, I can see how parallel lanes give you bandwidth. But Linda... Latency! Flash reads take microseconds. DRAM takes nanoseconds. That is a difference of three orders of magnitude. For inference, where we are tapping our feet waiting for the next token, that sounds like a disaster. Linda: It is a massive hurdle, you're right. But the authors suggest a division of labor based on data types. Think about the Model Weights. Norris: Trillions of parameters. The heavy hitters of memory capacity. Linda: Right. And during inference, do those weights change? Norris: No, they're frozen. Static. You just read them to do the matrix multiplication. Linda: Precisely. That solves the biggest problem with Flash: endurance. Flash wears out if you write to it too much. But if you just store the weights there and only read them, endurance is a non-issue. And regarding the latency—since you know you need the whole weight matrix for the next layer, you can pre-fetch them in massive, continuous chunks. Norris: Ah, streaming. As long as the pipe is fat enough—high bandwidth—it doesn't matter if the first drop takes a microsecond longer to arrive, provided the stream keeps flowing to feed the compute units. Linda: Exactly. However, there is a catch. You can't put *everything* on HBF. The KV Cache—that conversation history we discussed—changes with every single token generated. Norris: And Flash hates frequent, small writes. It would burn out the drive in a week. Linda: So, the proposal is a tiered memory system. You keep a smaller amount of fast, standard DRAM for the KV Cache and the 'hot' data. And you use the massive, cheaper HBF for the frozen model weights. Norris: That is... actually quite pragmatic. It tackles the capacity issue head-on. If we can store a massive Mixture-of-Experts model on a single node because of HBF, we avoid the nightmare of splitting it across fifty different GPUs. Linda: And it saves a fortune. The paper points out that while HBM prices are staying high because of manufacturing complexity, Flash capacity keeps doubling every three years. It’s a sustainable economic path to bigger models. Norris: It implies a completely new memory controller architecture, though. Hardware designers would have to manage two very different types of memory timing simultaneously. But I suppose that's better than the alternative of bankrupting the industry buying HBM. ## Solution 2 & 3: PNM and 3D Stacking Linda: So High Bandwidth Flash solves the capacity problem—basically giving us a huge, cheap warehouse for our model weights. But we still have that speed limit, the bandwidth bottleneck. How do we move data fast enough to keep the compute units fed? Norris: Well, in traditional architecture, you make the bus wider or faster. But we're hitting physical limits on how many pins you can jam onto a package substrate. Physics can be quite stubborn. Linda: That leads us to the authors' second and third proposals: Processing-Near-Memory, or PNM, and 3D Compute-Logic Stacking. Now, Professor, I know you have... strong opinions about this topic. Norris: Oh, do I ever. You're talking about PIM—Processing *In* Memory. It’s the zombie idea of computer architecture! Every decade someone says, 'Hey, why don't we put the CPU right inside the DRAM chip?' And every decade it fails. Linda: Why does it fail, though? Theoretically, it sounds perfect. Zero distance between data and compute. Norris: Manufacturing, Linda. Logic chips—like CPUs—need a process optimized for speed and switching. Memory chips need a process optimized for density and leakage. Trying to print high-performance logic on a memory process is like trying to bake a soufflé in a toaster. You get terrible logic and mediocre memory. Linda: Well, you will be happy to hear that Ma and Patterson agree with you. They make a very sharp distinction between PIM and PNM. They aren't suggesting we merge the dies. Norris: They aren't? Linda: No. Their proposal, Processing-Near-Memory, uses separate dies. You keep your memory die optimized for storage, and your logic die optimized for compute. But then—and here is Solution 3—you use 3D stacking to connect them vertically. Norris: Ah, 3D stacking. TSVs—Through Silicon Vias. So instead of wiring them side-by-side on a motherboard, you put the logic chip right on top of the memory stack, or underneath it, and drill thousands of microscopic holes to connect them? Linda: Exactly! It’s like moving from a sprawling suburb where you have to drive everywhere, to a high-rise building where you just take the elevator. The distance the data travels drops from centimeters to microns. Norris: That solves the power problem too. Moving data across a wire costs energy. If the wire is virtually non-existent, the power consumption plummets. Linda: And the bandwidth explodes. Because you aren't limited by the number of pins on the edge of the chip, you can have thousands of vertical connections. The paper suggests this is the only way to get the bandwidth we need for the Decode phase. Norris: It makes sense. If you can't bring the data to the compute fast enough, you bring the compute to the data. But there must be a thermal catch. You stack hot logic on top of sensitive memory... that sounds like a heat trap. Linda: They address that. They suggest running the logic at lower clock speeds and lower voltages. Since inference is memory-bound anyway, you don't actually need the logic to be running at 5 GHz. You just need it to be *there* and ready when the data arrives. Norris: So we end up with a sandwich. A logic layer, potentially a flash layer for weights, and a DRAM layer for the cache, all interconnected vertically. It’s a complete departure from the 'CPU over here, RAM over there' model we've used since the Von Neumann days. Linda: It really is. And it specifically targets that Decode bottleneck. By putting custom logic right next to the memory banks, we can process those autoregressive tokens without clogging up the main system bus. ## Solution 4: Interconnects and New Metrics Linda: So far we've redesigned the memory with Flash and stacked the compute right on top of it. That solves the single-chip bottleneck. But for these massive LLMs—the trillion-parameter giants—we still need to connect multiple chips together. And that brings us to the fourth research direction: Low-latency Interconnects. Norris: But wait, datacenters already have incredible interconnects. We have optical fibers, InfiniBand, NVLink... surely we can move data fast enough? Linda: We can move *a lot* of data, but not necessarily *fast* enough in terms of latency. Think of it this way: Training a model is like moving a house. You load everything onto a fleet of massive freight trucks. You care about how much the trucks can carry—bandwidth. Norris: Right. It doesn't matter if the truck takes an extra millisecond to start the engine, as long as it delivers the house. Linda: Exactly. But Inference 'Decode' is like delivering a pizza. You are sending tiny messages—single tokens—very frequently. You don't need a freight truck; you need a motorcycle weaving through traffic. If the motorcycle gets stuck at red lights—network hops—your pizza gets cold. Norris: And in this metaphor, a cold pizza is a user staring at a blank screen waiting for ChatGPT to finish a sentence. Linda: Precisely. The paper argues that current supercomputer interconnects are built for freight trucks. We need to rethink the topology—the shape of the network—to minimize the number of hops between chips. They suggest designs like 'Dragonfly' or high-dimensional 'Torus' topologies. Norris: It’s fascinating. We are essentially optimizing the datacenter not for raw throughput, but for responsiveness. It's a complete paradigm shift from how we built systems for scientific computing or even training. Linda: And because the goals are shifting, Ma and Patterson argue we need to change how we keep score. They propose entirely new metrics for evaluating hardware. Norris: Thank goodness. I am tired of seeing charts that just show 'FLOPS.' As we've discussed, you can have all the FLOPS in the world, but if they are waiting on memory, they are useless. Linda: They suggest moving to 'Total Cost of Ownership' (TCO) and 'Carbon Dioxide Equivalent Emissions' (CO2e). Basically: how much does it cost to generate a token, and what is the environmental impact? Norris: That is the return to reality I was looking for. Real engineering isn't about theoretical maximums; it's about delivering performance within a budget—both a financial one and a power budget. Linda: They even mention 'embodied carbon'—the emissions from actually manufacturing these complex chips. If we can use older, simpler processes for the memory logic, we might actually be greener than buying cutting-edge nodes for everything. Norris: So, the roadmap is clear. Stop brute-forcing it. Embrace specialization. Use Flash for capacity, 3D stacking for bandwidth, and low-latency networks for communication. And measure it all by what it actually costs. Linda: It feels like the 'Simulator Era' you mentioned at the start is officially over. We have to build this stuff for real now. Norris: We do. And honestly, it’s the most excited I’ve been about computer architecture since... well, maybe since 1976. Great pick this week, Linda. Linda: Thanks, Professor! I'll see if I can find something equally revolutionary for next week. Norris: Don't work too hard. Remember, even high-bandwidth flash needs to rest. Goodbye, everyone! Linda: Bye!