[Paper Review] Layer rotation: a surprisingly simple indicator of generalization in deep networks?
This paper introduces layer rotation—measured as the cosine distance between each layer's weight vector and its initialization—as a simple, consistent, and network-agnostic indicator of deep network generalization. It shows that training procedures where all layers achieve a cosine distance of 1 from initialization yield up to 20% higher test accuracy, outperforming other configurations and offering a unified explanation for weight decay and adaptive optimizers' effects on generalization.
Our work presents empirical evidence that layer rotation, i.e. the evolution across training of thecosine distance between each layer’s weight vector and its initialization, constitutes an impressively consistent indicator of generalization performance. Compared to previously studied indicators of generalization, we show that layer rotation has the additional benefit of being easily monitored and controlled, as well as having a network independent optimum: the training procedures during which all layers’ weights reach a cosine distance of 1 from their initialization consistently outperform other configurations -by up to 20% test accuracy. Finally, our results also suggest that the study of layer rotation can provide a unified framework to explain the impact of weight decay and adaptive gradient methods on generalization.
Motivation & Objective
- To identify a simple, consistent, and network-independent indicator of generalization in deep neural networks.
- To investigate whether the evolution of weight vectors relative to their initialization correlates with test performance.
- To evaluate whether layer rotation can unify the understanding of regularization and optimization methods like weight decay and adaptive gradients.
- To demonstrate that monitoring and controlling layer rotation enables improved generalization.
Proposed method
- Layer rotation is computed as the cosine distance between the current weight vector of each layer and its initial weight vector during training.
- The method tracks the evolution of this cosine distance across training epochs for each layer in a deep network.
- The paper compares generalization performance across different training procedures based on whether all layers achieve a cosine distance of 1 from initialization.
- It evaluates the impact of weight decay and adaptive optimizers (e.g., Adam) by analyzing their effect on layer rotation dynamics.
- The analysis is conducted across multiple architectures and datasets to ensure generalizability.
- The framework is used to interpret how regularization and optimization choices influence generalization through layer rotation.
Experimental results
Research questions
- RQ1Does layer rotation—the cosine distance between weights and initialization—serve as a reliable predictor of generalization performance in deep networks?
- RQ2Can training procedures that drive all layers to a cosine distance of 1 from initialization consistently improve test accuracy?
- RQ3How does layer rotation unify the understanding of weight decay and adaptive gradient methods in terms of generalization?
- RQ4Is layer rotation a network-independent indicator, applicable across different architectures and datasets?
Key findings
- Training procedures in which all layers achieve a cosine distance of 1 from their initialization consistently yield superior generalization, with test accuracy improvements of up to 20% compared to other configurations.
- Layer rotation is a highly consistent and easily monitorable indicator of generalization, outperforming previously studied indicators in reliability and interpretability.
- The optimal generalization performance occurs when all layers rotate fully to a cosine distance of 1, suggesting a network-independent training target.
- Layer rotation provides a unifying framework to explain the generalization effects of both weight decay and adaptive gradient methods.
- The study reveals that weight decay and adaptive optimizers influence generalization primarily by shaping the dynamics of layer rotation.
- The results indicate that controlling layer rotation during training could be a practical strategy for improving model generalization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.