Manuscript Offprint
arXiv:2610.25652A "feature ODE" describing the learning behavior of shallow MLPs on simple functions
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We study the gradient flow training dynamics of two-layer multi-layer perceptrons (MLPs) on anisotropic Gaussian data. Even in this simple setting, solving the dynamics in full is notoriously difficult, so we try something different. We propose a “feature ODE” that might be intuitively expected to describe the learning dynamics of a shallow MLP. We find that MLPs trained to learn simple target functions (low-order Hermite polynomials and staircase functions) actually roughly follow the loss trajectories from this feature ODE. This agreement is a surprise because of the size of the simplification and the fact that it does not come from a rigorous chain of approximations. We discuss this surprise and speculate on its reasons and uses.

Figure 1: We suggest a simple ODE of scalar variables whose solution predicts loss trajectories for shallow MLPs learning simple functions of anisotropic data. These plots treat shallow MLPs with shifted SiLU activation functions ( ) learning various Hermite polynomial target functions data sampled with , . We write for normalized coordinates. Left. MLP loss trajectories closely match the ODE for example linear and quadratic target functions. Right. Effective optimization times required for learning to complete are well-predicted by this ODE across many such target functions. For quadratic terms of the form , the leading term is indicated in the plots ( ). See Section A for experimental details.
Joint primary authorship.
Code: https://github.com/berkott/feature-ode
1 Introduction
How do shallow MLPs learn simple functions of anistropic Gaussian data? Many researchers have studied these training dynamics, and we have learned a lot (see Section 2). One definite conclusion has emerged: the problem is hard – surprisingly hard, for what should be a simple toy problem in deep learning theory.
What is the source of the difficulty? Taking a look at the functional form of a shallow MLP,
the main annoyance is the elementwise nonlinearity . Elementwise nonlinearities do not play well with our nicest mathematical tools: try to exactly solve the dynamics of a model parameterized as Equation (1) using e.g. regular matrix ODEs, and the elementwise nonlinearity (which is rather unnatural from a linear-algebraic point of view) gets in the way.
Rather than develop a new tool for treating the exact dynamics of a shallow MLP, we propose something different altogether. We design our system to be a solvable model of the shallow MLP that keeps two of the MLP's key traits. Firstly, there should be two trainable linear transformations with a (fixed) nonlinear operation in between, and secondly, the model class needs to represent any nonlinear function. We get both of these traits in the following “deep polynomial regression” (DPR) model:
where A is a square matrix, B is a readout vector, and is the following polynomial featurization operation:
with a sequence of constants.
Why is this a reasonable proxy for a shallow MLP? The matrix serves the role of , preconditioning the input to the nonlinear operation. The operation generates all monomial functions of the hidden vector , giving the model full expressivity. Finally, the readout vector maps these features to a scalar output. See Figure 2 for a visual comparison between the two models.
Note that if one simply fixes , then Equation (2) is polynomial regression: . Equivalently, it is a kernel machine with kernel . With present, is a kernel machine with trainable kernel .
The wonderful thing about DPR is that its gradient flow dynamics on squared loss can in many cases be reduced to a simple ODE of scalar variables and solved exactly. The punchline of this paper is that the resulting ODE is often predictive of the loss trajectories and learning times for MLPs learning low-order polynomials (Figures 1 and 3).
Single- and multi-index models Single- and multi-index models (SIMs, MIMs respectively) have been proposed as the simplest non-trivial targets for shallow MLPs to learn. Therefore, a great deal of literature covers how MLPs are trained on them [Ben Arous et al., 2021, Bietti et al., 2022, Mousavi-Hosseini et al., 2023, Damian et al., 2023, 2022]. Similar to our experiments on staircase functions, Berthier et al. [2024] studied the gradient flow trajectory of wide networks in the mean-field regime and found the same multi-timescale plateau-and-drop structure we showcase. Similar to our ODE, Arnaboldi et al. [2023, 2024] derived a dimensionless ODE detailing the batch size an MLP requires to escape a saddle point when trained on a SIM. We occasionally induce a separation of timescales argument to reduce our feature ODE, which is preceded by Dandi et al. [2024a], Damian et al. [2023], Dandi et al. [2024b], Mousavi-Hosseini et al. [2025] making batch size arguments for when this is valid on MIMs.


