Manuscript Offprint
arXiv:2610.06238Certification-Enhanced Generalization Bounds
Abstract
We investigate the use of formal methods to provide tight and sound generalization bounds for learning algorithms. By casting the traditional notion of algorithmic stability as a specification to be verified, we demonstrate that recent advances in reachability analysis can yield provable bounds on the generalization of a given model and algorithm on a sample dataset. As sample-specific algorithmic stability is insufficient to bound the usual distributional notion of generalization, we develop a novel concentration inequality to connect the sample-specific results of formal certification algorithms to the required distributional analysis for bounding the expected generalization gap. The resulting framework enables the analysis of prior generalization bounds to extend far beyond their original restrictive assumptions. Our approach computes sound bounds on the expected generalization gap in a constant number of algorithm runs without making any analytical assumptions on the algorithm; to achieve non-vacuous bounds we only require that the certified reachable parameter set is bounded — a condition that we do not assume but formally verify. In practice, we demonstrate that our framework provides formal generalization guarantees that are orders of magnitude tighter than alternative sound computational approaches at scales ranging from toy datasets to fine-tuning classification heads on top of modern large language models. While we implement certification-enhanced versions of several well-known stability results, future extensions of our approach will enable tighter bounds and enhanced practical adoption across the spectrum of modern generalization bounds.
1 Introduction
A central aim of statistical learning theory is to characterize the gap between a model's performance on its training data and its performance at deployment. To this end, a substantial body of work has sought to upper-bound this generalization gap through frameworks such as PAC-Bayes analysis [Germain et al., 2013], Rademacher complexity [Bartlett and Mendelson, 2003], and algorithmic stability [Bousquet and Elisseeff, 2002, Hardt et al., 2016]. Tight bounds on the generalization gap serve two complementary purposes: they guide the design of algorithms with improved out-of-sample performance, and they provide practitioners with formal assurances that empirically observed performance will persist after deployment. Yet, as modern machine learning systems increasingly diverge from the analytical regimes for which classical bounds were designed, the assumptions underlying these bounds strain under empirical reality. Bounds that remain faithful to their stated conditions often require restrictive, fine-grained assumptions that limit their practical applicability, while efforts to recover tightness in modern settings increasingly rely on numerical approximations of critical quantities, thus eroding their practical assurances [Kuzborskij and Lampert, 2018, Fan and Lei, 2024].
In this work, we investigate whether recent advances in formal methods can deliver generalization bounds that are simultaneously sound and tight. Our central idea is to recast notions of algorithmic stability as formal specifications amenable to verification by recently developed algorithms [Sosnin
40th Conference on Neural Information Processing Systems (NeurIPS 2026).
et al., 2024]. We focus on three classical variants: uniform stability [Bousquet and Elisseeff, 2002, Hardt et al., 2016], which requires that the loss of the learned hypothesis on an arbitrary instance change by at most a bounded amount under any single-sample substitution to the training set; data-dependent stability [Kuzborskij and Lampert, 2018], which modifies this definition to single-sample substitutions coming from the underlying data distribution; and on-average stability [Shalev-Shwartz et al., 2010], which requires a bound on the expected loss of instances from the data distribution rather than worst-case instance. For each of these notions, we observe that analytically bounding the corresponding stability constant—even for small multi-layer perceptrons—yields vacuous bounds as worst-case reasoning over arbitrary substitutions ignores the structure of the specific algorithm and dataset at hand. While approximations can make bounds non-vacuous, they sacrifice soundness of the analysis making the reliability of estimated bounds questionable.
Soundness is, of course, the raison d'être of formal methods, but existing notions of stability are not directly amenable to off-the-shelf verification tools. We therefore introduce sample-specific analogues of each of the above notions. A sample-specific stability condition asks whether a given algorithm (i.e., architecture and the optimization procedure) satisfies the stability criterion on a particular sampled dataset, rather than uniformly over all possible datasets or a given distribution. We begin by showing that these sample-specific conditions can be formally proven by recent

