Training Neural Networks as Learning Data-adaptive Kernels: Provable Representation and Approximation Benefits
Xialiang Dou, Tengyuan Liang
TL;DR
The paper develops a dynamic, data-adaptive RKHS framework for two-layer neural networks trained by gradient flow. It proves that, at stationarity, the network's learned representation is the optimal projection of the target function onto a data-adaptive RKHS, while the residual lies in a smaller subspace than the RKHS kernel’s orthogonal complement. It introduces a GD-driven kernel $\mathcal{K}_\infty$ and demonstrates a nontrivial gap between $\mathcal{H}_\infty$ and $\mathcal{K}_\infty$, providing a representation-based explanation for interpolation and generalization in neural networks. The work also connects gradient-flow dynamics to kernel ridgeless regression with adaptive kernels and characterizes the time evolution of the underlying kernels, offering a path to adaptive generalization theory and practical insights for representation learning. Together, these results offer a principled, nonparametric view of how neural networks adapt their representations to data and tasks during training, with implications for optimization, generalization, and algorithmic efficiency.
Abstract
Consider the problem: given the data pair $(\mathbf{x}, \mathbf{y})$ drawn from a population with $f_*(x) = \mathbf{E}[\mathbf{y} | \mathbf{x} = x]$, specify a neural network model and run gradient flow on the weights over time until reaching any stationarity. How does $f_t$, the function computed by the neural network at time $t$, relate to $f_*$, in terms of approximation and representation? What are the provable benefits of the adaptive representation by neural networks compared to the pre-specified fixed basis representation in the classical nonparametric literature? We answer the above questions via a dynamic reproducing kernel Hilbert space (RKHS) approach indexed by the training process of neural networks. Firstly, we show that when reaching any local stationarity, gradient flow learns an adaptive RKHS representation and performs the global least-squares projection onto the adaptive RKHS, simultaneously. Secondly, we prove that as the RKHS is data-adaptive and task-specific, the residual for $f_*$ lies in a subspace that is potentially much smaller than the orthogonal complement of the RKHS. The result formalizes the representation and approximation benefits of neural networks. Lastly, we show that the neural network function computed by gradient flow converges to the kernel ridgeless regression with an adaptive kernel, in the limit of vanishing regularization. The adaptive kernel viewpoint provides new angles of studying the approximation, representation, generalization, and optimization advantages of neural networks.