Figure 2: Comparison between a shallow MLP and deep polynomial regression (DPR). Left. A shallow MLP has nonlinearities applied elementwise, and each nonlinearity contains many polynomial orders. Different elements tend to different components of the preactivation. Right. In DPR, the nonlinear operation is a preactivation expansion which separately generates monomial interactions of the input vector.
Saddle-to-saddle and step-like learning dynamics The empirical observation that gradient flow on small-initialization MLPs proceeds via long plateaus punctuated by rapid drops has by now been documented from many angles: saddle-to-saddle dynamics in deep linear networks [Jacot et al., 2021]; plateaus and timescale separation in two-layer SIMs [Berthier et al., 2024]; the implicit bias perspective of Pesme et al. [2021]; alternating gradient flows [Kunin et al., 2025]; and the structured plateaus exhibited by the teacher-student ODEs of Saad and Solla [1995b]. Our feature ODE reproduces this plateau structure (Figure 3) without explicitly solving for saddles.
Staircase functions The staircase functions studied in our experiments ( , , ) come from the line initiated by Abbe et al. [2021, 2022, 2023]. Our work differs by analyzing and characterizing the effects of the anisotropy on the learning dynamics. Closely related, the global convergence results of Boursier et al. [2022b] for ReLU networks on orthogonal inputs also exhibit a staircase decomposition of the loss.
Mean-field analyses of two-layer networks Our DPR model and feature ODE can be compared against the more rigorous yet less intuitive mean-field literature of [Mei et al., 2018, Chizat and Bach, 2018, Sirignano and Spiliopoulos, 2020, Rotskoff and Vanden-Eijnden, 2018]. At a high level, mean-field studies derive a partial differential equation for the distribution of parameters in the limit and gives global-convergence results under suitable assumptions. These analyses take a slightly different approach to removing the effect of neuron specialization, taking an infinite-dimensional measure over neurons. Close historical analogs to our ODE can be found from Saad and Solla [1995b,a], Goldt et al. [2019], deriving order-parameter ODEs for teacher-student target functions (similar to our explicit Hermite target decomposition). Refinetti et al. [2021] used analogous ODE reductions for high-dimensional classification problems. Perhaps most similar to our work is the DMFT literature of Bordelon and Pehlevan [2022, 2023] that captures the full evolution of inner-product kernels during feature learning.
Effective ODEs and high-dimensional limit theorems for SGD A separate analytical thread, instead of taking a width limit, takes a high-dimensional input limit and derives rigorous ODE/SDE descriptions of summary statistics under one-pass SGD. Collins-Woodfin et al. [2024] established that online gradient flow on MIMs with general data covariance, admits an ODE that exactly predicts the risk and other observables. Arnaboldi et al. [2023] gave a parallel result for two-layer networks, providing a dimensionless ODE that unifies mean-field and high-dimensional descriptions.
Kernels, Hermites, and random features Several of the technical ingredients we use—the Hermite decomposition of activations to read off the level coefficients (Section C), the dot-product kernel approximation in the “near-origin” or “on-sphere” regime, and the polynomial truncation of the random-feature kernel are similar to results found in [Karkada et al., 2025, Wortsman and Loureiro, 2025]. The semi-frozen network discussed in Section B.1 can be viewed as a random feature approximation to the DPR model; we owe Rahimi and Recht [2007] for their random feature work. Mei et al. [2022] used Hermite expansions to characterize precisely when neural networks beat their associated kernels, providing the polynomial-by-polynomial picture of approximation that our DPR truncation order p inherits.
Neural feature matrix and feature-learning mechanisms We believe DPR is a sound tool to accurately describe the evolution of the neural feature matrix (NFM) , introduced in [Radhakrishnan et al., 2024].
Preconditioned kernel learning We are not the first to suggest applying a learned preconditioner to the inputs of a kernel machine. Wilson et al. [2015] first proposed this technique, using it to improve the sample complexity of kernel regression.
3 The feature ODE
We draw data as , with anisotropic covariance . Given a target function , we construct the square loss . We study gradient flow optimization of the DPR parameters:
Observe that the model function can be written out explicitly in polynomial form:
The great simplifying blessing is that, when depends on only a handful of the coordinates of , then most of these terms can be neglected. In particular, if depends on only a subset of coordinates such that , then any readout parameters with will remain identically zero under gradient flow. Furthermore, first-layer parameters with will feel no gradient and remain equal to .
We now invoke two assumptions on the data. First, we assume that With this assumption, we find that terms of higher orders are learned more slowly, and only the lowest-order terms of required to represent the target function grow substantially and are relevant to the dynamics. Second, we expand the target function as a sum of Hermite polynomials: , and make a sparseness assumption on the coefficients which will be satisfied in every case we discuss (the per-order parity criterion, Section B.3). See Section B for full discussion of these assumptions and the consequent derivations.
After some algebra, we are left with the following ODE:
where . We refer to the above as the feature ODE. The point of the feature ODE is that (a) when the target function is very sparse (i.e. only a few are nonzero), then we need only track a handful of scalar variables, and (b) the resulting loss dynamics resemble those of a shallow MLP trained on the same target function.
When the target function consists of a single Hermite term , the loss in the feature ODE simplifies to just , and the resulting dynamics of a few variables can be studied nicely. The loss and its dynamics cannot be directly solved, but a number of approximations can be made, and are done so in Section D, such
In our typical scaling, is the natural normalization, so this amounts to an assumption that no single coordinate gets a substantial fraction of the variance.

Eff. opt. time
Figure 3: The feature ODE predicts loss trajectories for shallow MLPs learning low-degree “staircase functions.” Predicted loss trajectories are staircases with a number of steps equal to the order of the target function. True loss curves for shallow MLPs roughly follow these staircases, with steps at roughly the predicted times. See Section A for experimental details.
that an explicit solution for the effective optimization time can be found. In short, we define the effective optimization time by having reach its final value, of :
We experimentally validate that MLPs learn target functions in an amount of gradient steps defined by Equation (8), finding great agreement with results summarized in the right side of Figure 1.
Example calculations. To concretize our findings, we provide an in-depth discussion on how the feature ODE can be used to analyze an MLP learning a number of targets presented in the paper. Throughout our discussion, we will use normalized coordinates such that .
Linear target. On a linear target, the feature ODE and dynamics reduce to the form
where we would like to pause to appreciate the simplicity of our ODE: describing the learning dynamics can reliably be captured by only two dynamical variables! For the remainder of the examples, we leave out the dynamics in a and b as they follow from simple derivatives of the loss.
For the loss trajectory, refer to the top left of Figure 1, with the effective optimization time being
Quadratic targets. There are two different types of quadratic targets to consider: the first consists of a mixed-index target, , and the second is a pure-quadratic target . We review the pure-quadratic case's effective optimization time, with the mixed-index being developed similarly. We note that the feature ODE can be obtained by

