← All entries
Paper2026#811

A Theoretical Analysis of Generalization Dynamics in Neural Networks under Gradient Descent with Weight Decay

Summary

Theoretical framework characterizing how data, architecture, and training dynamics jointly shape generalization throughout training. Studies neural networks trained with L2 loss by gradient descent with weight decay; proves GD converges to a neighbourhood of the global minimizers of the empirical loss, then partitions the input space into data-centered cells and decomposes population risk into three explicit terms: E_opt (optimization error on training data), E_PV (propagation-variation error: how predictions oscillate within each cell), and E_A (approximation error: how far ground truth is from the function class). The culprit behind memorization without generalization is E_PV: E_opt vanishes early while E_PV stays large. Under approximate Euler homogeneity, layerwise variation satisfies a differential inequality with explicit contraction rate lambda_l >= 1 - 2(1 + L) eta_2 lambda-bar, bounding E_PV by the initial hypothesis variation decaying exponentially in steps at a rate proportional to weight decay. Yields a closed-form grokking residency time (Steps ~ Omega(log(Initial_Var / budget) / (lambda-bar * eta_2 * sum L_l))): weight decay accelerates generalization, deeper networks contract faster, smoother initialization shortens the delay. Bounds are qualitative -- constants depend on suprema over parameter balls and loss smoothness, so they give rates and scaling laws, not exact step counts.

Venue
arXiv (cs.LG), submitted 2026-09-07
Source
arxiv
Access
public
Language
en
Added
Sep 30, 2026
Verified
Sep 30, 2026
Research status
done
Found via
#random-papers

From the source

Published
Sep 7, 2026
arXiv categories
cs.LG, math.OC
Citations
1
References
0

Fetched Oct 3, 2026 from arXiv, Semantic Scholar. These numbers change; the curated fields above do not come from here.

Abstract (from arXiv)

Understanding generalization remains a central challenge in machine learning because it requires jointly considering data, architecture, and training dynamics. In this paper, we develop a theoretical framework that characterizes how these factors jointly shape generalization performance throughout training. More precisely, we study a broad class of neural networks trained under the $\ell^2$ loss by gradient descent (GD) with weight decay, and prove the convergence of GD to a neighbourhood of the global minimizers of the empirical loss. By partitioning the space based on the input data, we then decompose the population error into data error, optimization error, and prediction variation error, and bound them separately. In particular, for the prediction variation error, which measures the oscillations of the learned function, we propose (local) approximate homogeneity and derive explicit cellwise and layerwise bounds for its evolution along the training trajectory. These bounds yield two important implications: a necessary condition of improved generalization explains differences in layerwise generalization behavior; a sufficient condition describes delayed generalization and provides a theoretical characterization of grokking.

Tags

generalization-theorygrokkingweight-decayoptimizationmemorization

Topics

generalization theory, grokking, weight decay, optimization

Research notes

  • Discovery: Grigory Sapunov (@che_shr_cat, verified) 2026-09-30 thread: https://x.com/che_shr_cat/status/2105179516738175168
  • Thread takeaways: grokking is not magic and flat minima do not explain it -- weight decay is the active engine contracting the hypothesis between data points, driving memorization-to-generalization transition; delayed generalization is the signature of a function being smoothed by its own training dynamics.
  • Sapunov's full technical breakdown: https://arxiviq.substack.com/p/a-theoretica...
  • Connects to the collection's generalization-theory, grokking, and optimization entries.

Similar entries