Figure 1: In various settings our bounds are always-sound, tighter alternatives to existing analytical bounds.
reachability and certification techniques for neural networks. In particular, we instantiate our framework using Abstract Gradient Training (AGT) [Sosnin et al., 2025], which produces provably sound bounds on the parameter-space trajectory under worst-case single-sample perturbations. A salient feature of this formulation is its frugality with respect to assumptions: we make no formal assumptions on the learning algorithm or its loss function. We show, however, that our algorithm requires effective boundedness (Assumption 1) in order for our bounds to be finite.
Sample-specific stability is verifiable, but on its own it does not bound generalization in the classical sense, which requires guarantees that hold over the unknown distribution from which the dataset is drawn. To close this gap, we develop a novel concentration inequality to connect our sample-specific certificates to traditional stability-based generalization bounds. The construction draws inspiration from tools developed in differential privacy [Nissim et al., 2007]. By defining sample-specific k-stability as the stability of the algorithm to k simultaneous substitutions, we obtain a computable, sound proxy for the smoothness of the verification result as a function of the input dataset. This in turn yields a high-probability guarantee that the verified bound holds for any dataset S drawn from the same distribution as the observed sample.
We empirically validate our framework across a diverse suite of settings, ranging from controlled toy problems to image classification benchmarks and the fine-tuning of modern large language model classification heads. Our bounds are orders of magnitude tighter than existing analytically sound alternatives and are applicable to substantially more complex optimization problems. In practice, our bounds are competitive with numerical approximations while retaining provable validity with high probability, rendering them a more trustworthy signal for model selection than bounds whose tightness reflects the noise of numerical approximation.
Hardt et al. [2016], demonstrating that stability can be bounded using properties of the optimization problem.
To tighten bounds and apply them to higher dimensional spaces, research has evolved from uniform (worst-case) measures toward data-dependent stability. Shalev-Shwartz et al. [2010] proposed on-average stability, which relaxes the worst-case requirement on test instances, while Kuzborskij and Lampert [2018] introduced bounds that relax the worst-case dataset requirement thereby producing bounds that only hold for a given data distribution. In parallel, some works have established local bounds, more similar to this work. For instance, Deng et al. [2021] and Fan and Lei [2024] acknowledge that a model's sensitivity is not uniform across the data manifold and can be input sample specific, but are unable to provide provably sound upper-bounds on their notion of sensitivity.
A related branch of work has derived bounds under a similar premise. Soloff et al. [2024] and their extension, Liang et al. [2025], establish assumption free stability guarantees via a bagging algorithm. While the goal of our work and Soloff et al. [2024] is similar, Soloff et al. [2024] can only provide guarantees for specifically designed bagging algorithms as opposed to our less intrusive framework which certifies any learning algorithm (in practice our implementation only applies to gradient-based algorithms). Hence, we consider these works to be complementary rather than strictly competing.
Further Approaches to Generalization Bounds. Seminal results on the generalization gap derive bounds that hold uniformly over a fixed hypothesis class, controlling the worst-case gap through capacity-based notions of complexity such as the VC dimension [Vapnik and Chervonenkis, 1971] or Rademacher complexity [Bartlett and Mendelson, 2003]. While foundational, such bounds are typically vacuous when applied to modern overparameterized models, offering little actionable signal for design or deployment [Dziugaite and Roy, 2017]. Subsequent work has therefore sought bounds that depend more directly on the algorithm and data at hand. Information-theoretic frameworks quantify generalization through the information leak between the training data and the learned hypothesis: Russo and Zou [2016] and Xu and Raginsky [2017] bound the generalization error in terms of the mutual information between the dataset and the algorithm's output, an analysis subsequently extended to noisy learning regimes [Pensia et al., 2018] and sharpened to a conditional mutual-information form by Steinke and Zakynthinou [2020]. The closely related PAC-Bayesian framework [McAllester, 1999, Germain et al., 2013] controls the gap through the KL-divergence between a data-dependent posterior and a fixed prior over hypotheses. While we focus on stability-based bounds in this paper, we hope that a similar approach to the one we take here will be applied to these bounds in the future.
Formal Methods and Abstract Gradient Training. Formal methods in machine learning and artificial intelligence can be used to prove certain safety properties of a given neural network [Katz et al., 2017, Wicker et al., 2018]. In its early stages, formal verification mainly focused on post-hoc verification of trained neural networks [Gehr et al., 2018]. Later, these approaches were applied to networks with intervals over their weights [Wicker et al., 2020, 2024a] or optimize weight-space intervals [Elmecker-Plakolm et al., 2025]. The application of these bounds to gradients [Wicker et al., 2022] enabled these bounds to be applied to training algorithms. Sosnin et al. [2024] introduced Abstract Gradient Training (AGT), which focuses on verification as part of the training process. AGT can be used to bound the worst-case impact of an adversary during training in settings like differential privacy [Wicker et al., 2024b, Ghitu and Wicker, 2026] or data poisoning [Sosnin et al., 2024, 2025]. To propagate valid gradient and sample bounds through a network during training, AGT mostly relies on interval bound propagation (IBP) [Gowal et al., 2019] or CROWN [Zhang et al., 2018]. In this work, we leverage AGT to find worst-case bounds for a neural network under a specific learning algorithm considering a given substitution budget.
3 Preliminaries
Let denote the instance space and a distribution over . A training set is defined as , which a learning algorithm maps to a hypothesis ; throughout, we assume that any algorithmic randomness is realized and fixed independently of . We denote a loss function . Existing bounds commonly assume that this loss is bounded by a known constant or is Lipschitz continuous with a known global constant. Here, we place no convexity, smoothness, or global Lipschitz assumptions on the learning algorithm, as formal verification takes the algorithm as is. In Assumption 1, we state the condition under which the required loss range can itself be certified.
The generalization gap is the difference between the population risk, , and the empirical risk, . We concern ourselves with upper-bounding the expectation of this gap over training samples. Throughout, denotes replacement of by . The Hamming distance counts the coordinates at which two datasets of equal size differ, and . We assume that the expectations used below exist and that all functions and suprema are measurable.
3.1 Standard Generalization Bounds from Stability
Algorithmic stability bounds control the change in loss incurred by applying a learning algorithm to two datasets with a single sample change. We begin with the most restrictive notion, which provides a global guarantee over both datasets and instances, before relaxing these requirements to account for the data distribution.
Definition 1 (Algorithmic Stability). The following quantities describe the stability of A:
• Uniform stability bounds the worst-case loss change over all training datasets, replacements, and test instances: . This gives a distribution-free guarantee [Hardt et al., 2016].
• Data-dependent uniform stability averages over the training distribution while retaining the worst-case replacement and test instance: . The bound is therefore weighted by the training datasets likely under .
• On-average stability also averages over a fresh instance: .
Computing uniform stability requires global bounds over neighbouring training datasets and over the test instance. These optimization problems are usually intractable for deep neural networks, and analytical bounds have consequently relied on properties of the learning algorithm and loss [Hardt et al., 2016, Kuzborskij and Lampert, 2018]. Averaging over D relaxes these requirements, but still requires reasoning over training datasets that have not been observed. We next introduce quantities that can instead be certified from a particular sample.
4 Data-Specific Generalization Bounds
To make notions of stability amenable to certification, we introduce sensitivity measures that depend on the observed dataset S. They naturally extend the population notions in Definition 1: the argument D describes averaging over training samples, whereas the argument S holds the training sample fixed.
Definition 2 (Dataset-Specific Stability). For an observed sample , define:
• Uniform dataset-specific stability fixes in the uniform notion while retaining the worst-case replacement and instance: .
• On-average dataset-specific stability retains the average over test instances from the on-average notion, but bounds every replacement of the observed sample: .
Each quantity is non-negative because replacement by the unchanged example is allowed.
Unlike the population notions, dataset-specific stability depends on the sample at hand. Consequently, its value at a single S does not directly bound the expected generalization gap. A naive but valid approach is to lift it to a population quantity by taking an expectation over S:
Proposition 1 (Moving from Data-Specific to Data-Dependent Stability). By Jensen’s inequality, and . These imply the expected generalization bound for either dataset-specific quantity .
The proposition shows that the dataset-specific quantities are conservative in expectation and can therefore be used to bound the expected gap. In what follows, we write for whichever of these notions is used. Full proofs are deferred to Appendix A.
4.1 Smooth Data-Specific Bounds Yield Generalization Guarantees
However, to use Proposition 1 directly, one would need to compute dataset-specific stability for many observed datasets. This is at least data-inefficient and, in the worst case, infeasible. We therefore bound its expectation by considering how stability changes with the training sample. Inspired by smooth sensitivity from differential privacy [Nissim et al., 2007], we use the following smooth upper bound.
Definition 3 ( -Smooth Dataset-Specific Sensitivity). For , the -smooth stability at is .
Proposition 2 (Properties of ). The function satisfies the following properties:
-
Upper Bound: for all .
-
Log-Lipschitz Continuity: If is positive and finite, .
Provided that one can upper-bound the smooth stability at S, the subject of Section 4.3, we can now obtain a generalization guarantee from the observed dataset.
Theorem 1 (Generalization from Smooth Stability). Let be finite, and fix and independently of . With probability at least ,
A sound upper bound on may be substituted on the right-hand side.
We note that Theorem 1 follows previous work regarding algorithmic stability based generalization bounds concerning the expected gap [Hardt et al., 2016, Bousquet and Elisseeff, 2002] as opposed to the realized gap, which also is of concern in some adjacent research [Fan and Lei, 2024].
The asymptotic behavior of our bound may appear unusual because its exponential prefactor grows with for fixed . However, taking for a constant reduces the prefactor in Eq. 1 to the constant . The asymptotic question therefore reduces to the rate at which vanishes with . We first show that linear growth of stability over neighboring datasets gives a vanishing bound, before considering the stronger rates available under classical stability assumptions.
Proposition 3 (Asymptotic Vanishing under Linear Neighborhood Stability). Suppose the learning algorithm A satisfies, at the observed sample,
where may depend on the algorithm’s hyperparameters but not on . Then, for with any constant , on the confidence event of Theorem 1,
If Eq. 2 holds for every observed sample with the same , this conclusion holds with probability at least .
The controlling radius is approximately : this is where the linear growth of neighborhood stability balances its exponential discount in . Choosing therefore aligns this radius with the scale of the concentration term. Importantly, this proposition does not consider the potential growth due to computational approximation; however, it does provide critical insight into the nature of our analysis relative to existing theory.
Proposition 3 allows us to study our bound under the assumptions of classical stability analyses. In particular, existing analysis often assume for every dataset , they directly imply Eq. 2.
Thus, we do not have to consider the growth in stability which implies the exponential discount is at most one, . Substituting into Theorem 1 gives
on the high probability event. Thus, for fixed c and , the smooth-stability analysis preserves the classical expected-generalization bound up to a multiplicative constant independent of n.
For regularized empirical risk minimization, the uniform-stability results of Bousquet and Elisseeff [2002] establish the required bound over all datasets, with under their regularity assumptions, absorbing the kernel bound into . Their removal-to-replacement conversion changes only the constant. Since uniform stability bounds each of our dataset-specific quantities, Eq. 4 recovers the corresponding expected-generalization rate.
For SGD on smooth convex losses, we can obtain the same conclusion using empirical dataset-specific stability. Under the Lipschitz, smoothness, and step-size assumptions of Hardt et al. [2016]. Their nonexpansive-update argument bounds the loss change from replacing training example i by . Averaging these bounds in counts each update exactly once, giving for every dataset . Consequently, our analysis recovers while retaining the fixed algorithmic randomness used throughout this work.
While adopting the assumptions of prior work allows us to study asymptotic behaviour, our framework also permits sound computation beyond those assumptions, where the same rates are no longer guaranteed. Its purpose is to extend the use of stability analysis to algorithms for which the required analytical constants are unavailable. The computed bounds inherit a vanishing rate when their certificates are sufficiently tight, but their soundness does not require the verification relaxation to satisfy the growth condition in Proposition 3.
4.2 A Parameter-Space Approach to Data-Specific Guarantees
In this section, we focus on the computational aspects of our approach, demonstrating how dataset-specific stability can be bounded through reachability analysis. We begin with the reachable set in parameter space [Sosnin et al., 2025].
Definition 4 (Valid Parameter Space Domain). For an observed dataset and a learning algorithm , a set is a valid parameter space domain at radius if it contains all hypotheses resulting from at most substitutions in . Formally,
where is the exact reachable parameter set. Since no two datasets of size differ in more than coordinates, for every , and we take in that case.
Practical computation of valid parameter domains can be done through abstract interpretation [Wicker et al., 2024b, Sosnin et al., 2024] or optimization over sound relaxations of training [Sosnin et al., 2025]. Recent work also provides exact constructions for particular linear models [Sosnin et al., 2026] and shows how relaxations of learning algorithms can inform algorithmic decisions [Tsay, 2026]. For readers less familiar with this line of work, we provide an introduction to Abstract Gradient Training (AGT) in Appendix B. Two containment lemmas used in the proofs appear in Appendix A.5.
Assumption 1 (Effective Boundedness). There exist finite certified constants such that for every and every for on-average certification, or every for uniform certification. Write .
A radius-n domain contains the output of (with fixed randomness) on every training dataset. Thus, we can soundly cap the resulting loss-difference bounds for an instance (in on-average) or at every instance (for uniform) at . This does not require domains computed independently at different radii to be nested.
Definition 5 (Certified Loss Diameter). Let be a valid parameter space domain and . If contains for all , then is a certified loss diameter at . Where Assumption 1 applies, we cap this width at . The dependence on the observed sample is suppressed.
Proposition 4 (Loss Stability from Parameter Domains). Let be valid and let be obtained as in Definition 5. For any , with and , . In particular, taking bounds the loss change between the observed model and any model reachable within radius .
As with parameter bounds, there is a rich literature on propagating instances through networks whose weights lie in abstract domains [Wicker et al., 2022, Sosnin et al., 2025, Wicker et al., 2024b].
Theorem 2 (Valid Parameter Bounds Yield Stability Bounds). Let the domains be valid and let satisfy Definition 5 under Assumption 1. For . The following choices bound for every with :
-
Population or uniform certification. For , take ; for , take .
-
Validation-set certification. For , let be independent of , with the domains fixed before observing it. With probability at least , simultaneously for all , take
Consequently, . Substitution into Theorem 1 gives an expected generalization bound with probability at least for population and uniform certification, and for validation-set certification.
The above theorem demonstrates how bounds on individual loss values induce bounds on the quantities required for generalization. Validation-set certification uses an independent sample and adds a concentration term. Naively, maximizing over k appears to require a valid parameter domain for every radius and hence linearly many additional training runs. In the following section, we show that a sound bound can instead be obtained with any constant number of parameter-domain computations.
4.3 Bounding -Smooth Sensitivity
We now provide an efficient way to bound smooth stability. Recall that AGT yields a valid domain, . The
Algorithm 1 Efficient upper bound for
1: Input: , radii , . 2: Initialize: with . 3: for do 4: Compute via AGT. 5: Certify the required losses via IBP. 6: for with do 7: . 8: end for 9: end for 10: Result: .
central idea of Algorithm 1 is that a domain computed at radius r also contains every hypothesis reachable at a smaller radius. Its loss certificates can therefore improve several entries of the stability bound at once.
We first obtain the global bound by certifying the radius- domain and its loss range. This supplies the initial value at every index. For each chosen radius , we compute the loss certificates over , intersected with the global domain as above. The quantity is the bound in Theorem 2 with those radius- certificates substituted for the radius- certificates.
For validation-set certification, the estimates must hold simultaneously at the chosen radii. Allocating failure probability to each estimate replaces by inside the logarithm in Eq. 6. The collection may depend on but is fixed before examining validation data. If it is empty, the algorithm simply returns the global bound .
Proposition 5 (Correctness of Algorithm 1). On the validity event of its certificates, Algorithm 1 returns an upper bound on for any and any . It requires at most parameter-domain runs, including the global run used to obtain . Thus any constant number of runs suffices for soundness; the choice of radii affects the tightness of the bound.

