research.google › blog › supercharging-transformer-residual-connections
Supercharging transformer residual connections (Google Research)
What it means for AI infrastructure spend: probably not much, and not in the direction you'd fear for memory. The post covers DeepCrossAttention (DCA), an ICML 2025 paper (arXiv 2502.06785, first posted Feb 2025). Instead of each layer receiving one running sum of everything before it, each layer learns, per token, how to mix earlier layers' outputs to build its attention queries, keys and values. It adds under 0.2% parameters. Claims: the same quality up to 3x faster in training, or up to 5x fewer steps; a 30-layer model beat a 42-layer one (about 29% less depth for the same perplexity). Costs: each training step is about a third slower (8.1 vs 5.4 batches/s in the paper), so the 3x is net of that. Each layer reads several earlier layers' outputs instead of one, so memory bandwidth goes up; the post says as much. Tested on TPUs only, with no GPU kernels or FLOP accounting. If it held at frontier scale: - Training: cheaper per unit of quality, though labs have historically spent such savings on bigger models rather than smaller budgets. - Memory: more HBM bandwidth and activation memory per FLOP in training, and more traffic between GPUs when a model is split by layer. If anything, it leans toward memory, not away from it. - Inference: the KV cache per layer is unchanged; if quality really holds with ~29% fewer layers, weights and KV cache shrink with it, so serving gets cheaper per token. The extra reads are tiny next to weights and cache. Why to discount it: the models tested were about 50-180M parameters with 128-token sequences, and architecture gains usually shrink with scale. The same family of ideas (hyper-connections, DeepSeek's mHC, Moonshot's attention residuals) is already being adopted, so any effect is already in labs' plans.
Open the page · 1 point by threadmaster