Abstract
Normalization techniques and residual connections are foundational to modern deep learning, yet the theoretical basis for their success remains a subject of active research. This paper proposes that these architectural components primarily serve to enforce orthogonality among weight vectors. We introduce the Parameters Independence Index (PII) to quantify weight independence and demonstrate that a diagonally dominant Gram matrix—a direct consequence of orthogonal weights—is a critical characteristic of high-performing models, including state-of-the-art Large Language Models (LLMs).
Introduction
Techniques such as Layer Normalization (LayerNorm) and Residual Connections (ResNets) are ubiquitous in modern neural architectures. While previous theories suggest they improve gradient flow or smooth the loss landscape, this study investigates their impact on Weight Geometry. We explore how these architectural choices influence the spatial relationships between weight vectors within a layer, specifically focusing on why high-performing models tend toward orthogonal weight matrices.
Quantifying Orthogonality: The Parameters Independence Index (PII)
To analyze weight geometry rigorously, we introduce the Parameters Independence Index (PII). This metric calculates the average absolute cosine similarity between all pairs of vectors in a parameter matrix. A PII of 0 indicates perfect orthogonality, while a PII of 1 indicates complete linear dependence. Theoretical analysis links a low PII to a diagonally dominant Gram matrix, which enhances the network's capacity for feature learning by ensuring that weight vectors focus on distinct, non-redundant information.
Empirical Analysis and Results
Our investigation across various architectures (FNNs, CNNs, Transformers) reveals that the integration of normalization and residual connections significantly reduces PII.
As illustrated in the empirical results, adding these components to a Fully Connected Network (FNN) reduced the PII from 0.164 to 0.079. This structural shift correlates with performance improvements; for instance, CNNs on CIFAR-10 achieved an accuracy boost from 85.48% to 90.22% alongside this reduction in PII. Analysis of pre-trained LLMs like Llama 2 and Qwen further confirms this trend, with these models exhibiting extremely low PII values (often < 0.02).
Optimizer Dynamics and LoRA
The study also highlights the role of optimizers. While Stochastic Gradient Descent (SGD) is naturally more "conformal"—better at preserving initial weight orthogonality—adaptive optimizers like Adam tend to distort these angles. Normalization and residuals act as essential regularizers that maintain orthogonality even under adaptive updates. Furthermore, Low-Rank Adaptation (LoRA) was found to be exceptionally good at preserving the geometric health of pre-trained weights, which may explain its effectiveness in fine-tuning large-scale models.
Conclusion
The efficacy of normalization and residual connections is deeply rooted in their ability to maintain weight vector orthogonality. By ensuring a diagonally dominant Gram matrix, these techniques facilitate robust feature extraction. Future research will focus on developing explicit orthogonal regularization methods to further enhance the training efficiency of ultra-deep networks.
Summary updated