potentialpaper

Escaping Parameter Space: Tight Generalization Bounds via Representation Quality

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

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. Three properties of a network's learned representation, local class geometry, decoder–network agreement, and training stability, tightly bound its test error without any parameter-space complexity measure.

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 kk-nearest-neighbor (kk-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 (kk-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.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
17 Apr 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 4 reviews · OpenReview

Updated 25 Nov 2026, 03:43 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

This paper presents a new generalization bound for neural networks using the representations from the last hidden layer of the network. The tightness of the bounds is verified with comprehensive experiments.

This paper receives ratings 2, 3, 4, 4. The authors should focus on the following issues during rebuttal:

  1. Novelty of the theory: (1) The theory essentially states that good performance on the validation set implies good overall performance, which looks common knowledge. (2) Theory fails to demonstrate the importance of class geometric for generalization. (3) Certified error is guaranteed by sufficient conditions about the representation, such as Q1, implying that even when these conditions are not met, the actual generalization error of model can be smaller that the quantified term.

  2. Compare with more baselines: representation-free comparison; the bound by evaluating each reduced-data network directly on the examples excluded from its training, then adding its disagreement with the full-data network.

Final justification

I would recommend accepting the paper based on the following overall considerations.

  1. The paper presents a new generalization bound using the last hidden layer of the network, which is tight in many experiments. This is an interesting contribution.

  2. The two reviewers who gave low scores (h2RG 2,KKev 3) did not provide feedback or final justifications.

  3. The type of the paper is indeed theoretical. The authors may have chosen the wrong type.

Area Chair 5sWJ · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

This paper presents a new generalization bound for neural networks using the representations from the last hidden layer of the network. The tightness of the bounds is verified with comprehensive experiments.

This paper receives ratings 2, 3, 4, 4. The authors should focus on the following issues during rebuttal:

  1. Novelty of the theory: (1) The theory essentially states that good performance on the validation set implies good overall performance, which looks common knowledge. (2) Theory fails to demonstrate the importance of class geometric for generalization. (3) Certified error is guaranteed by sufficient conditions about the representation, such as Q1, implying that even when these conditions are not met, the actual generalization error of model can be smaller that the quantified term.

  2. Compare with more baselines: representation-free comparison; the bound by evaluating each reduced-data network directly on the examples excluded from its training, then adding its disagreement with the full-data network.

Final justification

I would recommend accepting the paper based on the following overall considerations.

  1. The paper presents a new generalization bound using the last hidden layer of the network, which is tight in many experiments. This is an interesting contribution.

  2. The two reviewers who gave low scores (h2RG 2,KKev 3) did not provide feedback or final justifications.

  3. The type of the paper is indeed theoretical. The authors may have chosen the wrong type.

1 comment
Authors · CommentOpenReview ↗

We thank all reviewers for their careful and constructive reviews. We respond here to the two issues highlighted in the meta review, point-by-point responses follow under each review.

1. Novelty of the theory

(a) "Good validation performance implies good performance is common knowledge." The concentration machinery is classical, and the paper says so explicitly (L74: "our contribution is not the technique but the object being evaluated"; Appendix B places the proof in the Langford and Schapire [2005] hold-out lineage). Two properties separate the certificate from a validation estimate. First, the certified object is the deployed network trained on all of S_n, not the reduced-data model: standard practice (validate on a split, retrain on everything, deploy) leaves the deployed model uncertified, and Theorems 2.5 and 2.6 close exactly that gap using unlabeled stability. Second, the network's predictions are never compared to a label anywhere in the certificate: labels enter only through the k-NN decoder on the representation (Q1), while the network enters only through label-free agreement terms (Q2, Q3). The certificate is therefore a function of representation quality, which is what turns a scalar estimate into a diagnostic (Sections 4.1, 4.2) and yields the transfer regime (Table 1).

(b) "The theory does not demonstrate the importance of class geometry." Correct, and intentional: the theorems hold for any representation and any decoder; whether Q1 is small is an empirical property of what training produces, not of the proof (L155-157: "The bound measures that quality; it does not create it"). The importance of geometry is established empirically: the bound is tight exactly when geometry is clean (Tables 1-3, including the random-feature null control at 65.8-99.4%), and an intervention that destroys geometry while training accuracy stays at 100% eliminates generalization (Fig. 3). We will make this division of labor explicit in Section 1.

(c) "The conditions are sufficient, not necessary." Agreed; this is inherent to any upper bound (a large PAC-Bayes KL also does not imply poor generalization). We will add a limitations paragraph plus a cheap diagnostic that distinguishes "loose bound, good model" from "poor model" (see response to Reviewer WbWq, Q5, and Reviewer LSEt, Q1).

2. Baselines. The requested comparison can be settled analytically, without new training

The direct representation-free baseline (evaluate each fold model on its held-out fold, then add fold/full disagreement) is a valid certificate and is never looser than ours: pointwise, 1[f^j(x)≠y]≤1[hj(x)≠y]+1[hj(x)≠f^j(x)]1[\hat f_j(x)\neq y]\le 1[h_j(x)\neq y]+1[h_j(x)\neq \hat f_j(x)], so its empirical rate is dominated by Q1+Q2; its union budget is smaller (J events instead of 2|K|J); and it pays one KL inversion instead of two. It is, in fact, the special case of a decoder-agnostic form of Theorem 2.6 in which the decoder is the fold network itself, making Q2 vanish identically; we will restate the theorem in this form, so the baseline, a linear probe, and the k-NN decoder become three instantiations of one result. So no experiment is needed to answer whether the k-NN construction tightens the bound relative to this baseline: it cannot, and we do not claim it does. A held-out estimate of the deployed predictor is the ceiling against which every structural certificate (PAC-Bayes, compression, partition, ours) must be judged; it is also why such estimates are not considered explanations of generalization. Conversely, both upper-bound the same test error, so the baseline's improvement over ours is capped by our reported gaps and analytically by about 2 x Q2 plus slack differences (about 4 pp for ResNet-50 on CIFAR-10, where Q2 = 1.8%). That difference is the price of routing the certificate through the representation; the paper's claim is that the price is small while the payoff is the point: the deployed network is certified through three representation-level quantities, which is what enables the transfer certificates and the diagnostics of Section 4, none of which a scalar held-out estimate expresses. We will add the baseline column to Table 2 (computable from cached fold-model predictions), state the ordering as a proposition, and reposition the tightness claims.

Agreed revisions: qualify "tight" with bound-to-error ratios and the precise claim "tightest we are aware of among non-vacuous certificates for unmodified deterministic networks"; state the unlabeled-sample requirement in Sections 1-2; report every run separately (per-seed std is already at most 0.5 pp on the ResNet rows, Table 3); reword the transfer and ImageNet-V2 claims; retitle Section 4.2 to "interventional evidence"; add the baseline proposition and column; fix the unresolved citation (L474), the abstract's ResNet-18/ResNet-50 attribution, the E.5 heading, and typos.

Reviewer WbWqOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
2/4
Clarity
3/4
Significance
2/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper certifies a deterministic image classifier's generalization entirely from its learned last-hidden-layer representation — via a parameter-free kk-NN "decoder" — with no PAC-Bayes KL, weight norm, covering number, or compression entering the proof. The certificate decomposes additively into three independently measurable terms: local class geometry (kk-NN decoder error, Q1), decoder–network agreement (Q2), and training stability under fold removal (Q3), combined through KL-inverse Bernoulli concentration with cross-fitting. Two regimes are developed: a transfer result (Thm 2.3) certifying a frozen backbone by Q1 alone, and a cross-fit result (Thms 2.2–2.6) certifying the deployed network f^(full)\hat{f}^{(\mathrm{full})}. Headline numbers are an ImageNet-scale 23.123.1% kk-NN-decoder certificate (transfer, DINOv2) and a 12.412.4% certificate on a from-scratch ResNet-50 (cross-fit, CIFAR-10, 8.08.0 pp gap to test error).

Strengths and weaknesses

Strengths

  • The conditioning argument and KL-inverse Bernoulli bounds (Thms 2.2–2.6) are applied properly with the union budget over (j,k)(j,k) carried into the radii, and the one-line conditioning identity in the Thm 2.6 proof is a valid almost-sure cross-fitting identity (the same one used in Thms 2.2/2.4), not a gap.
  • The transfer result (Thm 2.3) is honest and genuinely tight. The certified object is unambiguously the kk-NN decoder with Q2=Q3=0Q2=Q3=0 by construction, and the 23.123.1% ImageNet certificate from an unmodified pretrained representation is a clean, real data point.
  • The diagnostic decomposition is the most novel contribution. Because Q1/Q2/Q3 are independently measurable, the paper can localize double descent to the readout Q2 (Fig. 2) and run the LrepL_{\mathrm{rep}} intervention (Fig. 3) — mechanistic claims a generalization bound usually cannot make.

Weaknesses

  • "Tight" oversells. The headline 12.412.4% bound is ≈2.9×\approx 2.9\times the 4.34.3% test error it bounds (a ∼190\sim 190% relative gap), and on MNIST the paper's 2.02.0–3.43.4 pp gaps are larger than Pérez-Ortiz et al.'s ≈0.9\approx 0.9 pp. The defensible claim is "tightest among non-vacuous deterministic-network bounds," which should be stated throughout.
  • Q3 is an empirical posterior measurement, taken on the evaluation distribution. Δ^jstab\hat{\Delta}^{\mathrm{stab}}_j requires training J=5J=5 extra fold models (≈102.7\approx 102.7 GPU-h) and is measured on the standard test inputs as the unlabeled pool UU. The theorem only needs U⊥SnU \perp S_n (which holds), but this makes the contribution closer to a sharp held-out estimator with a deployed-network bridge than a new a-priori generalization theory.
Questions
  • In the proof of Theorem 2.6 (D.5, L518–520), please add one sentence stating that the test pair (X,Y)∼P(X,Y)\sim P is independent of SnS_n and f^j\hat{f}j is σ(S−j)\sigma(S{-j})-measurable (L92–96; Def. 2.1), so the two conditional risks are equal almost surely and the 1−δ1-\delta guarantee transfers.
  • Please replace the unqualified "tight" with the bound-to-test-error ratio for each headline number, and state against which prior bound your absolute gap is actually smaller. How do you reconcile the abstract's "tight" with your MNIST gap (2.02.0–3.43.4 pp) exceeding Pérez-Ortiz et al. [2021]'s ≈0.9\approx 0.9 pp?
  • Please confirm that the effective sample size controlling cj=[log⁡(2∣K∣J/δ)+log⁡(∣Fj∣+1)]/∣Fj∣c_j = [\log(2|K|J/\delta) + \log(|F_j|+1)]/|F_j| is the per-fold evaluation count ∣Fj∣≈10,000|F_j| \approx 10{,}000 on CIFAR (L549–551, L566), not 0.8n0.8n or n=50,000n=50{,}000. Please also add the JJ-dependence (e.g. J∈2,5,10J \in {2,5,10}) of the certified bound versus total compute, to show whether J=5J=5 is near-optimal or merely convenient.
  • Please add two baselines: a linear-probe hold-out certificate on the same frozen features (Table 1), and a direct Langford–Schapire held-out-error certificate on f^(full)\hat{f}^{(\mathrm{full})} (Table 2), to isolate what the kk-NN/decomposition machinery adds. Please also add the Than–Phan [2025] numerical entry to Table 2 (CIFAR-10 at minimum), since it is the closest deterministic-net comparator yet appears only in the Table 4 desiderata.
  • For Fig. 3, please add a matched-magnitude control regularizer that damages a property other than within-class geometry (and show test accuracy is preserved), and report more than the single FFNN/SVHN/seed-0{0} configuration (Table 7), since LrepL_{\mathrm{rep}} is anti-Q1 by construction. Separately, can a genuinely good model get a vacuous bound purely because its kk-NN geometry is poor — so the certificate measures kk-NN-compatibility rather than generalization — and how would that differ from the FFNN-on-CIFAR-10 case (95.595.5% bound at 44.644.6% test error) where the model genuinely fails?
Limitations

yes

Final justification

I carefully checked the rebuttals and will keep my score.

Formatting concerns

N/A

1 comment
Authors · CommentOpenReview ↗

We thank the reviewer for a careful reading.

W1 Agreed. We will (i) replace unqualified "tight" with bound-to-test-error ratios: MNIST ResNet-18 2.6% vs 0.6% (4.3x), CIFAR-10 ResNet-50 12.4% vs 4.3% (2.9x), CIFAR-100 ResNet-50 44.6% vs 19.4% (2.3x), transfer DINOv2-L 1.4% vs 0.9% on CIFAR-10 (1.6x) and 23.1% vs 20.9% on ImageNet (1.1x); and (ii) state the claim exactly as the reviewer words it: tightest we are aware of among non-vacuous certificates for unmodified deterministic networks. We are also open to dropping "Tight" from the title. On MNIST: Perez-Ortiz et al. [2021] reach a 0.9 pp gap for a stochastic network with PAC-Bayes-driven training, while our 2.0 pp gap certifies the deployed deterministic network with unmodified training; these occupy different rows of the Table 4 desiderata, and we will say so wherever compared, including the abstract.

W2 We accept this positioning and will state it plainly: the certificate is post-hoc, in the hold-out lineage of Langford and Schapire [2005] (as Appendix B says), not an a priori theory; Q3 is measured, not derived, which is the price of certifying the deployed model under arbitrary optimizers. Cost: the logged Table 2 compute is about 102.7 GPU-hours over 64 runs, so one CIFAR-10 certificate (5 fold models + full model) costs roughly 10 GPU-hours; fold training parallelizes and matches what 5-fold cross-validation already spends. We will report this per-certificate figure and surface the U requirement (test inputs as the unlabeled pool, footnote 1) in Sections 1-2.

Q1 Agreed; we will add after L518: "Since (X, Y) is independent of (S_n, U), and h_j^{(k)}, f_j, and f^{(full)} are sigma(S_n, U)-measurable (L92-96, Definition 2.1), the two conditional risks coincide almost surely, so the guarantee transfers to the deployed network."

Q2 See W1; both changes will be made throughout, with ratios next to each headline bound.

Q3 Confirmed: the radius c_j is controlled by the per-fold evaluation count n_j = n/J (10,000 on CIFAR, 12,000 on MNIST), not by n or m. Numerically, c_j is about 1.7e-3 on CIFAR (delta = 0.025, |K| = 7, J = 5), about 1-2 pp of KL slack per term at the observed rates, matching the raw-sum-to-certificate gap (8.7% to 12.4%) for ResNet-50/CIFAR-10. J-dependence: c_j is approximately (J/n)(log(2|K|J/delta) + log(n/J+1)), so larger J loosens each radius while shrinking the removed fraction 1/J, which reduces Q3; total compute is about J full-data trainings. J = 5 is the standard cross-validation size, fixed in advance, not shown optimal; we will add this trade-off analysis and, compute permitting, a J-sweep in revision.

Q4 The direct Langford-Schapire certificate on f_j can be ordered analytically: pointwise 1[f_j(x) != y] <= 1[h_j(x) != y] + 1[h_j(x) != f_j(x)], its union budget is smaller (J vs 2|K|J events), and it pays one KL inversion instead of two, so it is never looser than our Q1+Q2; conversely its advantage is capped by our reported gaps, about 2 x Q2 plus slack differences (about 4 pp for ResNet-50/CIFAR-10). Both baselines are instances of a decoder-agnostic restatement of Theorem 2.6 (the direct certificate takes the fold network as decoder, so the disagreement term vanishes), which we will state. We will add both to the tables (neither requires retraining) and the Than and Phan [2025] CIFAR-10 entry to Table 2 with their reported numbers.

Q5 We will narrow the claims: one dataset, seed, and strength; L_rep is anti-Q1 by construction; the four activations give four distinct optimization dynamics but are not a matched control. We will add a matched-magnitude control penalty that spares within-class geometry (e.g., cross-class repulsion or norm growth), plus seeds and strengths, and report test accuracy under the control. On the second question: yes, in principle; the certificate is one-sided, so a network with k-NN-incompatible last-layer geometry could generalize well yet receive a loose bound; the certificate then measures k-NN-compatibility, exactly as the reviewer says. The cases are distinguishable with quantities we already compute: the fold network's own held-out error (the Q4 baseline) is small for a good-but-incompatible model, whereas for the FFNN on CIFAR-10 it is large (44.6% test error), so the model fails and the near-vacuous 95.5% bound is the correct verdict. Across Tables 1-3 we never observed low test error with high Q1, but we will state this failure mode and the diagnostic explicitly in the Limitations.

Reviewer LSEtOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
4/4
Significance
4/4
Originality
4/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes a novel way of certifying generalization error of a fixed trained model. This is achieved via quantifying the quality of last hidden layer representations. More concretely, the authors propose to quantify (meaning prodividing a quantifiable measure) 3 terms with 3 questions as summarized by authors: (Q1) Can a simple classifier in this representation space predict labels (here, the simple classifier is k-NN classifier)? (Q2) Does that classifier agree with the network? and (Q3) Is training stable under fold removal? The authors then formalize these questions through analytical terms that can be quantified empirically. The main contributions of this paper is then the theoretical analysis, via formal theorems, which provide generalization error bounds. Finally, the authors conduct experiments to prove the effectiveness of the approach.

Strengths and weaknesses

Strengths

  1. The paper is well written, with the introduction very concise, allowing readers to quickly understand the context, and the objective of the work.
  2. The paper proposes a very refreshing way of quantifying generalization error bound, via quantifying the representation quality, which is very original.
  3. All the theoretical points are well written, with clear math notation.
  4. The conducted experiments are very convincing and interesting.
  5. A big PLUS of the method is that it certifies the deployed deterministic network without modified training and extends to pretrained representations.

Notice: while my current rating is just borderline accept, adressing my questions can easily improve my current rating, as I appreciate deeply the originality of this work.

Weaknesses

  1. Some citation styles need to be revisited, for example in the introduction (lines 21-22), the name of authors should be between "[]" or "()", not the direct name of the cited authors (because here you cite the works, not using the name of authors as a part of the sentence).
  2. The method requires additional data (can be regarded as calibration sets), such as Sref\mathcal{S}_{\text{ref}}, Seval\cal{S}_{\text{eval}}, or U\mathcal{U}. In some applications with limited data, it would be difficult to have a sufficiently representative set for this.
  3. Here, the certified error is guaranteed by sufficient conditions about the representation, such as Q1(decoder error, or cleanness of local geometry). This means that, even when these conditions are not met (e.g. large decoder error), the actuall generalization error of model can be smaller that the quantified term. Therefore, that would be interesting to discuss the perspective about these scenarios, as least intuitively (see Questions).
Questions
  1. Could you please see the point (3) in weaknesses and address this?
  2. While the formal theorems are clear mathematically, it is not clear about the intuition of why using k-NN classifier. Could you please disscuss more the intuition behind this? Can the results be extended to a linear classification layer? That would make the paper much more accessible to a wider range of readers.
  3. Similarly, could you please explain more about the upper inverse version of binary relative entropy? Why not binary relative entropy directly in your theorems, but this variant version? In particularly, what does this quantity measure/represent?
  4. In the reported results, you compute all the terms using this upper inverse version? Can you confirm that?
  5. In your theoretical and experimental results, there is the term "finite search set K\mathcal{K}". Even you mentioned that the results hold for every k∈Kk\in\mathcal{K}, the role of search set K\mathcal{K} is NOT clearly interpreted. Can you explain more precisely the role of this last term in theoretical part and in your reported experimental results (how does this impact the theoretical and experimental bound)?
  6. The title of Section 4.2 is affirmative "Local class geometry is causal, not correlational". But after reading your experiments, i do not see why this indicates that's not correlational. When factor A is correlated to B systematically, then impacting A automatically impacts B. So can you explain this?
  7. The work focuses on classification error. Do you think that with the techniques presented in this work, one can extend the results for more general frameworks, such as generalization regression error?
Limitations

Yes

Final justification

All the main points in my review are well adressed by the authors. With these modifications, I believe the revised version should be a really good paper, with the core contributions and central concepts being sufficiently clear for reader.

Formatting concerns

N/A

2 comments
Authors · CommentOpenReview ↗

We thank the reviewer for the encouraging assessment.

W1 Agreed; we will use \citep wherever authors are not part of the sentence (e.g., L21-22).

W2 A clarification: no labeled data beyond the single sample S_n is used anywhere. In the transfer setting, S_ref and S_eval are an 80/20 split of S_n itself (Thm 2.3); in the cross-fit setting the folds partition S_n. The only additional data is U, unlabeled inputs only. The real cost in low-data regimes is the concentration radius, roughly (log(|K|/delta) + log(n_e+1))/n_e, so certificates weaken as n_e shrinks (roughly 3-4 pp extra at n_e = 2,000 and a 5% rate). We will add this and state the limitation explicitly.

W3 / Q1 Correct: the certificate is one-sided, like every upper bound (a large PAC-Bayes KL also does not imply poor generalization). A model can generalize well while its last-layer geometry is unfriendly to k-NN; then Q1 and Q2 are large and the bound is loose but valid. Intuitively, the decision rule may use structure invisible to local neighborhoods (e.g., a global linear direction with local mixing). We did not encounter this regime: across Tables 1-3, low test error always co-occurred with low Q1, consistent with neural collapse [Papyan et al., 2020]. A cheap diagnostic separates "loose bound, good model" from "poor model": if the fold network's own held-out error is small while Q1 is large, the model is good but k-NN-incompatible. We will add this discussion and diagnostic.

Q2 Intuition: k-NN is the most literal probe of "do same-class points sit next to each other in Z?". It has no trained parameters, and classically its risk tracks the Bayes risk of the representation space (at most twice it asymptotically, Cover and Hart [1967]), so Q1 estimates the intrinsic difficulty the representation leaves for any classifier. And yes: the theorems hold for any decoder that is a deterministic function of the reference data, including a linear probe trained on it; the interpretation changes, since a linear probe measures linear separability and introduces a trained object. We will state this generality as a remark and add a linear-probe variant in revision; taking the fold network itself as decoder recovers the direct held-out certificate (zero disagreement term), which we will report as a baseline.

Q3 kl_+^{-1}(q, c) = sup{p >= q : kl(q||p) <= c} is the largest true Bernoulli mean consistent, at budget c, with the observed empirical mean q: the tightest upper confidence limit the KL concentration inequality implies. kl alone cannot serve because the theorem must output a bound on the unknown p; kl(q||p) <= c defines an interval of plausible p, and the upper inverse selects its right endpoint. Its advantage over Hoeffding-style radii is sharpness near zero: at q = 0 it gives about c rather than sqrt(c/2).

Q4 Confirmed: every certificate converts each of the three empirical rates with kl_+^{-1} at radii c_j, c_m, sums the three bounds, and takes the minimum over (j, k) (Thm 2.6; E.2); we will state this in the table captions too.

Q5 The bound holds simultaneously for all k in K and all folds j, so post-hoc selection of the best k is licensed; the cost is the log|K| term in c_j = (log(2|K|J/delta) + log(n_j+1))/n_j, negligible here: at |K| = 7 and n_j = 10,000, removing the k-search would tighten the bound by under 0.1 pp. We will make this explicit next to the theorems.

Q6 The distinction we intend is observation vs intervention. Correlation alone does not imply that manipulating A changes B: if A and B are both effects of a third factor C (the worry at L231-234), intervening directly on A leaves B unchanged. Figure 3 performs the intervention: a penalty that constrains only representation geometry, leaving the network free to fit all training labels (it does, at 100%); generalization collapses together with Q1 across four activations. This rules out the pure common-cause explanation in this setting. The title overreaches for a single dataset, seed, and strength; we will retitle Section 4.2 to "interventional evidence" (the phrase at L246), state scope limits, and add seeds and strengths in revision.

Q7 We believe so. For tolerance error at threshold tau: 1[|f(x)-y| > tau] <= 1[|h(x)-y| > tau/2] + 1[|f(x)-h(x)| > tau/2], with h a k-NN regressor; all three indicators are Bernoulli, so the same cross-fitting and KL inversion apply, yielding a Q1/Q2/Q3 decomposition for regression. We will add this as a remark; the empirical study is future work.

We thank the reviewer and hope this supports the offered score increase.

Reviewer LSEt · CommentOpenReview ↗

Comment

Thank you for clarifying the main points. Its much clearer now for me (and hopefully for potential readers). While Q2 is not a central technical point, I believe that if you could add this in the main text (such as introduction), the paper should motivate more the readers to follow the remainder of the paper.

As the main points are quite well adressed, I believe my score increase (to 5 now) is sufficiently justified.

Best regards,

Reviewer KKevOpenReview ↗
Rating
3/6
Confidence
4/5
Quality
2/4
Clarity
2/4
Significance
2/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes a novel generalization bound for neural networks. Unlike previous methods based on parameter space, this work derives the generalization bound through the representations of the last hidden layer of the network. The authors verify the tightness of this bound across various architectures and datasets, demonstrating its potential applications in diagnosing model generalization capabilities, analyzing the double descent phenomenon, and conducting intervention experiments.

Strengths and weaknesses

Strengths

This paper employs a generalization bound based on KNN metrics of Sn/S-j at the feature layer trained on S-j to measure the overall generalization error. Following this approach, the paper successfully shifts the analysis of generalization capabilities from the parameter space to the representation space.

On CIFAR-10 and CIFAR-100, this method provides one of the tightest bounds currently available for unmodified deterministic networks. The combination of experiments and theory helps establish that geometric structure is a causally relevant mechanism for generalization.

Weaknesses

Please carefully check the citations; there is still a '?' present on line 474.

The authors emphasize the importance of geometric structure for generalization; however, in the proofs, I do not see any irreplaceable properties of KNN in these theorems, nor is there any demonstration that geometric structure can yield relatively small theoretical upper bounds. The proof process relies primarily on classical probabilistic analysis without addressing the unique properties of neural networks, training algorithms, and KNN. Therefore, the theoretical section fails to demonstrate the importance of class geometric for generalization.

Less rigorously speaking, the theory in this paper essentially states that good performance on the validation set implies good overall performance, since S/S-j is essentially a validation set drawn from S when S-j to be training set. This does not seem particularly mysterious or novel from either an experimental or theoretical perspective. Experimentally, similar training strategies have been adopted long ago; theoretically, as long as the validation set is sufficiently large, it will naturally reflect the overall accuracy.

Questions

Since the authors' theoretical framework imposes no specific restrictions on the data distribution or network architecture, could you validate your conclusions on a broader range of datasets, such as natural language or multimodal data?

Limitations

yes

Formatting concerns

No

1 comment
Authors · CommentOpenReview ↗

We thank the reviewer for the careful reading.

W1 Fixed: the citation at L474 resolves to Langford and Schapire [2005] (the KL concentration inequality for i.i.d. Bernoulli variables). Apologies for the compilation error.

W2 This is correct and deliberate, and we will state the division of labor explicitly in Section 1. The theorems are an accounting identity plus classical concentration: they hold for any deterministic feature map, any metric, and indeed any decoder built from the reference embeddings. We will restate Theorem 2.6 in this decoder-agnostic form; the direct held-out baseline (decoder = fold network, zero disagreement term), a linear probe, and k-NN then become three instantiations of one theorem, which also supplies the baseline the meta review requests. The theorems' role is to make "representation quality" a certified, additive quantity. Whether the terms are then small is an empirical property of what training produces, not of the proof; the paper states this at L155-157 ("What makes the bound tight is not the proof technique but the learned representation... The bound measures that quality; it does not create it"). A theorem that presupposed favorable geometry would also be weaker as a certificate, because a certificate must correctly refuse to certify bad representations, which ours does: random features certify at 65.8% to 99.4% (Table 1), and FFNNs on CIFAR are correctly vacuous (Table 2). What is special about k-NN is what it measures, not what it proves: it is nonparametric, so nothing is trained that could itself overfit, and classically its risk tracks the Bayes risk of the representation space (asymptotically at most twice it, Cover and Hart [1967]), so Q1 is a direct readout of local class geometry. The importance of geometry is then established empirically rather than theoretically: tightness tracks representation quality across architectures and datasets (Tables 1-3), and an intervention that destroys geometry while training accuracy stays at 100% eliminates generalization (Fig. 3).

W3 Two properties separate the certificate from "a sufficiently large validation set reflects overall accuracy". First, the certified object is the deployed network trained on all of S_n, not the reduced-data model. The reviewer is right that S_n minus S_{-j} is a held-out set for the fold model; but standard practice (validate on a split, retrain on everything, deploy) leaves the deployed model uncertified, and Theorems 2.5-2.6 close exactly that gap through label-free stability on unlabeled inputs. Second, the network's predictions are never compared to a label anywhere in the certificate: labels enter only through the k-NN decoder on the representation (Q1); the network enters only through label-free agreement terms (Q2, Q3). So the certificate is not "the network's validation error plus concentration"; it factors entirely through representation quality, which is what turns it from an estimate into a diagnostic (Sections 4.1-4.2) and yields the transfer results. We fully agree the concentration machinery is classical; the paper positions itself this way already (L74: "our contribution is not the technique but the object being evaluated") and Appendix B places the proof in the Langford and Schapire [2005] hold-out lineage. Held-out estimation of the deployed model is the ceiling every structural certificate is judged against; approaching that ceiling through three representation-level quantities is the contribution. We will make this framing more prominent in Section 1 so readers are not invited to expect new concentration mathematics. See also the general response, items 1-2.

Q1 Nothing in Section 2 is vision-specific: the theorems apply to any deterministic feature map into a metric space, so a frozen text or multimodal encoder slots into Theorem 2.3 exactly as DINOv2 does, and cross-fit certification applies to any trained classifier with a representation layer. We agree this is a natural and promising direction; running it properly (encoder choice, sequence-level evaluation design, calibrated comparisons) is beyond what we can add during the rebuttal, but we will add a discussion of the extension and flag it as immediate future work. Within this submission, coverage spans MNIST, CIFAR-10/100, SVHN, ImageNet, and ImageNet-V2 across FFNNs, ResNets, ViTs, and DINOv2.

We are happy to answer any follow-up.

Reviewer h2RGOpenReview ↗
Rating
2/6
Confidence
4/5
Quality
2/4
Clarity
2/4
Significance
2/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper proposes a generalization certificate based on the geometry of a network’s penultimate-layer representations. It uses kNN to classify those representations and estimate (1) its classification error, (2) its disagreement with the trained network, and (3) the disagreement between that network trained on reduced data and on the full training set. The last quantity is estimated using a separate unlabeled sample from the target input distribution. The measured quantities for these three estimates are added to obtain an upper bound on the classification error, which is then considered as a certificate for the full deterministic network.

The empirical study covers MNIST, CIFAR-10, CIFAR-100, ImageNet, ImageNet-V2, and SVHN. The paper reports, among other results, a 12.4% bound for a ResNet-50 with 4.3% test error on CIFAR-10, a 44.6% bound with 19.4% test error on CIFAR-100, and bounds of 1.4% on CIFAR-10 and 23.1% on ImageNet for k-NN classifiers using frozen DINOv2 features. It also uses the three measured quantities to discuss network width, label noise, feature-space regularization, and weight perturbations. The authors use these additional experiments to argue that the same three quantities can also be interpreted as diagnostics of generalization behavior.

Strengths and weaknesses

Strengths

  • The bound is expressed in terms of quantities that can be measured directly.
  • Reporting the three terms separately can help locate the source of a loose bound.
  • The experiments cover several datasets and architecture families.

Weaknesses

  • The paper omits the obvious representation-free comparison, where the error of the reduced-data network can be estimated directly through its withheld subset and combined with the same reduced-data/full-data disagreement term. This would give a simpler certificate for the deployed model, without kNN features and without the extra triangle inequality used in the paper. Since the paper does not report this comparison, so it is unclear whether the kNN construction improves the bound at all.
  • In the transfer experiments, the certified predictor is a kNN classifier built using labels from 80% of the target dataset. It is not the pretrained network’s classifier. The phrase "without target training" therefore gives the wrong impression.
  • Certification of the full-data network requires a separate unlabeled sample from the target input distribution. The experiments use the standard test inputs for this estimate. This requirement should be stated early in the paper and included when comparing the method with bounds that use only the training sample.
  • Several results are reported as means over independently trained networks. Since a certificate applies to one specified network, the average of several upper bounds is not itself a certificate for any one of them. The paper should report every run separately and attach each claim to an identified model.
  • Euclidean nearest-neighbour quality is not invariant under a change of feature coordinates. An invertible transformation of the penultimate features, followed by the inverse transformation of the classifier weights, preserves every network prediction but can alter nearest neighbours arbitrarily. The proposed quantity Q1 therefore measures one chosen parameterization of one chosen layer, not an intrinsic property of the classifier or its representation.
  • The term "parameter-free" is misleading. The result depends on the choice of k, distance, feature layer, normalization, and labelled reference set. These choices can substantially change the bounds.
  • The ImageNet-V2 experiment is not a test of whether a classifier certified on ImageNet remains valid after a distribution shift. The method uses labelled ImageNet-V2 examples to build the kNN classifier and different ImageNet-V2 examples to evaluate it. It therefore gives a new within-dataset certificate for ImageNet-V2, rather than a certificate transferred from ImageNet to ImageNet-V2. The paper should revise the claim that this demonstrates certification under distribution shift.
  • The double-descent experiment shows only that Q2 varies non-monotonically with width. Since Q2 is a disagreement measure rather than the classifier head’s error, and the bound terms do not add up exactly to test error, this does not establish that double descent originates in the final classifier.
  • The SVHN experiment does not identify a causal role for Q1. The regularizer does not directly optimize kNN error, it penalizes squared cosine similarity, apparently at several hidden layers. It also changes margins, norms, conditioning, optimization, and other properties. The experiment uses one seed, one regularization strength, and no intervention that restores geometry while holding other quantities fixed.
  • Equation 8 appears to sum over all same-class pairs, but the paper does not explain how this is computed in practice. The authors should state whether pairs are sampled, restricted to minibatches, or approximated, and report the associated cost.
  • The weight-noise experiment does not show that the final classifier is the fragile part. Noise affects both the feature extractor and the final layer, but the kNN rule is affected only through changes to the features. Noise should therefore be applied separately to the feature extractor and the final layer.
  • The comparison table places bounds for different objects side by side: stochastic networks, compressed networks, deterministic networks, and target-labelled kNN classifiers. These numbers are not directly comparable, despite the brief qualification in the paper.
  • The code is not publicly available at submission time, and some experimental details are missing, making the main results difficult to verify.
Questions
  1. What bound is obtained by evaluating each reduced-data network directly on the examples excluded from its training, then adding its disagreement with the full-data network? Please compare this baseline with the proposed three-term bound.
  2. Which choices were fixed before the certification data were examined, and which were selected afterward? Please include architectures, training settings, seeds, checkpoints, representation layers, distance metrics, and reported runs, and give the certificate for each individual network.
  3. In the transfer experiments, the certified predictor is a kNN classifier built from labelled target examples. How is this more than a held-out error bound for that classifier, and how is independence from the target dataset justified?
  4. How sensitive are the results to the chosen representation and metric? Please test normalization, cosine distance, another layer, and prediction-preserving changes of feature coordinates.
  5. Do the claims about double descent and causal feature geometry remain after stronger tests? Please fix k independently, report all bound terms, use several seeds and regularization strengths, and either provide more discriminating comparisons or narrow the claims.

My score would increase if the proposed bound clearly outperformed the direct baseline, the reported certificates remained valid after all model and method choices were taken into account, and the broader interpretive claims were either supported by stronger evidence or revised.

Limitations

While the paper discusses some of the limitations, it should also state that:

  • The full-network certificate requires a separate unlabeled sample from the same distribution as future test data. In the experiments, the standard test inputs are used for this purpose, so they must not have influenced model development or selection.
  • The transfer experiments certify a kNN classifier built with labelled target examples, not the pretrained network itself. They also require the pretrained representation to have been chosen independently of the target dataset.
  • The certification applies to one specified network and one fixed evaluation procedure. Choices among architectures, checkpoints, seeds, layers, and distance measures must be made before examining the certification data. Simply averaging across runs does not yield a valid certificate for individual networks.
  • The reported representation quality depends on the chosen layer, feature coordinates, normalization, and distance measure. The broader claims about class geometry therefore do not describe an invariant property of the network.
  • The certifications cover average classification error under the assumed data distribution, but do not certify performance after distribution shift, nor do they cover robustness, fairness, privacy, or deployment safety.
Formatting concerns
  • The proof of Theorem 2.2 contains an unresolved citation, "[see e.g. ?, Theorem 1]".
  • The abstract attributes an 8.0 CIFAR-10 gap to ResNet-18, whereas the main comparison table reports an 8.3 gap for ResNet-18 and an 8.0 gap for ResNet-50.
  • The appendix refers to "Table 3: Comparison with prior bounds", but the displayed Table 3 is the ReLU/SiLU comparison.
  • The paper contains typographical / grammatical errors, e.g., "as shown ing Figure 3".
2 comments
Authors · CommentOpenReview ↗

We thank the reviewer for the careful and detailed review.

W1 The suggested certificate is valid and never looser than ours: pointwise 1[f^j(x)≠y]≤1[hj(x)≠y]+1[hj(x)≠f^j(x)]1[\hat f_j(x)\neq y]\le 1[h_j(x)\neq y]+1[h_j(x)\neq \hat f_j(x)], so its empirical rate is dominated by Q1+Q2; its union budget is smaller (J events vs 2|K|J); and it pays one KL inversion instead of two. It is the special case of a decoder-agnostic form of Theorem 2.6 with the decoder chosen as the fold network itself (Q2 vanishes identically); we will restate the theorem in that form. So the k-NN construction cannot tighten the bound relative to this baseline, and we do not claim it does: a held-out estimate of the deployed predictor is the ceiling for every structural certificate. Both bound the same error, so the baseline's advantage is capped by our reported gaps, analytically by about 2 x Q2 plus slack differences (about 4 pp on ResNet-50/CIFAR-10, Q2 = 1.8%). What the k-NN route buys is not tightness but content: labels never touch any network in our certificate (Q1 checks the representation against labels; Q2 and Q3 are label-free agreements), so the certificate is a function of representation quality, enabling the transfer regime and Section 4. We will add the baseline column to Table 2 (computable from cached fold-model predictions) and state the ordering as a proposition.

W2 Agreed. We will replace "without target training" with "without gradient-based training on the target dataset" and state in the abstract, not only at L168-169, that the certified object is the k-NN decoder on the frozen representation, the deployed predictor in this regime.

W3 Agreed. We will state in Sections 1-2 that certifying the full network requires an unlabeled sample U from P_X, independent of S_n (inputs only; footnote 1), and will flag this when comparing against training-sample-only bounds.

W4 Agreed: the theorem certifies one specified network; we will report every run separately, each attached to an identified checkpoint. Per-seed spread is already in Table 3 (std at most 0.5 pp on ResNet rows); no conclusion changes.

W5 Correct, and we will state it: Q1 is a property of the representation in the coordinates the network actually computes, not of the prediction-equivalence class. Validity is unaffected: any pre-declared procedure yields a valid certificate; an adversarial reparameterization can loosen it, never invalidate it. Also, the certified object is the representation-metric pair: the construction keeps Euclidean distance while changing coordinates, so it evaluates a different pair (transforming both consistently leaves the decoder invariant). The finding is that the pair training actually produces (identity coordinates, l2, fixed a priori, E.1) certifies tightly. We will add this discussion and a normalization/cosine ablation (feature extraction only, no retraining).

W6 Fair. The intended sense is that the decoder has no trained parameters and no parameter-space complexity measure enters. We will write "training-free nonparametric decoder" and list the evaluation choices (k, metric, layer, normalization, reference set) explicitly. The k choice is already paid for via the union bound over the declared grid K (E.2); layer, metric, and normalization were fixed a priori, identically across all experiments.

W7 Agreed: the experiment is a within-V2 certificate built on a representation trained without V2 data; it shows that the representation transfers under shift, not that the ImageNet certificate does. We will rewrite the claim accordingly.

W8 We will weaken the claim to what is measured: Q1 is monotone in width and the non-monotonicity of the bound is carried entirely by Q2, the decoder-network disagreement. This localizes the phenomenon to the network-vs-decoder relationship rather than proving a final-classifier origin; we will remove "lives in the linear readout" and note head retraining on frozen features as the discriminating test.

W9 We will temper "causal" to "interventional evidence" (the phrase used at L246) and retitle Section 4.2. The experiment establishes that a penalty targeting exactly what Q1 measures leaves training accuracy at 100% while test accuracy collapses, under four distinct optimization dynamics. It does not isolate geometry from covarying properties (margins, norms, conditioning), uses one seed and strength, and lacks a geometry-restoring counter-intervention; we will state these limits and add seeds, strengths, and a matched control penalty in revision.

Authors · CommentOpenReview ↗

W10 L_rep is computed over same-class pairs within each minibatch (batch size 1024, E.8), applied to the normalized representations at each hidden layer, giving O(B^2 D) per layer per step; we will state this and the wall-clock overhead in E.8.

W11 In Figure 4 both predictors share the same noised extractor: the k-NN decoder reads the noised features, the network reads them through its noised head, so the comparison measures the marginal fragility the readout pathway adds under matched feature noise. We agree that applying noise separately to the extractor and the final layer is the cleaner decomposition and will add it (inference only, no retraining); Figure 4 remains diagnostic and enters no certificate (E.9).

W12 Agreed the certified objects differ. Table 2 lists the certified object per row and Table 4 catalogues the structural differences, but we will make this more prominent: separated blocks, a caption caution, and a pointer to Table 4 at first use.

W13 Anonymized code is available on request during the discussion phase (checklist item 5) and will be released publicly with the camera-ready. Appendices E-F specify seeds, folds, grids, tie-breaking, preprocessing, and compute; we would gladly add any detail the reviewer found missing.

Q1 See W1: the direct baseline is analytically at least as tight as our three-term bound, with maximum advantage capped by our reported gaps (about 2 x Q2 plus slack, about 4 pp for ResNet-50/CIFAR-10). We will report it as a baseline column computed from the cached fold-model predictions.

Q2 Architectures and training recipes are standard and listed in Tables 5-6; training seeds {0,1,2} ({0,1} for CIFAR-100), fold/split seed 42, final-epoch checkpoints with no checkpoint selection; representation layer (last hidden), metric (l2), and normalization (none) fixed a priori and identical across all experiments (E.1, F). The only data-dependent selections are k and j, both inside the stated union bound (E.2 states this selection is part of the certificate). Selection among a declared family of M further alternatives (architectures, seeds, layers, metrics) after seeing certification data can be licensed by replacing delta with delta/M; we will state both valid protocols and report the certificate for each individual network.

Q3 We agree the transfer result is a held-out certificate for the k-NN predictor and will present it as such; its content is the licensed post-hoc selection of k, the KL inversion at n_e of about 10k, and the finding that frozen representations certify at 1.4% to 23.1%. Independence: the backbones were pretrained without our target splits, and the 80/20 split (seed 42) was fixed independently; we will state "the representation must be chosen independently of the certification data" as a formal requirement.

Q4 Validity is unaffected by these choices: each fixed choice yields a valid, possibly looser, certificate; only tightness varies. We fixed l2 on the last hidden layer a priori for all models and datasets, with no per-dataset tuning (DINOv2 is conventionally evaluated with cosine; we still used l2). We will add the requested ablations in revision (normalization, cosine distance, an earlier layer, a prediction-preserving linear reparameterization; feature extraction only, no retraining); a declared family of such choices can be searched validly via the delta/M device of Q2.

Q5 We will fix k independently and report all bound terms for the width sweep, add seeds, regularization strengths, and a matched control penalty for Figure 3, and narrow the double-descent and geometry claims as in W8-W9. Where evidence stops short of a mechanism claim, the text will say so.

Formatting: Thank you; all four will be fixed. The unresolved citation at L474 resolves to Langford and Schapire [2005] (the KL concentration inequality for i.i.d. Bernoulli variables). The abstract's 8.0 pp gap belongs to ResNet-50 (ResNet-18 is 8.3 pp) and will be corrected. The E.5 heading should reference Table 2, not Table 3. "as shown ing" and other typos will be fixed.

Limitations: We will add all five requested statements: the unlabeled-sample requirement and no-prior-influence condition on test inputs; the certified object and representation-independence requirement in the transfer experiments; pre-declaration of all model and evaluation choices, with per-run certificates; the dependence of Q1 on layer, coordinates, normalization, and metric; and the restriction to average classification error under the assumed distribution, excluding shift, robustness, fairness, privacy, and deployment safety.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…