True CE Gap
SB - Unif. (ours)
Analytical HRS
SB - DD IBP + Hoeff. (ours)
Empirical HRS
KL Bounds
Correction Impact
Hoeffding Impact
Sound Bound
Unsound Bound
Gap Grid
CE Gap
High
Figure 2: Bound gaps observed on halfmoons dataset. The leftmost and center plots explore our bounds against benchmarks across number of train steps and train size. The rightmost figure plots the cross entropy loss gap alongside a halfmoons sample and a star for the uniform bound. Shaded region displays correction factor impact.
Even a single global run gives a sound bound, while additional local runs can reduce the certificate near the observed sample. The remaining loss certification and postprocessing costs depend on the sample sizes. As with other applications of AGT, over-approximation of the reachable parameters can lead to conservative bounds; an unbounded global certificate gives a vacuous bound. The default follows from Proposition 3, and Appendix C.5 discusses optimization of and the corresponding confidence accounting.
Limitations. While our bounds relax analytical assumptions required by classical stability analyses, their reliance on AGT introduces practical limitations. Importantly, AGT maintains soundness through over-approximation i.e., computing a superset of the true reachable parameter set. As model depth or training time increases, the certified parameter-space domains can become overly conservative, potentially leading to vacuous bounds. This effect can be mitigated in part by larger batch sizes, as observed by Sosnin et al. [2024], and can even be eliminated by more computationally intensive variants of AGT that yield exact parameter-space bounds [Sosnin et al., 2026]. Nonetheless, our bounds will reflect future advances of abstract domain propagation.
A related concern is that optimizing our certificate is guaranteed only to improve the upper bound on the generalization gap. Improvements may therefore reflect reduced AGT approximation artifacts rather than genuine improvements in generalization. Thus, they should be interpreted as certificates affected by both the learning algorithm and the verifier; sound always, but only as tight as the verifier allows. In Tsay [2026], the authors demonstrate how to make relaxation-informed decisions about learning algorithms that can side-step this limitation.
Finally, although our method requires only a constant number of AGT runs, it remains more computationally expensive than closed-form analytical bounds (full AGT complexity can be found in Wicker et al. [2024b], Sosnin et al. [2026]); we report empirical wall-clock times in Appendix C and note they are constant multiples of the standard train time.
5 Experiments
We now validate our generalization framework experimentally on a set of datasets and models ranging from synthetic datasets (halfmoons) to more contemporary LLM classification head fine-tuning. For further experimental details please refer to Appendix C.
Synthetic Datasets. We begin by analyzing the performance of our bounds on the synthetic halfmoons dataset [Pedregosa et al., 2011]. We compare our method to uniform bounds as per Hardt et al. [2016] in numerical and analytical settings; using the initials of the authors we call these bounds HRS bounds. Additionally, we plot the data dependent bounds following Kuzborskij and Lampert [2018] and the true CE gap. In Figure 2, we see left to right that our bounds are consistently tighter than sound analytical bounds and competitive with unsound numerical bounds as we vary the numbers of train steps and train sizes compared to a suite of baselines. The shaded regions under our bounds represent the difference between and the required correction in Theorem 1. We note that the
MNIST

