Manuscript Offprint
arXiv:2610.21340Dimension-Free PAC-Bayes Generalization for Deep Neural Networks via Dirichlet Processes
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Classical PAC-Bayesian generalization theory places prior distributions over Euclidean parameter space , causing relative entropy to scale with network dimension . For modern overparameterized neural networks where , this parameter-counting dependency yields vacuous generalization bounds (). In this work, we resolve this barrier by shifting prior specification from internal parameters to the non-parametric space of data distributions via a Dirichlet Process (DP), , inducing parameter distributions through push-forward measures under the learning algorithm. By the Data Processing Inequality, parameter-space relative entropy is strictly bounded by the data-space DP divergence, which we evaluate in exact closed form using Digamma functions. The resulting PAC-Bayesian certificate is strictly invariant to network parameter count , width, and depth. On intrinsic -dimensional submanifolds, optimal partition scaling achieves the minimax non-parametric rate . Across vision architectures scaling up to 4.2 million parameters ( to ) on the full MNIST benchmark, while classical weight-space bounds scale past (becoming vacuous), our data-space DP-PAC-Bayes certificate remains stable, non-vacuous, and certified at .
1 Introduction
Quantifying epistemic uncertainty and explaining why heavily overparameterized deep networks generalize to unseen test distributions are two of the most critical open challenges in machine learning (Bartlett et al., 2017; Neyshabur et al., 2018; Dziugaite & Roy, 2017; Fortuin, 2022). In safety-critical applications, deep learning systems must not only produce accurate predictions on the training support, but also exhibit faithful epistemic uncertainty by signaling high uncertainty in data voids and out-of-distribution (OOD) regions.
The standard Bayesian paradigm seeks to capture this uncertainty through Bayesian Neural Networks (BNNs) (Neal, 1995; Blundell et al., 2015), placing a prior distribution over the network parameters and inferring a posterior . Concurrently, the PAC-Bayesian framework (McAllester, 1999; Catoni, 2007; Maurer, 2004) establishes finite-sample generalization certificates for randomized predictors, upper-bounding population risk via the empirical risk and the Kullback–Leibler divergence :
Because Equation (1) holds universally for any data-dependent posterior , it has long been viewed as the premier theoretical tool for certifying deep neural network generalization (Dziugaite & Roy, 2017; Alquier, 2024).
Structural Limitations of Weight-Space BNNs. Despite extensive research, classical weight-space BNNs face two fundamental structural limitations:
-
Geometric and Functional Misalignment: Placing isotropic Gaussian priors on network weights is disconnected from the functional geometry of the task (Fortuin, 2022). Neural networks exhibit extensive permutation symmetries (! distinct parameter vectors compute the identical input-output function), and weight perturbations do not translate into semantically meaningful changes in functional space. Crucially, weight-space priors lack spatial awareness: they cannot distinguish between regions densely supported by training data and unobserved cavity voids, frequently causing epistemic uncertainty to collapse or become miscalibrated.
-
Parameter-Dependent Vacuity in Deep Architectures: When deep networks compose non-linear activations across L layers, parameter perturbations are amplified multiplicatively throughout the computational graph (Bartlett et al., 2017). To ensure that the randomized predictor preserves acceptable training accuracy, the tolerable posterior perturbation variance must shrink exponentially with depth, for layer width W. In parameter space, this causes the relative entropy to scale as:
For modern architectures with parameters, Equation (2) yields relative entropies exceeding millions of nats. When substituted into Equation (1), the resulting generalization certificates exceed 100% (often > 1,000%), rendering classical weight-space PAC-Bayes vacuous in overparameterized regimes.
Core Thesis: Formulating Epistemic Priors in Data Space. We argue that this dimensional scaling barrier is not an inherent limitation of PAC-Bayesian theory, but a consequence of placing prior distributions over the internal parameter space . Practitioners possess meaningful epistemic beliefs not about latent weight vectors, but about the data-generating distribution on the instance domain (e.g., domain support, output bounds, and continuity).
Building upon the non-parametric data-space formulation of Dirichlet Process (DP) priors (Vashishtha, 2026b; Vashishtha & Maillard, 2025; Vashishtha, 2026a), we propose a data-space Bayesian neural network (DP-BNN) framework. Rather than perturbing weights, we specify a non-parametric prior directly on the space of Borel probability measures via a Dirichlet Process (DP) (Ferguson, 1973). Conditioned on an observed training sample , the conjugate posterior is . The network parameter distribution is the push-forward measure induced by a deterministic learning algorithm .
By formulating prior distributions in data space, this parameter-counting dependence is eliminated. By the Data Processing Inequality, the parameter-space relative entropy is strictly bounded by the data-space DP divergence:
Because and reside in data space , their divergence depends exclusively on the sample size , concentration , and partition statistics of the instance domain—it is strictly invariant to the neural network parameter dimension , depth , and width .
Informal Statement of the Main Result (Theorem 4 & Lemma 1). Let be a DP prior on , and let be the conjugate posterior after observing samples. Let and be the parameter distributions induced by any Borel-measurable learning algorithm . Then, with probability at least over :
where is computed in exact analytical closed form over any measurable partition . Under an optimal covering partition balancing metric entropy discretization against Dirichlet estimation variance, the excess risk achieves the minimax optimal non-parametric rate on -dimensional submanifolds, completely independent of the network parameter count .
-
Weak-Topology Borel Measurability Theorem: We prove that standard deep learning mappings—including strictly convex regularized empirical risk minimization (ERM) and finite-step gradient descent flow—are continuous with respect to the weak topology on via Berge's Maximum Theorem, guaranteeing rigorous Borel measurability (Proposition 2).
-
Information-Theoretic Contraction via DPI: By the monotonicity of Csiszár f-divergences under sub-σ-algebras, we prove that parameter-space relative entropy is strictly upper-bounded by data-space DP divergence (Theorem 2), eliminating parameter dimension D.
-
Exact Closed-Form Partition Divergence: We derive an exact, analytical closed-form expression for over arbitrary measurable partitions using Gamma and Digamma functions (Theorem 3).
-
Optimal Partition Selection Lemma: We formulate and solve the non-parametric bias-variance trade-off between geometric discretization error and Dirichlet cell estimation variance, deriving the optimal covering scale and partition size achieving the minimax rate on -dimensional submanifolds (Lemma 1).
-
Resolution of the Overparameterization Paradox: We provide a formal resolution for why overparameterized deep networks generalize: expanding parameter capacity drives empirical training loss without increasing the data-space divergence penalty.
-
Empirical Verification on Full Vision Benchmarks: Across six vision architectures scaling up to parameters on MNIST, while classical weight-space PAC-Bayes bounds exceed 940% (becoming vacuous), our data-space DP-BNN certificate remains non-vacuous and certified at 8.8%–9.4% across all evaluated architectures.
2 Formal Setting and the Weight-Space Dilemma
2.1 Statistical Learning Setup
Let be a standard Borel measurable space, where , is the feature space, and is the target space. Let denote the set of all Borel probability measures on . We assume the existence of an unknown data-generating distribution . The learner observes an independent and identically distributed (i.i.d.) training sample:
The empirical measure associated with is .
Let denote the parameter space, and let be a class of hypotheses where . We consider a loss function .
Assumption 1 (Bounded Loss). The loss function satisfies for all .
For any parameter vector , the true population risk and empirical risk are defined respectively as:
For any probability distribution on , we denote the randomized risks as and .
2.2 Classical PAC-Bayes Bounds
We recall the foundational PAC-Bayesian theorem under binary relative entropy:
Theorem 1 (Catoni (2007); Maurer (2004)). Let Assumption 1 hold. Let be any prior distribution on chosen independently of the training sample . Then for any , with probability at least over the random draw of , the following inequality holds simultaneously for all posterior distributions on :
where is the binary relative entropy. Applying Pinsker's inequality yields McAllester's form:
2.3 Dimensional Scaling and Vacuity in Weight Space
To understand why Theorem 1 fails for deep networks, consider the standard instantiation where and centered at an empirical risk minimizer .
Proposition 1 (Weight-Space Divergence Scaling under Deep Compositions). Let be an L-layer neural network parameterized by with 1-Lipschitz activations and layer width . Let be an empirical risk minimizer, and let be a perturbed posterior.
If the posterior preserves the empirical risk within margin , i.e., \mathbb{E}_{\theta \sim \pi_n} [|f_\theta(x) - f_\hat{\theta}(x)|] \leq \epsilon_0, then the tolerable posterior perturbation variance must collapse as . Consequently, for an isotropic Gaussian prior , the relative entropy satisfies:
The proof is provided in Appendix A.1.
Theoretical Interpretation. Proposition 1 reveals the structural cause of PAC-Bayesian vacuity: in deep networks, small weight perturbations are amplified multiplicatively through successive layer transformations. To preserve the low-error manifold, the posterior variance must contract rapidly with depth . Because the prior and posterior are defined in , volume contraction across orthogonal coordinates incurs a penalty of . Whenever , this term overwhelms the sample size , guaranteeing that the square root penalty in Equation (7) evaluates to .
3 DP-BNNs: Data-Space Epistemic Uncertainty
To resolve this dimensional dependency, we formulate both epistemic uncertainty and PAC-Bayesian prior specification in the non-parametric data space (Vashishtha, 2026b; Vashishtha & Maillard, 2025; Vashishtha, 2026a).
3.1 Dirichlet Process Priors on the Data Space
Definition 1 (Dirichlet Process (Ferguson, 1973)). Let be a measurable space. Let be a concentration parameter, and let be a base probability measure. A random probability measure on is distributed according to the Dirichlet Process, denoted , if for every finite measurable partition of , the random probability vector follows a Dirichlet distribution:
Posterior Conjugacy. Given an empirical sample generated i.i.d. from , the posterior distribution of conditioned on remains a Dirichlet Process (Ferguson, 1973):
We denote the prior law on as and the posterior law as , where and .
Data-Space Epistemic Representation. Unlike weight-space Gaussian perturbations, DP priors capture epistemic uncertainty directly on the underlying data manifold (Vashishtha, 2026b; Vashishtha & Maillard, 2025). In regions supported by dense empirical data, the posterior concentrates on , whereas in unobserved regions or data voids, the posterior naturally reverts to the prior base measure .
3.2 Push-Forward Parameter Distributions
Assumption 2 (Borel-Measurable Learning Mapping). The learning algorithm is a deterministic mapping that is -measurable with respect to the weak topology on .
Under Assumption 2, the mapping A naturally pushes forward probability measures on data space to probability measures on parameter space:
In practical computation, sampling from corresponds to drawing discrete measures via Sethuraman's stick-breaking construction (Sethuraman, 1994) and training the network parameters to convergence on the realized discrete pseudo-sample (Appendix B).
To establish that Assumption 2 is universally satisfied, the following proposition proves Borel measurability for canonical optimization algorithms.
Proposition 2 (Measurability of Optimization Mappings under the Weak Topology). Let be a compact metric space, and let be equipped with the weak topology. Let the parameter space be closed and convex, and let be continuous on and non-negative. Then Assumption 2 holds in each of the following settings:
- Regularized Empirical Risk Minimization: For any , the -regularized mapping
is single-valued and continuous with respect to the weak topology, and therefore strictly Borel measurable.
- T-Step Gradient Descent: If is continuous on and bounded, then for any fixed initialization , learning rate , and horizon , the gradient descent mapping defined by the iteration
is continuous on , and therefore strictly Borel measurable.
The proof, detailed in Appendix A.2, applies Berge's Maximum Theorem for strictly convex objectives and the continuity of linear integration operators under weak convergence.
4 Dimension-Free PAC-Bayes Theory
We now establish our main theoretical guarantees: first proving that parameter divergence is universally contracted by data-space divergence, and then deriving an exact analytical closed form for the latter.
4.1 Information-Theoretic Contraction via Data Processing
Theorem 2 (Data-Processing Invariance). Let Assumption 2 hold. Let and be the push-forward prior and posterior distributions on parameter space . Then:
Proof Sketch. Relative entropy belongs to the family of Csiszár -divergences with convex generator . By the monotonicity theorem for -divergences under sub--algebras (Csiszár, 1967; Cover & Thomas, 2006), measurable transformations can only preserve or contract information. Setting the input space as and output space as under the Borel-measurable mapping establishes the inequality. The complete measure-theoretic proof is provided in Appendix A.3.
4.2 Analytical Closed-Form Partition Divergence
We now derive the exact analytical expression for the right-hand side of Equation (14) evaluated over any measurable partition of the instance domain.
Theorem 3 (Analytical Partition Divergence). Let be a finite measurable partition of . Let and denote the prior mass and empirical sample counts in partition cell , satisfying and .
Then the relative entropy between the projected DP posterior and prior over partition P is given exactly by:
where is the Gamma function and is the Digamma function.
Remark 1 (Scholarly Context of the Partition Divergence). While the relative entropy between two finite-dimensional Dirichlet distributions is a known identity in exponential family statistics, our key insight is recognizing that under the Data Processing Inequality, the infinite-dimensional non-parametric divergence between the DP posterior and prior contracts onto this closed-form partition statistic over P. This completely replaces the classical dimension-dependent Gaussian divergence with an exact, analytical finite-sample certificate.
4.3 The Dimension-Free Catoni-Style Generalization Certificate
Combining Theorem 1, Theorem 2, and Theorem 3 yields our main supervised generalization guarantee:
Theorem 4 (Dimension-Free Projected DP-PAC-Bayes Certificate). Let Assumptions 1 and 2 hold. Let be a DP prior on , and let be the conjugate posterior after observing samples. For any measurable partition of , with probability at least over :
where is the binary relative entropy, and is computed in exact closed form via Equation (15). Inverting via Pinsker's inequality yields the explicit square-root certificate:
In particular, both bounds are strictly invariant to the neural network parameter dimension , depth , and width .
5 The Structure of the Partition P and Dimension Invariance
The Role and Choice of K. In Theorem 4, the partition can be any measurable division of the instance space specified independently of the sample labels (e.g., uniform spatial cells, quantile bins, or unsupervised Voronoi tessellations generated by the base measure ). Unlike classical weight-space PAC-Bayes, where the complexity penalty is rigidly tied to the parameter dimension , the DP-PAC-Bayes penalty is determined exclusively by the partition resolution and empirical cell counts .
Continuous Domain Asymptotics and Manifold Adaptation. In practical applications with finite samples, a coarse partition (such as spatial cells, as used in our experiments) provides a rigorous, non-vacuous certificate for any bounded loss without requiring any Lipschitz assumptions. For continuous instance domains where one wishes to study asymptotic consistency as , we analyze the partition scaling behavior in Appendix A.5. In particular, when the data distribution is supported on an intrinsic -dimensional Riemannian submanifold , we prove in Lemma 1 (Appendix A.6) that balancing partition covering resolution against Dirichlet estimation variance yields the optimal scaling:
under which the generalization gap converges at the minimax optimal non-parametric rate (Tsybakov, 2009). Crucially, this rate depends solely on the intrinsic manifold dimension , remaining completely independent of the network parameter dimension .
Resolution of the Approximation–Estimation Paradox. Classical statistical learning theory posited an unavoidable trade-off between approximation and estimation: expanding parameter capacity reduces approximation bias but increases estimation variance . In deep learning, however, heavily overparameterized networks achieve near-zero training error while generalizing remarkably well (Bartlett et al., 2017; Zhang et al., 2017). Theorem 4 resolves this paradox: the capacity to interpolate the training data is governed by the parameter dimension , whereas the generalization penalty is governed strictly by the data-space partition divergence on . Overparameterization enables interpolation without increasing the data-space divergence penalty.
6 Empirical Verification: Overparameterization and Generalization
To confirm Theorem 4 and empirically benchmark our data-space certificates against classical weight-space PAC-Bayes bounds, we conduct empirical scaling experiments across six vision architectures on the full MNIST benchmark (n = 60,000 training images, 10,000 held-out test images), scaling from a linear classifier (D = 7,850) to deep convolutional networks (D = 4,203,522 parameters). Complementary scaling experiments on a controlled synthetic manifold isolating intrinsic dimension are detailed in Appendix C.4.
Experimental Design. We evaluate six standard neural architectures on the 10-class vision task: (1) Linear Softmax Classifier (D = 7,850), (2) 2-Layer MLP with width 128 (D = 101,770), (3) LeNet-5 Convolutional Network (D = 110,578), (4) Wide CNN (D = 390,410), (5) 4-Layer MLP with width 384 (D = 600,970), and (6) Deep Overparameterized CNN (D = 4,203,522).
All models are trained with Adam (learning rate , weight decay ) on the full training set. For the Dirichlet Process prior, the feature space is partitioned into spatial cells, with concentration and uniform base measure . For the classical weight-space PAC-Bayes baseline (Dziugaite & Roy, 2017; Alquier, 2024), we place prior and evaluate the maximum tolerable posterior perturbation variance such that accuracy degrades by at most 3%.
Results & Findings. The empirical findings are reported in Table 1 and Figure 1:
- Vacuity of Weight-Space Certificates: On the linear model , the classical weight-space bound yields 45.2%. However, as parameter capacity expands into realistic deep architectures
(a) Generalization Certificates vs. Model Capacity

