Exact Dynamics and Finite-Sample Trajectory Recovery of Linear Recursive Feature Machines
Organizations: Harvard University · Bowdoin College · Massachusetts Institute of Technology
Abstract
Recursive feature machines (RFMs) learn representations of data by alternating between fitting a predictor to a dataset and updating features of that predictor using the average gradient outer product (AGOP). Connections between AGOPs and feature learning in neural networks motivate linear RFMs as a simple setting for analyzing how representations evolve during training. Here, we study the dynamics and statistics of linear RFM in noisy multi-output regression with isotropic sub-Gaussian input data and targets generated by a low-rank teacher matrix of dimension . We extend the known connection between linear RFM and iteratively reweighted least squares from the interpolating setting to ridge-regularized multi-output regression with noise. We show that the learned feature matrix remains close to its infinite-data ideal counterpart at every iteration. Namely, for samples, we show the error in the feature matrix decays as with high probability. Experiments on real-world text and single-cell gene-expression data illustrate the features learned by this simple linear model.
Figures & tables
| Dataset | Streaming stage | Later RFM updates | ||
| OpenWebText | 2.01 hours, 16 CPU cores | 10 updates in 1.5 min on A100 | ||
| HLCA | 8.51 hours, 16 CPU cores | 10 updates in 1.5 min on A100 |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Query | ||
|---|---|---|
| HBA1 | HBA2 (0.837) HBQ1 (0.822) TRDC (0.816) LINC01505 (0.815) LIM2 (0.807) | LINC02446 (0.960) RGL4 (0.959) TESPA1 (0.956) ZNF683 (0.956) KLRC2 (0.953) |
| CFTR | TMEM92 (0.829) C16orf89 (0.804) SLC4A4 (0.793) PON3 (0.785) SHISA2 (0.771) | FREM2 (0.968) PDP2 (0.964) SLC6A20 (0.957) FOXP4 (0.957) RAB40C (0.952) |
| AVIL | GARIN1A (0.854) LINC02021 (0.831) ALG1L2 (0.819) CNN3-DT (0.791) DISP2 (0.791) | EBF4 (0.929) TMEM8B (0.919) FRAS1 (0.911) DLG2 (0.903) LINC01473 (0.899) |
| FOXJ1 | LRRC71 (0.997) SPAG8 (0.995) DCDC2B (0.994) PRR29 (0.994) GPR162 (0.994) | FAM216B (0.995) MS4A8 (0.995) LDLRAD1 (0.994) CFAP43 (0.994) RSPH9 (0.993) |
| CHGA | ASCL1 (0.998) SCG3 (0.996) SST (0.993) CALCA (0.992) KIF1A (0.990) | GFRA3 (0.996) SCG5 (0.996) CHGB (0.996) ASCL1 (0.995) SCG3 (0.995) |
| SFTPA1 | LAMP3 (0.697) ABCA3 (0.642) NAPSA (0.640) SFTPD (0.624) PEBP4 (0.591) | SFTPA2 (0.989) NAPSA (0.987) SFTA2 (0.983) SFTPB (0.982) LPCAT1 (0.980) |
| Query | ||
|---|---|---|
| crushed | lightly (0.796) toss (0.780) dip (0.777) tin (0.776) toast (0.773) | chopped (0.731) lemon (0.725) powder (0.709) dried (0.707) flour (0.699) |
| buys | gamble (0.822) buck (0.778) needless (0.761) theirs (0.759) geterrorstate (0.753) | sells (0.685) buying (0.662) buyer (0.650) seller (0.616) sell (0.602) |
| identifies | relates (0.786) acknowledges (0.780) recognizes (0.773) emphasize (0.763) illustrates (0.757) | identities (0.586) stereotypes (0.567) unidentified (0.567) identifying (0.565) identity (0.547) |
| bounds | alignment (0.773) secondly (0.770) needless (0.765) settling (0.764) illustrates (0.753) | ball (0.592) foul (0.584) defenders (0.573) basket (0.562) turnover (0.559) |
| innocence | awaiting (0.796) prosecuted (0.765) falsely (0.761) kidnapping (0.751) courtroom (0.750) | conviction (0.751) prosecution (0.738) jury (0.735) defendant (0.725) convictions (0.692) |
| rouge | needless (0.765) raymond (0.758) geterrorstate (0.758) apiculture (0.756) glen (0.756) | suburb (0.497) unarmed (0.464) qu (0.463) midwest (0.455) rapids (0.438) |