1 00:00:01,000 --> 00:00:09,300 [Hal Turing] Alrighty! Thanks for tuning in! Hello AI world! I am your host, Hal Turing, and my co-host is Dr. Ada Shannon. 2 00:00:09,300 --> 00:00:55,275 [Hal Turing] Today's paper is DepthBench: Measuring How Residual Connections Enable More Computational Depth. The first author is Keyu Wang, with Yangyi Huang, Jiale Kang, David González-Martínez, Weiyang Liu, and Shiwei Liu. It comes from the ELLIS Institute Tübingen, the Max Planck Institute for Intelligent Systems, Tübingen AI Center, and the Chinese University of Hong Kong, 2026. The tension is simple. Stack more layers and you'd expect more computation, but in many transformers the extra layers barely do anything. So the question: which residual and normalization designs let a model turn extra depth into useful computation, with parameters and training recipe held fixed? 3 00:00:55,275 --> 00:01:15,575 [Dr. Ada Shannon] The headline is that the sign of the depth trend depends on the architecture. Under standard Pre-LN, going deeper and narrower at constant size can hurt. Under two other designs it keeps helping. If that holds, the shallow-wide shapes most labs use are partly an artifact of the residual design. Whether it holds up is a question for later. First we need the vocabulary. 4 00:01:15,575 --> 00:01:20,000 [Hal Turing] Start with the residual stream, since everything hangs on it. 5 00:01:20,000 --> 00:01:48,375 [Dr. Ada Shannon] Each transformer layer reads a running hidden state, computes an update, and adds it back. That running state is the residual stream. Pre-LN, analyzed by Xiong and colleagues in 2020 in their paper on layer normalization in the transformer, normalizes the input to each attention or MLP branch but leaves the stream itself untouched. That made deep transformers trainable without careful warmup. The cost is that every update gets added with weight one, so the stream's magnitude keeps growing with depth. 6 00:01:48,375 --> 00:01:51,174 [Hal Turing] And that growth is the problem? 7 00:01:51,174 --> 00:02:13,375 [Dr. Ada Shannon] That's the Curse of Depth claim, from Sun and colleagues in 2025. If the stream's variance grows with depth, a late layer's fixed-size update is small relative to what's already there, so the layer behaves close to identity. Their fix, LayerNorm Scaling, shrinks each branch input by one over the square root of the layer index. DepthBench adopts this framing as its starting point, and later we'll ask how well the evidence separates it from other explanations. 8 00:02:13,375 --> 00:02:17,050 [Hal Turing] Now the family tree. I count three branches. 9 00:02:17,050 --> 00:03:04,000 [Dr. Ada Shannon] Right. First, normalization tweaks. Sandwich-LN normalizes before and after each branch. LayerNorm Scaling is the one we just described. DeepNorm and KEEL are Post-LN fixes that put a large gain on the residual path, and DeepNorm also uses depth-scaled initialization. Second, multi-stream residuals. Hyper-Connections, from ByteDance, replace the single stream with several parallel ones, four here, plus learned weights for reading, writing, and mixing between streams. mHC, from DeepSeek, constrains that mixing to be doubly stochastic using Sinkhorn normalization, for stability. Third, cross-layer access. Attention Residuals let each layer's input be an input-dependent softmax mixture over all earlier sublayer outputs, so a layer can reach back selectively. The Block version does that over block-level summaries to save memory. MoDA is another scheme in this cross-layer family. 10 00:03:04,000 --> 00:03:09,949 [Hal Turing] Ten architectures, one backbone. How do they make depth the only thing that varies? 11 00:03:09,949 --> 00:03:42,000 [Dr. Ada Shannon] By fixing parameters and trading width for depth. A transformer's non-embedding parameters are roughly twelve times layers times d-model squared, plus the embedding term. Hold that constant and you can have few layers with a big hidden size, or many layers with a small one. The dial is the aspect ratio, hidden size divided by layer count. In the 400M suite it runs from 76 for sixteen layers at width 1216, down to 9.1 for seventy layers at width 640. 12 00:03:42,000 --> 00:03:45,125 [Hal Turing] So what did people believe before this? 13 00:03:45,125 --> 00:04:21,824 [Dr. Ada Shannon] Kaplan and colleagues at OpenAI, 2020, found loss depends mostly on total non-embedding parameters and only weakly on shape. Labs then chose shapes by hardware convenience. Wide layers give big efficient matrix multiplies, and depth adds sequential latency. DepthBench's argument is that the flat basin Kaplan found is specific to Pre-LN. There are counterexamples. Tay and colleagues at Google, 2021, found that deep-narrow T5 models were often more compute-efficient. Meta's MobileLLM, from Liu and colleagues in 2024, went deep and thin for sub-billion models. 14 00:04:21,824 --> 00:04:28,024 [Hal Turing] But does a deeper model actually compute more, or just spread the same computation thinner? 15 00:04:28,024 --> 00:05:07,500 [Dr. Ada Shannon] Prior work points both ways, and that matters for this paper. Csordás, Manning and Potts at Stanford, 2025, found deeper models may mostly lengthen existing computation rather than compose new steps. Gromov and colleagues in 2024 showed you can prune many late layers with little damage, and ShortGPT, from Men and colleagues that year, did the same with a layer-importance score. Those say late layers are redundant. The standard counter-hypothesis is about training, not architecture. Tensor Programs V, by Greg Yang and colleagues at Microsoft, 2022, introduced muP, and depth-scaled initialization is a related idea. Both say a deep Pre-LN model may just be mis-scaled. 16 00:05:07,500 --> 00:05:14,800 [Hal Turing] So we have two readings of one problem: the architecture wastes depth, or the training recipe mishandles it. 17 00:05:14,800 --> 00:05:34,175 [Dr. Ada Shannon] Yes. The term to carry forward is effective computational depth: the sequential computation the model actually exploits across layers, judged by how much extra layers help, not the layer count. When we get to the layer diagnostics, the question is whether HC and Attention Residuals really raise that, or only look different. 18 00:05:34,175 --> 00:05:38,175 [Hal Turing] Let's get to the experiments. What does the setup look like? 19 00:05:38,175 --> 00:06:01,000 [Dr. Ada Shannon] A shared LLaMA-style backbone trained in OLMo-core on FineWeb-Edu, at 20 tokens per parameter. That is 8 billion tokens for the 400M models. AdamW, cosine schedule with 10 percent warmup, and the default initialization with standard deviation 0.02 for everyone. There are four suites. The main one is 400M with seven shapes. Then a 300M control, a 200-to-500M scale check, and a 1.6B check. 20 00:06:01,000 --> 00:06:04,425 [Hal Turing] What's the 300M control for? 21 00:06:04,425 --> 00:06:25,425 [Dr. Ada Shannon] At a fixed total size, narrower models spend fewer parameters on the embedding and output head. So they get a bigger transformer backbone. The control holds the backbone itself at 300M, which removes that confound. For learning rate, each architecture gets a four-point sweep on the 400M models, and the best value is reused across shapes. The 1.6B models use a fixed 5e-4. 22 00:06:25,425 --> 00:06:28,575 [Hal Turing] So what happens as you go deeper? 23 00:06:28,575 --> 00:06:49,550 [Dr. Ada Shannon] The sign of the trend flips. Take 16 layers versus 32 at the same size. Pre-LN gets worse by about 0.023 in validation loss, where lower is better. HC improves by about 0.030. Full AttnRes improves by about 0.033. Same parameters, same data, opposite directions. 24 00:06:49,550 --> 00:06:54,250 [Hal Turing] Those are small numbers. Do the authors say how repeatable they are? 25 00:06:54,250 --> 00:07:15,750 [Dr. Ada Shannon] They report one run per cell and no error bars, so I'd read them as a consistent direction, not as precise gaps. I'll come back to that in the critique. The direction does persist, though. At 70 layers and width 640, HC and Full AttnRes are still improving. In the 300M-backbone control they improve even as total size shrinks, which suggests the gain comes from the shape, not extra backbone parameters. 26 00:07:15,750 --> 00:07:19,125 [Hal Turing] Is this only a pretraining-loss story? 27 00:07:19,125 --> 00:07:40,350 [Dr. Ada Shannon] They also measured negative log-likelihood on held-out coding, STEM and math text. That is how surprised the model is by the correct answer, so lower is better. It follows the loss. HC and Full AttnRes improve with depth, most clearly on STEM and math. Pre-LN and most variants are flat or non-monotonic. It's still teacher-forced likelihood, not generated answers. 28 00:07:40,350 --> 00:07:44,700 [Hal Turing] And the derived variants, Block AttnRes and mHC? 29 00:07:44,700 --> 00:08:06,825 [Dr. Ada Shannon] They don't keep the benefit. Both peak at intermediate depth: Block AttnRes around 20 layers, mHC around 24. I'll come back to why. First, scale. Full AttnRes keeps preferring deeper shapes from 200M through 1.6B. HC is shakier. One 500M run at the shallowest-widest shape diverged, and at 1.6B there's no clear depth gain. The authors blame learning-rate sensitivity, which fits, but they haven't shown it. 30 00:08:06,825 --> 00:08:12,100 [Hal Turing] Fine. Now the mechanism. Does the model actually use the extra layers? 31 00:08:12,100 --> 00:08:35,675 [Dr. Ada Shannon] Loss is the outcome measure. The layer diagnostics ask whether use of depth changes inside the network. First, angular distance: the angle between hidden states at two depths. Small means later layers barely change the representation. In Pre-LN and its norm variants it varies smoothly, with neighboring deep layers looking alike. HC and AttnRes are larger and non-smooth. Representations keep changing in layer-specific jumps. 32 00:08:35,675 --> 00:08:40,600 [Hal Turing] Smoothness could just mean a different kind of change, not a better one. 33 00:08:40,600 --> 00:09:01,150 [Dr. Ada Shannon] Right, so they add two perturbation tests, borrowed from Csordás and colleagues. The causal score asks how much skipping an earlier layer changes what a later layer does. The permutation score asks how much loss rises when you swap two layers. They only count the last three quarters of the network, because early layers matter everywhere. And the thresholds are the authors' picks. 34 00:09:01,150 --> 00:09:02,775 [Hal Turing] What came out? 35 00:09:02,775 --> 00:09:22,700 [Dr. Ada Shannon] On 32-layer models, swap two late layers in Pre-LN and roughly one pair in twelve hurts noticeably. In Full AttnRes it's nearly half of all pairs, and HC is about a third. Causal dependence shows the same ordering, though the shares are much smaller: about 1 percent for Pre-LN, 7 for HC, 16 for Full AttnRes. 36 00:09:22,700 --> 00:09:29,175 [Hal Turing] But order-sensitive isn't automatically useful. Maybe the layers are just entangled. 37 00:09:29,175 --> 00:09:48,250 [Dr. Ada Shannon] Agreed. It's correlational. What it does show is that late layers are used differently, and that lines up with the loss. It doesn't prove the extra dependence is the cause. And HC complicates the story: pruning single layers on ARC-Easy, HC looks like Pre-LN. Full AttnRes is sensitive across a broader range. 38 00:09:48,250 --> 00:09:51,725 [Hal Turing] What about the explicit paths between layers? 39 00:09:51,725 --> 00:10:14,551 [Dr. Ada Shannon] In Pre-LN every earlier output reaches every later layer with weight exactly one. Full AttnRes learns a softmax over earlier outputs, so it retrieves selectively. HC reaches them by recombining its four streams. A LogitLens probe, which decodes intermediate states into predictions, shows Pre-LN converging steadily to its final answer. Full AttnRes does not. Its progress is non-monotonic. 40 00:10:14,551 --> 00:10:18,451 [Hal Turing] Back to the failures. Why does Block AttnRes stall? 41 00:10:18,451 --> 00:10:35,976 [Dr. Ada Shannon] Its softmax only sees saved block summaries, so the network has a dead initial segment before the first summary exists. That segment is 2, 5 and 8 layers at 16, 24 and 32 layers. A quarter of the 32-layer model contributes little. 42 00:10:35,976 --> 00:10:38,076 [Hal Turing] And mHC? 43 00:10:38,076 --> 00:10:59,876 [Dr. Ada Shannon] The doubly stochastic constraint pulls toward uniform averaging. Compose enough of those maps and the streams collapse toward one direction. The effective rank of the composed residual maps is 1.44 to 1.65 for mHC, against 2.53 to 2.81 for HC. So the stability constraint seems to cost diversity of routes. That's a plausible mechanism, not a proven one. 44 00:10:59,876 --> 00:11:16,751 [Hal Turing] So mHC buys stability at the price of route diversity. Before we get to systems costs, I want to press on the Pre-LN baseline. It got worse with depth, and that's the paper's anchor. Is that the curse of depth, or is the recipe handicapping it? 45 00:11:16,751 --> 00:11:36,176 [Dr. Ada Shannon] The recipe could be doing part of it, and the paper can't separate the two. Every model uses the default init with standard deviation 0.02. There's no residual-projection scaling like one over root two L, and no per-shape scaling in the muP style. The rise is only about 0.023. 46 00:11:36,176 --> 00:11:42,151 [Hal Turing] But the paper does test depth-aware fixes, right? DeepNorm and LayerNorm Scaling. 47 00:11:42,151 --> 00:12:07,626 [Dr. Ada Shannon] Yes, and that's real evidence against init alone. DeepNorm uses depth-scaled init, LNS rescales by one over root layer index, and neither rescues depth scaling. But neither is a Pre-LN with depth-scaled init and muP-style transfer. That baseline is the one that would settle it. Dey and colleagues' 2025 CompleteP paper, titled "Don't be lazy", showed that with depth-wise hyperparameter transfer, deeper transformers behave much better. It's the stronger baseline that's missing here. 48 00:12:07,626 --> 00:12:10,926 [Hal Turing] What about the learning rate? They did sweep it. 49 00:12:10,926 --> 00:12:48,752 [Dr. Ada Shannon] A four-point grid, spaced two to two and a half times apart. For most architectures the best value sat in the interior, which is mildly reassuring. But an optimum between grid points can hide a gap of 0.01 to 0.02, and that's the size of the effects being ranked. The method also reuses one learning rate per architecture across shapes, while the introduction implies every shape is swept. Greg Yang's muP work says optimal learning rates drift with width unless you correct for it. And the visible sweeps only cover 16 to 32 layers. So I can't tell whether the optimum was interior at 70 layers and width 640. 50 00:12:48,752 --> 00:12:54,727 [Hal Turing] So a mistuned learning rate at the deep end would look exactly like a curse of depth. 51 00:12:54,727 --> 00:13:15,377 [Dr. Ada Shannon] For Pre-LN, yes. And it could favor architectures that tolerate a mismatched rate. The authors blame learning-rate sensitivity for the HC divergence at 500M and the missing HC gain at 1.6B, but they don't test that. The 1.6B runs use a fixed, untuned 5e-4. The mHC learning-rate sweep also used a different init from the main text. 52 00:13:15,377 --> 00:13:26,852 [Hal Turing] Here's one I'm not sure how to read. HC and Full AttnRes already beat Pre-LN at the widest shape. Isn't that a better residual design, not a depth effect? 53 00:13:26,852 --> 00:13:46,702 [Dr. Ada Shannon] That's a fair split. Part of the headline is a generic improvement. The depth-specific claim is the slope across shapes, and the paper ranks raw losses instead of fitting slopes with confidence intervals. Its own evidence is mixed too: HC's layer-pruning profile looks like Pre-LN's, and mHC and Block AttnRes peak at intermediate depth. 54 00:13:46,702 --> 00:13:51,752 [Hal Turing] And the compute. Same parameters, but the deep model costs more. 55 00:13:51,752 --> 00:14:13,477 [Dr. Ada Shannon] Nearly half again as much prefill compute at the deepest shape, and more than double the KV cache. That's measured only for prefill, on one A100 setup. Full AttnRes has the largest peak memory and HC the highest GPU-hours. Training wall-clock isn't measured. So some of what's labelled depth benefit may be more compute at equal parameters. A matched-FLOPs comparison would be the fairer test. 56 00:14:13,477 --> 00:14:20,327 [Hal Turing] Then the layer diagnostics. More order-sensitive layers: is that useful, or just fragile? 57 00:14:20,327 --> 00:14:41,927 [Dr. Ada Shannon] The data can't say. The thresholds are hand-picked and the analysis covers only the last three quarters of layers. Interdependence isn't the same as usefulness. And redundancy has uses. Gromov and ShortGPT prune late layers with little loss, which works because Pre-LN's late layers are close to redundant. Full AttnRes would likely lose that option, though the paper doesn't test pruning on the new designs. 58 00:14:41,927 --> 00:14:46,753 [Hal Turing] What about serial computation? No reasoning task shows up. 59 00:14:46,753 --> 00:15:09,078 [Dr. Ada Shannon] Right. Effective depth is judged by how much extra layers lower the loss, so the evidence leans on the same quantity it's meant to explain. Csordás and colleagues found deeper models mostly lengthen existing computation. Without multi-hop or composition tests, you can't distinguish more serial computation from better use of parameters. And the downstream numbers are teacher-forced NLL, so they mostly track general loss. 60 00:15:09,078 --> 00:15:12,528 [Hal Turing] So what should someone training a model do? 61 00:15:12,528 --> 00:15:27,128 [Dr. Ada Shannon] Don't read this as "go deeper" for Pre-LN. If you're considering HC or Full AttnRes, test at your own scale, tune the learning rate per shape, and check kernel support, because the memory and GPU-hour costs depend on it. 62 00:15:27,128 --> 00:15:29,478 [Hal Turing] And what would you want next? 63 00:15:29,478 --> 00:15:46,328 [Dr. Ada Shannon] A depth-scaled Pre-LN baseline, several seeds, finer learning-rate grids, matched-FLOPs comparisons, serial-composition tasks, and decode latency. A cheap depth-mixing design in the DenseFormer style would also show how much a lightweight option recovers. 64 00:15:46,328 --> 00:16:09,878 [Hal Turing] So here's where I land. Under one shared recipe at 400M, residual design flips the sign of the depth trend: Pre-LN gets worse, while HC and Full AttnRes improve and use their late layers differently. What's not shown is that this survives a depth-aware Pre-LN baseline, multiple seeds, finer learning rates, matched compute, or larger scale. 65 00:16:09,878 --> 00:16:13,453 [Dr. Ada Shannon] That's the claim and its boundary. Thanks for listening. 66 00:16:13,453 --> 00:16:16,003 [Hal Turing] Thanks, everyone. Goodbye.