NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Residual Alignment: Uncovering the Mechanisms of Residual Networks

Jianing Li, Vardan Papyan · DOI

Abstract

Residual Networks (ResNets) have revolutionized deep learning, yet their internal geometric mechanisms remain poorly understood. This paper introduces Residual Alignment (RA), a phenomenon where intermediate representations in a ResNet align along straight-line trajectories in high-dimensional space. Through extensive empirical analysis of Jacobian matrices across various architectures and datasets, we identify four core properties of RA: straight-line trajectories, vector alignment, low-rank structure, and inverse scaling. Our findings suggest that ResNets function as a "conveyor belt" system, progressively moving data toward class-specific targets, and provide a geometric link between skip connections and the phenomenon of Neural Collapse.

Introduction

Despite the ubiquity of ResNets, the theoretical justification for their superior generalization over plain networks remains incomplete. While skip connections are known to mitigate vanishing gradients, this paper explores a deeper geometric "signature" of successful ResNets. The authors propose that ResNets don't merely process data; they organize it into a rigid geometric structure. This structure, termed Residual Alignment, acts like a "conveyor belt" where each class is moved in a unified direction toward its final classification point.

Methodology: Linearizing Residual Blocks

To uncover these patterns, the researchers analyzed the Residual Jacobian matrices—the derivatives of the residual branches with respect to their inputs. By "linearizing" the blocks, they could apply tools like Singular Value Decomposition (SVD) to identify the primary directions of data transformation. For large-scale convolutional layers, randomized SVD algorithms were employed to extract top singular values and vectors efficiently. This approach was tested across MNIST, CIFAR, and ImageNette datasets.

The Four Pillars of Residual Alignment

The study identifies four defining characteristics of RA that appear in well-generalizing ResNets:

  1. RA1: Straight Line Trajectory: Intermediate representations of an input are not scattered but are equispaced on a straight line in high-dimensional space. Visualization of intermediate representation trajectories showing the straight-line alignment (RA1) characteristic of ResNets. Source, p. 2
Visualization of intermediate representation trajectories showing the straight-line alignment (RA1) characteristic of ResNets.
  1. RA2: Vector Alignment: The singular vectors of residual branches align across different depths, meaning the network pushes data in a consistent direction at every layer.
  2. RA3: Low-Rank Structure: The rank of Residual Jacobians is typically bounded by the number of classes ($C$). The network effectively filters out noise, operating only in a subspace relevant to the task. Analysis of Jacobian matrices across different class counts, demonstrating the low-rank structure (RA3) tied to the number of classes. Source, p. 4
Analysis of Jacobian matrices across different class counts, demonstrating the low-rank structure (RA3) tied to the number of classes.
  1. RA4: Inverse Scaling: The magnitude of residual updates scales inversely with depth ($1/depth$), leading to increasingly refined changes as data moves deeper.

Key Results and Implications

The empirical evidence strongly suggests that skip connections are the primary driver of RA; removing them causes the geometric structure to collapse. Interestingly, techniques like stochastic depth—randomly dropping layers during training—actually strengthen this alignment.

Furthermore, RA provides a missing link to Neural Collapse, a phenomenon where class samples collapse into single points at the final layer. RA shows that this collapse is not a sudden event at the output but a gradual process prepared throughout the entire depth of the network.

Conclusion and Future Work

Residual Alignment offers a new lens through which to view the success of ResNets. While currently demonstrated in classification tasks, future research should investigate if RA persists in generative models or Transformers. The discovery that many layers perform redundant aligning operations also opens doors for new model compression and distillation techniques, potentially allowing complex ResNets to be simplified into more efficient, iterative structures.

Summary updated

BibTeX
@inproceedings{li2023residual,
  author = {Jianing Li and Vardan Papyan},
  title = {{Residual Alignment: Uncovering the Mechanisms of Residual Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=zOCIKYVaF5},
}
Figure