Bounds vs Width
ImageNet
Hidden Dimension Width
of Hidden Layers
Train Steps
True CE Gap
Analytical HRS
Empirical HRS
SB - DD IBP + Hoeff. (ours)
KL Bounds
Correction Impact
Hoeffding Impact
Sound Bound
Unsound Bound
Figure 3: From left to right the plots show (i) the behaviour of our data dependent bounds compared to train steps on MNIST, (ii) bounds across different hidden layer widths, (iii) the same train step plot but on ImageNet, (iv) bound tightness for varying numbers of hidden layers.
Bounds vs Clip Value
Bounds vs Train Steps

True CE Gap
Analytical HRS
Empirical HRS
SB - DD IBP + Hoeff. (ours)
Bounds vs Model Type
KL Bounds
Correction Impact
Hoeffding Impact
Sound Bound
Unsound Bound
Gemma-4-E2B
Qwen3.5-2B
Llama-3.2-1B
Figure 4: The bound behaviour compared to baselines in LLM classification head fine-tuning. The left and center subfigures use Gemma-4-E2B, whereas the rightmost subfigure compares different foundation models.
KL Bound (as per Kuzborskij and Lampert [2018]) consistently violates soundness, essentially just modeling the noise around the error. These findings further support the need for our formally sound bounds. Lastly, we point out that in the rightmost subfigure of Figure 2 we clearly demonstrate the main shortcoming of uniform bounds as the test instance with the globally worst-case loss stability (represented by a yellow star) is usually incurred far away from where data is actually observed.
Image Classification. To evaluate our bounds on a more difficult task we investigate the performance of our bounds on MNIST [LeCun et al., 1998] and ImageNet [Russakovsky et al., 2015], problems where we train a small neural network and a classification head on top of a feature extractor for MNIST and a ResNet18 [He et al., 2015] for ImageNet.
In Figure 3, we show the behavior of our data-dependent, on-average bound on MNIST in terms of train steps and model width, compared to various baselines similar to the planar experiments. Additionally, the two figures on the right, show the bound performance in terms of model depth and number of train steps on ImageNet. We note that our bounds become looser with the depth of the underlying model, which is an inherent characteristic of interval bound propagation [Sosnin et al., 2025].
LLM Fine-tuning. We investigate the performance of our bounds when fine-tuning a classification head on top of a large language model on the Twitter hatespeech dataset [Davidson et al., 2017]. We evaluate our bounds on a model trained on the embeddings of different LLMs (Gemma-4-E2B [Google DeepMind, 2026], Qwen-3.5-2B [Qwen Team, 2026, Yang et al., 2025], Llama-3.2-1B [Dubey et al., 2024, Meta, 2024]) in the binary classification task of hate/non-hate. Figure 4 once again shows that our bounds scale to more complex settings as well, maintaining soundness and reasonable tightness. In this suite of experiments, we note the behavior under changing clip values (e.g., gamma values for gradient clipping during training) and observe that smaller clip values, logically, yield tighter bounds.
5.1 Ablations
In Figure 5 on the very left, we see that with increasing the number of of k-sensitivity values evaluated (with each k being a random sample), that our bound tighten as expected. The middle figure studies the asymptotic behavior of our bounds as , which we expect to decrease at a rate of where n is the number of training samples, recovering asymptotic patterns discussed in Proposition 3. Lastly, we observe optimal beta values for increasing the sample sizes in the rightmost subfigure where we see that as sample size increases, the optimal beta decreases.
Bounds vs # K Indices