Figure 4: The feature ODE can predict MLP loss dynamics despite neuron-level specialization in MLPs. We train a two-layer MLP on a two-term staircase and overlay the feature ODE prediction. Top. We plot the online loss of the MLP and of the feature ODE. Bottom. Each row of the heatmap tracks one neuron's preactivation variance over training, and neurons are sorted by their variance at the end of training. The horizontal striations show neuron-level specialization: individual neurons carry distinctly different preactivation variances. Nevertheless, the feature ODE captures the MLP's staircase loss.
similar arguments used for the linear case, We find the dynamics and effective optimization time as,
The mixed-index case has one small but noticeable change: the effective optimization time has the in the denominator replaced with a 2. Surprisingly, the repeated-index quadratic is learned with exactly times fewer steps than it would take to learn a mixed-index quadratic, all other properties remaining constant (validated in Figure 1)!
Staircase with two terms Thus far, we have only discussed target functions with a single term. Notably, this is vastly different from what most real targets consist of. To get closer to real targets, we analyze feature ODE on a “staircase function” (defined in Abbe et al. [2023]) with two terms: . The dynamics of the feature ODE are not discussed in detail, however they follow similar arguments to those of the linear and quadratic cases and are instead shown in Figure 3. We note that there is currently no clean expression for the optimization time of the feature ODE on staircase functions, although presume it is possible.
As more terms are added, the feature ODE will undoubtedly become more complex, however we believe the feature ODE will still be a useful tool that can be used to analyze the learning dynamics of the shallow MLP.
Note that, strictly speaking, the pure-quadratic ODE lacks a corresponding mode to the constant 1. So long as , the difference in dynamics when this term is excluded compared to included is negligible.
4 The feature ODE cannot describe neuron-level specialization
Although our models are fully expressive and capture the training dynamics of simple target functions well, we cannot fully capture all of the training dynamics of MLPs. We removed the elementwise nonlinearity and replaced it with a global nonlinear operation. With each neuron being indistinguishable, we have thus eliminated all neuron-level specialization.
MLPs trained on general tasks, however, are known to develop sparse, specialized weights (i.e. some rows of satisfy ). Select neurons can attend to few input coordinates or directions [Maennel et al., 2018, Barak et al., 2022, Boursier and Flammarion, 2024], notably when developing localized receptive fields on image data [Ingrosso and Goldt, 2022, Lufkin et al., 2024] or solving algorithmic tasks like modular addition [Gromov, 2023, Nanda et al., 2023, Kunin et al., 2025, He et al., 2026]. Our model is unable to capture these neuron-level dynamics.
For simple target functions such as the staircase in Figure 4, the effects of neuron-level specialization are minor and the feature ODE can predict the MLP’s loss well even though MLP neurons clearly specialize. For other target functions, specialization becomes significant, and the feature ODE predicts the loss less accurately. See Section E for details.
5 Outlook & Conclusion
We are excited about future work utilizing this framework to study feature learning. We believe our framework allows for a principled study of the evolution of the neural feature matrix (introduced in Radhakrishnan et al. [2024]), with some, albeit weaker, evidence for a principled study of the output layer weight vector being possible. We are optimistic we can predict dynamics of MLPs learning more complicated functions in varied hyperparameter regimes by further studying DPR and studying more general simplified ODEs.
Acknowledgements
All authors were supported by the FLAB initiative at Imbue and are grateful for Imbue's support of fundamental science. All authors are grateful to Dhruva Karkada for extensive discussions about the project.
JT thanks the 2025 learning mechanics retreat group for the realization of the promising potential for the feature ODE, along with the space given to meet with co-authors in-person. BO acknowledges support by the National Science Foundation Graduate Research Fellowship Program. BO is also grateful to Surbhi Goel for extensive discussion about the project.
References
Emmanuel Abbe, Enric Boix-Adserà, Matthew Brennan, Guy Bresler, and Dheeraj Nagaraj. The staircase property: How hierarchical structure can guide deep learning. In Advances in Neural Information Processing Systems (NeurIPS), 2021. URL https://arxiv.org/abs/2108.10573.
Emmanuel Abbe, Enric Boix-Adserà, and Theodor Misiakiewicz. The merged-staircase property: a necessary and nearly sufficient condition for SGD learning of sparse functions on two-layer neural networks. In Conference on Learning Theory (COLT), 2022. URL https://arxiv.org/abs/2202.08658.
Emmanuel Abbe, Enric Boix-Adsera, and Theodor Misiakiewicz. Sgd learning on neural networks: leap complexity and saddle-to-saddle dynamics, 2023. URL https://arxiv.org/abs/2302.11055.
Luca Arnaboldi, Ludovic Stephan, Florent Krzakala, and Bruno Loureiro. From high-dimensional & mean-field dynamics to dimensionless ODEs: A unifying approach to SGD in two-layers networks. In Conference on Learning Theory (COLT), 2023.
Luca Arnaboldi, Yatin Dandi, Florent Krzakala, Bruno Loureiro, Luca Pesce, and Ludovic Stephan. Online learning and information exponents: On the importance of batch size, and time/complexity tradeoffs. International Conference on Machine Learning (ICML), 2024. URL https://arxiv.org/abs/2406.02157.
Boaz Barak, Benjamin L. Edelman, Surbhi Goel, Sham Kakade, Eran Malach, and Cyril Zhang. Hidden progress in deep learning: SGD learns parities near the computational limit. In Advances in Neural Information Processing Systems, 2022.
Gérard Ben Arous, Reza Gheissari, and Aukosh Jagannath. Online stochastic gradient descent on non-convex losses from high-dimensional inference. Journal of Machine Learning Research, 22(106):1–51, 2021. URL https://arxiv.org/abs/2003.10409.
Raphaël Berthier, Andrea Montanari, and Kangjie Zhou. Learning time-scales in two-layers neural networks. Foundations of Computational Mathematics, 2024. URL https://arxiv.org/abs/2303.00055.
Alberto Bietti, Joan Bruna, Clayton Sanford, and Min Jae Song. Learning single-index models with shallow neural networks. Advances in neural information processing systems, 35:9768–9783, 2022.
Blake Bordelon and Cengiz Pehlevan. Self-consistent dynamical field theory of kernel evolution in wide neural networks. In Advances in Neural Information Processing Systems (NeurIPS), 2022. URL https://arxiv.org/abs/2205.09653.
Blake Bordelon and Cengiz Pehlevan. Dynamics of finite width kernel and prediction fluctuations in mean field neural networks. In Advances in Neural Information Processing Systems (NeurIPS), 2023. URL https://arxiv.org/abs/2304.03408.
Etienne Boursier and Nicolas Flammarion. Early alignment in two-layer networks training is a two-edged sword. arXiv preprint arXiv:2401.10791, 2024.
Etienne Boursier, Loucas Pillaud-Vivien, and Nicolas Flammarion. Gradient flow dynamics of shallow ReLU networks for square loss and orthogonal inputs. In Advances in Neural Information Processing Systems, 2022a.
Etienne Boursier, Loucas Pillaud-Vivien, and Nicolas Flammarion. Gradient flow dynamics of shallow ReLU networks for square loss and orthogonal inputs. In Advances in Neural Information Processing Systems (NeurIPS), 2022b.
Lénaïc Chizat and Francis Bach. On the global convergence of gradient descent for over-parameterized models using optimal transport. In Advances in Neural Information Processing Systems (NeurIPS), 2018. URL https://arxiv.org/abs/1805.09545.
Elizabeth Collins-Woodfin, Courtney Paquette, Elliot Paquette, and Loucas Pillaud-Vivien. Hitting the high-dimensional notes: An ODE for SGD learning dynamics on GLMs and multi-index models. Information and Inference: A Journal of the IMA, 13(4), 2024. URL https://arxiv.org/abs/2308.08977.
Alex Damian, Jason D. Lee, and Mahdi Soltanolkotabi. Neural networks can learn representations with gradient descent. In Conference on Learning Theory (COLT), 2022. URL https://arxiv.org/abs/2206.15144.
Alex Damian, Eshaan Nichani, Loucas Pillaud-Vivien, and Jason D. Lee. Smoothing the landscape boosts the signal for SGD: Optimal sample complexity for learning single index models. Advances in Neural Information Processing Systems (NeurIPS), 2023. URL https://arxiv.org/abs/2305.10633.
Yatin Dandi, Florent Krzakala, Bruno Loureiro, Luca Pesce, and Ludovic Stephan. How two-layer neural networks learn, one (giant) step at a time. Journal of Machine Learning Research, 25(349), 2024a. URL https://arxiv.org/abs/2305.18270.
Yatin Dandi, Luca Pesce, Hugo Cui, Florent Krzakala, Yue M. Lu, and Bruno Loureiro. Repetita iuvant: Data repetition allows SGD to learn high-dimensional multi-index functions. arXiv preprint, 2024b. URL https://arxiv.org/abs/2405.15459.
Sebastian Goldt, Madhu Advani, Andrew M. Saxe, Florent Krzakala, and Lenka Zdeborová. Dynamics of stochastic gradient descent for two-layer neural networks in the teacher-student setup. In Advances in Neural Information Processing Systems (NeurIPS), 2019. URL https://arxiv.org/abs/1906.08632.
Andrey Gromov. Grokking modular arithmetic. arXiv preprint arXiv:2301.02679, 2023.
Jianliang He, Leda Wang, Siyu Chen, and Zhuoran Yang. On the mechanism and dynamics of modular addition: Fourier features, lottery ticket, and grokking. arXiv preprint arXiv:2602.16849, 2026.
Alessandro Ingrosso and Sebastian Goldt. Data-driven emergence of convolutional structure in neural networks. Proceedings of the National Academy of Sciences, 119(40), 2022.
Arthur Jacot, François Ged, Berfin Şimşek, Clément Hongler, and Franck Gabriel. Saddle-to-saddle dynamics in deep linear networks: Small initialization training, symmetry, and sparsity. arXiv preprint, 2021. URL https://arxiv.org/abs/2106.15933.
Dhruva Karkada, Joseph Turnbull, Yuxi Liu, and James B. Simon. Predicting kernel regression learning curves from only raw data statistics, 2025. URL https://arxiv.org/abs/2510.14878.
Daniel Kunin, Giovanni Luca Marchetti, Feng Chen, Dhruva Karkada, James B. Simon, Michael R. DeWeese, Surya Ganguli, and Nina Miolane. Alternating gradient flows: A theory of feature learning in two-layer neural networks, 2025. URL https://arxiv.org/abs/2506.06489.
Leon Lufkin, Andrew M. Saxe, and Erin Grant. Nonlinear dynamics of localization in neural receptive fields. In Advances in Neural Information Processing Systems, 2024.
Hartmut Maennel, Olivier Bousquet, and Sylvain Gelly. Gradient descent quantizes ReLU network features. arXiv preprint arXiv:1803.08367, 2018.
Song Mei, Andrea Montanari, and Phan-Minh Nguyen. A mean field view of the landscape of two-layer neural networks. Proceedings of the National Academy of Sciences, 115(33):E7665–E7671, 2018. URL https://arxiv.org/abs/1804.06561.
Song Mei, Theodor Misiakiewicz, and Andrea Montanari. Generalization error of random feature and kernel methods: hypercontractivity and kernel matrix concentration. Applied and Computational Harmonic Analysis, 59, 2022.
Alireza Mousavi-Hosseini, Denny Wu, Taiji Suzuki, and Murat A. Erdogdu. Gradient-based feature learning under structured data. Advances in Neural Information Processing Systems (NeurIPS), 2023.
Alireza Mousavi-Hosseini, Denny Wu, and Murat A. Erdogdu. Learning multi-index models with neural networks via mean-field Langevin dynamics. In International Conference on Learning Representations (ICLR), 2025.
Neel Nanda, Lawrence Chan, Tom Lieberum, Jess Smith, and Jacob Steinhardt. Progress measures for grokking via mechanistic interpretability, 2023. URL https://arxiv.org/abs/2301.05217.
Scott Pesme and Nicolas Flammarion. Saddle-to-saddle dynamics in diagonal linear networks. In Advances in Neural Information Processing Systems, 2023.
Scott Pesme, Loucas Pillaud-Vivien, and Nicolas Flammarion. Implicit bias of SGD for diagonal linear networks: a provable benefit of stochasticity. In Advances in Neural Information Processing Systems (NeurIPS), 2021.
Adityanarayanan Radhakrishnan, Daniel Beaglehole, Parthe Pandit, and Mikhail Belkin. Mechanism for feature learning in neural networks and backpropagation-free machine learning models. Science, 383(6690):1461–1467, 2024.
Ali Rahimi and Recht. Random features for large-scale kernel machines. In Advances in Neural Information Processing Systems (NeurIPS), volume 3, page 5, 2007.
Maria Refinetti, Sebastian Goldt, Florent Krzakala, and Lenka Zdeborová. Classifying high-dimensional Gaussian mixtures: Where kernel methods fail and neural networks succeed. In International Conference on Machine Learning (ICML), 2021. URL https://arxiv.org/abs/2102.11742.
Grant M. Rotskoff and Eric Vanden-Eijnden. Trainability and accuracy of neural networks: An interacting particle system approach. In Advances in Neural Information Processing Systems (NeurIPS), 2018.
David Saad and Sara A. Solla. Exact solution for on-line learning in multilayer neural networks. Physical Review Letters, 74(21):4337–4340, 1995a.
David Saad and Sara A. Solla. On-line learning in soft committee machines. Physical Review E, 52(4):4225–4243, 1995b.
Justin Sirignano and Konstantinos Spiliopoulos. Mean field analysis of neural networks: A central limit theorem. Stochastic Processes and their Applications, 130(3):1820–1852, 2020.
Andrew Gordon Wilson, Zhiting Hu, Ruslan Salakhutdinov, and Eric P. Xing. Deep kernel learning, 2015. URL https://arxiv.org/abs/1511.02222.
Arie Wortsman and Bruno Loureiro. Kernel ridge regression under power-law data: spectrum and generalization. arXiv preprint arXiv:2510.04780, 2025.
Greg Yang and Edward J Hu. Tensor programs iv: Feature learning in infinite-width neural networks. In International Conference on Machine Learning, pages 11727–11737. PMLR, 2021.
A Further experimental details
For the MLP, we use P parameterization Yang and Hu [2021]:
where , and we set to be the all zero's vector for consistency with the feature ODE (as , tends to 0). For the SFN and DPR, we initialize and zero out the readout tensors . All three models train with online SGD on streamed Gaussian data.
Figure 1 experimental details. Experiments are performed with data , with and where normalized such that . The learning rate is set to which we find to be near the gradient flow regime. Our data is streamed online with a batch size —we note that any reasonably large choice for the batch size reliably reproduces our results. Our MLP is setup in the P regime Yang and Hu [2021], with a width . Our activation function of choice is a shifted SiLU: which offers the nice properties of (1) being relatively close to the standard practice ReLU, and (2) having a full power series, with the Taylor expansion around having no coefficients of 0. We make explicit note that the vast majority of biasless nonlinearities are typically not full in their power series. An exponential moving average smoother with constant is used to smooth over random Gaussian fluctuations in the data. Loss curves. Training is done with a set 100,000 gradient steps, at which point the run terminates. Effective optimization time predictions. We train on a number of targets finding great agreement on all linear terms with slight disagreement on quadratic terms with high covariance . Cubic and higher order target functions are not included as the predicted optimization times were prohibitive. We believe anisotropic effects that make real MLP optimization times differ than the ODE predicted times are more prevalent for these higher order targets.
Figure 3 experimental details. Both panels train an MLP of width online with batch size 10,000 and a single init seed, and overlay the feature ODE prediction. Panel (a) targets the 2-staircase with , a power-law exponent yielding , learning rate , and cosine activation . Panel (b) targets the 3-staircase with , a power-law exponent yielding , learning rate , and tanh-half activation. We were only able to see the staircase behavior with a large ratio of data eigenvalues. With larger data eigenvalues and smaller learning rate the feature ODE becomes less predictive.
Figure 5 and Figure 6 experimental details. Both figures share the same configuration: , a power-law exponent yielding , the cosine activation with no biases, learning rate , batch size 10,000, and a single init seed. The SFN uses width , and DPR uses truncation order to accommodate the highest-order target. We sweep across four targets in coordinates: , , , and .
Figure 7, Figure 8, and Figure 9 experimental details. Each figure compares the diagonal-A dynamics of an MLP run against an SFN run on the same target. All six runs use width , batch size 10,000, the cosine activation with no biases, and a single init seed. The per-run hyperparameters are:
• Figure 7, target : MLP uses with uniform and ; SFN uses with yielding and .
• Figure 8, target : MLP and SFN both use with uniform and .
• Figure 9, target : MLP uses with yielding and ; SFN uses with yielding and .
B Detailed derivation of the feature ODE from MLPs
We derive the feature ODE from an MLP with MSE loss in three steps. Rather than conjecturing DPR directly from the MLP, we introduce an intermediate model—the semi-frozen network (SFN)—whose infinite-width limit recovers DPR, and we derive the SFN from the MLP by a conjecture on the input layer's weight matrix.
B.1 Further details on MLPs to Semi-Frozen Networks
A one-hidden-layer MLP computes
where acts pointwise. To pass from the MLP to a semi-frozen network, we assume that the hidden neurons form a homogeneous population: no single neuron encodes special information, and adding or removing any one has a negligible effect on the output. We require this homogeneity to hold throughout training, not just at initialization.
The input layer plays two roles. It rotates the data, upweighting coordinates that matter for the output; and it routes the rotated data into the pointwise nonlinearity, where different neurons see different mixtures. The SFN disentangles these roles by freezing the routing matrix and training only the rotation.
Skinny SVD. Let be the thin SVD, with having orthonormal columns, diagonal, and orthogonal. Defining and gives
where , 's given by the Taylor series expansion of the MLP's (see Section C). We introduce a factor of as a numerical parameter which we found to follow the pattern of for our experiments. We suspect , although we provide no such proof. still acts pointwise, but now on the random features . We initialize to remain consistent with scaling.
The SFN freezes U at its initialization and trains only A, reducing the first-layer parameter count from Nd to . In practice, rather than taking U from the SVD of a specific , we initialize each entry of as iid Gaussian with variance (the standard / random-feature scaling) and hold it fixed throughout training. The scale is a free hyperparameter that controls the preactivation magnitude; we absorb it into the data eigenvalues throughout (see the footnote in Section B.2), so it does not appear explicitly in the kernel or the feature ODE. This shift assigns the nonlinearity's expressive role to a fixed random projection. The price is any reorganization of the frozen directions—basis rotations, ICA-style updates—which we discuss in Section E.
Width and concentration. As , the SFN's random feature kernel concentrates around its expectation over the frozen weights, which is the SFN kernel we use in Section B.2. At finite , the SFN's Gram matrix fluctuates by across seeds, so the SFN matches the kernel only up to width corrections.
Neural feature matrix. The MLP carries a “neural feature matrix” NFM := . For an SFN, A plays the analogous role:
B.2 Further details on Semi-Frozen Networks to DPR
Here, we replace the pointwise activation in the SFN with explicit polynomial features and obtain deep polynomial regression (DPR). At a high level, the SFN's feature kernel admits a polynomial decomposition, and DPR is the explicit-feature model that realizes the same decomposition.
The SFN feature kernel. Because is frozen, the random feature kernel holds throughout training, not only at initialization (unlike the NNGP). Taking , the random feature average converges to its expectation over the frozen weights [Rahimi and Recht, 2007]:
Three equivalent choices set the preactivation scale and produce identical dynamics: (a) rescale the data eigenvalues , breaking the trace normalization ; (b) shift to higher-indexed input coordinates of the same power-law spectrum, which yields smaller eigenvalues while preserving the trace; (c) multiply the preactivation by inside the model itself, equivalent to writing a factor inside the activation. Throughout the appendix and the experimental details (Section A) we absorb any preactivation scale into the data eigenvalues , so the kernel below carries no factor.
The 1/d per-component variance is the standard / random-feature scaling that keeps the preactivation as d grows. The preactivations and are jointly Gaussian, so the kernel reduces to a two-dimensional Gaussian expectation:
K_{\mathrm{S F N}}(\boldsymbol{x},\boldsymbol{x}^{\prime})=\mathbb{E}_{z_{1},z_{2}\sim\mathcal{N}(0,\boldsymbol{\Sigma}^{\prime})}[\tilde{\sigma}(z_{1})\tilde{\sigma}(z_{2})],\quad\boldsymbol{\Sigma}^{\prime}=\frac{1}{d}\begin{pmatrix}\|\boldsymbol{A}\boldsymbol{x}\|^{2}&\boldsymbol{x}^{\top}\boldsymbol{A}^{\top}\boldsymbol{A}\boldsymbol{x}^{\prime}\\ \boldsymbol{x}^{\prime}^{\top}\boldsymbol{A}^{\top}\boldsymbol{A}\boldsymbol{x}&\|\boldsymbol{A}\boldsymbol{x}^{\prime}\|^{2}\end{pmatrix}.The kernel therefore depends on three scalars: the two norms , and the dot product .
Dot-product approximation. The kernel depends on all three scalars in general, but reduces to a function of the dot product alone in two regimes. First, when concentrates across data points (the “on-sphere” regime), the diagonal entries factor out as a data-independent prefactor. Second, when stays small for all data points (the “near-origin” regime), the diagonal entries sit near zero and the kernel ignores their variation entirely. The near-origin regime corresponds to the wide-kernel-theory limit; the on-sphere regime is weaker, allowing larger norms but requiring them to be approximately equal. Small data eigenvalues place us in the near-origin regime, since . In both cases, the kernel reduces to
Polynomial decomposition. Taylor-expanding gives
where the factors are absorbed into . Applying Mercer’s theorem with eigenfunctions yields the DPR model:
with trainable symmetric order- tensors and an order-p truncation.
Truncation error. DPR drops all terms in the expansion above. The order- kernel contribution is , which decays with when stays small. Taking the expectation over data gives , so smaller data eigenvalues and larger both tighten the approximation.
B.3 Further details on DPR to feature ODE
We simplify DPR’s gradient flow ODE to a system of scalar variables in A and the target-aligned entries of B, recovering the feature ODE defined in the main text. The reduced state consists of A’s diagonal entries together with one scalar per target Hermite mode—the common value of on permutations of .
The reduction rests on the same two assumptions the main text invokes (Section 3): the data eigenvalues are small, which separates the timescales of different polynomial orders; and the target's nonzero Hermite coefficients obey a per-order parity criterion, which keeps A diagonal under gradient flow.
The reduced equations. Under both assumptions, only the target-aligned entries drive the dynamics, and we replace each permutation-symmetric block on multi-index by a single scalar . Expanding around diagonal and computing the Hermite coefficient at each target mode yields, after some algebra,
matching the main-text definition (Section 3). The residual at mode is , and the population gradient flow produces the feature ODE:
The sum runs over target multi-indices, since kills the residual elsewhere.
Parity criterion for diagonal A. The off-diagonal gradient takes the form , with shifted by one in coordinates . Gaussian parity makes this expectation vanish unless every entry of is even, which in turn forces two target multi-indices at the same order to differ in parity at exactly . So A stays diagonal whenever no two same-order target multi-indices differ in parity at exactly two coordinates—the per-order parity criterion. Staircases and single Hermite modes satisfy this criterion, and we restrict to such targets throughout the paper. Targets that fail include and , where two same-order multi-indices differ in exactly two coordinates and seed an off-diagonal gradient.
Timescale separation. The order- Hermite mode's gradient carries a factor of order , so higher-order modes relax much more slowly than lower-order ones whenever the data eigenvalues are small. Lower-order Hermite modes therefore settle long before higher-order modes have moved, and off-target B entries don't backreact on the target dynamics at leading order in the eigenvalues. We can therefore analyze each target multi-index independently—the property the reduced ODE above relies on.
B.4 Validation of the approximation chain
We validate the two links of the approximation chain on synthetic Gaussian data: the SFN-to-feature-ODE reduction (Figure 5) and the DPR-to-feature-ODE reduction (Figure 6). In both cases, the feature ODE is solved with the same hyperparameters as the trained network. We compare online MSE across four targets of increasing complexity: a linear monomial , a single Hermite mode , a two-term staircase , and a three-term staircase . See Section A for the experimental setup.

