Manuscript Offprint

arXiv:2610.23729

Escaping Parameter Space: Tight Generalization Bounds via Representation Quality

Niclas Göring, Shuofeng Zhang, Branton DeMoss, Ard A. Louis

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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 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.

1 Introduction

Almost every existing non-vacuous generalization bound for deep networks pays a price for their treatment of parameter space. PAC-Bayes certificates add noise to the weights and pay through KL divergence Dziugaite and Roy [2017], Pérez-Ortiz et al. [2021], Lotfi et al. [2022]. Compression bounds quantize or prune and pay through description length Zhou et al. [2019], Lotfi et al. [2022]. Recent work has produced non-vacuous certificates for deterministic networks by reasoning about partitions Than and Phan [2025] or distribution and loss complexity. Each line of work has produced progressively tighter results, but all share a common design: they reason about parameters, or parameter-derived quantities, to certify predictions.

We take a different route. Instead of certifying the parameterized network through its weights, we certify it through its learned representation. Concretely, we produce two bounds: in the transfer setting, where the feature map is fixed independently of the target data, we certify a k-nearest-neighbor (k-NN) classifier built on the last-hidden-layer representations h(L)(x)h^{(L)}(\boldsymbol{x}); in the cross-fit setting, where the network is trained on the target task, we certify the deployed deterministic network itself, using the k-NN decoder. The proof uses only cross-fitting and the KL concentration inequality for i.i.d. Bernoulli variables. The representation is of course produced by the parameters, but no parameter-space complexity measure, no KL to a posterior, weight norm, covering number, or description length enters the argument. The bound is a function of three empirical quantities on the learned feature map φ ⁣:X→Z\varphi\colon \boldsymbol{X} \to \mathcal{Z} (Figure 1a):

*Corresponding author: niclas.goring@physics.ox.ac.uk

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Q1 Can a simple classifier in Z predict labels? That is, does the representation have clean local class geometry?

Q2 Does that classifier agree with the network? That is, does the representation capture what the network actually computes?

Q3 Is training stable under fold removal? That is, do models trained on n versus n−njn - n_{j} points make essentially the same predictions?

a)

Figure

b)

ResNet18 on CIFAR-10

Figure

Figure 1: Any learned feature map φ ⁣:X→Z\varphi\colon X \to \mathcal{Z} raises three questions: Q1 Can a simple classifier in Z\mathcal{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)h^{(L)}(\boldsymbol{x}) yields y^kNN(Q1)\hat{y}_{kNN}(\mathbf{Q1}), compared against y^NN(Q2)\hat{y}_{NN}(\mathbf{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,000n=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 all three answers are yes, the deterministic deployed network is certified without ever reasoning about its parameters. The bound decomposes additively into one term per question, turning the certificate into a diagnostic of representation quality. Our contributions are:

  1. A representation-level certificate for deterministic networks (Theorem 2.6). Three empirical terms, decoder error (Q1), decoder-network disagreement (Q2), and training stability (Q3) bound the test error of the deployed network, without any parameter-space KL term, weight norm, covering number, or compression in the proof.

  2. Tight bounds across scales. Trained from scratch: gaps to test error as small as 8.0 pp obtain on CIFAR-10, and the first non-vacuous certificates we are aware of on CIFAR-100 for unmodified deterministic networks. Frozen pretrained representations achieve 1.4% on CIFAR-10 and 23.1% on 1,000-class ImageNet (DINOv2), the first non-vacuous k-NN decoder certificates we are aware of at ImageNet scale. See Tables 1 and 2.

  3. Implications of the decomposition. The three terms can be measured independently, which localizes where generalization succeeds or fails. Double descent lives in the linear readout (Q2), not the representation (Q1); see Section 4.1. An intervention that destroys local class geometry eliminates generalization while training accuracy stays at 100%, interventional evidence that Q1 is causal, not a correlate of generalization (Section 4.2).

References (41)