Beta Bound Decay
Betas vs Train Size
Figure 5: Small ablations on different properties of interest. Left to right: (i) investigation of bound tightness for increasing numbers of k evaluations in our practical algorithm, (ii) asymptotic bound behaviour as where N is the sample size (excl. correction factor), and (iii) optimal beta values for increasing sample sizes.
6 Conclusion
We introduce a certification-enhanced framework for deriving sound, sample-specific generalization bounds from algorithmic stability. By recasting stability as a formal specification and using reachability analysis to certify the effect of dataset perturbations on the training trajectory, our approach extends classical stability-based guarantees beyond the restrictive analytical regimes in which they are typically applicable. The accompanying concentration analysis lifts these sample-specific certificates to high-probability distributional guarantees, while our practical algorithm computes the resulting bounds using only a constant number of certification runs. Across synthetic, image-classification, and language-model classification head fine-tuning tasks, the resulting bounds are consistently sound and substantially tighter than existing sound alternatives. These results suggest that formal certification can serve not only as a tool for post hoc verification, but also as a principled mechanism for producing rigorous and practically informative generalization guarantees for modern learning algorithms.
While we have instantiated our framework for three classical notions of stability, the fundamental idea of using verification techniques to compute the generalization gaps is not restricted to algorithmic stability. Natural extensions of this line of work could consider deriving similar bounds for PAC-Bayes or information theoretic bounds. Additionally, exploring bounding the realised gap, , as opposed to the expected gap, may be of greater practical relevance.
References
Peter L. Bartlett and Shahar Mendelson. Rademacher and gaussian complexities: Risk bounds and structural results. J. Mach. Learn. Res., 3:463–482, 2003. URL https://api.semanticscholar.org/CorpusID:463216.
Olivier Bousquet and André Elisseeff. Stability and generalization. Journal of machine learning research, 2(Mar):499–526, 2002.
Olivier Bousquet, Yegor Klochkov, and Nikita Zhivotovskiy. Sharper bounds for uniformly stable algorithms. In Conference on Learning Theory, pages 610–626. PMLR, 2020.
Thomas Davidson, Dana Warmsley, Michael Macy, and Ingmar Weber. Automated hate speech detection and the problem of offensive language, 2017. URL https://arxiv.org/abs/1703.04009.
Zhun Deng, Hangfeng He, and Weijie J. Su. Toward better generalization bounds with locally elastic stability, 2021. URL https://arxiv.org/abs/2010.13988.
Abhimanyu Dubey et al. The llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024. URL https://arxiv.org/abs/2407.21783.
Gintare Karolina Dziugaite and Daniel M. Roy. Computing nonvacuous generalization bounds for deep (stochastic) neural networks with many more parameters than training data, 2017. URL https://arxiv.org/abs/1703.11008.
Leo Elmecker-Plakolm, Pierre Fasterling, Philip Sosnin, Calvin Tsay, and Matthew Wicker. Provably safe model updates. arXiv preprint arXiv:2512.01899, 2025.
Jun Fan and Yunwen Lei. High-probability generalization bounds for pointwise uniformly stable algorithms. Applied and Computational Harmonic Analysis, 70:101632, 2024.
Timon Gehr, Matthew Mirman, Dana Drachsler-Cohen, Petar Tsankov, Swarat Chaudhuri, and Martin Vechev. Ai2: Safety and robustness certification of neural networks with abstract interpretation. In 2018 IEEE symposium on security and privacy (SP), pages 3–18. IEEE, 2018.
Pascal Germain, Amaury Habrard, François Laviolette, and Emilie Morvant. A pac-bayesian approach for domain adaptation with specialization to linear classifiers. In Sanjoy Dasgupta and David McAllester, editors, Proceedings of the 30th International Conference on Machine Learning, volume 28 of Proceedings of Machine Learning Research, pages 738–746, Atlanta, Georgia, USA, 17–19 Jun 2013. PMLR. URL https://proceedings.mlr.press/v28/germain13.html.
Mihnea Ghitu and Matthew Wicker. Certification-based differentially private learning. arXiv preprint arXiv:2609.39629, 2026.
Google DeepMind. Gemma 4 E2B. https://huggingface.co/google/gemma-4-E2B, 2026. Accessed: 2026.
Sven Gowal, Krishnamurthy Dvijotham, Robert Stanforth, Rudy Bunel, Chongli Qin, Jonathan Uesato, Relja Arandjelovic, Timothy Mann, and Pushmeet Kohli. On the effectiveness of interval bound propagation for training verifiably robust models, 2019. URL https://arxiv.org/abs/1810.12715.
Moritz Hardt, Ben Recht, and Yoram Singer. Train faster, generalize better: Stability of stochastic gradient descent. In International conference on machine learning, pages 1225–1234. PMLR, 2016.
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition, 2015. URL https://arxiv.org/abs/1512.03385.
Guy Katz, Clark Barrett, David L Dill, Kyle Julian, and Mykel J Kochenderfer. Reluplex: An efficient smt solver for verifying deep neural networks. In International conference on computer aided verification, pages 97–117. Springer, 2017.
Ilja Kuzborskij and Christoph Lampert. Data-dependent stability of stochastic gradient descent. In international conference on machine learning, pages 2815–2824. PMLR, 2018.
Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
Ruiting Liang, Jake A. Soloff, Rina Foygel Barber, and Rebecca Willett. Assumption-free stability for ranking problems, 2025. URL https://arxiv.org/abs/2506.02257.
David A. McAllester. Some pac-bayesian theorems. Machine Learning, 37(3):355–363, 1999. doi:10.1023/A:1007618624809. URL https://doi.org/10.1023/A:1007618624809.
Meta. Llama-3.2-1b. https://huggingface.co/meta-llama/Llama-3.2-1B, 2024.
Kobbi Nissim, Sofya Raskhodnikova, and Adam Smith. Smooth sensitivity and sampling in private data analysis. In Proceedings of the Thirty-Ninth Annual ACM Symposium on Theory of Computing, STOC '07, page 75–84, New York, NY, USA, 2007. Association for Computing Machinery. ISBN 9781595936318. doi: 10.1145/1250790.1250803. URL https://doi.org/10.1145/1250790.1250803.
Fabian Pedregosa, Gaël Varoquaux, Alexandre Gramfort, Vincent Michel, Bertrand Thirion, Olivier Grisel, Mathieu Blondel, Peter Prettenhofer, Ron Weiss, Vincent Dubourg, Jake Vanderplas, Alexandre Passos, David Cournapeau, Matthieu Brucher, Matthieu Perrot, and Édouard Duchesnay. Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12(85):2825–2830, 2011. URL http://jmlr.org/papers/v12/pedregosa11a.html.
Ankit Pensia, Varun Jog, and Po-Ling Loh. Generalization error bounds for noisy, iterative algorithms, 2018. URL https://arxiv.org/abs/1801.04295.
Qwen Team. Qwen3.5: Towards native multimodal agents, February 2026. URL https://qwen.ai/blog?id=qwen3.5.
Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. Imagenet large scale visual recognition challenge, 2015. URL https://arxiv.org/abs/1409.0575.
Daniel Russo and James Zou. Controlling bias in adaptive data analysis using information theory. In Arthur Gretton and Christian C. Robert, editors, Proceedings of the 19th International Conference on Artificial Intelligence and Statistics, volume 51 of Proceedings of Machine Learning Research, pages 1232–1240, Cadiz, Spain, 09–11 May 2016. PMLR. URL https://proceedings.mlr.press/v51/russo16.html.
Shai Shalev-Shwartz, Ohad Shamir, Nathan Srebro, and Karthik Sridharan. Learnability, stability and uniform convergence. Journal of Machine Learning Research, 11(90):2635–2670, 2010. URL http://jmlr.org/papers/v11/shalev-shwartz10a.html.
Jake A. Soloff, Rina Foygel Barber, and Rebecca Willett. Bagging provides assumption-free stability. Journal of Machine Learning Research, 25(131):1–35, 2024. URL http://jmlr.org/papers/v25/23-0536.html.
Philip Sosnin, Mark N Müller, Maximilian Baader, Calvin Tsay, and Matthew Wicker. Certified robustness to data poisoning in gradient-based training. arXiv preprint arXiv:2406.05670, 2024.
Philip Sosnin, Matthew Wicker, Josh Collyer, and Calvin Tsay. Abstract gradient training: A unified certification framework for data poisoning, unlearning, and differential privacy. arXiv preprint arXiv:2511.09400, 2025.
Philip Sosnin, Jodie Knapp, Fraser Kennedy, Josh Collyer, and Calvin Tsay. Exact certification of data-poisoning attacks using mixed-integer programming. arXiv preprint arXiv:2602.16944, 2026.
Thomas Steinke and Lydia Zakynthinou. Reasoning about generalization via conditional mutual information, 2020. URL https://arxiv.org/abs/2001.09122.
Calvin Tsay. Relaxation-informed training of neural network surrogate models. arXiv preprint arXiv:2604.22746, 2026.
V. N. Vapnik and A. Ya. Chervonenkis. On the uniform convergence of relative frequencies of events to their probabilities. Theory of Probability & Its Applications, 16(2):264–280, 1971. doi:10.1137/1116025. URL https://doi.org/10.1137/1116025.
Matthew Wicker, Xiaowei Huang, and Marta Kwiatkowska. Feature-guided black-box safety testing of deep neural networks. In International Conference on Tools and Algorithms for the Construction and Analysis of Systems, pages 408–426. Springer, 2018.
Matthew Wicker, Luca Laurenti, Andrea Patane, and Marta Kwiatkowska. Probabilistic safety for bayesian neural networks. In Conference on uncertainty in artificial intelligence, pages 1198–1207. PMLR, 2020.
Matthew Wicker, Juyeon Heo, Luca Costabello, and Adrian Weller. Robust explanation constraints for neural networks. arXiv preprint arXiv:2212.08507, 2022.
Matthew Wicker, Luca Laurenti, Andrea Patane, Nicola Paoletti, Alessandro Abate, and Marta Kwiatkowska. Probabilistic reach-avoid for bayesian neural networks. Artificial Intelligence, 334:104132, 2024a.
Matthew Wicker, Philip Sosnin, Igor Shilov, Adrianna Janik, Mark N Müller, Yves-Alexandre De Montjoye, Adrian Weller, and Calvin Tsay. Certification for differentially private prediction in gradient-based training. arXiv preprint arXiv:2406.13433, 2024b.
Aolin Xu and Maxim Raginsky. Information-theoretic analysis of generalization capability of learning algorithms, 2017. URL https://arxiv.org/abs/1705.07809.
An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, Chujie Zheng, Dayiheng Liu, Fan Zhou, Fei Huang, Feng Hu, Hao Ge, Haoran Wei, Huan Lin, Jialong Tang, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jing Zhou, Jingren Zhou, Junyang Lin, Kai Dang, Keqin Bao, Kexin Yang, Le Yu, Lianghao Deng, Mei Li, Mingfeng Xue, Mingze Li, Pei Zhang, Peng Wang, Qin Zhu, Rui Men, Ruize Gao, Shixuan Liu, Shuang Luo, Tianhao Li, Tianyi Tang, Wenbiao Yin, Xingzhang Ren, Xinyu Wang, Xinyu Zhang, Xuancheng Ren, Yang Fan, Yang Su, Yichang Zhang, Yinger Zhang, Yu Wan, Yuqiong Liu, Zekun Wang, Zeyu Cui, Zhenru Zhang, Zhipeng Zhou, and Zihan Qiu. Qwen3 technical report, 2025. URL https://arxiv.org/abs/2505.09388.
Huan Zhang, Tsui-Wei Weng, Pin-Yu Chen, Cho-Jui Hsieh, and Luca Daniel. Efficient neural network robustness certification with general activation functions, 2018. URL https://arxiv.org/abs/1811.00866.
A Proofs
A.1 Proof of Proposition 1
Proof. Let be independent of , and let denote replacement of by . Exchanging and gives
For the first identity, has the same expectation as . For the second, has law and is independent of , so its expected loss at is the expected population risk.
The average in Eq. 7 is at most its largest summand, . Bounding each signed loss change by its absolute value, and then taking the supremum over the replacement and test instance, also bounds the expected gap by .
For the on-average case, replace the particular replacement point by a supremum and apply Jensen's inequality to the maximum over i:
Here is independent of , whereas in the supremum ranges over all admissible replacements. For the uniform case, Jensen's inequality for the supremum gives
Finally, taking the supremum over in each summand of Eq. 8 gives . Combining these observations proves the proposition. The inequalities also hold as extended upper bounds when a stability quantity is infinite and the expected gap exists.
A.2 Proof of Proposition 2
Proof. The upper-bound property follows by taking in Definition 3. For the second property, the triangle inequality gives , and hence
Taking the supremum over gives . Interchanging and and taking logarithms therefore yields whenever the envelope is positive and finite.
We record the boundary cases needed in the concentration proof. Since the Hamming diameter is , the same inequalities show that positivity and finiteness at one dataset imply a uniform positive lower bound and a finite upper bound everywhere. If at one dataset, every term defining it is nonnegative and has a strictly positive weight, so for every . Thus the envelope is identically zero in this case.
A.3 Proof of Theorem 1
Proof. Recalling Propositions 1 and 2, we have
If vanishes, this proves the stated upper bound of zero. Otherwise let . As established in the preceding proof, is bounded and changing one coordinate of changes by at most .
McDiarmid’s inequality bounds the lower tail: . Setting the right-hand side to shows that, with probability at least ,
The corresponding exponential-moment bound is . To see this directly, reveal the independent coordinates of in order and form the Doob martingale for . Each increment has conditional mean zero and conditional range of length at most . Hoeffding’s lemma bounds its conditional exponential moment by ; iterating conditional expectations proves the claim.
Combining the moment bound with Eq. 10 gives
Substituting into Eq. 9 completes the proof. Replacing by a sound numerical upper bound only enlarges the right-hand side; the numerical bound need not itself be smooth.
A.4 Proof of Proposition 3
Proof. For an observed sample satisfying Eq. 2, group the datasets in Definition 3 by their Hamming distance from . This gives
The function is maximized at . We enlarged the optimization domain to all , so the inequality holds for every . At , it becomes . The prefactor in Theorem 1 reduces to , which gives Eq. 3 on that confidence event. Both and are bounded independently of for fixed .
A.5 Containment Properties of Parameter Domains
Lemma 1 (Neighbor Containment of Parameter Domains). If , then for .
Proof. Let . The triangle inequality gives . Since also , the hypothesis belongs to the set on the right.
Lemma 2 (Monotonicity of Valid Parameter Domains in ). If is valid at radius , it is also valid at every radius .
Proof. Every with also satisfies . Consequently, . This shows that a computed domain can be reused at a smaller radius; it does not require independently computed domains to be nested.
A.6 Proof of Proposition 4
Proof. Fix , and let , be within radius of . By validity of the parameter domain, , . Both losses therefore lie in , so their absolute difference is at most the width of this interval. After intersection with the global domain, Assumption 1 also bounds the difference by on the relevant instance domain. Taking the smaller of the two bounds gives and proves the claim. The special case follows because .
A.7 Proof of Theorem 2
Proof. Fix and with . Let denote replacement of its th coordinate by . The triangle inequality, with the Hamming diameter , gives
The inclusion is preserved after intersection with the global domain.
Population and uniform certification. For each relevant , Proposition 4 gives . Taking the supremum over replacements, averaging over , and maximizing over proves . Taking suprema over , gives the uniform case.
Validation-set certification. Condition on and its parameter domains. For each radius , the function is fixed and takes values in on the support of . Hoeffding's inequality therefore gives
with probability at least . Set and take a union bound over . Since the population stability is also bounded by , this proves the capped estimate in Eq. 6 for all required radii.
If M = 0, all these statements hold deterministically.
Smooth stability and confidence. On the validity event of the selected certificates, every satisfies . Therefore
Substituting into Theorem 1 gives the claimed confidence. In validation mode, the two events fail with probability at most and , so their intersection has probability at least . Independence between these events is not required. The validation bounds hold conditionally for every S, and thus also jointly over training and validation draws.
A.8 Proof of Proposition 5
Proof. For the proof, let . We show the invariant for each on the certificate-validity event. Initially , which is valid by effective boundedness.
Consider a chosen radius and any index with . Lemma 2 permits use of wherever the proof of Theorem 2 used . Consequently, the corresponding still bounds . Taking the minimum of two valid upper bounds preserves the invariant, while unvisited indices retain .
At termination, . The argument uses containment of exact reachable sets, without assuming that independently computed certificates are monotone. There is one global run at radius and one run at each additional chosen radius, so the total is at most , reusing the global domain when .
For validation-set certification, the estimates are made simultaneous using failure probability per chosen radius. Combining this event with the fixed- concentration event gives the confidence in Theorem 2. If is empty, the deterministic fallback suffices.
B A Brief Introduction to Abstract Gradient Training
This appendix provides a self-contained introduction to Abstract Gradient Training (AGT) [Sosnin et al., 2024, 2025] for readers unfamiliar with reachability analysis in parameter space. Our goal is to convey enough intuition for the reader to understand how the valid parameter space domains used in Section 4 are constructed, and how the per-instance loss bounds in Proposition 4 are obtained from them. We refer the reader to Sosnin et al. [2025] for a comprehensive treatment.
B.1 Background: Interval Bound Propagation
The fundamental primitive underlying AGT is interval bound propagation (IBP) [Gowal et al., 2019], a form of abstract interpretation that tracks element-wise lower and upper bounds on quantities of interest as they flow through a computation. Given an input represented by an interval and an affine map , IBP computes sound bounds on the output by separating the positive and negative parts of :
where and are taken element-wise. For a monotonic activation (e.g., ReLU), bounds propagate element-wise: and . Iterating this procedure through a network yields sound, if generally loose, bounds on every intermediate activation and on the final output. Tighter relaxations such as CROWN [Zhang et al., 2018] replace the activation step with linear upper and lower envelopes; we use IBP throughout for clarity, but the framework is agnostic to the choice of relaxation.
B.2 From Input-Space to Parameter-Space Reachability
Standard verification of neural networks [Gehr et al., 2018, Katz et al., 2017] treats the network’s weights as fixed and reasons about reachable outputs given an interval over inputs. AGT inverts this perspective. For a fixed observed dataset S and a learning algorithm A, AGT treats the weights themselves as the abstract object and reasons about the set of all parameter trajectories that the algorithm could produce when run on any dataset within Hamming distance k of S.
Concretely, let denote the network parameters at optimization step , and let be the gradient on a (possibly mini-)batch . AGT maintains, at every step , an interval that soundly contains for every within -Hamming distance of :
This containment is the parameter-space analogue of soundness in standard verification. The set
returned at the final step T is the valid parameter space domain of Definition 4.
B.3 From Parameter Bounds to Loss Bounds
The parameter-space domain is, on its own, a guarantee about weights; what we ultimately need are guarantees about losses on test instances (cf. Proposition 4). This is exactly the setting standard verification was designed for: with playing the role of an abstract weight set, we propagate a fixed test input forward through the network using IBP, treating the weights as intervals at each layer. This yields sound bounds on for every , realising Definition 5 with after the global-range intersection described in the main text. Since both and lie in this interval for any , we obtain , and a fortiori for any , within Hamming distance of .
B.4 Properties of AGT
Three properties of AGT are essential. Soundness: provably contains for every within Hamming distance of , so any quantity bounded over is bounded over the relevant set of trained models without exception. Algorithm specificity: because the bounds are propagated through the actual optimization trajectory, reflects the structure of the specific algorithm and dataset rather than worst-case analytical reasoning over arbitrary algorithms. Tractability: AGT propagates bounds through the training steps, and the procedure scales to the model sizes considered in our experiments, including the LLM classification heads of Section 5. The empirical wall-clock overhead is reported in Table 2.
B.5 Realized Gap
Corollary 1 (Realized-gap certificate). Suppose Assumption 1 holds and A is deterministic. From the single k = n certification run define
the certified loss diameter and range over . Since both outputs of any neighbouring pair lie in , these quantities are admissible under any distribution over . Let and . Then each of the following holds with probability at least over the draw of the training sample; in particular, it applies to the observed sample .
Proof sketch. The gap has bounded differences , where and are the deterministic minimal analogues of and over (finite by Assumption 1(ii)): the population term, , moves by at most ; the empirical term by, , at most , its replaced summand comparing losses at different evaluation points and hence bounded only by the range. With by exchangeability, McDiarmid's inequality gives the proven value for , and by the beta smooth bounds established in this work, and surely by AGT soundness, so the certified constants substitute on the same event. Full proof (deterministic algorithms) in the revised appendix.
Bousquet et al. [2020] establish bounds that can be used to tighten the result in Equation 12 but this remains future work.
C Experimental Details
Here we report some experimental details and hyperparameters used. The code is to be made public upon publication of this work. All experiments were run on two NVIDIA L40 GPUs. In addition we report wall clock times for k computation in Table 2 and additional experiment-level wall clock times associated with Figures 6, 7, and 8.
C.1 Planar
All halfmoons experiments use a simple MLP for classification purposes with the following hyperparameters for train step and train size sweeps found in Table 3.
We note that arrays of length greater than one indicate that this dimension was varied across test runs for a given figure. Additionally, we point out that n_cells_per_dim corresponds to the number of cells per dimension used for exhausting the input space for our uniform stable bounds (i.e., n_cells_per_dim = 100 implies cells to be evaluated).
For the final subfigure, we evaluate cells.
C.2 Image Classification
The two tasks used in image classification were odd/even classification for MNIST and animal/non-animal classification for ImageNet. The animal classes used were Chihuahua, Golden Retriever, Tabby, Goldfinch, and Bald Eagle, whereas the non-animal samples consisted of Beach wagon, Sports
Table 1: Hyperparameter configurations for ablations in Figure 5. Swept values in bold.
| Hyperparameter | TRAIN_SIZE sweep (panels 2–3) | all-k run (panel 1) |
|---|---|---|
| Noise | 0.3 | 0.3 |
| Train size | 10, 25, 50, 100, 200, 400, 750, 1000, 1250, 1500, 2000, 3200, 5000, 10000 | 2500 |
| Validation size | 1000 | 1000 |
| Training steps | 200 | 200 |
| Learning rate | 0.05 | 0.05 |
| Clipping bound | 0.1 | 0.1 |
| Hidden width | 16 | 16 |
| Confidence | 0.05 | 0.05 |
car, Minivan, Airliner, and Tank. Left to right, the hyperparameters used can be found in Tables 4 and 5.
C.3 LLM Fine-tuning
LLM fine-tuning consisted of fine-tuning a classification head on the embeddings produced by different open-source foundation models. The specific task at hand was hate/no-hate speech classification. The first two experiments in Figure 4 use Gemma-4-E2B as the underlying model. The hyperparameters can be found in Tables 6 and 7.
C.4 Ablations
All ablations in Figure 5 are run on the halfmoons dataset, the relevant hyperparameters corresponding to Figure 5 are in Table 1.
Table 2: Wall clock times in seconds for computing bounds based on 100 values of , for a model trained on 500 sample points over 100 steps, standard deviation reported over 10 runs.
| Setting | Mean [s] | Std [s] |
|---|---|---|
| Halfmoons – Uniform | 3.4878 | 0.1041 |
| Halfmoons – DD | 2.5993 | 0.0904 |
| MNIST – DD | 2.5743 | 0.1908 |
| ImageNet – DD | 2.5233 | 0.1217 |
| LLM – DD | 1.9881 | 0.0298 |
C.5 Selecting the Decay Parameter
The decay parameter affects tightness but does not require additional parameter-domain certification. Theorem 1 holds for every fixed , chosen independently of the sample. The schedule , and in particular , is a search-free choice motivated by Proposition 3.
The implementation can optimize by inexpensive postprocessing of the profile . For , the logarithm of the full computed generalization bound is
If every , the bound is zero for every . Otherwise, equation 13 is convex. On a segment where index is active, its stationary point is
Table 3: Half-moons sweeps over train size and train steps. Swept values are in bold.
| Hyperparameter | TRAIN_SIZE sweep | TRAIN_STEPS sweep |
|---|---|---|
| Noise | 0.325, 50, 100, 200, | 0.3 |
| Train size | 400, 800, 1600, 3200 | 1600 |
| Validation size | 1000 | 1000 |
| 10, 50, 100, 200, | ||
| Training steps (full batch) | 1000 | 500, 1000, 2500 |
| Learning rate | 0.1 | 0.05 |
| Clipping bound | 0.1 | 0.1 |
| Hidden width | 16 | 16 |
| Confidence | 0.05 | 0.05 |
| EB confidence (validation mode) | 0.05 | 0.05 |
Table 4: MNIST sweeps over train steps and hidden layer dimension. The certified model is an MLP head over MNIST pixels projected onto their leading 50 principal components. Swept values are in bold.
| Hyperparameter | TRAIN_STEPS sweep | WIDTH sweep |
|---|---|---|
| Train size | 500 | 500 |
| Validation size | 1000 | 1000 |
| Training steps | 10, 50, 100, 200, 500, 1000 | 200 |
| Learning rate | 0.05 | 0.05 |
| Clipping bound | 0.1 | 0.1 |
| Hidden width | 16 | 4, 8, 16, 32 |
| Hidden layers | 1 | 1 |
| Confidence | 0.05 | 0.05 |
This is a candidate only when it is positive and lies in that index's active segment. A minimizer can also occur at a kink between active indices or at the boundary of a prescribed search interval; the stationary-point formula alone is not a global solution.
A confidence guarantee for a choice made after observing requires simultaneous validity. One simple protocol is to specify a finite grid of size in advance, apply the concentration theorem at failure probability for each grid point, and select the smallest resulting bound. A union bound gives failure probability at most . In validation mode, the same simultaneous validation certificate event can be reused across the grid, giving total failure probability at most . The corrected concentration prefactor must also be used in equation 13. Continuous line search remains a numerical optimization of the displayed expression; its statistical guarantee requires a corresponding simultaneous argument.
C.6 Result Reproducibility
In a subset of experiments, we show that our method is generally stable and results are reproducible by running them across 5 different seeds and then plotting averages and error bars showing the standard deviation. Please refer to Figures 6, 7, and 8 for further details.
C.7 HRS Bound Failure Modes
A concrete example of how our bounds are less restrictive in terms of required assumptions is when looking at the bounds vs the learning rate. In Figure 9 we observe the point at which for a -smooth loss function no longer holds technically rendering HRS bounds invalid for larger learning rates.
Table 5: ImageNet sweeps over model depth and train steps. The certified model is an MLP head over frozen ResNet-18 features. Swept values are in bold.
| Hyperparameter | DEPTH sweep | TRAIN_STEPS sweep |
|---|---|---|
| Train size | 500 | 500 |
| Validation size | 1000 | 1000 |
| Training steps | 200 | 10, 50, 100, 200, 500, 1000 |
| Learning rate | 0.05 | 0.05 |
| Clipping bound | 0.1 | 0.1 |
| Hidden width | 16 | 16 |
| Hidden layers | 1, 2, 3, 4, 5 | 1 |
| Confidence | 0.05 | 0.05 |
Table 6: Hyperparameters for gamma value and train step sweeps. The certified model is a small MLP head over frozen LLM embeddings. Swept values are in bold.
| Hyperparameter | CLIP sweep | TRAIN_STEPS sweep |
|---|---|---|
| Train size | 500 | 500 |
| Validation size | 500 | 500 |
| Test size | 500 | 500 |
| Training steps | 100 | 5, 10, 25, 50, 100, 200, 400 |
| Learning rate | 0.05 | 0.05 |
| Clipping bound | 0.01, 0.05, 0.1, 0.5, 1.0, 2.0 | 0.1 |
| Hidden width | 16 | 16 |
| Hidden layers | 1 | 1 |
| Confidence | 0.05 | 0.05 |
D Further Related Works
D.1 Assumption-Free Stability
There exists a line of literature that is reasonably similar to our work in its goal. More specifically, Soloff et al. [2024] and its extension to ranking problems, Liang et al. [2025], also aim to bound the generalization error of an algorithm with a limited amount of assumptions. They mainly achieve this using different bagging algorithms and placing some assumptions on the sampling distribution to generate individual bags as opposed to the learning algorithm itself.
Bounds vs Model Type (15 seeds)

