Global Low-Rank, Local Full-Rank: The Holographic Encoding of Learned Algorithms
Abstract
Grokking -- the abrupt transition from memorization to generalization after extended training -- has been linked to the emergence of low-dimensional structure in learning dynamics. Yet neural network parameters inhabit extremely high-dimensional spaces. How can a low-dimensional learning process produce solutions that resist low-dimensional compression? We investigate this question in multi-task modular arithmetic, training shared-trunk Transformers with separate heads for addition, multiplication, and a quadratic operation modulo 97. Across three model scales (315K--2.2M parameters) and five weight decay settings, we compare three reconstruction methods: per-matrix SVD, joint cross-matrix SVD, and trajectory PCA. Across all conditions, grokking trajectories are confined to a 2--6 dimensional global subspace, while individual weight matrices remain effectively full-rank. Reconstruction from 3--5 trajectory PCs recovers over 95% of final accuracy, whereas both per-matrix and joint SVD fail at sub-full rank. Even when static decompositions capture most spectral energy, they destroy task-relevant structure. These results show that learned algorithms are encoded through dynamically coordinated updates spanning all matrices, rather than localized low-rank components. We term this the holographic encoding principle: grokked solutions are globally low-rank in the space of learning directions but locally full-rank in parameter space, with implications for compression, interpretability, and understanding how neural networks encode computation.
Figures & tables
| Model | Layers | Heads | Parameters | ||
|---|---|---|---|---|---|
| Baseline | 128 | 2 | 4 | 256 | 315,427 |
| Medium | 128 | 4 | 4 | 256 | 580,387 |
| Large | 256 | 4 | 8 | 512 | 2,209,059 |
| Model | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Baseline | 5 | 5 | 6 | 3 | 5 | 7 | 16 | 11 | 5 | 7 |
| Medium | 5 | 5 | 4 | 3 | 4 | 15 | 7 | 5 | 5 | 5 |
| Large | 4 | 3 | 3 | 2 | 2 | 30 | 6 | 30 | 3 | 3 |
| / (% of full rank) | |||||
|---|---|---|---|---|---|
| Model | |||||
| Baseline ( ) | 50/79 | 50/79 | 51/80 | 51/80 | 50/80 |
| Medium ( ) | 51/80 | 51/80 | 52/80 | 52/80 | 52/80 |
| Large ( ) | 44/77 | 47/78 | 49/79 | 49/79 | 50/80 |
| Static decomposition | Trajectory-informed | ||||||
|---|---|---|---|---|---|---|---|
| Model | PM ( ) | Joint ( ) | Joint ( ) | Traj ( ) | Traj ( ) | Baseline | |
| Baseline | 0.1 | 0.673 | 0.009 | 0.994 | 0.845 | 0.968 | 0.994 |
| 0.2 | 0.606 | 0.011 | 0.988 | 0.860 | 0.944 | 0.988 | |
| 0.3 | 0.216 | 0.009 | 0.991 | 0.574 | 0.935 | 0.991 | |
| 0.5 | 0.208 | 0.010 | 0.988 | 0.975 | 0.979 | 0.988 | |
| 1.0 | 0.035 | 0.009 | 0.986 | 0.846 | 0.969 | 0.986 | |
| Mean SI (across 3 tasks) | |||||
| Model | |||||
| Baseline | 0.99 | 0.99 | 0.99 | 1.00 | 0.99 |
| Medium | 0.99 | 0.97 | 0.99 | 0.99 | 0.99 |
| Large | 1.00 | 1.00 | 0.99 | 0.99 | 1.00 |
| Model | |||||
|---|---|---|---|---|---|
| Baseline | 0.065 | 0.061 | 0.075 | 0.078 | 0.087 |
| Medium | 0.069 | 0.085 | 0.115 | 0.099 | 0.120 |
| Large | 0.062 | 0.063 | 0.063 | 0.096 | 0.109 |
Neural Network Training Dynamics
Neural network training dynamics studies how parameters and representations change during optimization and how those changes shape learning, stability, and generalization.
See all 507 papers