When the Gradient Sees Rank: Provable Necessity, Causal Recruitment, and Composition in Trained Matrix Memories
Organizations: Pebble ML
Abstract
Can gradient-based training learn the rank needed to store and compose associations in a matrix memory? In our earlier study, we used a matrix-augmented reasoner on a task that admits a rank-1 solution, leaving this question open. We train matrix memories on fresh key-value bindings whose exact linear recovery requires . A fixed linear readout queries a single matrix state without access to the original bindings. Experiments measure recovery by cosine similarity greater than 0.9, a threshold distinct from mathematical equality. Learned effective rank increases with across the tested grid (Spearman at ). Training-time rank caps produce a recovery transition near : at , , rank 3 gives at most 0.0004 recovery and rank 4 gives 0.97. Four of five seeds retain at least 0.9996 recovery through 21-fold self-application of the trained operator. On the entity subspace, the learned operator has effective rank close to and approximates the ideal cycle. For the single converged seed capped below , a calculation using the entity-subspace operator and ideal cycle predicts the measured cosine within 0.008 through seven applications. Extending training resolves several initial failures, but recovery still declines at larger matrix dimensions with encoder width fixed.
Figures & tables
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| predicted | measured | measured | |
|---|---|---|---|
| 1 | 0.9317 | 0.9303 | 0.996 |
| 3 | 0.9258 | 0.9259 | 0.986 |
| 5 | 0.9181 | 0.9212 | 0.947 |
| 7 | 0.9089 | 0.9163 | 0.881 |
| 21 | 0.7536 | 0.8206 | 0.060 |
| seed | residual | leakage (% of ) | |||
|---|---|---|---|---|---|
| s1 | 8.000 | 0.7% | 0.44% | 8.000 | 1.38 |
| s2 | 7.999 | 1.9% | 1.06% | 8.000 | 1.27 |
| s3 | 7.999 | 1.5% | 0.87% | 8.000 | 2.86 |
| s4 | 7.999 | 2.4% | 1.45% | 7.999 | 1.02 |
Associative Memory
Associative memory studies how systems store patterns or associations and retrieve them from partial, noisy, or context-dependent cues.
See all 120 papers