Escaping Parameter Space: Tight Generalization Bounds via Representation Quality
Organizations: Rudolf Peierls Centre for Theoretical Physics, University of Oxford, Oxford, UK · Mathematical Institute, University of Oxford, Oxford, UK
Abstract
We derive a tight generalization bound for deterministic neural 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 -nearest-neighbor (-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 (-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.
Figures & tables
| CIFAR-10 | CIFAR-100 | ImageNet | ImageNet-V2 | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Model | Params | Err | Bnd | Gap | Err | Bnd | Gap | Err | Bnd | Gap | Err | Bnd | Gap |
| DINOv2-L/14 | 304M | 0.9 | 1.4 | 0.5 | 10.4 | 12.1 | 1.7 | 20.9 | 23.1 | 2.2 | 37.5 | 43.0 | 5.5 |
| DINOv2-g/14 | 1.1B | — | — | — | — | — | — | 21.2 | 23.5 | 2.3 | 37.7 | 43.2 | 5.5 |
| DINOv2-B/14 | 86M | 2.3 | 3.2 | 0.9 | 14.9 | 16.9 | 2.0 | 23.4 | 25.7 | 2.3 | 41.3 | 46.8 | 5.5 |
| ViT-B/16 | 86.6M | 6.8 | 8.3 | 1.5 | 28.1 | 30.5 | 2.4 | 21.6 | 23.8 | 2.2 | 39.2 | 44.7 | 5.5 |
| ViT-L/16 | 304M | 7.7 | 9.2 | 1.5 | 29.5 | 32.0 | 2.5 | 21.8 | 24.0 | 2.2 | 40.3 | 45.8 | 5.5 |
| Method | Architecture | Test | Bound | Gap | Certified object | |
| MNIST | ||||||
| Dziugaite and Roy (2017) | FCN-600 | 60k | 2.5% | 17% | 14.5 | Stochastic net |
| Zhou et al. (2019) | LeNet-5 | 60k | 1% | 46% | 45 | Compressed net |
| Lotfi et al. (2022) | LeNet-5 | 60k | 1% | 11.6% | 10.6 | Quant. subspace |
| Pérez-Ortiz et al. (2021) | FCN | 60k | 1.4% | 2.3% | 0.9 | Stochastic net |
| Ours (FFNN) | FFNN | 60k | 1.5% | 4.9% | 3.4 | Det. net via repr. |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| MNIST ( k) | CIFAR-10 ( k) | CIFAR-100 ( k) | ||||||||
| Model | Act. | Test | Bound | Gap | Test | Bound | Gap | Test | Bound | Gap |
| Feedforward networks | ||||||||||
| FFNN | ReLU | 1.5 | 4.9 0.4 | 3.4 | 44.6 | 95.5 1.1 | 50.9 | 75.2 | 100.0 | 24.8 |
| FFNN | SiLU | 1.4 | 4.8 0.1 | 3.4 | 44.3 | 96.2 1.0 | 51.9 | 75.4 | 100.0 | 24.6 |
| Convolutional networks | ||||||||||
| ResNet-18 | ReLU | 0.6 | 2.6 0.0 | 2.0 | 4.7 | 13.0 0.3 | 8.3 | 21.2 | 51.1 0.1 | 29.9 |
| Method | Det. net | No mod. training | No surrogate | No compress. | No stoch. weights | Pretrained / transfer | Arch.- agnostic | Diagnoses repr. |
|---|---|---|---|---|---|---|---|---|
| Dziugaite and Roy [2017] | ✗ | ✗ | ✓ | ✓ | ✗ | ✗ | ✓ | ✗ |
| Pérez-Ortiz et al. [2021] | ✗ | ✗ | ✓ | ✓ | ✗ | ✗ | ✓ | ✗ |
| Zhou et al. [2019] | ✗ | ✗ | ✓ | ✗ | ✗ | ✗ | ✓ | ✗ |
| Lotfi et al. [2022] | ✗ | ✗ | ✓ | ✗ | ✗ | ✓ | ✓ | |
| Bazinet et al. [2026] | ✓ | ✗ | ✗ | ✓ | ✗ | ✓ | ✗ | |
| Than and Phan [2025] | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✗ | ✗ |
| Family | Repr. dim | Notes |
|---|---|---|
| FFNN | 6 hidden layers, width 1024, no dropout. Activation (ReLU or SiLU) applied before readout. No data augmentation. | |
| ResNet-18 | CIFAR-style stem (3 3 conv, no maxpool) for 32 32 inputs. Standard torchvision stem for 224 224. | |
| ResNet-50 | Same stem conventions as ResNet-18. | |
| ViT (from scratch) | varies | MNIST: patch 4, embed 192, depth 4, 3 heads, MLP ratio 4, dropout 0. CIFAR-10/100: patch 4, embed 256, depth 6, 8 heads, MLP ratio 4, dropout 0. |
| Family | Dataset | Optimizer | LR | Momentum | WD | LS | Batch | Epochs |
|---|---|---|---|---|---|---|---|---|
| FFNN | MNIST | AdamW | – | 0 | 512 | 150 | ||
| CIFAR-10 | AdamW | – | 0 | 512 | 300 | |||
| CIFAR-100 | AdamW | – | 0 | 512 | 400 | |||
| ResNet-18 | MNIST | SGD | 0.05 | 0.9 | 0 | 256 | 120 | |
| CIFAR-10 | SGD | 0.1 | 0.9 | 0 | 128 | 200 | ||
| CIFAR-100 | SGD | 0.1 | 0.9 | 0.1 | 128 | 240 |
| Experiment | Training seeds | Fold / split seed |
|---|---|---|
| Table 1 (transfer) | – | 42 |
| Table 2 (MNIST, CIFAR-10) | 42 | |
| Table 2 (CIFAR-100) | 42 | |
| Table 3 (“Ours”) | same as Table 2 | 42 |
| Figure 1b (sample-size sweep) | 42 | |
| Figure 2 (width sweep) | 42 |
Generalization Bounds
Generalization bounds quantify how training performance can differ from population or test performance as sample size and model complexity change.
See all 163 papers