Generalization in Nonlinear Least Squares via Learned Feature Geometry

Ayub Kharel, Ilja Kuzborskij, Patrick Rebeschini, Yasin Abbasi-YadkoriarXiv 2026

TL;DR

This paper introduces a new generalization theory for overparameterized nonlinear models, such as neural networks, based on the geometry of the solution after training. By analyzing algorithmic stability, the authors prove that generalization performance is governed by a data-dependent "effective dimension" evaluated at the final local minimizer, which is often orders of magnitude smaller than the total parameter count due to feature compression.

What Problem Does This Paper Address?

Modern machine learning models routinely operate in the "overparameterized" regime, meaning they have far more parameters than training samples. Despite their capacity to perfectly fit (or interpolate) noisy training data, these models still generalize remarkably well to unseen data.

Classical generalization theories (like VC dimension or Rademacher complexity) fail to explain this because they measure the worst-case complexity of the entire hypothesis class, resulting in vacuous bounds that scale with the parameter count. Alternative frameworks, like the Neural Tangent Kernel (NTK), bypass this by linearizing the network, but they evaluate the model's geometry strictly at initialization, completely ignoring the feature learning that occurs during training.

This paper addresses this gap by studying the genuinely nonlinear regime. It asks: Which geometric properties of the specific local minimizer found by training determine its ability to generalize?

Methods

The authors tackle this question using the framework of algorithmic stability—specifically, measuring how much a model's predictions change when a single training example is replaced by an independent copy.

Key methodological components include:

  • Trained Effective Dimension ($d_{\text{eff}}$): Using the implicit function theorem and the multivariate Brascamp–Lieb (or Gaussian Poincaré) inequality, the authors derive a stability bound determined by a novel data-dependent effective dimension. This metric is computed using the empirical Jacobian Gram matrix (learned feature geometry) and a residual-curvature term (local Hessian curvature) evaluated directly at the trained parameters.
  • Covering Complexity: To make this metric intuitive and computable, they bound $d_{\text{eff}}$ using the covering numbers of the trained Jacobian features.
  • Manifold Transfer & ReLU Analysis: They demonstrate how input-space geometry transfers to feature-space covers. For one-hidden-layer ReLU networks, they explicitly link the generalization bound to the number of activation-stable regions (linear cells in the input space where no neuron changes its activation status) actually occupied by the data.

Datasets

The authors validate their theoretical bounds using both synthetic and real-world datasets:

  • Synthetic Manifolds: High-dimensional data generated from product tori with intrinsic dimensions $m \ge 4$.
  • Clustered Distributions: Clustered-sphere data in $\mathbb{R}^{60}$ used to analyze how feature learning compresses geometric directions as the data distribution becomes more complex.
  • Real-World Benchmarks: Standard regression datasets including California Housing ($d=8$), Wine Quality ($d=12$), and UCI Superconductivity ($d=81$).

Key Insights and Ideas

  • Feature Learning Compresses Geometry: A key "aha moment" is that training actively compresses the relevant geometric directions of the Jacobian. The effective dimension at the trained local minimizer is significantly lower than the effective dimension at initialization.
  • Local Over Global Complexity: Generalization is shown to be a local property of the specific solution found by the optimizer, rather than a global property of the network architecture or the entire hypothesis space.
  • Data-Occupied Regions Matter: While a ReLU network can theoretically express an exponential number of linear regions, the generalization bound only cares about the number of regions actually occupied by the training data. This number is typically very small and scales gracefully.

Key Results

  • Tight Generalization Bounds: The authors establish an expected generalization gap bound of the order $O(\sqrt{\mathbb{E}[d_{\text{eff}}]/n})$.
  • Empirical Alignment: Across all tested synthetic and real-world datasets, the trained effective dimension stability bound strictly upper-bounds the observed generalization gap while remaining close enough to be highly predictive (see Figure 1).
  • Resistance to Complexity: Experiments on clustered spheres show that even as the number of data clusters ($K$) increases up to 100, the trained effective dimension remains well below the initialization geometry, proving that feature learning successfully compresses complex data spaces.
Figure 1: The nonlinear effective dimension is controlled by trained Jacobian geometry. Left: across noisy manifold regression tasks, dlin( bG, t −ρ) closely tracks the directly estimated nonlinear effective dimension, validating the residual-curvature reduction used in the theory. Right: on clustered- sphere data, the trained effective dimension remains below the initialization geometry as the number of displayed clusters grows to K ≤100, showing that feature learning can compress the relevant directions even when the data geometry becomes harder.

Limitations and Future Work

  • Fixed-Design Setting: The current analysis assumes a fixed-design regression setting where inputs are treated as deterministic, and randomness arises solely from the response noise. Extending this to a random-design setting (where inputs are sampled from a distribution) is a major open challenge.
  • Loss Function Dependence: The mathematical machinery relies heavily on the algebraic properties of the square loss function for its replace-one stability identity. Extending these insights to classification losses (like cross-entropy) is non-trivial.
  • Implicit Regularization: The framework characterizes the sensitivity of an explicit local minimizer via an inverse-Hessian. However, gradient-based optimization methods often introduce trajectory-dependent implicit biases that may not be fully captured by a purely local Hessian analysis. Connecting optimization trajectories directly to this learned geometry is an exciting direction for future research.

Summary updated

Abstract

We study the generalization of ridge-regularized nonlinear least-squares models via on-average algorithmic stability, deriving error bounds for local minimizers in terms of a data-dependent effective dimension that reflects the geometry of the gradient model at the trained parameters, through the empirical Jacobian Gram matrix and a residual-curvature term. In the linear case, where the curvature term vanishes, this recovers the classical effective dimension of the Jacobian kernel covariance, but evaluated at the trained model rather than at initialization as is typical in neural tangent kernel analyses. We further bound this effective dimension via covering complexity of the gradient features, leading to guarantees that depend on learned geometry rather than parameter count. In particular, for manifold-supported data and piecewise Lipschitz Jacobians, the bounds scale with intrinsic dimension, while for one-hidden-layer ReLU networks, the mechanism can be made explicit through counts of activation-stable regions. Experiments on synthetic manifolds, clustered distributions, and benchmark datasets illustrate trained-Jacobian compression, the tightness of the residual-curvature linearization, and agreement between the stability bound and observed generalization gaps. A key feature of our bounds is the simplicity of their derivation, which follows from first principles using the Brascamp-Lieb inequality under strongly log-concave noise.
BibTeX
@misc{kharel2026generalization,
  author = {Ayub Kharel and Ilja Kuzborskij and Patrick Rebeschini and Yasin Abbasi-Yadkori},
  title = {{Generalization in Nonlinear Least Squares via Learned Feature Geometry}},
  year = {2026},
  eprint = {2606.08799},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.08799},
}
Figure