NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Uniform Stability and Generalization Error of GD and SGD on Fixed-Point Parameters

Jonghyun Shin, Sejun ParkNeurIPS 2026

TL;DR

Textbook machine learning theory assumes our models live in a smooth, continuous universe of infinite-precision numbers, yet real hardware forces parameters onto a discrete, quantized grid. This paper reveals that the seemingly innocent act of rounding parameter updates fundamentally alters how Gradient Descent (GD) and Stochastic Gradient Descent (SGD) generalize to new data. Surprisingly, deterministic rounding breaks standard theoretical guarantees for GD, while stochastic rounding introduces a "curse of dimensionality" that doesn't exist in continuous math.

What Problem Does This Paper Address?

When we prove that an algorithm like SGD generalizes well—meaning it learns patterns rather than just memorizing training data—we almost always rely on a mathematical fantasy: parameters lie in $\mathbb{R}^d$, and arithmetic is exact. A classic way to prove generalization is through algorithmic stability: if you swap out just one training example in a dataset of size $n$, how much does the final trained model change? In continuous space, GD and SGD are wonderfully stable, yielding generalization bounds that don't care whether your model has ten parameters or ten billion.

In reality, digital hardware uses discrete representations like fixed-point or floating-point numbers, and low-precision quantized training is everywhere. Every gradient step gets rounded, and round-off errors accumulate. While recent research has studied whether quantized algorithms converge to a minimum, we barely understand how discrete parameter spaces affect generalization. Does snapping updates to a grid keep algorithms stable, or does it throw our trusty statistical learning guarantees out the window?

Methods

The authors bring the classic framework of algorithmic stability into a discrete fixed-point world. Instead of continuous space, parameters are restricted to a uniform discrete grid with spacing $\Delta$. They analyze standard convex, Lipschitz (bounded slope), and smooth (bounded curvature) loss functions.

At each step $t$ (up to $T$ total iterations), the algorithm computes an exact gradient update and snaps the result back onto the grid using one of two methods:

  • Deterministic Rounding (DR): Snapping to the nearest grid point (yielding DR-GD and DR-SGD).
  • Stochastic Rounding (SR): Rounding up or down probabilistically based on how close the value is to the neighboring grid points—an unbiased way to round on average (yielding SR-GD and SR-SGD).

To see how perturbations propagate across $T$ steps, they track three quantities: generalization error (the gap between training and population performance), uniform stability (how much the loss changes when one data point is swapped), and uniform argument stability (how much the learned parameters themselves shift when one data point is swapped). For randomized algorithms, they use "coupled randomness"—feeding neighboring runs the exact same random batch indices and rounding coin-flips—to isolate the effect of the single changed data point.

Datasets

Not discussed in the paper. Because this is a purely theoretical work in statistical learning theory, the authors prove mathematical upper and lower bounds over abstract probability distributions and worst-case synthetic loss constructions rather than training models on empirical benchmarks.

Key Insights and Ideas

  • Deterministic rounding breaks stability proofs for GD: In continuous GD, changing one data point nudges the gradient by $O(1/n)$. With deterministic rounding, that tiny $O(1/n)$ nudge can push an update right across a rounding threshold at every single step! Two runs on nearly identical datasets can march apart by $\Delta$ per iteration, making uniform stability bounds completely vacuous—even though the algorithm still generalizes, albeit at a degraded rate.
  • Batch noise rescues deterministic rounding: Unlike full-batch DR-GD, DR-SGD retains meaningful stability. Why? Because on any given step, two coupled SGD runs pick the exact same random data point with probability $(n-1)/n$, keeping their updates identical. They only risk diverging on the rare $1/n$ chance they sample the differing data point.
  • Geometry suddenly matters in deterministic SGD: In 1D, smooth convex updates don't push parameters farther apart, giving DR-SGD clean stability. In $d \ge 2$ dimensions, however, snapping vectors coordinate-by-coordinate to a grid can actually expand the Euclidean distance between two trajectories—causing errors to compound quadratically over time ($T^2$) instead of linearly ($T$).
  • Stochastic rounding summons the dimension monster: Standard GD and SGD stability bounds are famous for being dimension-independent. Stochastic rounding ruins this. If two points differ slightly across $d$ coordinates, rounding each coordinate probabilistically injects independent variance everywhere, causing the expected Euclidean distance between rounded points to blow up with $d^{1/4}$.

Key Results

Comparing standard continuous baselines ($O(T/n)$ error) against fixed-point variants (simplifying learning rate and grid constants) highlights dramatic shifts in behavior across $n$ samples, $T$ steps, and $d$ dimensions:

Table 1: A summary of generalization and stability bounds for iterative algorithms. All results are for convex, L-Lipschitz, and smooth losses except for [Bassily et al., 2020], which considers convex, Lipschitz but non-smooth losses. εg, εus, εuas denote the generalization error, uniform stability, and uniform argument stability, respectively. For simplicity, we consider L, ∆= Θ(1), n > T, η = O(1), and ηd1/2 = Ω(1) here; the precise bounds are in Sections 3 and 4.
  • DR-GD: Generalization error degrades from the classical $O(T/n)$ to $\Theta(T/\sqrt{n})$ on finite sample spaces. Uniform stability hits a lower bound of $\Omega(T)$—meaning it doesn't shrink at all as dataset size $n \to \infty$.
  • DR-SGD: Uniform stability is tight at $\Theta(T/n)$ when $d = 1$, matching standard SGD. However, for $d \ge 2$, it degrades to $\Theta(T^2/n)$.
  • SR-GD and SR-SGD: Even for a single step ($T = 1$), worst-case generalization error has a lower bound scaling with $\Omega(d^{1/4}/n)$, proving dimension dependence is unavoidable.
  • Separable Losses: For general smooth convex losses, uniform argument stability for SR-SGD scales as $O(d^{1/4} T^{3/2} / n)$ (for $T < n$). When the loss is separable (a sum of coordinate-wise functions), the algorithms stop expanding distances, tightening the time dependence from $T^{3/2}$ down to $\Theta(T d^{1/4}/n)$ for SR-SGD and $\Theta(\sqrt{T d^{1/2}/n})$ for SR-GD.

Limitations and Future Work

The authors are candid about the boundaries of their theoretical sandbox:

  • Worst-case vs. typical: Lower bounds rely on adversarial, worst-case loss functions and distributions; rounding won't necessarily hurt generalization on every practical task. Furthermore, poor algorithmic stability only means stability-based proofs fail, not that the model itself fails to generalize (as seen in DR-GD).
  • Idealized quantization: The setup assumes gradients are computed in exact real-valued arithmetic before parameter rounding, bypassing finite-precision autodiff quirks. It also optimizes directly over a discrete grid, whereas modern Quantization-Aware Training (QAT) typically keeps high-precision master weights behind the scenes.
  • Fixed-point vs. Floating-point: Fixed-point grids have uniform spacing $\Delta$. Real GPUs mostly use floating-point formats (like FP16 or BF16), where grid spacing scales dynamically with the magnitude of the weights. Extending this stability theory to handle shifting floating-point exponents is left as a prime target for future work.

Summary updated

BibTeX
@inproceedings{shin2026uniform,
  author = {Jonghyun Shin and Sejun Park},
  title = {{Uniform Stability and Generalization Error of GD and SGD on Fixed-Point Parameters}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=9AzGTXBJJC},
}
Figure