(b) Tolerable Perturbation Scale vs. Parameter Count
Figure 1: Generalization Certificates vs. Model Scale on MNIST (). (a) Classical weight-space PAC-Bayes bounds grow with parameter count , exceeding the vacuity threshold for . In contrast, our data-space DP-PAC-Bayes certificate remains strictly non-vacuous (, reaching for overparameterized models), reliably upper-bounding held-out test error. (b) While compositional depth restricts posterior weight perturbation tolerance , our data-space formulation contracts under the Data Processing Inequality, ensuring invariance to parameter count.
Table 1: Empirical Generalization Certificates on the Full MNIST Vision Benchmark (). Real empirical train error, held-out test error on 10,000 unseen images, weight noise tolerance , classical weight-space PAC-Bayes bounds, and our data-space DP-PAC-Bayes certificates (). Values exceeding are vacuous.
| Architecture | Parameters () | Train Error | Test Error | Noise | Weight-Space Bound | DP-BNN Bound [Ours] |
|---|---|---|---|---|---|---|
| Linear Classifier | (Certified) | |||||
| 2-Layer MLP (128) | (vacuous) | (Certified) | ||||
| LeNet-5 CNN | (vacuous) | (Certified) | ||||
| Wide CNN | (vacuous) | (Certified) | ||||
| 4-Layer MLP (384) | (vacuous) | (Certified) | ||||
| Deep Overparam CNN | (vacuous) | (Certified) |
, the classical bound immediately breaches the vacuity threshold ( for the 2-layer MLP, for LeNet-5), reaching on Wide CNN, and climbing to on the 4.2-million-parameter Deep CNN. Even under sharper Catoni kl-inversion or data-dependent split priors (Dziugaite & Roy, 2017), the numerator renders classical weight-space certificates vacuous.
-
Empirical Validity & Flatness of DP-BNN: In strict accordance with Theorem 4, the DP-BNN certificate remains non-vacuous across all six architectures. For deep convolutional networks, our bound certifies that true population generalization error will not exceed , providing a tight, non-vacuous theoretical guarantee over the empirical test error ().
-
Representation Rigidity vs. Data Invariance: Figure 1B illustrates the dimensional limitation of weight-space priors: deep compositional architectures cannot tolerate large coordinate perturbations without corrupting feature detectors ( drops to ). The volume contraction across dimensions drives the parameter-space KL into millions of nats. By operating directly on data-generating distributions , our DP-PAC-Bayes certificate completely decouples generalization certification from network parameter count.
Table 2: Theoretical landscape of generalization bounds for deep neural networks. Comparison across prior domain, empirical sample-splitting requirements, sensitivity to network depth , explicit parameter-dimension scaling, and practical non-vacuity for overparameterized architectures ().
| Framework | Prior Domain | Sample Splitting | Depth Sensitivity | Dimension Scaling | Non-Vacuous () |
|---|---|---|---|---|---|
| Weight-Space PAC-Bayes (McAllester, 1999) | None | No () | |||
| Data-Split PAC-Bayes (Dziugaite & Roy, 2017) | Required | Polynomial in | No () | ||
| Spectrally-Normalized (Bartlett et al., 2017) | None | Independent | No (Exponential in ) | ||
| Uniform Stability (Bousquet & Elisseeff, 2002) | None | Independent | No (for deep non-convex) | ||
| Data-Space DP-PAC-Bayes [Ours] | None (100% data used) | Strictly Invariant | (Dimension-Free) | Yes ( certified) |
7 Discussion and Related Work
Comparison with Prior Optimization and Data-Splitting PAC-Bayes. A prominent strategy to alleviate vacuity in weight-space PAC-Bayes bounds is data-dependent prior construction via sample splitting (Dziugaite & Roy, 2017; Pérez-Ortiz et al., 2021). In this paradigm, the training dataset is partitioned into disjoint subsets . The first split is used to fit an empirical prior on , while the second split is reserved to evaluate the empirical risk and form the posterior . While this reduces the empirical parameter distance , it introduces three structural limitations:
-
Sample Inefficiency: Splitting discards a significant fraction of the training data (typically 50%) from the risk evaluation step, degrading the effective sample complexity rate from to .
-
Persistent Parameter Dependence: Because the prior and posterior remain distributions over the Euclidean parameter space , relative entropy remains proportional to . For architectures with , must still be restricted to a minute neighborhood around , leading to highly conservative posterior perturbations or vacuous certificates.
-
Hyperparameter Optimization Overhead: Balancing the prior-posterior trade-off requires optimizing bound objectives over variance hyperparameters, demanding additional union bounds over discretization grids.
In contrast, our data-space DP framework operates without sample splitting (100% of the data is used for both the Dirichlet posterior update and risk evaluation), exhibits exact invariance to the parameter dimension , and evaluates closed-form divergence without hyperparameter search (Table 2).
Comparison with Spectrally-Normalized Margin Bounds. A prominent alternative to classical PAC-Bayes is the line of spectrally-normalized margin bounds pioneered by Bartlett et al. (2017) and Neyshabur et al. (2018). While these bounds replace raw parameter count with products of layer spectral norms , they remain inherently representation-dependent: in practice, product spectral norms grow exponentially with depth , frequently evaluating to vacuous constants for deep architectures unless aggressive spectral regularization is enforced during training. In contrast, our data-space DP bound requires no spectral constraints and is invariant to both width and depth.
Connection to Algorithmic Stability. Our formulation shares conceptual affinity with the algorithmic stability framework of Bousquet & Elisseeff (2002). However, while stability analysis typically requires uniform Lipschitz or curvature conditions on the loss landscape, our bound is derived purely through information-theoretic monotonicity under the Data Processing Inequality, requiring only Borel measurability of the empirical risk mapping .
Remark on Variational Duality & Information Theory. Both PAC-Bayesian generalization theory and modern information-theoretic analysis share a deep common ancestor in the Donsker–Varadhan variational formula (Donsker & Varadhan, 1975): . In classical machine learning, evaluating this duality in parameter space inevitably injects the parameter count . Our work demonstrates that evaluating the Donsker–Varadhan identity directly in the non-parametric data space provides a universal mechanism to eliminate parameter counting across statistical estimation.
Role of Base Measure and Comparison with the Bayesian Bootstrap. It is instructive to contrast the full Dirichlet Process with Rubin's Bayesian Bootstrap (Rubin, 1981), which corresponds to the degenerate limit . In that limit, the posterior random measure collapses strictly onto the empirical training set, with , placing zero measure on unobserved regions . As established in sequential decision-making and epistemic uncertainty analysis (Vashishtha, 2026b; Osband et al., 2018), naive bootstrapping does not assign probability mass to data voids because it lacks prior atoms outside the empirical support. Moreover, in learning theory, setting renders the prior degenerate and causes the partition relative entropy in Equation (15) to diverge, since as . Thus, a strictly positive concentration paired with a diffuse base measure is both mathematically necessary for a well-defined PAC-Bayesian certificate and essential for preserving faithful epistemic uncertainty in out-of-distribution domains.
8 Conclusion and Future Horizons
In this work, we resolved the classical PAC-Bayesian vacuity barrier in deep learning by shifting prior specification from Euclidean parameter coordinates to the non-parametric space of data-generating distributions via Dirichlet Processes (DPs). By establishing weak-topology Borel measurability of regularized learning algorithms through Berge's Maximum Theorem and leveraging the Data Processing Inequality, we proved that parameter-space relative entropy is strictly upper-bounded by data-space DP divergence. We derived an exact, closed-form analytical expression for partition relative entropy in terms of Gamma and Digamma functions, and solved the minimax optimal partition scaling problem on intrinsic -dimensional submanifolds. Across architectures scaling from linear classifiers to 4.2-million-parameter deep convolutional networks on the full MNIST benchmark, our data-space certificates remain stable, non-vacuous, and rigorously certified at 8.8%–9.4% (and 8.6% on submanifolds), while classical weight-space bounds exceed 940%.
Limitations and Theoretical Boundaries. Despite these theoretical and empirical advances, several structural considerations delineate the operational boundaries of this framework:
-
Manifold Concentration Dependence: The minimax non-parametric rate derived in Lemma 1 critically relies on the condition that data probability mass concentrates on an intrinsic submanifold of dimension . If the instance distribution is unstructured white noise spanning the full ambient dimension ( ), metric covering entropy scales exponentially as , reintroducing a dimensional bottleneck rooted in input representation rather than parameter count.
-
Partition Discretization vs. Continuous Geometry: Our closed-form divergence formula evaluates relative entropy over finite measurable partitions P. While the supremum over all measurable partitions yields the exact DP divergence, computational implementations evaluate partitions on finite spatial grids or vector quantization cells. Formulating PAC-Bayes directly under continuous Wasserstein or optimal transport distances on without spatial partitioning remains an open mathematical challenge.
-
Base Measure Design in Complex Domains: In our empirical benchmarks, a diffuse uniform base measure over normalized coordinate boxes proved effective. However, for ultra-high-dimensional structured data (such as ImageNet-scale inputs or continuous video), specifying an effective non-parametric base measure that captures broad semantic support without over-dispersing prior mass across cavity voids warrants further exploration.
Future Horizons. This non-parametric data-space formulation opens several promising research directions: (1) deriving functional PAC-Bayesian generalization certificates under broader classes of random probability measures, such as Pitman–Yor and Gibbs-type processes (Lijoi & Prünster, 2010); (2) extending data-space DP-PAC-Bayes certificates to sequential decision-making and reinforcement learning via non-asymptotic martingales (Vashishtha, 2026b); and (3) unifying data-space non-parametrics with algorithmic stability and information bottleneck principles to provide end-to-end certified bounds for foundation models.
References
Pierre Alquier. User-friendly introduction to PAC-Bayes bounds. Foundations and Trends® in Machine Learning, 17(2):174–303, 2024.
Peter L Bartlett, Dylan J Foster, and Matus J Telgarsky. Spectrally-normalized margin bounds for neural networks. In Advances in Neural Information Processing Systems (NeurIPS), volume 30, 2017.
Claude Berge. Topological Spaces: Including a Treatment of Multi-Valued Functions, Vector Spaces, and Convex Sets. Oliver and Boyd, 1963.
Patrick Billingsley. Convergence of Probability Measures. John Wiley & Sons, second edition, 1999.
Charles Blundell, Julien Cornebise, Koray Kavukcuoglu, and Daan Wierstra. Weight uncertainty in neural network. In International Conference on Machine Learning (ICML), pp. 1613–1622, 2015.
Olivier Bousquet and André Elisseeff. Stability and generalization. Journal of Machine Learning Research, 2:499–526, 2002.
Olivier Catoni. PAC-Bayesian supervised classification: the thermodynamics of statistical learning, volume 56 of IMS Lecture Notes–Monograph Series. Institute of Mathematical Statistics, 2007.
Thomas M Cover and Joy A Thomas. Elements of Information Theory. John Wiley & Sons, 2006.
Imre Csiszár. Information-type measures of difference of probability distributions and indirect observation. Studia Scientiarum Mathematicarum Hungarica, 2:299–318, 1967.
Monroe D Donsker and SR Srinivasa Varadhan. Asymptotic evaluation of certain Markov process expectations for large time—I. Communications on Pure and Applied Mathematics, 28(1):1–47, 1975.
Gintare Karolina Dziugaite and Daniel M Roy. Computing nonvacuous generalization bounds for deep (stochastic) neural networks with many more parameters than training data. In Uncertainty in Artificial Intelligence (UAI), 2017.
Thomas S Ferguson. A Bayesian analysis of some nonparametric problems. The Annals of Statistics, 1(2):209–230, 1973.
Vincent Fortuin. Priors in Bayesian deep learning: A review. International Statistical Review, 90(3):563–591, 2022.
Antonio Lijoi and Igor Prünster. Models beyond the Dirichlet process. In Nils Lid Hjort, Chris Holmes, Peter Müller, and Stephen G Walker (eds.), Bayesian Nonparametrics, pp. 80–136. Cambridge University Press, 2010.
Andreas Maurer. A note on the PAC-Bayesian theorem. arXiv preprint cs/0411099, 2004.
David A McAllester. Pac-bayesian model averaging. Machine Learning, 37(3):355–365, 1999.
Radford M Neal. Bayesian Learning for Neural Networks. Springer Science & Business Media, 1995.
Behnam Neyshabur, Srinadh Bhojanapalli, David McAllester, and Nathan Srebro. A PAC-Bayesian approach to spectrally-normalized margin bounds for neural networks. In International Conference on Learning Representations (ICLR), 2018.
Ian Osband, John Aslanides, and Alireza Cassirer. Randomized prior functions for deep reinforcement learning. In Advances in Neural Information Processing Systems (NeurIPS), volume 31, 2018.
María Pérez-Ortiz, Omar Rivasplata, John Shawe-Taylor, and Csaba Szepesvári. Tighter risk certificates for neural networks via PAC-Bayes. Journal of Machine Learning Research, 22(227):1–40, 2021.
Donald B Rubin. The Bayesian bootstrap. The Annals of Statistics, pp. 130–134, 1981.
Jayaram Sethuraman. A constructive definition of Dirichlet priors. Statistica Sinica, pp. 639–650, 1994.
Alexandre B Tsybakov. Introduction to Nonparametric Estimation. Springer Science & Business Media, 2009.
Sumit Vashishtha. Bayesian Reinforcement Learning with Dirichlet Processes. PhD thesis, Inria & Université de Lille, 2026a.
Sumit Vashishtha. Bayesian neural networks via Dirichlet Process priors on the data-generating distribution for randomized value functions in deep reinforcement learning. Transactions on Machine Learning Research (TMLR), 2026b.
Sumit Vashishtha and Odalric-Ambrym Maillard. Leveraging priors on distribution functions for multi-arm bandits. Reinforcement Learning Journal, 6:1600–1623, 2025.
Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. In International Conference on Learning Representations (ICLR), 2017.
A Complete Mathematical Proofs
A.1 Proof of Proposition 1 (Weight-Space Divergence Scaling)
Proof. Let be an -layer neural network parameterized by :
where is a 1-Lipschitz activation function (such as ReLU). Let be an empirical risk minimizer, and consider a Gaussian posterior perturbation where .
By first-order Taylor expansion and the chain rule across layers:
where are diagonal derivative matrices satisfying . If each layer has nominal width with balanced weight norms , the spectral radius of the compositional operator scales as for some constant .
Under the hypothesis that the posterior preserves empirical risk within margin , we must have:
Now, computing the Kullback–Leibler divergence between two multivariate Gaussians in with and :
(22)
Substituting the upper bound :
Since , we obtain:
which establishes the claim.
□
A.2 Proof of Proposition 2 (Borel Measurability under the Weak Topology)
Proof. Let be a compact metric space. By the Banach–Alaoglu and Portmanteau theorems, the space of Borel probability measures on , equipped with the weak topology (the initial topology generated by bounded continuous test functions ), is a compact, metrizable Polish space (Billingsley, 1999). A compatible metric generating this topology is the Wasserstein-1 metric or the Prokhorov metric. The Borel -algebra generated by this weak topology coincides with the cylindrical -algebra generated by the evaluation projections for all .
To prove that a deterministic mapping is -measurable, it suffices to prove that is continuous with respect to the weak topology, since every continuous map between metric spaces is Borel measurable.
Part (i): Regularized Empirical Risk Minimization. Define the regularized risk functional by:
For every fixed , since and the regularizer is -strongly convex on the closed convex set , the functional is strictly convex and coercive: . Consequently, the minimizer exists and is unique for every .
We now establish that is jointly continuous on . Let where in Euclidean norm on and weakly. Decomposing the difference:
(26)
Because is compact and is continuous, the family of functions converges uniformly to on as by the Heine–Cantor theorem. Thus:
which bounds the first integral uniformly over all probability measures :
The second term vanishes because is a bounded continuous test function on compact and weakly. The third term vanishes by continuity of the Euclidean norm. Hence is jointly continuous.
By Berge’s Maximum Theorem (Berge, 1963), the argmin correspondence is upper hemicontinuous. Because is strictly convex, this correspondence is a single-valued function everywhere. An upper hemicontinuous single-valued correspondence into a Hausdorff space is continuous. Therefore, is continuous, and consequently Borel measurable.
Part (ii): T-Step Gradient Descent. Let be fixed. Define the gradient integration operator by:
We show that is jointly continuous. Let . By the triangle inequality:
By uniform continuity of the gradient on compact subsets of , , vanishing the first term. The second term vanishes coordinate-wise because each component is a bounded continuous test function under weak convergence . Hence is jointly continuous.
We proceed by induction on . For , the mapping is constant, hence continuous. Now assume is continuous. The recurrence relation is:
Since is the composition of the continuous map with the continuous map , it follows that is continuous. By induction, the terminal mapping is continuous on .
Since every continuous map between metric spaces is Borel measurable, is strictly -measurable, which completes the proof.
A.3 Proof of Theorem 2 (Information-Theoretic Contraction)
Proof. Let and be standard Borel measurable spaces. Let be two probability measures on such that . Let be a -measurable mapping. Let and denote the respective push-forward measures on .
Define the sub--algebra . The restriction of and to satisfies and via the isomorphism between and .
By the Radon–Nikodym theorem, let be the density of with respect to . For any event :
Therefore, the Radon–Nikodym derivative of the push-forward measures is the conditional expectation:
Now, consider the relative entropy function , which is strictly convex on with . By the conditional Jensen's inequality for convex functions:
(34)
Setting , and completes the proof.
A.4 Proof of Theorem 3 (Analytical Partition Divergence)
Proof. Let be a partition of . Under , the random vector is distributed as with and , where .
Under the posterior , the parameter vector updates to with , where and .
The density of Dir(b) with respect to Lebesgue measure on the simplex is:
Similarly, the prior density is . The relative entropy between two Dirichlet distributions on is:
(36)
The ratio of multivariate Beta normalizing constants expands as:
For any Dirichlet distribution , the marginal distribution of is a Beta distribution . The expected logarithm of a Beta-distributed random variable has the exact analytical form:
Substituting :
Summing both terms gives:
which is the exact analytical identity of Theorem 3.
□
A.5 Proof of Theorem 5 (Metric Entropy Manifold Adaptation)
Theorem 5 (Metric Entropy Manifold Adaptation). Let be a compact metric space whose data distribution is supported on an intrinsic -dimensional Riemannian submanifold with covering number . Assume the loss function is -Lipschitz with respect to . Then for any , with probability at least over :
where is an -Voronoi partition with .
Proof. Let be a compact metric space with covering number . Let be a minimal -net. Define the Voronoi partition by:
By construction, for , and , which implies . Define the surrogate cell-centered loss by . For any , the -Lipschitz assumption on yields:
Taking expectations over and the sample :
Applying Theorem 4 to the surrogate loss over the finite partition :
Applying the triangle inequality:
Now, if is supported on a -dimensional Riemannian submanifold with bounded curvature, by the Bishop–Gromov volume comparison theorem, the covering number satisfies .
By Stirling's approximation on Equation (15), . Equating the discretization rate with the estimation rate yields:
Substituting this optimal yields the manifold convergence rate:
which is completely independent of the ambient parameter dimension D.
A.6 Proof of Lemma 1 (Optimal Partition Scale and Minimax Trade-Off)
Lemma 1 (Optimal Partition Scale and Minimax Trade-Off). Under the assumptions of Theorem 5 with uniform base measure , the discretization-estimation trade-off objective is strictly convex in , admitting a unique global minimizer:
and corresponding optimal partition size:
Evaluating at achieves the minimax optimal excess risk rate , completely independent of network parameter dimension .
Proof. From Theorem 5, the excess risk certificate is bounded by:
Under the uniform base measure , the partition parameters are . Applying the Dirichlet partition divergence bound from Theorem 3:
Substituting the metric entropy upper bound on the -dimensional compact submanifold , the bound is dominated by the objective functional:
By the sub-additivity inequality for non-negative :
where is defined by:
Differentiating with respect to :
Because , , and , the second derivative satisfies for all . Hence is strictly convex on and possesses a unique global minimizer . Setting yields:
Squaring both sides:
Taking the -th root establishes Equation (50):
Substituting into immediately gives Equation (51):
Evaluating the objective at , noting that :
Substituting the explicit formula for and re-introducing the confidence term:
Since , the dominant term scales as:
matching the minimax non-parametric convergence rate (Tsybakov, 2009) on a -dimensional manifold, and concluding the proof.
B Stick-Breaking Representation & Computational Pipeline
B.1 Sethuraman's Stick-Breaking Representation
By Sethuraman's construction (Sethuraman, 1994), a random probability measure is almost surely discrete and can be represented as an infinite sum of atomic Dirac measures:
where the stick-breaking weights are generated by successively breaking fractions from a unit-length stick:
The weights satisfy almost surely.
B.2 Posterior Stick-Breaking via Latent Data Augmentation
Conditioned on an observed empirical sample , the posterior can be sampled via a two-component mixture:
where are the observed training points and are synthetic base atoms. The composite weights are generated as follows:
-
Draw total prior mass: .
-
Draw empirical weights: , where .
-
Draw synthetic prior weights: , where .
B.3 Algorithmic Pipeline for DP-PAC-Bayes Bound Evaluation
Algorithm 1 provides the complete algorithmic procedure for computing the dimension-free PAC-Bayesian certificate.
C Experimental Specifications & Reproducibility
C.1 Dataset Details and Manifold Specification
The dataset is synthetically generated on an annular domain consisting of two concentric circular rings separated by an empty annular gap:
-
Inner Ring (Class 0): Radial coordinates , angular coordinates , with isotropic Gaussian noise .
-
Outer Ring (Class 1): Radial coordinates , angular coordinates , with isotropic Gaussian noise .
The separation gap defines a non-linear decision boundary. A sample of points (10,000 per class) is generated for training, and an independent sample of points is drawn for empirical ground-truth risk evaluation.
Algorithm 1: Computation of the Dimension-Free DP-PAC-Bayes Generalization Certificate
Input: Training sample , partition cells , concentration , base measure , confidence parameter , loss function .
Output: Rigorous Generalization Bound .
Step 1: Compute Prior Cell Masses for to do ;
Step 2: Compute Empirical Cell Counts Initialize cell counts for all ; for to do Determine cell index such that ; ;
Step 3: Analytical Relative Entropy Calculation Compute normalizer: ; Compute log-gamma sum: ; Compute digamma term: ; ;
Step 4: Train Posterior Ensemble (Monte Carlo Sample Risk) for to do Sample posterior measure via stick-breaking (Section B.2); Compute optimal parameter via ERM / gradient descent; ;
Step 5: Compute Final PAC-Bayes Certificate ; return ;
C.2 Network Architecture Specifications
The seven architectures evaluated in Section 6 are fully connected feedforward networks with ReLU activations and a 2-dimensional softmax classification head:
-
Tiny MLP (): Linear() ReLU Linear().
-
Shallow MLP (): Linear() ReLU Linear().
-
3-Layer MLP (): Linear() ReLU Linear() ReLU Linear().
-
4-Layer MLP (): Linear() [Linear() ReLU] Linear().
-
Wide MLP (): Linear() [Linear() ReLU] Linear().
-
Deep-5 MLP (): Linear() [Linear() ReLU] Linear().
-
Overparam-6 (): Linear() [Linear() ReLU] Linear().
C.3 Training and Optimization Hyperparameters
All networks are trained using PyTorch with the Adam optimizer:
- Base learning rate: .
- Batch size: 256.
- Sample size: training samples, 5{,}000 test samples.
- Maximum epochs: 8 (all models reach empirical interpolation ).
- Cross-entropy loss with 0-1 misclassification error evaluation.
- Weight decay: .
- PAC-Bayesian confidence parameter: (95% confidence).
- Partition cardinality: cells ( uniform spatial grid on ).
C.4 Synthetic Manifold Scaling Results
To isolate the geometric behavior of data-space PAC-Bayes on a controlled manifold of known intrinsic dimension , we report the scaling certificates for the concentric annular manifold task (, spatial cells) in Table 3.
Table 3: Quantitative Comparison on the Concentric Annular Manifold (). Ground truth test error, tolerable weight perturbation , and resulting 95% PAC-Bayesian generalization certificates.
| Architecture | Parameters () | Train Error | Test Error | Noise | Weight-Space Bound | DP-BNN Bound [Ours] |
|---|---|---|---|---|---|---|
| Tiny MLP | 42 | 0.0% | 0.0% | 5.4% | 8.6% (Certified) | |
| Shallow MLP | 162 | 0.0% | 0.0% | 9.3% | 8.6% (Certified) | |
| 3-Layer MLP | 4,482 | 0.0% | 0.1% | 45.1% | 8.6% (Certified) | |
| 4-Layer MLP | 33,666 | 0.0% | 0.0% | 123.4% (vacuous) | 8.6% (Certified) | |
| Wide MLP | 132,866 | 0.0% | 0.1% | 245.1% (vacuous) | 8.6% (Certified) | |
| Deep-5 MLP | 790,530 | 0.0% | 0.0% | 654.7% (vacuous) | 8.6% (Certified) | |
| Overparam-6 | 4,203,522 | 0.0% | 0.0% | 1,630.9% (vacuous) | 8.6% (Certified) |