Manuscript Offprint

arXiv:2610.06238

Certification-Enhanced Generalization Bounds

Leo Elmecker-Plakolm, Matthew Wicker

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

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.

References (65)