Constrained Factorization with Diagonal Scaling: Rank-Revealing Training and Pruning
Yikun Hou ⋅ Emrullah Akbas ⋅ Suvrit Sra ⋅ Alp Yurtsever
Abstract
Gradient descent for matrix factorization exhibits an implicit bias toward approximately low-rank solutions, even in regimes where the iterates may grow unbounded. We study this behavior through a constrained factorization with diagonal scaling, separating bounded outer factors from explicit diagonal scale parameters. For PSD matrix recovery, we use the model $X \approx UDU^\top$, where $U$ is constrained to a Frobenius norm ball and $D$ is a nonnegative diagonal factor. Although this reparameterization preserves the stationary points of the standard factorization, our numerical experiments show that its projected dynamics exhibit a stronger bias toward low-rank solutions, often recovering truly (rather than approximately) low-rank matrices across different step sizes and initializations. Building on this behavior, we extend the construction to neural networks by inserting diagonal layers between Frobenius-norm-constrained outer layers. The resulting UDV models exhibit strong rank-revealing structure during training, with many components becoming naturally prunable. We exploit this structure to develop a pruning procedure (UDVPruning) that identifies and removes redundant units during training. Across ViT and MLP-Mixer benchmarks, UDVPruning substantially reduces parameters and FLOPs while maintaining competitive test accuracy and often improving measured training time, inference latency, and energy consumption.
Successful Page Load