Escaping Parameter Space: Tight Generalization Bounds via Representation Quality

Niclas Alexander Göring, Shuofeng Zhang, Branton DeMoss, Ard A. LouisNeurIPS 2026

TL;DR

Why do deep neural networks with millions—or billions—of parameters generalize to new data instead of just memorizing their training sets? By ignoring network weights altogether and judging a network strictly by the geometry of its learned representations, the authors derive remarkably tight mathematical guarantees on real-world test error. Even better, their bound doubles as a diagnostic microscope, pinpointing why phenomena like double descent happen and proving that clean representation geometry is a causal driver of generalization.

What Problem Does This Paper Address?

For decades, deep learning theory has struggled with a mildly embarrassing gap: our models work brilliantly in practice, yet our mathematical guarantees (generalization bounds) often predict they could fail 100% of the time—what theorists call a "vacuous" bound.

Traditionally, getting non-vacuous bounds meant paying a steep tax in parameter space. PAC-Bayes methods inject noise into the weights to measure sensitivity (certifying a randomized network rather than the deterministic one you actually deploy), while compression bounds force you to prune or quantize the model. Because parameter counts are astronomical and final linear layers are surprisingly brittle, reasoning through weights leaves bounds loose. The authors ask: can we certify an unmodified, deterministic network without ever looking at its parameter space?

Methods

Instead of inspecting weights, the authors inspect what the weights produce: the representation space of the network’s last hidden layer (using standard Euclidean $\ell_2$ distance).

While the underlying math relies on classical cross-fitting ($J$-fold data splitting) and standard probability concentration inequalities, the novelty lies in what is being evaluated. To certify a network trained from scratch, they drop a parameter-free $k$-nearest-neighbor ($k$-NN) classifier into that final hidden layer and decompose the test error bound additively into three empirical questions:

  1. Q1 (Local class geometry): Can a simple $k$-NN classifier accurately predict labels on held-out fold data?
  2. Q2 (Decoder–network agreement): Do the $k$-NN predictions match the network's actual linear readout head?
  3. Q3 (Training stability): If we drop one fold of training data, does the retrained network still agree with the full-data network on unlabeled inputs?
Figure 1: Any learned feature map φ: X →Z raises three questions: Q1 Can a simple classifier in Z predict labels? Q2 Does it agree with the network? Q3 Is training stable under fold removal? a) A k-NN classifier on the last-hidden-layer representation h(L)(x) yields ˆykNN (Q1), compared against ˆyNN (Q2); a fold-trained model tests stability (Q3). b) ResNet-18 on CIFAR-10: the bound converges to within 8.0 pp of test error at n=50,000, the tightest known certificate from a deterministic network without modified training. Stacked bars show Q1 dominates: representation quality is the binding constraint.

When certifying frozen, pretrained models transferred to a new task, there is no target-task training or separate linear head to worry about—so Q2 and Q3 vanish to zero by construction!

Datasets

The authors evaluate their bounds across standard vision benchmarks—no new datasets are introduced:

  • Cross-fit certification (trained from scratch): MNIST, CIFAR-10, and CIFAR-100.
  • Transfer certification (frozen pretrained backbones): CIFAR-10, CIFAR-100, 1,000-class ImageNet, and ImageNet-V2 (to test distribution shift).
  • Mechanistic/causal experiments: Street View House Numbers (SVHN) and CIFAR-10 with synthetic label noise.

Key Insights and Ideas

  • Parameter count is a red herring: A network with $10^8$ parameters and one with $10^5$ parameters receive the exact same certificate if they induce the same feature geometry. For instance, DINOv2-g (1.1B parameters) and DINOv2-L (304M parameters) yield virtually identical bounds on ImageNet (~23%).
  • Unpacking "Double Descent": As networks grow wider, test error famously improves, spikes near the interpolation threshold, and drops again. Using their decomposition on ResNet-18, the authors reveal that representation quality (Q1) actually improves monotonically with width. The infamous error spike lives entirely in Q2—at critical width, the features are already great, but the linear head temporarily fails to align with them.
  • Class geometry is causal, not just a bystander: Could clean clustering just be a byproduct of smooth optimization? By adding a custom regularizer on SVHN that actively pushes same-class representations apart while leaving outputs unconstrained, networks still hit ~100% training accuracy (pure memorization), yet test accuracy collapses alongside Q1. Clean local geometry isn't a symptom of generalization; it's the mechanism.
  • Why weight-noise bounds struggle: Adding Gaussian noise ($\sigma = 0.01$) to a ResNet-18 drops the network's head accuracy to 67%, while $k$-NN accuracy in representation space stays at 84%. Parameter-space bounds pay a heavy price for the fragility of the final linear readout.

Key Results

  • Trained from scratch: Certifies unmodified deterministic networks on MNIST at 2.6% (0.6% test error), CIFAR-10 at 12.4% (ResNet-50, 4.3% test error, an 8.0 percentage point gap), and delivers the first known non-vacuous deterministic bounds on CIFAR-100 at 44.6% (19.4% test error).
  • Frozen pretrained transfer: Certifies $k$-NN decoders using DINOv2-L/14 at 1.4% on CIFAR-10, 12.1% on CIFAR-100, 23.1% on 1,000-class ImageNet, and 43.0% under distribution shift on ImageNet-V2.
Transfer certification results across pretrained models and datasets

Limitations and Future Work

  • Computational and unlabeled data costs: Certifying a model trained from scratch requires training $J$ separate fold models (a hefty one-off compute bill at ImageNet scale) and requires access to independent unlabeled inputs to empirically measure training stability (Q3).
  • Scope: The guarantee strictly bounds classification error using last-layer $\ell_2$ distance. Extending this to regression, calibration, adversarial robustness, or alternative distance metrics remains open, and the authors caution against over-trusting error bounds as standalone safety or fairness guarantees.
  • The big open question: Having decoupled generalization from parameter capacity, the next frontier is learning mechanics: mathematically deriving how Stochastic Gradient Descent (SGD) reliably sculpts such clean local class geometry in the first place.

Summary updated

Abstract

We derive a tight generalization bound for deterministic neural networks based on their last hidden layer representations. By evaluating representation quality with a parameter-free $k$-nearest-neighbor ($k$-NN) classifier, our certificate avoids traditional parameter-space complexity measures, KL divergences to a posterior, weight norms, and compression. The bound is tight: trained from scratch, it reaches an 8.0 percentage point gap to test error on CIFAR-10 (ResNet-18) and yields the first non-vacuous certificates we are aware of on CIFAR-100; with frozen DINOv2 representations, it certifies at 1.4\% on CIFAR-10 and 23.1\% on 1,000-class ImageNet. It decomposes additively into three empirical, independently measurable quantities: local class geometry ($k$-NN decoder error), decoder-network agreement, and training stability. This allows the bound to act as a diagnostic tool: we demonstrate that actively destroying local class geometry eliminates generalization while leaving dataset memorization intact, identifying class geometry as a causally relevant mechanism for generalization. Finally, we show that learned representations are significantly less sensitive to weight noise than linear readouts, suggesting why parameter-space certificates often struggle to remain tight.
BibTeX
@inproceedings{goring2026escaping,
  author = {Niclas Alexander Göring and Shuofeng Zhang and Branton DeMoss and Ard A. Louis},
  title = {{Escaping Parameter Space: Tight Generalization Bounds via Representation Quality}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=A66lKoZWY8},
}
Figure