LAuReL: Learned Augmented Residual Layer

Gaurav Menghani, Ravi Kumar, Sanjiv Kumar · DOI

Abstract

Residual connections, typically implemented as a simple identity skip $x + f(x)$, have been a cornerstone of deep learning for nearly a decade. However, treating the residual path as a passive identity mapping may limit a model's representational capacity. We introduce LAuReL (Learned Augmented Residual Layer), a novel architectural component that replaces the static identity skip with a lightweight, learnable linear function. By augmenting the residual stream with minimal parameters—often less than 0.01%—LAuReL achieves significant performance improvements across vision and language benchmarks, including gains of up to 20% on specific LLM tasks, while maintaining negligible inference latency.

Introduction

The success of modern deep learning architectures, from ResNets to Transformers, is largely attributed to residual connections. These connections facilitate gradient flow and enable the training of extremely deep networks. Despite their ubiquity, the residual path has remained an unlearned identity mapping. In the pursuit of higher model quality, researchers typically resort to "naive scaling"—adding more layers or increasing hidden dimensions—which significantly increases computational costs.

LAuReL challenges this paradigm by transforming the residual stream into an active, learnable component. By introducing a small amount of linear capacity into the skip connection, LAuReL improves the Pareto-frontier of model quality versus computational footprint.

The LAuReL Framework

LAuReL generalizes the standard residual equation $x_{i+1} = f(x_i) + x_i$ into a more flexible form: $$x_{i+1} = \alpha \cdot f(x_i) + g(x_i, x_{i-1}, \dots, x_0)$$ where $f(x_i)$ represents the standard non-linear block (e.g., Attention or MLP) and $g(\cdot)$ is a learned linear function.

The LAuReL architecture replaces the standard identity skip with a learned linear function $g(\cdot)$ and an optional weighting factor $\alpha$.

The paper proposes three primary variants of the LAuReL block:

  1. LAuReL-RW (Residual Weights): Introduces learnable scalars to weight the non-linear and identity paths, allowing the model to adaptively balance new and old information.
  2. LAuReL-LR (Low-Rank): Adds a low-rank matrix transformation ($BAx_i$) to the residual path. This provides linear learning capacity without the quadratic parameter growth of full weight matrices.
  3. LAuReL-PA (Previous Activations): Extends the residual function to include a window of $k$ previous activations, effectively utilizing the residual stream as a short-term memory buffer.

These components can be combined (e.g., LAuReL-RW+LR) to provide both adaptive weighting and enhanced linear capacity.

Experimental Evaluation

The efficacy of LAuReL was evaluated across two major domains:

  • Computer Vision: A ResNet-50 model trained on ImageNet-1K.
  • Large Language Models: Decoder-only Transformers (1B and 4B parameters) trained on approximately 0.5 trillion tokens of diverse text, code, and multimodal data.

Evaluation spanned a wide range of benchmarks, including MATH and GSM8K for reasoning, MMLU for general knowledge, HumanEval for coding, and MMMU for multimodal understanding.

Results and Discussion

LAuReL demonstrates remarkable efficiency across all tested scales. In vision tasks, it matched the accuracy gains of adding an entire extra layer to a ResNet-50 while using 2.6x fewer parameters.

In the LLM domain, the impact was even more pronounced. For the 1B parameter model, adding just 0.012% more parameters resulted in a 13.07% improvement on BoolQ and a 10.28% jump on GSM8K. The 4B parameter model saw even larger relative gains, particularly in reading comprehension and math tasks.

Performance comparison of the baseline 4B model versus the LAuReL-augmented version across various benchmarks.

Key insights from the study include:

  • Initialization Matters: To maintain the stability of residual learning, low-rank matrices must be initialized such that the model starts with standard residual behavior (e.g., initializing one matrix to zero).
  • Optimal Rank: Performance typically improves with the rank ($r$) of the linear transformation but plateaus after a certain point, suggesting a "sweet spot" for linear capacity in the residual stream.
  • Negligible Latency: Real-world testing on TPUs and mobile devices showed latency increases of only 1–2%, making LAuReL a highly practical alternative to naive depth scaling.

Conclusion

LAuReL demonstrates that the "identity" in identity mappings is not a requirement for effective residual learning. By making the skip connection learnable, we can unlock significant performance gains with almost no impact on the model's computational budget. This approach provides a new avenue for optimizing large-scale models where every bit of efficiency counts.

Summary updated

BibTeX
@inproceedings{menghani2025laurel,
  author = {Gaurav Menghani and Ravi Kumar and Sanjiv Kumar},
  title = {{LAuReL: Learned Augmented Residual Layer}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=rUDRWP9WvZ},
}
Figure