Abstract
Standard residual connections ($x + f(x)$) are fundamental to training deep neural networks but often introduce feature redundancy. This paper introduces the Orthogonal Residual Update (ORU), a modification that isolates and adds only the component of a module's output that is orthogonal to the input stream. By suppressing the parallel component—which merely rescales existing features—this method improves training stability and model capacity utilization. Empirical results demonstrate significant gains, most notably a +3.78 percentage point accuracy increase for Vision Transformers (ViT-B) on ImageNet-1k with negligible computational overhead.
Introduction
Residual connections have been the cornerstone of deep learning since the introduction of ResNet, enabling the training of architectures with hundreds or thousands of layers. By providing a "shortcut" for gradient flow, they mitigate the vanishing gradient problem. However, the standard formulation $x_{n+1} = x_n + f(x_n)$ assumes that the simple summation of the identity and the residual function is the optimal way to integrate new information. This research suggests that the parallel alignment between the input $x_n$ and the residual $f(x_n)$ leads to redundant feature learning, effectively leaving performance on the table.
The Redundancy of Parallel Components
In a standard residual block, the output of a transformation $f(x_n)$ can be decomposed into two distinct vectors:
- Parallel Component ($f_{||}$): The projection of $f(x_n)$ onto $x_n$, which effectively scales existing features up or down.
- Orthogonal Component ($f_{\perp}$): The portion of $f(x_n)$ perpendicular to $x_n$, representing the introduction of novel feature directions.
The authors argue that in standard networks, modules often spend significant capacity on the parallel component. This "echoing" of the input stream limits the network's ability to learn diverse representations and can lead to unstable norm growth during training. Mathematically, if a module simply rephrases what the previous layer already established, the model's effective depth and capacity are underutilized.
Orthogonal Residual Update (ORU)
The proposed solution is to explicitly calculate and discard the parallel component, adding only the orthogonal part to the residual stream:
$$x_{n+1} = x_n + f_{\perp}(x_n)$$
To implement this efficiently, the authors utilize a projection step similar to the Gram-Schmidt process. The parallel component is calculated via a scalar projection $s_n$:
$$s_n = \frac{f(x_n) \cdot x_n}{\|x_n\|^2 + \epsilon}$$ $$f_{\perp}(x_n) = f(x_n) - s_n x_n$$
Where $\epsilon$ is a small constant for numerical stability. The paper proposes two variants of this update:
- Feature-wise: Applied per-feature, which is ideal for the structured hidden states of Transformers.
- Global: Applied across all non-batch dimensions, evaluated primarily on Convolutional Neural Networks (CNNs).
Experimental Evaluation
The authors evaluated ORU across a battery of datasets, including CIFAR-10/100, TinyImageNet, and ImageNet-1k, using both ResNetV2 and Vision Transformer (ViT) architectures.
Key Results
- Vision Transformers: The most striking improvements occurred in ViTs. On ImageNet-1k, a ViT-B model using Orthogonal Residual Updates achieved 77.05% Acc@1, a +3.78 percentage point gain over the standard linear residual baseline.
- Convergence and Stability: ORU models reached higher accuracy levels in fewer training iterations. The method also stabilized the "norm" (mathematical length) of the data stream, preventing the fluctuations and decay often observed in standard deep architectures.
- Computational Efficiency: Despite the additional mathematical operations, the overhead is negligible. For ViT-B, the throughput reduction was less than 2%, making it a practical drop-in replacement for standard residual blocks.
Analysis and Insights
The paper identifies a "Parallel Suppression" phenomenon: as training progresses, even standard networks naturally attempt to suppress the parallel component. However, by enforcing this orthogonality as an inductive bias from the start, ORU allows the model to bypass this struggle and focus on learning novel features immediately.
From a geometric perspective, the authors show that ORU acts as an efficient approximation of an "exponential map" on a manifold. This ensures the hidden state moves along the most natural path for representation learning, maintaining the integrity of the feature stream throughout the depth of the network.
Conclusion
Orthogonal Residual Updates offer a simple yet powerful refinement of the classic skip connection. By forcing layers to contribute strictly novel information, ORU enhances the capacity and stability of deep networks across various scales and architectures. While currently validated in computer vision, the potential application of these geometric principles to Large Language Models (LLMs) and diffusion models remains a promising area for future research.
Summary updated