arXiv:2610.21340stat.MLOct 2026

Manuscript Offprint

arXiv:2610.21340

Dimension-Free PAC-Bayes Generalization for Deep Neural Networks via Dirichlet Processes

Sumit Vashishtha

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 Θ⊆RD\Theta \subseteq \mathbb{R}^D, causing relative entropy to scale with network dimension DD. For modern overparameterized neural networks where D≫nD \gg n, this parameter-counting dependency yields vacuous generalization bounds (>1,000%>1,000\%). In this work, we resolve this barrier by shifting prior specification from internal parameters to the non-parametric space of data distributions M1(Z)\mathcal{M}_1(\mathcal{Z}) via a Dirichlet Process (DP), DP(α,F0)\mathcal{DP}(\alpha, F_0), 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 DD, width, and depth. On intrinsic d∗d^*-dimensional submanifolds, optimal partition scaling achieves the minimax non-parametric rate O(n−1/(d∗+2)ln⁡n)\mathcal{O}(n^{-1/(d^*+2)}\sqrt{\ln n}). Across vision architectures scaling up to 4.2 million parameters (D=7,850D=7,850 to D=4,203,522D=4,203,522) on the full MNIST benchmark, while classical weight-space bounds scale past 940%940\% (becoming vacuous), our data-space DP-PAC-Bayes certificate remains stable, non-vacuous, and certified at 8.8%−9.4%8.8\%-9.4\%.

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 π0\pi_0 over the network parameters Θ⊆RD\Theta \subseteq \mathbb{R}^D and inferring a posterior πn\pi_n. 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 KL⁡(πn∥π0)\operatorname{KL}(\pi_n \parallel \pi_0):

R(πn)≤R^S(πn)+O(KL(πn∥π0)+ln⁡(1/δ)n).(1)R(\pi_{n})\leq\hat{R}_{S}(\pi_{n})+\mathcal{O}\left(\sqrt{\frac{\mathrm{KL}(\pi_{n}\parallel\pi_{0})+\ln(1/\delta)}{n}}\right). \tag{1}

Because Equation (1) holds universally for any data-dependent posterior πn\pi_n, 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:

  1. Geometric and Functional Misalignment: Placing isotropic Gaussian priors N(0,σ02ID)\mathcal{N}(0,\sigma_0^2 I_D) on network weights is disconnected from the functional geometry of the task (Fortuin, 2022). Neural networks exhibit extensive permutation symmetries (DD! 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.

  2. 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, σpost≤O(W−(L−1))\sigma_{\text{post}} \leq \mathcal{O}(W^{-(L-1)}) for layer width W. In parameter space, this causes the relative entropy to scale as:

KL(πn∥π0)=Ω(D⋅Lln⁡W).(2)\mathrm{K L}(\pi_{n}\parallel\pi_{0})=\Omega\big(D\cdot L\ln W\big). \tag{2}

For modern architectures with D≈105−109D \approx 10^5 - 10^9 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 RD\mathbb{R}^D. Practitioners possess meaningful epistemic beliefs not about latent weight vectors, but about the data-generating distribution on the instance domain Z=X×Y\mathcal{Z} = \mathcal{X} \times \mathcal{Y} (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 M1(Z)\mathcal{M}_1(\mathcal{Z}) via a Dirichlet Process (DP) P0=DP(α,F0)\mathcal{P}_0 = \mathcal{DP}(\alpha, F_0) (Ferguson, 1973). Conditioned on an observed training sample S=(z1,…,zn)S = (z_1, \ldots, z_n), the conjugate posterior is Qn=DP(α+n,αF0+nPnα+n)\mathcal{Q}_n = \mathcal{DP}(\alpha + n, \frac{\alpha F_0 + n \mathbb{P}_n}{\alpha + n}). The network parameter distribution is the push-forward measure πn=A#Qn\pi_n = \mathcal{A}_{\#} \mathcal{Q}_n induced by a deterministic learning algorithm θ=A(P)\theta = \mathcal{A}(P).

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:

KL(πn∥π0)≤KL(Qn∥P0)<∞.(3)\mathrm{K L}(\pi_{n}\parallel\pi_{0})\leq\mathrm{K L}(\mathcal{Q}_{n}\parallel\mathcal{P}_{0})<\infty. \tag{3}

Because QnQ_n and P0P_0 reside in data space M1(Z)\mathcal{M}_1(\mathcal{Z}), their divergence depends exclusively on the sample size nn, concentration α\alpha, and partition statistics of the instance domain—it is strictly invariant to the neural network parameter dimension DD, depth LL, and width WW.

Informal Statement of the Main Result (Theorem 4 & Lemma 1). Let P0=DP(α,F0)\mathcal{P}_0 = \mathcal{DP}(\alpha, F_0) be a DP prior on Z\mathcal{Z}, and let Qn\mathcal{Q}_n be the conjugate posterior after observing nn samples. Let π0=A#P0\pi_0 = \mathcal{A}_{\#} \mathcal{P}_0 and πn=A#Qn\pi_n = \mathcal{A}_{\#} \mathcal{Q}_n be the parameter distributions induced by any Borel-measurable learning algorithm A:M1(Z)→Θ\mathcal{A} : \mathcal{M}_1(\mathcal{Z}) \to \Theta. Then, with probability at least 1−δ1 - \delta over S∼DnS \sim \mathcal{D}^n:

R(πn)≤R^S(πn)+KLP(Qn∥P0)+ln⁡2nδ2n,R(\pi_{n})\leq\hat{R}_{S}(\pi_{n})+\sqrt{\frac{\mathrm{K L}_{\mathcal{P}}(\mathcal{Q}_{n}\parallel\mathcal{P}_{0})+\ln\frac{2\sqrt{n}}{\delta}}{2n}},

where KLP(Qn∥P0)\text{KL}_{\mathcal{P}}(\mathcal{Q}_n \parallel \mathcal{P}_0) is computed in exact analytical closed form over any measurable partition P\mathcal{P}. Under an optimal covering partition balancing metric entropy discretization against Dirichlet estimation variance, the excess risk achieves the minimax optimal non-parametric rate O(n−1d∗+2ln⁡n)\mathcal{O}(n^{-\frac{1}{d^*+2}} \sqrt{\ln n}) on d∗d^*-dimensional submanifolds, completely independent of the network parameter count DD.