On the Neural Feature Ansatz for Deep Neural Networks
Edward Tansley, Estelle Massart, Coralia Cartis
TL;DR
This work develops a depth-aware theoretical foundation for the Neural Feature Ansatz (NFA), linking the first-layer Gram matrix to the AGOP via a depth-dependent exponent α, with α=1/L for L-layer deep linear networks under gradient flow and balanced initialization. It further shows that with weight decay, the NFA persists asymptotically even for unbalanced initializations, while constructing counterexamples demonstrating that nonlinear activations can violate the NFA. Complementary numerical experiments across optimizers, initializations, and architectures validate the theoretical predictions and reveal a robust low-rank structure being captured by the first-layer features when learning multi-index targets. The results highlight both the depth-induced biases shaping feature learning and the limitations of NFA as a universal descriptor of generalization, offering a nuanced view of how depth and regularization influence learned representations. Formally, the core relationships include the proportionality W_1^T W_1 ∝ (A_f)^α with α depending on depth (α=1/L) and A_f = J_f^T J_f, both of which are supported by theory and experiments.
Abstract
Understanding feature learning is an important open question in establishing a mathematical foundation for deep neural networks. The Neural Feature Ansatz (NFA) states that after training, the Gram matrix of the first-layer weights of a deep neural network is proportional to some power $α>0$ of the average gradient outer product (AGOP) of this network with respect to its inputs. Assuming gradient flow dynamics with balanced weight initialization, the NFA was proven to hold throughout training for two-layer linear networks with exponent $α= 1/2$ (Radhakrishnan et al., 2024). We extend this result to networks with $L \geq 2$ layers, showing that the NFA holds with exponent $α= 1/L$, thus demonstrating a depth dependency of the NFA. Furthermore, we prove that for unbalanced initialization, the NFA holds asymptotically through training if weight decay is applied. We also provide counterexamples showing that the NFA does not hold for some network architectures with nonlinear activations, even when these networks fit arbitrarily well the training data. We thoroughly validate our theoretical results through numerical experiments across a variety of optimization algorithms, weight decay rates and initialization schemes.
