Approaching Deep Learning through the Spectral Dynamics of Weights
David Yunis, Kumar Kshitij Patel, Samuel Wheeler, Pedro Savarese, Gal Vardi, Karen Livescu, Michael Maire, Matthew R. Walter
TL;DR
The paper investigates neural networks through the lens of spectral dynamics of weights, showing a robust bias toward low effective rank across diverse architectures and tasks. It reveals that weight decay acts as an implicit low-rank regularizer, connects rank minimization to grokking and generalization, and demonstrates that top singular directions govern critical phenomena like lottery tickets and linear mode connectivity. Across CNNs, UNets, LSTMs, and Transformers, the authors document persistent top-singular-vector stability and cross-layer alignment, even in nonlinear settings. These findings point to a unifying empirical framework with practical implications for regularization, model compression, and robust optimization, inviting a deeper theoretical understanding of spectral dynamics in deep learning.
Abstract
We propose an empirical approach centered on the spectral dynamics of weights -- the behavior of singular values and vectors during optimization -- to unify and clarify several phenomena in deep learning. We identify a consistent bias in optimization across various experiments, from small-scale ``grokking'' to large-scale tasks like image classification with ConvNets, image generation with UNets, speech recognition with LSTMs, and language modeling with Transformers. We also demonstrate that weight decay enhances this bias beyond its role as a norm regularizer, even in practical systems. Moreover, we show that these spectral dynamics distinguish memorizing networks from generalizing ones, offering a novel perspective on this longstanding conundrum. Additionally, we leverage spectral dynamics to explore the emergence of well-performing sparse subnetworks (lottery tickets) and the structure of the loss surface through linear mode connectivity. Our findings suggest that spectral dynamics provide a coherent framework to better understand the behavior of neural networks across diverse settings.
