Introduction
Despite the massive success of Residual Networks (ResNets) across deep learning, the exact mechanisms behind why their skip connections work so well have remained a mystery. The ResNet architecture—characterized by simple "skip connections" that bypass certain layers—revolutionized deep learning and forms the backbone of modern computer vision, biomedical imaging, and even Transformers. However, the deep learning community has lacked a definitive, widely accepted theory explaining why this simple architectural tweak yields such a massive boost in performance and trainability.
Rather than looking at optimization landscapes or randomly initialized networks, this research demystifies the internal mechanisms of fully trained ResNets. The authors discover a phenomenon called Residual Alignment (RA), revealing that fully trained ResNets naturally align the mathematical transformations of their layers. This alignment forces intermediate data representations to progress in a highly rigid, linear, and equally-spaced trajectory toward the final classifier.
Methodology
Because residual blocks are nonlinear, the authors study their linearizations using Residual Jacobian matrices. They calculate the derivative of the residual branch with respect to its input (excluding the skip connection itself) to understand how individual blocks transform their inputs and interact across the network's depth.
To uncover the primary directions and magnitudes of these transformations, they compute the Singular Value Decomposition (SVD) of these Jacobians. Since these matrices are massive for convolutional networks (e.g., $16384 \times 16384$), they utilize a highly efficient Randomized SVD algorithm to extract just the top singular values and vectors.
Alongside their empirical measurements on standard datasets (MNIST, CIFAR10/100, ImageNette), the authors propose a novel mathematical abstraction called the Unconstrained Jacobians Model. This model strips away the complex architectural constraints of the network, allowing the Jacobians to be optimized directly to minimize loss, which helps theoretically prove the emergence of the observed phenomena.
Key Insights: The Four Properties of Residual Alignment
The authors discovered that Residual Alignment (RA) is characterized by four striking properties:
1. The "Conveyor Belt" Trajectory (RA1) As an image passes through the network, its intermediate representations move along a straight line in high-dimensional space, with the steps between consecutive layers being equally spaced.
2. Perfect Alignment (RA2) The top singular vectors (the primary directions of mathematical transformation) of the Residual Jacobians align perfectly with each other across different depths of the network.
3. Rank is Bound by Classes (RA3) For fully-connected ResNets, the rank of these Jacobian matrices is at most $C$, where $C$ is the number of classes in the dataset. The network effectively ignores unnecessary dimensions, focusing its transformations entirely on class-relevant features.
4. Decaying Influence (RA4) The top singular values (the magnitude of the transformation) scale inversely with depth ($\approx 1/\text{depth}$). As the representation gets closer to the end of the network, the residual blocks apply smaller and smaller nudges.
Results and Implications
RA was consistently observed across models that generalize well, holding true for both fully-connected and convolutional architectures, varying widths/depths, and across all tested datasets.
Crucially, counterfactual experiments proved that skip connections are the sole cause of this phenomenon; removing them completely destroyed the alignment. Furthermore, randomly dropping layers during training (stochastic depth) actually amplifies Residual Alignment.
The authors mathematically proved that if properties RA2, RA3, and RA4 hold, then RA1 (the linear, equispaced trajectory) logically must follow. Using their Unconstrained Jacobians Model, they also proved that for binary classification with cross-entropy loss, the global optimum naturally exhibits Residual Alignment. Finally, they demonstrated that RA co-occurs with "Neural Collapse"—a phenomenon where last-layer features collapse into perfectly symmetric, equidistant class means.
Future Directions
This new view on generalization suggests ResNets act like a series of conveyor belts. Once a representation is on the right track, it just moves forward at a constant speed, implying that the very first layers of a network are the most critical for generalization.
Because the layers in a ResNet align so strongly and effectively apply the same directional transformation, the authors suggest we might be able to distill these aligning layers into a single layer that is applied iteratively, potentially leading to massive model compression. Future work will also explore extending the theoretical proofs to multi-class settings, investigating whether Transformers exhibit similar RA properties, and designing novel recurrent architectures (like Neural ODEs) that explicitly force this alignment to occur.
Summary updated