## Chapter 1: Introduction to the Bottleneck Linda: Welcome back to Mechanical Dreams, the podcast where we dive deep into the gears of machine learning and natural language processing. I am Linda, and as always, I am joined by the wonderfully skeptical Professor Norris. Norris: Wonderfully skeptical? I will take that as a compliment, Linda. Hello everyone! It is true, I do like to kick the tires on new claims. What paper have you brought to our audio reading group today? Linda: Today we are unpacking a fascinating preprint from Nathan Godey and Yoav Artzi at Cornell, titled Lost in Backpropagation: The LM Head is a Gradient Bottleneck. It is going to make us completely rethink how language models learn. Norris: Ah, the LM head. Just to set the stage for our listeners, we are talking about that final linear layer followed by a softmax. The component that projects our dense hidden states into a probability distribution over the entire vocabulary. Linda: Exactly! In a modern large language model, that hidden dimension, which we call D, is usually a few thousand. But the vocabulary size, V, is massive. It is often fifty thousand to well over a hundred thousand tokens. Norris: Right, and that mismatch creates what we have known for years as the softmax bottleneck. If D is much smaller than V, the matrix of log-probabilities is strictly low-rank. Yang and colleagues proved back in 2018 that this limits the expressivity of the model. It cannot perfectly represent arbitrary probability distributions over the vocabulary. So, forgive my skepticism, Linda, but why are we revisiting a solved problem from 2018? Did they just find a new way to complain about it? Linda: I knew you would say that! That is exactly what I thought when I read the abstract. But Godey and Artzi are making a much bolder, and frankly, much more concerning claim. They are saying that while the expressivity limitation is real, it is actually a red herring. The true danger of the softmax bottleneck is not that the model cannot represent the distribution, but that it physically destroys the training signal during backpropagation. Norris: Destroys the training signal? Now that is a strong claim. You are saying this is an optimization bottleneck, not just an expressivity one? Linda: Yes! Think about it. When we compute the loss, we get a gradient in the V-dimensional logit space. But to update the rest of the network, that massive V-dimensional gradient has to squeeze backward through that rank-D linear layer. The paper argues that this process acts as a massive, lossy compression step. Norris: Squeezing a fifty-thousand dimensional error signal through a four-thousand dimensional pipe. Intuitively, yes, you are going to lose information. But does it actually matter in practice? Neural networks are incredibly robust to noisy or compressed gradients. Look at stochastic gradient descent itself, or even modern quantization techniques. Linda: That is the million-dollar question! And that is exactly what the authors set out to measure. They argue that this specific type of compression is uniquely destructive, discarding up to 99 percent of the gradient norm and actively hampering the training dynamics of our models regardless of the underlying architecture. Norris: Okay, you have officially hooked me. If they can prove that this old architectural staple is secretly sabotaging our training efficiency at scale, that is a huge deal. Let us get into the weeds. ## Chapter 2: Expressivity vs. Optimization Linda: So, Professor, to understand why this is such a big deal, let us tackle that 2018 expressivity argument head-on. Norris: Please do. The classical view says that because the LM head imposes a rank constraint, the model cannot match the true data distribution perfectly. It is mathematically blocked from expressing the full complexity of language. Linda: Right, and the paper acknowledges that. By Gibbs inequality, the unconstrained optimum would be the empirical conditional distribution. Because D is much smaller than V, we cannot perfectly map that full-rank distribution. However, here is the kicker: Proposition 2.4 in the paper. Norris: Ah, a mathematical proposition! My favorite kind of plot twist. What does it say? Linda: It says that for any hidden dimension D greater than or equal to 2, the model can still perfectly identify the most likely next token and assign it a probability arbitrarily close to 1. Norris: Wait, D greater than or equal to 2? Just two dimensions? But modern models have hidden dimensions in the thousands. Linda: Exactly! Even with just two dimensions, you can pick rows of the weight matrix as distinct points on a unit circle and scale them to push the top-1 probability as close to 1 as you want. So, theoretically, the low-rank constraint does not stop the model from doing greedy decoding perfectly. The model has enough expressivity to be correct. Norris: I see... so if the model can mathematically represent the correct top prediction, the question changes. It is no longer 'why can the model not express the answer?', it is 'why is the model failing to find the answer during training?' Linda: Precisely! The softmax bottleneck is not an expressivity issue; it is an optimization issue. The architecture is perfectly capable of holding the right answer, but gradient descent gets completely lost trying to get there. Norris: That is a profound shift in perspective. But wait, earlier work proposed alternative softmax layers to fix the expressivity issue, like breaking the head into multiple components. Did those fix the optimization problem by accident? Linda: Nope, and the authors checked that too! Even if you use a more expressive output layer like a mixture of softmaxes, the Jacobian matrix of that transformation is still bottlenecked by the hidden dimension D. The gradient compression happens regardless of how fancy your final layer is, as long as the hidden state feeding into it is small. Norris: So no matter how you dress it up, if the pipe from the hidden states to the vocabulary is narrow, the backward flowing error signal gets squashed. We are essentially trying to teach the network to play a symphony, but we are forcing the feedback through a tin can telephone. Linda: I love that analogy! And that brings us to the actual mechanics of the gradient descent. They analyze the effective update direction of the logits. Norris: Right, because the loss depends on the parameters only through the induced probabilities, which come from the logits. If we were optimizing the logits directly, we would take a step in the direction of the logit gradient. Linda: Yes, but because we are updating the weights through the LM head, the actual update to the logits is mathematically constrained. The paper proves that the rank of the actual logit update is at most 2D. Norris: Let me make sure I follow. To understand why this gap matters, we have to look at the prediction error matrix, the difference between the model predicted probabilities and the actual target distribution. Linda: Exactly. They formally define this in Proposition 2.5. As long as many distinct tokens appear as the unique continuation of some context, which happens all the time in natural language, the rank of the prediction error matrix is basically V minus 1. Norris: So the true, ideal gradient has a rank of roughly V, say 50,000. But the physical update the network actually makes is capped at 2D, say 8,000. You literally cannot step in the direction of the true gradient. There is a massive, mathematically unavoidable gap. Linda: You nailed it. And what happens to the rest of that gradient? What happens to the missing 42,000 dimensions of our update? That is where things get really interesting, and quite frankly, a little destructive. ## Chapter 3: The Math of Gradient Destruction Norris: So, to pick up where we left off... you asked what happens to those missing 42,000 dimensions of our update. If it is an Eckart-Young-Mirsky situation, we are essentially projecting the true high-rank gradient onto a much lower-dimensional space. Does all that extra information just vanish into the mathematical void? Linda: It does! Specifically, it gets projected directly into the null space of the LM head's weight matrix. The Eckart-Young-Mirsky theorem guarantees that the physical update we make only captures the top singular values. All those trailing singular values—which contain the subtle, nuanced structural information of the target distribution—are completely sheared off. Norris: Wait, let me play devil's advocate for a moment. We almost always train using Stochastic Gradient Descent, SGD, not full-batch gradient descent. In any given mini-batch, we only see a tiny fraction of the total vocabulary as next tokens. Doesn't that drastically lower the rank of the target matrix for that specific step, and naturally bypass the bottleneck? Linda: That is a great intuition, and exactly what you would hope for! But the authors anticipated that and addressed it in Proposition 2.7. It turns out SGD does not save us. Norris: Really? Why not? Linda: Because even in a mini-batch of typical size—say, a few million tokens—the empirical target distribution still has a very high rank. Most tokens appear at least once in a unique context within that batch. So, especially as the model converges and its predictions get closer to the batch distribution, the optimal update direction remains stubbornly high-rank. The rank-D LM head remains a fundamental obstacle. Norris: Okay, so we are mathematically stuck with a low-rank update for a high-rank problem, even with mini-batches. But you mentioned earlier that this destroys up to 99 percent of the gradient norm. Surely that is a theoretical worst-case scenario? Linda: I wish it was! They empirically measured this on real, pretrained models using documents from the FineWeb dataset. We are talking about major families here: GPT-2, Pythia, Llama 3, and Qwen3. They took the ideal logits gradient and computed how much of its norm falls into the null space of the LM head. Norris: And the result was consistently that high across all those architectures? Linda: Consistently. For all of them, a staggering 95 to 99 percent of the norm is just annihilated. It is completely lost during the backpropagation process. Norris: Ninety-nine percent! That is honestly horrifying. We spend millions of dollars computing these massive, precise gradients on clusters of GPUs, and 99 percent of the energy just hits a brick wall at the very last layer before it can backpropagate to the hidden states. Linda: Exactly. But it is not just that the energy disappears. The paper shows what happens to the energy that *does* make it through. They looked at the distribution of the gradient coefficients before and after this projection. The main coefficients—the ones corresponding to the tokens the model actually needs to learn—are severely diminished. Norris: Let me guess: if the main coefficients are squashed, the energy has to go somewhere to satisfy the geometry of the projection. Does it bleed into the tail? Linda: You hit the nail on the head. The fraction of the norm dedicated to the tail coefficients—meaning the thousands of tokens that were predicted with very low probability—actually becomes more prominent relative to the whole. It takes the form of much higher variance across the tail. Norris: So it essentially acts as random noise! Instead of a clean, sharp signal telling the network, 'increase the probability of the word Apple,' it gets a muffled, compressed version of that, plus a bunch of random static telling it to slightly jitter ten thousand other unrelated words. Linda: Yes, destructive compression! They even tested the efficiency of this compressed update to be absolutely sure. They took batches of data and compared what happens if you theoretically update the logits directly using the optimal high-rank gradient, versus updating the hidden states using the compressed gradient we are forced to use in reality. Norris: And I assume the direct logit update drops the training loss much faster? Linda: Orders of magnitude faster. Given the exact same budget for the update norm, stepping in the direction of the compressed gradient is vastly less efficient at minimizing the loss. It is definitive proof that this compression isn't just a harmless side effect; it is actively harming our optimization. Norris: So, to summarize the math: the mismatch between vocabulary size and hidden dimension forces our gradient through a mathematical shredder. The Eckart-Young-Mirsky theorem guarantees we lose the nuanced tail information. SGD doesn't prevent it. 99 percent of the signal's magnitude is lost to the null space, and what *does* survive is drowned out by high-variance noise. That is a brutal realization. Linda: It really is a fundamental structural flaw. And while the math is convincing, seeing it break a model in practice is even wilder. ## Chapter 4: SpamLang and Real-World Evidence Norris: Okay, so at the end of the last chapter, you mentioned that seeing this mathematical shredder break a model in practice is wild. Let us talk about that. You briefly brought up a synthetic language earlier called SpamLang. Linda: Yes! The authors needed a way to completely isolate this optimization bottleneck from any complex linguistic phenomena or expressivity issues. So, they created SpamLang. It is the most trivial language possible. Every sequence is literally just one uniform symbol repeated over and over. Norris: So, a sequence is just token A, followed by token A, followed by token A. A Transformer should be able to learn that in its sleep! It just needs to look at the previous token and copy it. Linda: Exactly. And going back to Proposition 2.4 we discussed earlier, we know that as long as the hidden dimension D is at least 2, the model mathematically has enough expressivity to solve this perfectly. For this experiment, they used a small Transformer with a hidden dimension of 576. Norris: Right, 576 is plenty of capacity to learn the identity function. So, they keep that capacity fixed and start increasing the vocabulary size, V, to tighten the bottleneck? Linda: You got it. They swept the vocabulary size from 1,024 all the way up to 131,072. And the training curves are incredibly revealing. For smaller vocabularies, the model converges perfectly, as you would expect. Norris: But as V gets larger, that high-variance noise we talked about starts to overwhelm the backpropagation? Linda: Precisely. The convergence becomes increasingly difficult. And by the time they reach a vocabulary size of 131,072, the model completely fails to converge, regardless of the learning rate. It just cannot learn the pattern. Norris: That is astonishing. What does a failure even look like on a task that simple? Does it just start hallucinating? Linda: Pretty much! The paper shows some generated samples. Instead of repeating the seed token, it outputs a string of completely unrelated, random characters. The backpropagated signal is so heavily compressed at the LM head that the 100-million parameter network cannot even learn to parrot a single symbol. Norris: That is mind-boggling. It perfectly validates their math. But of course, the skeptics in the audience, myself included, will say: 'Sure, it breaks on a pathological synthetic task, but does this actually impact real-world pretraining?' Linda: The authors knew you would ask that, Professor! So they scaled things up. They ran controlled pretraining experiments using a 2-billion parameter Llama 3 architecture, trained on about 11 billion tokens of FineWeb-Edu data. Norris: But wait, to test the bottleneck, you have to change the hidden dimension. If you change the hidden dimension, you change the size and capacity of the entire model. How did they avoid confounding their results? Linda: Through some very clever engineering! They kept the Transformer backbone exactly the same across all models, with a true hidden dimension of 4096. So the expressivity and capacity of the hidden layers were identical. But for the LM head, they factored the weight matrix into two low-rank matrices to artificially constrain the bottleneck. Norris: Ah, that is brilliant! They simulated a smaller hidden dimension strictly at the output layer. The pipe leading to the vocabulary is constricted, but the engine behind it remains a V8. Linda: Exactly! They simulated effective hidden dimensions ranging from 32 up to the full 4096. And the training dynamics proved everything we just discussed. The wider the bottleneck, the faster the model learned. Norris: How much faster are we talking about? Linda: The model with the unrestricted D of 4096 reached the final validation loss of the heavily restricted D=32 model in just a fraction of the time. It demonstrated a 16x speedup in convergence. Norris: Sixteen times! That is not a marginal optimization; that is a fundamental barrier to scaling. And did this translate to actual downstream performance? Linda: It did. They evaluated these models zero-shot on benchmarks like ARC, HellaSwag, and PIQA. The models with the wider bottlenecks consistently scored higher across the board. The gap was noticeable even between relatively large dimensions like 2048 and 4096. Norris: So by just opening up that final projection step, without adding any actual reasoning capacity to the network's deep layers, they got a smarter, significantly faster-learning model. This proves that current Large Language Models are essentially fighting with one hand tied behind their backs. Linda: Fighting, and wasting a massive amount of expensive compute in the process. Which brings up some huge implications for how we train these giants going forward. ## Chapter 5: Implications for Scaling Laws Norris: Right, so let us talk about those implications. If current Large Language Models are fighting with one hand tied behind their backs, what does this mean for the sacred scaling laws we all rely on? Linda: It means we might need to rethink them entirely! The famous Chinchilla scaling laws typically focus on total parameter counts and training tokens. But this paper suggests that the hidden dimension, specifically its size relative to the vocabulary, is a crucial and completely overlooked variable when trying to extrapolate model performance. Norris: That makes perfect sense. If 99 percent of your logit gradient is turning into noise because of a restricted LM head, you are literally getting less supervision per token. You are bleeding compute efficiency at massive scale. Linda: Exactly. But the authors point out a very optimistic flip side to this. It implies that language models actually have much stronger potential than we currently believe. They are already achieving incredible things despite this massive optimization bottleneck. Imagine how fast they could learn and converge if we simply unblocked the pipe! Norris: So, how do we actually unblock it? We already established in chapter two that just swapping the softmax for a more expressive mixture of softmaxes does not solve the underlying mathematical compression. What solutions are the authors proposing? Linda: They leave the definitive architectural fix for future work, but they point us in some very promising directions. They suggest exploring gradient pre-conditioning, novel optimization techniques, or designing entirely new prediction modules that specifically preserve the gradient flow through the Jacobian matrix without relying on a simple linear projection. Norris: Essentially, we need a funnel that does not just ruthlessly squash the 50,000-dimensional error signal, but intelligently encodes it back into the 4,000-dimensional hidden space. That sounds like a fantastic open problem for the graduate students and researchers listening right now. Linda: It really is! It is a true multi-million dollar optimization problem. If someone listening figures out a computationally efficient, drop-in replacement for the standard LM head that bypasses this gradient bottleneck, they could single-handedly reduce the cost of pretraining foundation models across the entire industry. Norris: Well, Linda, you have done it again. You brought a paper that initially made me roll my eyes at the thought of yet another softmax bottleneck discussion, and you completely changed my perspective. This is a brilliant and fundamental finding that the whole field needs to pay attention to. Linda: I am always happy to keep you on your toes, Professor! And a huge thank you to everyone tuning in. That is all the time we have for today on Mechanical Dreams. Keep dreaming, keep building, and we will catch you in the next episode!