Figure 5: SFN tracks the feature ODE across all four targets. Online MSE for an SFN (colored) and the feature ODE (dashed black) over effective optimization time. The ODE recovers both the plateau lengths and the loss drops for each target, including the staircase structure of the two- and three-term staircase targets.


Eff. opt. time
Figure 6: DPR tracks the feature ODE across all four targets. Same as Figure 5 but with DPR replacing the SFN. The agreement is tighter than for the SFN, consistent with DPR’s explicit polynomial features removing the random-feature concentration error.
C Level coefficients for general activations
C.1 General formula
For a general activation , with data on a sphere , the level coefficients of the dot-product kernel can be computed from the Hermite decomposition of the rescaled activation:
where is the -th normalized probabilist's Hermite polynomial. In words, we extract the -th Hermite coefficient of the function , where the prefactor is the standard deviation of the preactivations.
The activation’s symmetry constrains which orders are present: odd activations (e.g. tanh) have ; activations that are linear plus even (e.g. ReLU) have for . For the reason, we often use either a shifted activation function (e.g. SiLU( ), ) or a cosine activation function ( ), all of which are full in their Taylor series.
Approximation. While we are in the near-origin regime (discussed in Section B.2), we find that the level coefficients are found from taking it's Taylor series expansion:
(10) the exponent ( ) in parentheses denoting the -th derivative. Equation (10) gives the level coefficients used in our validation experiments.
C.2 Cosine activation
Here, we derive the dot-product kernel for the special case of a cosine activation and show that it gives for all .
The SFN feature kernel is
The preactivations and are jointly Gaussian with covariance
\Sigma^{\prime}=\frac{1}{d}\begin{pmatrix}\|A\boldsymbol{x}\|^{2}&\boldsymbol{x}^{\top}\boldsymbol{A}^{\top}\boldsymbol{A}\boldsymbol{x}^{\prime}\\ \boldsymbol{x}^{\prime}^{\top}\boldsymbol{A}^{\top}\boldsymbol{A}\boldsymbol{x}&\|A\boldsymbol{x}^{\prime}\|^{2}\end{pmatrix}.Write , , and .
Expanding the activation:
For the first term, . Using the Gaussian identity :
For the second term, , and . Since by symmetry, this term vanishes. Therefore:
This is an RBF kernel in the transformed coordinates Ax. Factoring:
Under the dot-product kernel approximation (length terms approximately constant, see Section B.2), the kernel is proportional to
Comparing with the general form , we read off for all .
D Feature ODE Rise Time Derivations
This appendix discusses our methodology for arriving at the effective optimization time for MLPs to learn monomial target functions. Beginning with the feature ODE, we have
Noting , we find Plugging this into the feature ODE, we get
This equation is not generally solvable, but we can make a number of simplifications to estimate an effective optimization time. In a gradient flow regime from small initialization, the network output tends to follow two distinct regimes: near a saddle-point and growth [Jacot et al., 2021, Boursier et al., 2022a, Pesme and Flammarion, 2023]. We assume that the number of gradient steps to escape from a saddle-point will dominate over the number it takes to reach the next saddle-point, forcing , which simplifies the ODE to
where
represents the final value of and represents the learning-rate scaled number of gradient steps. We provide exact results of this integral for the cases of and , (a constant and linear target). For higher order integrals, exact results exist, although to high precision we can replace the upper bound with infinity, remaining up to a constant.
Below, we provide a table of the rise times found with the upper bound. For shorthand, any that is unspecified takes a value of 0, and denotes that . Some integrals (ie , ) are incomplete elliptics—in such cases, we provide a numerical estimate. We drop the subscript of as it should be clear from the context.
• Quadratics
• Cubics
• Quartics
• Quintics
• Sextics
E Neuron specialization and target functions
We diagnose neuron specialization with a three-panel comparison: training loss, per-direction or trajectories, and a heatmap of per-neuron preactivation variance (all neurons ranked by variance, plotted against effective optimization time). The heatmap is the workhorse. Neurons all contribute to the dynamics when there are consistent color changes across neurons at a given time step and there are smooth color gradients. Neuron subpopulations drive the dynamics when groups of neurons change color independently of the rest. All experiments in this appendix use a biasless network with the cosine activation .
DPR has no neurons – its tensors act on all features at once – so specialization cannot arise. The frozen weights in the SFN make neuron specialization difficult and we see more little specialized behavior in Figures 7 to 9. The feature ODE in turn predicts the loss and per-direction trajectories well.
MLP neurons can specialize. On tasks like modular arithmetic, for instance, small subpopulations align with Fourier frequencies of the input [Kunin et al., 2025, Nanda et al., 2023]. On the simpler targets we study, whether the MLP specializes depends on the target itself. On a linear target (Figure 7), neither the MLP nor the SFN specializes much: a linear target produces a per-neuron gradient with no direction-dependent amplification, so all neurons evolve symmetrically. Their heatmaps are rather uniform, and the feature ODE matches loss and throughout training. On a pure-Hermite target (Figure 8), the MLP specializes sharply: roughly 500 neurons at the top of the ranking drive their preactivation variance orders of magnitude above the bulk. We think this specialized subpopulation drives the MLP loss down earlier than the feature ODE predicts and pins below the ODE-predicted . On a two-term staircase (Figure 9), the MLP specializes only mildly – faint bands rather than a dominant subpopulation. The feature ODE captures the staircase structure of the loss and features, with only a small late-time drift in .
We leave a more detailed study hyperparameter and target function's impact on neuron specialization to future work.