Figure 6: LLM model type experiment across 5 different seeds. Lines show the average with error bars representing one standard deviation. Run time across 15 runs [mean ± std]: s.

Figure 7: LLM clip value experiment across 5 different seeds. Lines show the average with error bars representing one standard deviation. Run time across 5 runs [mean ± std]: s.

Figure 8: ImageNet model depth experiment across 5 different seeds. Lines show the average with error bars representing one standard deviation. Run time across 5 runs [mean ± std]: s.
Table 7: Hyperparameter configuration for embedding-model comparison.
| Hyperparameter | Value |
|---|---|
| Train / val / test size | 500 / 500 / 500 |
| Training steps | 100 |
| Learning rate | 0.05 |
| Clipping bound | 0.1 |
| Hidden width | 16 |
| Hidden layers | 1 |
| Confidence | 0.05 |

Learning Rate (Log)
| True CE Gap | SB - DD IBP + Hoeff. (ours) | |
|---|---|---|
| Analytical HRS | KL Bounds | ★ Sound Bound |
| Empirical HRS | Correction Impact | ○ Unsound Bound |
| SB - Unif. (ours) | //// Hoeffding Impact |
Figure 9: Evaluating generalisation bounds over different learning rates. The vertical line shows there point where HRS bounds violate their requirement of for a -smooth loss function.
However, it is important to note that Soloff et al. [2024] and Liang et al. [2025] primarily focus on a slightly different notion of algorithmic stability, leave one out stability, which compares a dataset with one of size , whereas our setting compares datasets of the same size. Soloff et al. [2024] state their bound of interest as
where is the dataset without the sample at index as opposed to our quantity of interest which is based on where the sample at index is replaced with any data point.
While Soloff et al. [2024] obtain bounds with few assumptions on the learning algorithm, there are still a suite of assumptions placed on the sampling distribution used to sample the individual "bags".