Scaling Adaptive Depth with Norm-Agnostic Residual Networks

TL;DR

NAG architecture separates magnitude and direction in residual streams to address norm growth in deep models.

cs.LG 🔴 Advanced 2026-06-15 6 views
Tomás Figliolia Beren Millidge
Residual Networks Deep Learning Model Scaling Adaptive Depth Computational Efficiency

Key Findings

Methodology

The paper introduces NAG (Norm-Agnostic) architecture, which separates the magnitude and direction of the residual stream to maintain consistent layer contributions. NAG is implemented with simple kernel-fusible operations, adding negligible parameters.

Key Results

  • In experiments, NAG outperforms baseline Transformers as depth increases, especially in very deep models, showing significant performance gains.
  • Under iso-FLOP training, the Mixture-of-Depths mechanism allows for computational savings to be reinvested in training on more data, matching full-depth baseline performance.
  • NAG effectively mitigates attention sink and heavy-tailed weight distribution issues in existing LLMs.

Significance

NAG architecture addresses the issue of uneven layer contributions due to residual norm growth in deep models while preserving training efficiency. It enhances the stability of training deep models and offers new avenues for model scaling.

Technical Contribution

NAG architecture provides a novel approach to address uneven layer contributions in deep models by separating magnitude and direction in the residual stream, differing fundamentally from existing normalization and initialization methods.

Novelty

NAG is the first architecture to address uneven layer contributions by separating magnitude and direction in the residual stream, fundamentally differing from existing normalization and initialization methods.

Limitations

  • NAG may exhibit instability during early training phases, requiring further optimization.
  • The method's performance improvements are limited in certain specific tasks, necessitating evaluation in specific application contexts.

Future Work

Future work includes optimizing NAG's early training stability and exploring its potential applications across more tasks and datasets.

AI Executive Summary

Residual networks in deep learning have solved the vanishing and exploding gradient problems, but as depth increases, the norm of the residual stream can grow rapidly, reducing the impact of later layer updates. To address this, the paper introduces a new architecture called NAG (Norm-Agnostic). NAG separates the magnitude and direction of the residual stream to maintain consistent layer contributions and prevent systematic suppression of later updates due to norm growth. Experimental results show that NAG outperforms baseline Transformers as depth increases, particularly in very deep models, demonstrating significant performance gains. Additionally, NAG introduces an interpretable Mixture-of-Depths mechanism that adaptively skips attention and MLP layers, allowing computational savings to be reinvested in training on more data under iso-FLOP conditions. Overall, NAG not only enhances the stability of training deep models but also offers new avenues for model scaling.

Deep Analysis

Background

Residual networks are a core innovation in deep learning, solving the vanishing and exploding gradient problems. However, as depth increases, the norm of the residual stream grows, reducing the impact of later layer updates.

Core Problem

In deep models, the norm of the residual stream grows with depth, reducing the impact of later layer updates. This issue is particularly pronounced in very deep models.

Innovation

NAG architecture separates the magnitude and direction of the residual stream to maintain consistent layer contributions and prevent systematic suppression of later updates due to norm growth, differing from existing normalization and initialization methods.

Methodology

  • �� NAG separates the magnitude and direction of the residual stream to maintain consistent layer contributions.
  • �� Implemented with simple kernel-fusible operations, adding negligible parameters.
  • �� Introduces Mixture-of-Depths mechanism to adaptively skip attention and MLP layers.

Experiments

In experiments, NAG outperforms baseline Transformers as depth increases, particularly in very deep models, showing significant performance gains. The Mixture-of-Depths mechanism allows for computational savings to be reinvested in training on more data.

Results

Experimental results show that NAG effectively mitigates attention sink and heavy-tailed weight distribution issues in existing LLMs, demonstrating significant performance gains in very deep models.

Applications

NAG architecture can be applied in scenarios requiring efficient deep models, such as natural language processing and computer vision. Its adaptive depth mechanism allows for computational savings under iso-FLOP conditions.

Limitations & Outlook

NAG may exhibit instability during early training phases, requiring further optimization. Additionally, the method's performance improvements are limited in certain specific tasks, necessitating evaluation in specific application contexts.

Plain Language Accessible to non-experts

Imagine you're cooking in a kitchen, and each step requires adding some seasoning. Traditionally, each addition makes the dish stronger in flavor, potentially losing its original taste. The NAG architecture acts like a smart chef, tasting the dish before each addition to decide how much seasoning to add, ensuring consistent flavor without overpowering the dish.

ELI14 Explained like you're 14

Imagine you're playing a game where each level-up gives you rewards. Traditionally, each level-up gives more rewards, making the game less challenging. The NAG architecture is like a smart game designer who checks your current status before deciding how many rewards to give, keeping the challenge consistent and fun without overwhelming you with rewards.

Glossary

Residual Network

A deep learning architecture that solves the vanishing gradient problem by adding incremental updates at each layer.

Used to address vanishing and exploding gradient problems in deep models.

Norm

The size or length of a vector, affecting layer contributions in deep models.

The norm of the residual stream grows with depth.

Kernel Fusion

An optimization technique that improves efficiency by merging computational operations.

NAG is implemented with simple kernel-fusible operations.

Mixture-of-Depths (MoD)

An adaptive mechanism that skips unnecessary layers to save computational resources.

Used to save computational resources under iso-FLOP conditions.

Attention Sink

A problem in deep models' attention mechanisms that can lead to information loss.

NAG effectively mitigates attention sink issues.

Open Questions Unanswered questions from this research

  • 1 How can NAG's early training stability be improved?
  • 2 How does NAG perform across different tasks?
  • 3 How can NAG's computational efficiency be further optimized?

Applications

Immediate Applications

Natural Language Processing

NAG can improve training efficiency in NLP models, especially in very deep models.

Long-term Vision

Computer Vision

NAG can be applied to computer vision tasks, providing more efficient deep model training and inference.

Abstract

Residual architectures are ubiquitous in deep learning, but they suffer from a subtle structural limitation: the norm of the residual stream can grow rapidly with depth. As a result, updates from later layers become small relative to the accumulated residual state. This reduces their impact on the representation and limits the benefits of scaling models in depth. To address this, we introduce NAG, a norm-agnostic residual architecture that separates magnitude from directional information in the residual stream, preserving meaningful layer contributions throughout depth and preventing later updates from being systematically suppressed by residual-norm growth. Importantly, NAG introduces only a negligible number of additional parameters and relies on simple operations that are easily kernel-fusible, preserving training efficiency in practice. We show that this architecture outperforms baseline Transformers, with gains that increase substantially as depth grows, enabling effective training of much deeper models. The norm-agnostic formulation also leads to an interpretable Mixture-of-Depths (MoD) mechanism that adaptively skips both attention and MLP layers. Beyond serving as a post-training accuracy-compute tradeoff, this mechanism can be used as a pretraining-time scaling strategy: under iso-FLOP training, compute saved by reducing per-token forward-pass cost can be reinvested into training on more tokens while keeping the total parameter count and KV-cache budget fixed. In our experiments, moderate Mixture-of-Depths rates of approximately 20%-25% match full-depth baseline performance under equal training compute while substantially reducing the number of executed layer parameters and forward-pass FLOPs. These results identify sparsity in depth as a new scaling axis for fixed-compute training, enabling very deep yet FLOP-efficient models.

cs.LG cs.AI