Figure 7: Linear target . Top: MLP. Bottom: SFN. Neurons are sorted by preactivation variance at the end of training in the heatmaps. Loss, (MLP) or (SFN), and per-neuron preactivation variance. Both models track the feature ODE, and every neuron gains variance on the same timescale.

Figure 8: Pure-Hermite target . Top: MLP. Bottom: SFN. Neurons are sorted by preactivation variance at the end of training in the heatmaps. A specialized subpopulation of roughly 500 MLP neurons (top, right column) gains preactivation variance orders of magnitude above the bulk, drives the loss down earlier than the feature ODE predicts, and pins below the ODE-predicted . The SFN carries no such subpopulation and tracks the ODE.

Figure 9: Two-term staircase . Top: MLP. Bottom: SFN. Neurons are sorted by preactivation variance at the end of training in the heatmaps. A faint specialization band in the MLP heatmap accompanies a small late-time drift of above the ODE prediction. The staircase loss is otherwise well captured. The SFN matches the ODE throughout.
F DPR population gradient
This appendix derives the DPR population gradient in closed form, using Isserlis' theorem (Wick contractions) to evaluate the Gaussian expectations. The main text (Section 3) states the resulting gradient flow for some specific target functions. Here, we provide the gradient of DPR for any polynomial target function.
Let denote the -th row of written as a column vector, so that , and let denote the -th standard basis vector. Working in the normalized coordinates (so that when ), we expand the target polynomially as with a symmetric order- tensor.
The main text (Section 3) writes the target in Hermite basis, , with coefficients indexed by multi-index. The monomial form used here is equivalent: standard monomial-to-Hermite expansion identifies with a linear combination of at . We use the monomial representation because Isserlis' theorem evaluates Gaussian moments of monomial products directly. All other symbols follow the main-text conventions.
F.1 Derivatives of the DPR loss
We take the DPR model
and expand its squared loss
The last term is parameter-free and drops out of the gradient. The first two split into a model-model piece (which is quadratic in B) and a model-target cross piece (which is linear in B); we compute the parameter derivatives of before taking expectations.
B gradient. At entry of , the derivative of is the matching monomial in Ax:
For the constant term , is a scalar and .
A gradient. An increment in shifts by , so each order- term contributes identical copies, one per tensor slot:
where repeated b-indices are summed. The constant term ( ) does not depend on A and contributes nothing.
F.2 Expectations via Isserlis' theorem
Each piece of the loss gradient is the expectation of a polynomial in the jointly Gaussian vectors and . Isserlis' theorem states that for jointly Gaussian zero-mean random variables ,
where the sum runs over the partitions of into unordered pairs; odd-order moments vanish. Three types of slots appear in our expressions — transformed slots , raw slots (from the derivative), and target slots . Assigning each slot a vector ,
every pairwise covariance takes the unified form . This evaluates to between two transformed slots, between a transformed slot and a z-slot, between two z-slots, and analogously for the raw slot.
B expectations. For the model-model piece, the order- contribution at index is
(23)
where “k-b pairings” enumerates all unordered pair partitions of the indices . The pairing sum vanishes whenever is odd. The model-target cross piece is analogous,
with on -slots and on -slots ( -coordinates of the target).
expectations. The same Wick reduction applies, except one slot is now “frozen” to the raw coordinate from the derivative:
(25)
where takes value on the -slot, on - and -slots, and on -slots.
F.3 Full population gradient
The pieces combine into two equivalent expressions for the full population gradient.
Pairing form. Collecting the model-model and model-target reductions,
(26)
and the A gradient is given by the expression above.
Moment-tensor form. Define and two Gaussian moment tensors:
where contracts -target slots against transformed slots through Gaussian pairings. Using , the raw-slot factor in the derivative pulls a outside the moment, leaving pure -and-transformed moments. The gradient then takes the compact contraction form
(29)
(30)
The pairing form is more explicit and easier to truncate to a single order; the moment-tensor form makes the contraction structure transparent. Both feed directly into the diagonal-A and timescale-separation reductions used in Section B.3.