Introduction
The ability of a learning algorithm to perform accurately on unseen data is fundamental for real-world applications, ranging from medical diagnosis to autonomous systems. Classical statistical learning theory provides tools to analyze this ability, most notably the Vapnik–Chervonenkis (VC) dimension (Vapnik, [27 ] ) and Rademacher complexity (Bartlett and Mendelson, [6 ] ), which bound the generalization error by quantifying the capacity of a hypothesis class. However, classical generalization bounds are often overly pessimistic and distribution-agnostic. They provide uniform guarantees over the entire hypothesis class by considering worst-case scenarios and ignoring the structure of the underlying data distribution. In particular, in the modern over-parameterized regime of deep neural networks, where models generalize well in practice, these classical bounds become vacuous, since the hypothesis classes involved are extremely large.
Correspondence to: armin.beck@math.uni-sb.de
These limitations have motivated the development of the Probably Approximately Correct Bayes (PAC-Bayes) framework (McAllester, [17 ] ). Unlike classical approaches, PAC-Bayes theory does not aim to provide uniform guarantees over the whole hypothesis class. Instead, it yields data-dependent bounds by considering probability distributions over hypotheses. More precisely, classical PAC-Bayes bounds depend on a measure of discrepancy between a prior distribution and a posterior distribution over hypotheses, which is most commonly quantified using the Kullback–Leibler (KL) divergence. However, the KL divergence can be very large even when the prior and posterior are close w.r.t. other probability distances that account for the geometry of the hypothesis space, which may again lead to loose generalization bounds. Moreover, the KL divergence requires the posterior to be absolutely continuous w.r.t. the prior, implying that the posterior must be supported on a subset of the prior’s support. As a consequence, the choice of the prior becomes crucial. If the prior assigns mass predominantly to poorly performing hypotheses, the posterior cannot concentrate on high-performing hypotheses.
Recent work has proposed PAC-Bayes bounds that replace the KL divergence. One approach uses general f f f -divergences, which still require the posterior to be absolutely continuous w.r.t. the prior and therefore inherits similar support restrictions. A second line of work instead uses integral probability metrics (IPMs), which relax this absolute continuity requirement but require the geometry to be introduced implicitly through the choice of a test function class. In this paper, we derive a new class of PAC-Bayesian bounds based on optimal transport (OT) distances with arbitrary ground costs, hence covering a major class of statistical distances between probability measures. Unlike f f f -divergence-based bounds, our OT-based bounds do not suffer from support restrictions and unlike most IPM-based bounds, they are sensitive to the underlying geometry of the hypothesis space, routinely yielding tighter and non-vacuous generalization bounds.
Our main contributions are:
We derive a general PAC-Bayesian generalization bound that replaces the classical KL divergence between the prior and posterior by a general OT distance, thereby allowing the discrepancy measure to incorporate the geometry of the hypothesis space.
We specialize the framework to several relevant choices of transport cost, including total variation (TV) and Wasserstein-p p p distances, while TV is also a special case of IPMs, the Wasserstein-p p p has not been considered before.
Related Work
The PAC-Bayes framework provides a powerful and flexible approach for deriving generalization guarantees for randomized predictors. Early foundational work by McAllester [17 ] established basic PAC-Bayesian inequalities, which were later refined by Catoni [9 ] to obtain sharper and more robust bounds for supervised learning. A variety of classical PAC-Bayes bounds have since been developed, including well-known results by Seeger [23 ] , Maurer [15 ] , Langford and Shawe-Taylor [14 ] , Germain et al. [12 ] and McAllester [16 ] , which provide explicit and practically usable generalization guarantees. More recently, PAC-Bayes theory has been successfully applied to modern deep learning models, yielding non-vacuous bounds for neural networks, notably in the works of Dziugaite and Roy [11 ] , Arora et al. [5 ] and Zhou et al. [32 ] . For a modern and accessible introduction to PAC-Bayes theory, we refer to the survey by Alquier [2 ] . A common feature of essentially all of these results is their reliance on the KL divergence to quantify the discrepancy between the prior and posterior distributions over hypotheses.
Motivated by the limitations of KL-based bounds, several works have explored PAC-Bayes generalization bounds based on alternative discrepancy measures. Bégin et al. [7 ] derived PAC-Bayes bounds in which the KL divergence is replaced by Rényi divergences, extending the classical framework while retaining a divergence-based structure. Alquier and Guedj [3 ] further generalized this approach by replacing the KL divergence with a general Csiszár f f f -divergence. While these extensions provide additional flexibility, both Rényi divergences and f f f -divergences still require absolute continuity of the posterior w.r.t. the prior and thus inherit many of the limitations of KL-based bounds. In the approach by Amit et al. [4 ] , they introduced PAC-Bayes-style bounds based on IPMs, including TV distance and the Wasserstein-1 distance. Similarly, Viallard et al. [29 ] derived PAC-Bayes bounds based on the Wasserstein-1 distance and proposed PAC-Bayesian learning algorithms that optimize Wasserstein-based objectives instead of KL divergence.
OT theory has recently attracted increasing attention in machine learning due to its ability to capture geometric structure in probability spaces (Peyré and Cuturi, [21 ] ). See also Villani [30 ] for a comprehensive mathematical treatment. In the context of learning theory, OT distances have been used to derive generalization bounds in different settings. Chuang et al. [10 ] developed margin-based generalization bounds in which margins are normalized by OT costs, while Zhang et al. [31 ] introduced the notion of algorithmic transport cost, defined as the expected Wasserstein-1 distance between prior and posterior distributions, to control generalization error.
Notably, across both PAC-Bayesian and non-PAC-Bayesian analyses, the Wasserstein-1 distance is the only OT distance that has so far been used to obtain provable generalization guarantees. The proofs strongly rely on the equivalent characterization of Wasserstein-1 as an IPM. In contrast, this work provides a general PAC-Bayesian framework that accommodates arbitrary OT distances, including OT distances with concave costs, the TV distance and Wasserstein-p p p distances. Extending beyond the Wasserstein-1 case requires quite different arguments from the one based on its IPM characterization. In the standard KL based PAC-Bayesian analysis, the Donsker-Varadhan variational formula connects the KL divergence to exponential moments of the generalization gap. For general OT distances, we instead exploit Kantorovich duality, which requires controlling the generalization gap w.r.t. the geometry induced by the transport cost. This leads to a regularity condition that requires the chosen transport cost to define a geometry that is sufficiently compatible with the learning problem. This condition is not automatically satisfied and must be verified for the learning problem and cost function at hand. We show how such verification can be carried out using classical learning-theoretic tools, including VC dimension and Rademacher complexity.
Preliminaries and Notation
Let ( Ω , F , P ) (\Omega, \mathcal{F}, \mathbb{P}) ( Ω , F , P ) be the underlying probability space. We consider a standard Borel space ( Z , Z ) (\mathcal{Z}, \mathcal{Z}) ( Z , Z ) as the sample space. We call the measurable space ( H , H ) (\mathcal{H}, \mathcal{H}) ( H , H ) the hypothesis class, with each h ∈ H h \in\mathcal{H} h ∈ H a hypothesis. We denote the measurable and bounded measurable functions H → R \mathcal{H} \to\mathbb{R} H → R by M ( H ) \mathcal{M}(\mathcal{H}) M ( H ) and M b ( H ) \mathcal{M}_{b}(\mathcal{H}) M b ( H ) . A loss function is a measurable function ℓ : H × Z → [ 0 , ∞ ) \ell: \mathcal{H} \times\mathcal{Z} \to[0, \infty) ℓ : H × Z → [ 0 , ∞ ) . Let Z Z Z be a random variable in the sample space Z \mathcal{Z} Z and let S n : = { Z i } i = 1 n S_n := \{Z_i\}_{i=1}^{n} S n := { Z i } i = 1 n be n n n i.i.d. copies of Z Z Z . Given a loss function ℓ \ell ℓ , the (expected) risk R ℓ R_\ell R ℓ is defined as
R ℓ : H → [ 0 , ∞ ) , R ℓ ( h ) : = E Z [ ℓ ( h , Z ) ] . (1) R_\ell:\mathcal{H}\to[0,\infty),\qquad R_\ell(h):=\mathbb{E}_{Z}[\ell(h,Z)]. \tag*{(1)} R ℓ : H → [ 0 , ∞ ) , R ℓ ( h ) := E Z [ ℓ ( h , Z )] . (1)
The empirical risk R ^ ℓ \widehat{R}_\ell R ℓ of a hypothesis h h h and a set of points { z i } i = 1 n ∈ Z n \{z_i\}_{i=1}^{n}\in\mathcal{Z}^{n} { z i } i = 1 n ∈ Z n is given by
R ^ ℓ : H × Z n → [ 0 , ∞ ) , \widehat{R}_\ell:\mathcal{H}\times\mathcal{Z}^{n}\to[0,\infty), R ℓ : H × Z n → [ 0 , ∞ ) ,
R ^ ℓ ( h , { z i } i = 1 n ) : = 1 n ∑ i = 1 n ℓ ( h , z i ) . (2) \widehat{R}_\ell\left(h,\{z_i\}_{i=1}^{n}\right):=\frac{1}{n}\sum_{i=1}^{n}\ell(h,z_i). \tag*{(2)} R ℓ ( h , { z i } i = 1 n ) := n 1 i = 1 ∑ n ℓ ( h , z i ) . (2)
We call the difference of the risk and the empirical risk the generalization gap, which we denote by
Δ : H × Z n → R , \Delta:\mathcal{H}\times\mathcal{Z}^{n}\to\mathbb{R}, Δ : H × Z n → R ,
Δ n ( h ) : = Δ ( h , { z i } i = 1 n ) : = R ℓ ( h ) − R ^ ℓ ( h , { z i } i = 1 n ) . \Delta_n(h):=\Delta\left(h,\{z_i\}_{i=1}^{n}\right):=R_\ell(h)-\widehat{R}_\ell\left(h,\{z_i\}_{i=1}^{n}\right). Δ n ( h ) := Δ ( h , { z i } i = 1 n ) := R ℓ ( h ) − R ℓ ( h , { z i } i = 1 n ) .
For a measure μ \mu μ on a measurable space ( S , S ) (S,\mathcal{S}) ( S , S ) and an integrable function f : S → R f:S\to\mathbb{R} f : S → R , we use the shorthand
μ [ f ] : = ∫ S f d μ . (3) \mu[f]:=\int_{S}f\,\mathrm{d}\mu. \tag*{(3)} μ [ f ] := ∫ S f d μ . (3)
When μ \mu μ is the probability measure induced by a random variable Z Z Z , denoted by P Z \mathbb{P}_{Z} P Z , we instead write E Z [ f ] \mathbb{E}_{Z}[f] E Z [ f ] . We next define OT discrepancies between probability measures μ \mu μ and ν \nu ν on Polish spaces S S S and T T T , respectively. Let the cost function c ∈ L 1 ( μ ⊗ ν ) c\in L^{1}(\mu\otimes\nu) c ∈ L 1 ( μ ⊗ ν ) be bounded from below. The OT distance is given by
OT c ( μ , ν ) : = inf π ∈ Π ( μ , ν ) π [ c ] , \operatorname{OT}_{c}(\mu,\nu):=\inf_{\pi\in\Pi(\mu,\nu)}\pi[c], OT c ( μ , ν ) := π ∈ Π ( μ , ν ) inf π [ c ] ,
where Π ( μ , ν ) \Pi(\mu,\nu) Π ( μ , ν ) is the set of couplings of μ \mu μ and ν \nu ν , i.e., the set of joint probability measures with marginals μ \mu μ and ν \nu ν . The Kantorovich duality provides an equivalent dual formulation and will be central to our main result.
Theorem 1.1. (Villani [30 ] ) Let the cost function c ∈ L 1 ( μ ⊗ ν ) c\in L^{1}(\mu\otimes\nu) c ∈ L 1 ( μ ⊗ ν ) be bounded from below. Then we have
OT c ( μ , ν ) = sup ψ 1 ∈ M b ( S ) , ψ 2 ∈ M b ( T ) : ψ 1 ⊕ ψ 2 ≤ c μ [ ψ 1 ] + ν [ ψ 2 ] , \operatorname{OT}_{c}(\mu,\nu)=\sup_{\substack{\psi_{1}\in M_{b}(S),\psi_{2}\in M_{b}(T):\\ \psi_{1}\oplus\psi_{2}\le c}}\mu[\psi_{1}]+\nu[\psi_{2}], OT c ( μ , ν ) = ψ 1 ∈ M b ( S ) , ψ 2 ∈ M b ( T ) : ψ 1 ⊕ ψ 2 ≤ c sup μ [ ψ 1 ] + ν [ ψ 2 ] , where ψ 1 ⊕ ψ 2 ( x , y ) : = ψ 1 ( x ) + ψ 2 ( y ) \psi_{1}\oplus\psi_{2}(x,y):=\psi_{1}(x)+\psi_{2}(y) ψ 1 ⊕ ψ 2 ( x , y ) := ψ 1 ( x ) + ψ 2 ( y ) .
The PAC-Bayesian bound due to McAllester [18 ] will serve as a baseline example to demonstrate how to construct PAC-Bayesian bounds that use OT distances instead of the KL divergence. Since the KL divergence is a central component of the classical bound, we first recall its definition. Let μ \mu μ and ν \nu ν be probability measures on a measurable space ( S , S ) (S,\mathcal{S}) ( S , S ) . The KL divergence of μ \mu μ w.r.t. ν \nu ν is defined as
D K L ( μ ∥ ν ) : = { ∫ ln ( d μ d ν ) d μ , if μ ≪ ν , ∞ , otherwise , D_{\mathrm{KL}}(\mu\Vert\nu):=
\begin{cases}
\int\ln\left(\frac{\mathrm{d}\mu}{\mathrm{d}\nu}\right)\,\mathrm{d}\mu, & \text{if }\mu\ll\nu,\\
\infty, & \text{otherwise},
\end{cases} D KL ( μ ∥ ν ) := { ∫ ln ( d ν d μ ) d μ , ∞ , if μ ≪ ν , otherwise ,
where d μ d ν \frac{\mathrm{d}\mu}{\mathrm{d}\nu} d ν d μ denotes the Radon–Nikodym derivative of μ \mu μ w.r.t. ν \nu ν . In particular, the KL divergence is finite only if μ \mu μ is absolutely continuous w.r.t. ν \nu ν .
Theorem 1.2. (McAllester [18 ] ) Let ℓ : H × Z → [ 0 , 1 ] \ell:\mathcal{H}\times\mathcal{Z}\to[0,1] ℓ : H × Z → [ 0 , 1 ] be a measurable loss function, let P P P be a prior distribution over H \mathcal{H} H , n ≥ 2 n\ge2 n ≥ 2 and let δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) . Then, with probability at least 1 − δ 1-\delta 1 − δ over the draw of S n S_n S n ,
Q [ R ℓ ] ≤ Q [ R ^ ℓ ( ⋅ , S n ) ] + D K L ( Q ∥ P ) + ln n δ 2 ( n − 1 ) Q[R_\ell]\le Q[\widehat{R}_\ell(\cdot,S_n)]+\sqrt{\frac{D_{\mathrm{KL}}(Q\Vert P)+\ln\frac{n}{\delta}}{2(n-1)}} Q [ R ℓ ] ≤ Q [ R ℓ ( ⋅ , S n )] + 2 ( n − 1 ) D KL ( Q ∥ P ) + ln δ n holds simultaneously for any distribution Q Q Q over H \mathcal{H} H .
Main Result: Optimal Transport based PAC-Bayesian Bound
In this section, we present a general template for PAC-Bayesian generalization bounds in which the KL divergence is replaced by OT distances. Before stating the general bound, we first introduce and discuss a crucial regularity assumption that characterizes the relation between the learning task and the cost function. This condition needs to be verified for the specific learning task and transport cost under consideration.
Assumption 2.1 (regularity condition). Let the cost function c : H × Z → [ 0 , ∞ ) c:\mathcal{H}\times\mathcal{Z}\to[0,\infty) c : H × Z → [ 0 , ∞ ) be a measurable function, and n ∈ N n\in\mathbb{N} n ∈ N . Assume that there exists C n > 0 C_n>0 C n > 0 such that
Δ n 2 ⊕ − Δ n 2 ≤ C n ⋅ c (4) \Delta_n^{2}\oplus-\Delta_n^{2}\le C_n\cdot c \tag*{(4)} Δ n 2 ⊕ − Δ n 2 ≤ C n ⋅ c (4) for P S n \mathbb{P}_{S_n} P S n almost all s n = { z i } i = 1 n ∈ Z n s_n=\{z_i\}_{i=1}^{n}\in\mathcal{Z}^{n} s n = { z i } i = 1 n ∈ Z n .
Assumption 2.1 links the learning problem and the OT cost. It ensures that the geometry induced by the cost function c c c is meaningful for the underlying learning task. Depending on the sample size n n n , the difference of the generalization gap for hypotheses h h h and f f f is controlled by their ground cost c ( h , f ) c(h,f) c ( h , f ) . This condition is not automatic and must be verified on a case-by-case basis for each specific choice of transport cost. Similar assumptions were made for example by Amit et al. [4 ] and Raginsky and Recht [22 ] . While Amit et al. [4 ] use such regularity assumptions to derive PAC-Bayesian bounds based on integral probability metrics, Raginsky and Recht [22 ] use related sensitivity assumptions to derive deterministic generalization bounds from the geometry of the learning problem. In particular, they interpret generalization as a sensitivity problem, separating the geometric properties of the learning problem from the probabilistic assumptions on the data. For bounded losses as in McAllester-type bounds, the assumption can be weakened. If ℓ : H × Z → [ 0 , 1 ] \ell:\mathcal{H}\times\mathcal{Z}\to[0,1] ℓ : H × Z → [ 0 , 1 ] , then ∣ Δ n ( f ) ∣ ≤ 1 |\Delta_n(f)|\le1 ∣ Δ n ( f ) ∣ ≤ 1 . Hence, it suffices to establish ∣ Δ n ( f ) − Δ n ( g ) ∣ ≤ C n c ( f , g ) |\Delta_n(f)-\Delta_n(g)|\le C_n c(f,g) ∣ Δ n ( f ) − Δ n ( g ) ∣ ≤ C n c ( f , g ) , since it implies the regularity condition (4) . Based on the regularity condition, we derive our following main theorem.
Theorem 2.2. Let ℓ : H × Z → [ 0 , 1 ] \ell:\mathcal{H}\times\mathcal{Z}\to[0,1] ℓ : H × Z → [ 0 , 1 ] be a measurable loss function. Let P P P be a prior distribution over H \mathcal{H} H , let n ≥ 2 n\ge2 n ≥ 2 and let δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) . Suppose that Assumption 2.1 holds. Then, with probability at least 1 − δ 1-\delta 1 − δ over S n S_n S n ,
Q [ R ℓ ] ≤ Q [ R ^ ℓ ( ⋅ , S n ) ] + C n OT c ( Q , P ) + ln n δ 2 ( n − 1 ) (5) Q[\mathcal{R}_{\ell}]\le Q[\widehat{\mathcal{R}}_{\ell}(\cdot,S_n)]+\sqrt{C_n\operatorname{OT}_{c}(Q,P)+\frac{\ln\frac{n}{\delta}}{2(n-1)}} \tag*{(5)} Q [ R ℓ ] ≤ Q [ R ℓ ( ⋅ , S n )] + C n OT c ( Q , P ) + 2 ( n − 1 ) ln δ n (5) holds simultaneously for any distribution Q Q Q over H \mathcal{H} H , such that c ∈ L 1 ( P ⊗ Q ) c\in L^1(P\otimes Q) c ∈ L 1 ( P ⊗ Q ) . In particular, if C n ′ = 1 2 ( n − 1 ) C_n'=\frac{1}{2(n-1)} C n ′ = 2 ( n − 1 ) 1 , then
Q [ R ℓ ] ≤ Q [ R ^ ℓ ( ⋅ , S n ) ] + OT c ( Q , P ) + ln n δ 2 ( n − 1 ) (6) Q[\mathcal{R}_{\ell}]\le Q[\widehat{\mathcal{R}}_{\ell}(\cdot,S_n)]+\sqrt{\frac{\operatorname{OT}_{c}(Q,P)+\ln\frac{n}{\delta}}{2(n-1)}} \tag*{(6)} Q [ R ℓ ] ≤ Q [ R ℓ ( ⋅ , S n )] + 2 ( n − 1 ) OT c ( Q , P ) + ln δ n (6) holds with probability at least 1 − δ 1-\delta 1 − δ over S n S_n S n simultaneously for any distribution Q Q Q over H \mathcal{H} H , such that c ∈ L 1 ( P ⊗ Q ) c\in L^1(P\otimes Q) c ∈ L 1 ( P ⊗ Q ) .
We prove the theorem in the Supplementary Material A. The regularity constant C n C_n C n plays a crucial role in the growth of the complexity term. If C n C_n C n increases with n n n , the bound in (5) is only valuable for finite n n n . However, if C n C_n C n decreases sufficiently fast with n n n , (5) gives also an asymptotic convergence guarantee as in (6) . This analysis the subject of § 3 , where we discuss explicit instances of the template based on OT metrics, including, OT distances with concave costs, the TV distance and Wasserstein-p p p distances.
Theorem 2.2 closely mirrors the classical PAC-Bayesian bound of McAllester in Theorem 1.2. In particular, the structure of the bound is similar, with the KL divergence being replaced by an OT distance, and the regularity constant C n C_n C n which now appears to capture the geometry of the hypothesis space. Consequently, other PAC-Bayesian bounds that are traditionally formulated in terms of the KL divergence can be transformed by substituting the KL divergence with the general OT distance. This includes, for example, the bounds of Catoni [9 ] , Maurer [15 ] and Seeger [23 ] . At proof level, the key argument is modifying the variational argument underlying the KL-based bound. Specifically, the Donsker-Varadhan variational formula is replaced by the Kantorovich duality for the OT distance in Theorem 1.1 . See the Supplementary Material A for details.
The use of OT distances in this context offers several advantages. Most notably, OT distances do not require the posterior distribution to be absolutely continuous w.r.t. the prior, thereby relaxing a key restriction imposed by KL-based PAC-Bayes bounds and allowing for greater flexibility in the choice of priors.
Therefore, OT distances can compare mutually singular measures, including deterministic priors and posteriors represented by Dirac measures. Moreover, OT distances explicitly incorporate the underlying geometry of the hypothesis space, which can lead to tighter and more informative bounds. OT distances and IPMs both provide alternatives to KL divergence that remain finite for mutually singular distributions, but they encode different notions of discrepancy. IPMs measure differences through expectations over a prescribed class of test functions and thus depend critically on its choice. In contrast, OT distances compare distributions through couplings and an explicit cost on the underlying hypothesis space. Consequently, OT distances incorporate the geometry of the hypothesis space directly, whereas IPMs require this geometry to be encoded implicitly through the choice of the test function class. This distinction is particularly relevant for PAC-Bayesian bounds as an OT-based bound can exploit a meaningful cost between hypotheses without requiring a corresponding test function class, providing a direct way to control how far the posterior moves from the prior in hypothesis space.
Cases of Vanishing Regularity Constant
In our bound in Theorem 2.2 , the complexity term vanishes asymptotically only if the regularity constant C n → 0 C_n\to0 C n → 0 as n → ∞ n\to\infty n → ∞ . In this section, we analyze several such instances using classical learning theory.
Concave OT Bound for Linear Regression
First, we consider linear regression and derive PAC-Bayesian bounds for concave OT distances, a special case of the ϕ \phi ϕ -OT distances, defined below.
Definition 3.1 (ϕ \phi ϕ -Optimal Transport). Let ( H , d ) (\mathcal{H},d) ( H , d ) be a Polish space equipped with its Borel σ \sigma σ -algebra B ( H ) \mathcal{B}(\mathcal{H}) B ( H ) and let μ \mu μ and ν \nu ν be probability measures on H \mathcal{H} H . Let ϕ : [ 0 , ∞ ) → [ 0 , ∞ ) \phi:[0,\infty)\to[0,\infty) ϕ : [ 0 , ∞ ) → [ 0 , ∞ ) be non-decreasing with ϕ ( 0 ) = 0 \phi(0)=0 ϕ ( 0 ) = 0 and ϕ ( r ) > 0 \phi(r)>0 ϕ ( r ) > 0 for r > 0 r>0 r > 0 . The ϕ \phi ϕ -OT distance between μ \mu μ and ν \nu ν is defined as
C ϕ ( μ , ν ) : = inf π ∈ Π ( μ , ν ) π [ ϕ ∘ d ] . C_{\phi}(\mu,\nu):=\inf_{\pi\in\Pi(\mu,\nu)}\pi[\phi\circ d]. C ϕ ( μ , ν ) := π ∈ Π ( μ , ν ) inf π [ ϕ ∘ d ] . If ϕ \phi ϕ is additionally concave, we refer to C ϕ C_{\phi} C ϕ as a concave OT distance. These distances use the natural geometry of H \mathcal{H} H , while the choice of ϕ \phi ϕ controls the relative cost of local and long-range transport. Hence for concave ϕ \phi ϕ , long displacements incur a smaller cost per unit distance than short ones. Moreover, concavity implies subadditivity, and hence d ϕ : = ϕ ∘ d d_{\phi}:=\phi\circ d d ϕ := ϕ ∘ d is itself a metric.
Examples include
ϕ α ( r ) = r α , 0 < α ≤ 1 , ϕ ln ( r ) = ln ( 1 + r ) \phi_{\alpha}(r)=r^{\alpha},\quad0<\alpha\leq1,\qquad\phi_{\ln}(r)=\ln(1+r) ϕ α ( r ) = r α , 0 < α ≤ 1 , ϕ l n ( r ) = ln ( 1 + r )
and ϕ exp ( r ) = 1 − exp ( − r ) \phi_{\exp}(r)=1-\exp(-r) ϕ e x p ( r ) = 1 − exp ( − r ) .
For ϕ ( r ) = r \phi(r)=r ϕ ( r ) = r , our regularity condition (Assumption 2.1) is C n C_n C n -Lipschitz continuity of Δ n 2 \Delta_n^2 Δ n 2 w.r.t. d d d and the corresponding OT distance is the Wasserstein-1 distance. We thus recover precisely the regularity assumption of Amit et al. [4 ] . More generally, for concave ϕ \phi ϕ , the assumption is equivalent to C n C_n C n -Lipschitz continuity of Δ n 2 \Delta_n^2 Δ n 2 w.r.t. the transformed metric d ϕ : = ϕ ∘ d d_{\phi}:=\phi\circ d d ϕ := ϕ ∘ d .
The following theorem instantiates Theorem 2.2 for linear regression and in particular, bounds the regularity constant at rate O ( n − 1 ) O(n^{-1}) O ( n − 1 ) . Although PAC-Bayesian bounds for linear regression have been considered previously, we are the first, to the best of our knowledge, to derive such a bound using general OT distances in place of the KL divergence.
Theorem 3.2 (Concave OT PAC-Bayes for Linear Regression). Let ϕ : [ 0 , ∞ ) → [ 0 , ∞ ) \phi:[0,\infty)\to[0,\infty) ϕ : [ 0 , ∞ ) → [ 0 , ∞ ) be non-decreasing and concave, with ϕ ( 0 ) = 0 \phi(0)=0 ϕ ( 0 ) = 0 and ϕ ( r ) > 0 \phi(r)>0 ϕ ( r ) > 0 for r > 0 r>0 r > 0 . Let Z = ( X , Y ) Z=(X,Y) Z = ( X , Y ) be a random variable in R d × R \mathbb{R}^{d}\times\mathbb{R} R d × R satisfying ∥ X ∥ 2 ≤ R \lVert X\rVert_2\leq R ∥ X ∥ 2 ≤ R and ∣ Y ∣ ≤ Y max \lvert Y\rvert\leq Y_{\max} ∣ Y ∣ ≤ Y m a x almost surely for some R , Y max > 0 R,Y_{\max}>0 R , Y m a x > 0 . Consider the hypothesis class H = { w ∈ R d : ∥ w ∥ 2 ≤ B } \mathcal{H}=\{w\in\mathbb{R}^{d}:\lVert w\rVert_2\leq B\} H = { w ∈ R d : ∥ w ∥ 2 ≤ B } for B > 0 B>0 B > 0 , equipped with the Euclidean metric d ( w , v ) = ∥ w − v ∥ 2 d(w,v)=\lVert w-v\rVert_2 d ( w , v ) = ∥ w − v ∥ 2 and squared loss
ℓ ( w , ( x , y ) ) = 1 2 ( ⟨ w , x ⟩ − y ) 2 . \ell(w,(x,y))=\frac{1}{2}\left(\langle w,x\rangle-y\right)^2. ℓ ( w , ( x , y )) = 2 1 ( ⟨ w , x ⟩ − y ) 2 . Let δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , n ≥ 2 n\geq2 n ≥ 2 and P P P be a prior distribution over H \mathcal{H} H . Then, with probability at least 1 − δ 1-\delta 1 − δ over S n S_n S n ,
Q [ R ℓ ] ≤ Q [ R ^ ℓ ( ⋅ , S n ) ] + ( c ( B , R , Y max ) ( ( 1 + ln 12 δ ) 2 n C ϕ ( P , Q ) + ln 2 n δ 2 ( n − 1 ) ) ) 1 2 Q[R_{\ell}]\leq Q[\widehat{R}_{\ell}(\cdot,S_n)]+\left(c(B,R,Y_{\max})\left(\frac{\left(1+\sqrt{\ln\frac{12}{\delta}}\right)^2}{n}C_{\phi}(P,Q)+\frac{\ln\frac{2n}{\delta}}{2(n-1)}\right)\right)^{\frac{1}{2}} Q [ R ℓ ] ≤ Q [ R ℓ ( ⋅ , S n )] + c ( B , R , Y m a x ) n ( 1 + ln δ 12 ) 2 C ϕ ( P , Q ) + 2 ( n − 1 ) ln δ 2 n 2 1 holds simultaneously for every posterior distribution Q Q Q over H \mathcal{H} H , with
c ( B , R , Y max ) = 4 B ϕ ( 2 B ) ( B 2 R 2 + Y max 2 2 + B R Y max ) ( B R 2 + R Y max ) . c(B,R,Y_{\max})=\frac{4B}{\phi(2B)}\left(\frac{B^2R^2+Y_{\max}^2}{2}+BRY_{\max}\right)(BR^2+RY_{\max}). c ( B , R , Y m a x ) = ϕ ( 2 B ) 4 B ( 2 B 2 R 2 + Y m a x 2 + B R Y m a x ) ( B R 2 + R Y m a x ) . For the proof, see the Supplementary Material B.
Total-Variation Bound
As a second instance, we specialize the OT framework to the TV distance
d T V ( μ , ν ) : = sup A ∈ B ( H ) ∣ μ ( A ) − ν ( A ) ∣ . d_{\mathrm{TV}}(\mu,\nu):=\sup_{A\in\mathcal{B}(\mathcal{H})}\lvert\mu(A)-\nu(A)\rvert. d TV ( μ , ν ) := A ∈ B ( H ) sup ∣ μ ( A ) − ν ( A )∣ .
Since the TV distance is an IPM, PAC-Bayesian bounds based on TV have been considered previously. Our contribution is to systematically combine such bound with classical complexity measures to control the regularity constant in Theorem 2.2 . In particular, Theorem 3.4 controls the regularity constant in terms of the Rademacher complexity. While alternative derivations may also yield bounds of this form, to the best of our knowledge, our framework is the first to explicitly establish this connection between TV-based PAC-Bayesian bounds and Rademacher complexity. Moreover, Theorem 3.7 shows that the regularity constant can alternatively be controlled by the VC dimension, recovering existing TV-based PAC-Bayesian bounds as a special case of our framework. First, we define the Rademacher complexity.
Definition 3.3 (Expected Rademacher complexity). Let ( H , d ) (\mathcal{H},d) ( H , d ) be a Polish space equipped with its Borel σ \sigma σ -algebra B ( H ) \mathcal{B}(\mathcal{H}) B ( H ) . Let
F ℓ = { ℓ h ∣ ℓ h : Z → [ 0 , 1 ] , ℓ h ( z ) = ℓ ( h , z ) , h ∈ H } \mathcal{F}_{\ell}=\{\ell_h\mid\ell_h:\mathcal{Z}\to[0,1],\ \ell_h(z)=\ell(h,z),\ h\in\mathcal{H}\} F ℓ = { ℓ h ∣ ℓ h : Z → [ 0 , 1 ] , ℓ h ( z ) = ℓ ( h , z ) , h ∈ H } be the loss class induced by H \mathcal{H} H and ℓ \ell ℓ . Let σ 1 , … , σ n ∼ UNIF { − 1 , 1 } \sigma_1,\ldots,\sigma_n\sim\operatorname{UNIF}\{-1,1\} σ 1 , … , σ n ∼ UNIF { − 1 , 1 } be i.i.d. and independent of S n S_n S n . The expected Rademacher complexity of F ℓ \mathcal{F}_{\ell} F ℓ is defined as
R n ( F ℓ ) : = E S n , σ [ sup h ∈ H 1 n ∑ i = 1 n σ i ℓ ( h , Z i ) ] . \mathfrak{R}_n(\mathcal{F}_{\ell}):=\mathbb{E}_{S_n,\sigma}\left[\sup_{h\in\mathcal{H}}\frac{1}{n}\sum_{i=1}^{n}\sigma_i\ell(h,Z_i)\right]. R n ( F ℓ ) := E S n , σ [ h ∈ H sup n 1 i = 1 ∑ n σ i ℓ ( h , Z i ) ] .
Theorem 3.4 (Total-variation PAC-Bayes bound based on Rademacher complexity). Let ℓ : H × Z → [ 0 , 1 ] \ell:\mathcal{H}\times\mathcal{Z}\to[0,1] ℓ : H × Z → [ 0 , 1 ] be a measurable loss function and let F ℓ \mathcal{F}_{\ell} F ℓ be the corresponding induced loss class. Further, let P P P be a prior distribution over H \mathcal{H} H , n ≥ 2 n\geq2 n ≥ 2 and let δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) . Then, with probability at least 1 − δ 1-\delta 1 − δ over S n S_n S n ,
Q [ R ℓ ] ≤ Q [ R ^ ℓ ( ⋅ , S n ) ] + ( 2 R n ( F ℓ ) + ln ( 4 / δ ) 2 n ) 2 d T V ( Q , P ) + ln ( 2 n / δ ) 2 ( n − 1 ) . Q[R_{\ell}]\leq Q[\widehat{R}_{\ell}(\cdot,S_n)]
+\sqrt{\left(2\mathfrak{R}_n(\mathcal{F}_{\ell})+\sqrt{\frac{\ln(4/\delta)}{2n}}\right)^2d_{\mathrm{TV}}(Q,P)+\frac{\ln(2n/\delta)}{2(n-1)}}. Q [ R ℓ ] ≤ Q [ R ℓ ( ⋅ , S n )] + ( 2 R n ( F ℓ ) + 2 n ln ( 4/ δ ) ) 2 d TV ( Q , P ) + 2 ( n − 1 ) ln ( 2 n / δ ) . holds simultaneously for every posterior distribution Q Q Q over H \mathcal{H} H .
The proof is given in the Supplementary Material C.
Remark 3.5. The Rademacher complexity R n ( F ℓ ) \mathfrak{R}_n(\mathcal{F}_{\ell}) R n ( F ℓ ) can be bounded for many standard loss classes. Here, R n ( F ℓ ) \mathfrak{R}_n(\mathcal{F}_{\ell}) R n ( F ℓ ) denotes the complexity of the loss class, not the hypothesis class H \mathcal{H} H . In many standard settings, these two complexities can be related. For example, for Lipschitz loss, the contraction principle provides a direct connection between the complexity of the loss class and that of H \mathcal{H} H and similarly in binary classification with the 0 0 0 -1 1 1 loss. See, e.g., Shalev-Shwartz and Ben-David [24 ] ; Mohri et al. [20 ] . The resulting rate is typically O ( 1 / n ) O(1/\sqrt{n}) O ( 1/ n ) .
A related concept is the VC dimension, which provides the combinatorial complexity of binary hypothesis classes. For classes with finite VC dimension, the Rademacher complexity is of order O ( ln n / n ) O(\sqrt{\ln n/n}) O ( ln n / n ) ([24 ] ). Thus, the VC dimension can be used in the preceding approach to show that the regularity constant C n C_n C n vanishes. As shown below for the TV example, the it can also yield a direct bound on C n C_n C n . We first recall its definition.
Definition 3.6. Let H \mathcal{H} H be a class of binary-valued functions h : X → { 0 , 1 } h:\mathcal{X}\to\{0,1\} h : X → { 0 , 1 } . A finite set { x 1 , … , x m } ⊂ X \{x_1,\ldots,x_m\}\subset\mathcal{X} { x 1 , … , x m } ⊂ X is shattered by H \mathcal{H} H if, for every ( y 1 , … , y m ) ∈ { 0 , 1 } m (y_1,\ldots,y_m)\in\{0,1\}^m ( y 1 , … , y m ) ∈ { 0 , 1 } m , there exists h ∈ H h\in\mathcal{H} h ∈ H such that h ( x i ) = y i h(x_i)=y_i h ( x i ) = y i for all i = 1 , … , m i=1,\ldots,m i = 1 , … , m . The VC dimension of H \mathcal{H} H , denoted by VC ( H ) \operatorname{VC}(\mathcal{H}) VC ( H ) , is the largest m m m for which there exists a set of m m m points that is shattered by H \mathcal{H} H . If sets of arbitrarily large finite cardinality can be shattered, we set VC ( H ) = ∞ \operatorname{VC}(\mathcal{H})=\infty VC ( H ) = ∞ .
In our framework, we can recover the bound by Amit et al. [4 ] .
Theorem 3.7. Consider a binary classification problem, with the 0-1 loss, and hypothesis class H \mathcal{H} H , with finite VC dimension. Then there exists some constant c > 0 c>0 c > 0 s.t. for any prior P P P and δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , with probability at least 1 − δ 1-\delta 1 − δ over the samples S n S_n S n
Q [ R ℓ ] ≤ Q [ R ^ ℓ ( ⋅ , S n ) ] + c VC ( H ) + ln ( 1 δ ) n d T V ( Q , P ) + ln ( 2 n / δ ) 2 ( n − 1 ) . Q[\mathcal{R}_{\ell}] \leq Q[\widehat{\mathcal{R}}_{\ell}(\cdot,S_n)] + \sqrt{c\frac{\operatorname{VC}(\mathcal{H})+\ln\left(\frac{1}{\delta}\right)}{n}d_{\mathrm{TV}}(Q,P)+\frac{\ln(2n/\delta)}{2(n-1)}}. Q [ R ℓ ] ≤ Q [ R ℓ ( ⋅ , S n )] + c n VC ( H ) + ln ( δ 1 ) d TV ( Q , P ) + 2 ( n − 1 ) ln ( 2 n / δ ) . The proof is given in the Supplementary Material D.
Remark 3.8. Using classical learning-theoretic approaches to bound the regularization constant is not limited to the special case of the TV distance. For other OT distances, however, additional assumptions on the hypothesis class and the loss function are required, see Supplementary Material E.
Wasserstein-p p p Distance Bounds
For p ≥ 1 p\geq1 p ≥ 1 , the Wasserstein-p p p distance is defined by
( W p ( μ , ν ) ) p : = inf π ∈ Π ( μ , ν ) π [ d p ] . \left(W_p(\mu,\nu)\right)^p := \inf_{\pi\in\Pi(\mu,\nu)}\pi[d^p]. ( W p ( μ , ν ) ) p := π ∈ Π ( μ , ν ) inf π [ d p ] .
Previous PAC-Bayesian bounds based on Wasserstein distances considered the special case p = 1 p=1 p = 1 , which is an IPM. Our framework extends these results to arbitrary p ≥ 1 p\geq1 p ≥ 1 . For compact H \mathcal{H} H , Theorem 2.2 , yields a PAC-Bayesian bound for W p ( μ , ν ) W_p(\mu,\nu) W p ( μ , ν ) for every p ≥ 1 p\geq1 p ≥ 1 . To state the result, define the function class of normalized loss differences
G : = { ℓ ( h , ⋅ ) − ℓ ( h ′ , ⋅ ) d ( h , h ′ ) p : h , h ′ ∈ H , h ≠ h ′ } . \mathcal{G}:=\left\{\frac{\ell(h,\cdot)-\ell(h',\cdot)}{d(h,h')^p}:h,h'\in\mathcal{H},\ h\ne h'\right\}. G := { d ( h , h ′ ) p ℓ ( h , ⋅ ) − ℓ ( h ′ , ⋅ ) : h , h ′ ∈ H , h = h ′ } .
and let G > 0 \mathcal{G}>0 G > 0 be a uniform p p p -Hölder constant of ℓ ( ⋅ , z ) \ell(\cdot,z) ℓ ( ⋅ , z ) . We further define the associated entropy integral
J ( 1 , G ) : = sup μ ∫ 0 1 1 + log N ( ε G , G , L 2 ( μ ) ) d ε , J(1,\mathcal{G}):=\sup_{\mu}\int_0^1\sqrt{1+\log N(\varepsilon\mathcal{G},\mathcal{G},L_2(\mu))}\,d\varepsilon, J ( 1 , G ) := μ sup ∫ 0 1 1 + log N ( ε G , G , L 2 ( μ )) d ε ,
where the supremum is over finitely supported probability measures μ \mu μ on Z \mathcal{Z} Z and N ( ε , G , L 2 ( μ ) ) N(\varepsilon,\mathcal{G},L_2(\mu)) N ( ε , G , L 2 ( μ )) denotes the L 2 ( μ ) L_2(\mu) L 2 ( μ ) covering number of G \mathcal{G} G at radius ε \varepsilon ε .
Theorem 3.9. Let ℓ : H × Z → [ 0 , 1 ] \ell:\mathcal{H}\times\mathcal{Z}\to[0,1] ℓ : H × Z → [ 0 , 1 ] be measurable and ( H , d ) (\mathcal{H},d) ( H , d ) be a compact metric space. Assume that ℓ ( ⋅ , z ) \ell(\cdot,z) ℓ ( ⋅ , z ) is a p p p -Hölder continuous with constant G \mathcal{G} G uniformly in z ∈ Z z\in\mathcal{Z} z ∈ Z . Let P P P be a prior distribution over H \mathcal{H} H , n ≥ 2 n\geq2 n ≥ 2 , δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) . Then there is a constant c > 0 c>0 c > 0 s.t. with probability at least 1 − δ 1-\delta 1 − δ over S n S_n S n
Q [ R ℓ ] ≤ Q [ R ^ ℓ ( ⋅ , S n ) ] + ( ( c G J ( 1 , G ) n + G 2 ln ( 1 / δ ) n W p ( Q , P ) p + ln ( 2 n / δ ) 2 ( n − 1 ) ) ) 1 2 (7) Q[\mathcal{R}_{\ell}]\leq Q[\widehat{\mathcal{R}}_{\ell}(\cdot,S_n)]+\left(\left(\frac{c\mathcal{G}J(1,\mathcal{G})}{\sqrt{n}}+\mathcal{G}\sqrt{\frac{2\ln(1/\delta)}{n}}\,W_p(Q,P)^p+\frac{\ln(2n/\delta)}{2(n-1)}\right)\right)^{\frac{1}{2}} \tag*{(7)} Q [ R ℓ ] ≤ Q [ R ℓ ( ⋅ , S n )] + ( ( n c G J ( 1 , G ) + G n 2 ln ( 1/ δ ) W p ( Q , P ) p + 2 ( n − 1 ) ln ( 2 n / δ ) ) ) 2 1 (7) holds simultaneously for any distribution Q Q Q over H \mathcal{H} H .
The proof is given in the Supplementary Material F.
Experiments We compare McAllester-style PAC-Bayesian bounds based on KL divergence, IPMs, and OT distances. PAC-Bayesian bounds come in several forms, such as the McAllester and Catoni bounds, each with distinct properties and advantages. Rather than comparing these different PAC-Bayesian bound constructions, we fix the McAllester-style framework and vary only the discrepancy measure appearing in the bound. This allows us to isolate how the choice of discrepancy measure affects the resulting generalization bound and to illustrate the distinct properties induced by KL divergence, IPMs, and OT distances. We therefore first study these measures independently of the PAC-Bayesian setting in Supplementary Material G: The KL divergence requires absolute continuity and becomes infinite under support mismatch, whereas IPMs and OT distances remain finite. Further unlike the KL divergence, IPMs and OT distances do not explode under changes in concentration or location of probability mass. In contrast to IPMs, OT distances provide a direct and interpretable notion of how far probability mass has to be moved.
Discrete Linear Regression The first experiment uses a synthetic dataset. We consider two-dimensional linear regression with inputs
sampled uniformly from the Euclidean unit ball and outputs generated according to
y = ⟨ w ⋆ , x ⟩ + ϵ , w ⋆ = ( 0.5 , − 0.5 ) , ϵ ∼ N ( 0 , 0.1 2 ) . y = \langle w_{\star}, x \rangle+ \epsilon,\quad w_{\star} = (0.5, -0.5),\quad\epsilon\sim\mathcal{N}(0, 0.1^{2}). y = ⟨ w ⋆ , x ⟩ + ϵ , w ⋆ = ( 0.5 , − 0.5 ) , ϵ ∼ N ( 0 , 0. 1 2 ) .
The hypothesis class is a finite grid H ⊂ [ − 1 , 1 ] 2 \mathcal{H} \subset[-1, 1]^{2} H ⊂ [ − 1 , 1 ] 2 of linear predictors h w ( x ) = ⟨ w , x ⟩ h_w(x) = \langle w, x\rangle h w ( x ) = ⟨ w , x ⟩ . Priors and posteriors are discretized Gaussian distributions on this grid. We use the bounded Hölder loss
ℓ ( w , ( x , y ) ) = min { 1 , ∣ ⟨ w , x ⟩ − y ∣ / M } α . \ell(w,(x,y)) = \min\{1, |\langle w,x\rangle-y|/M\}^{\alpha}. ℓ ( w , ( x , y )) = min { 1 , ∣ ⟨ w , x ⟩ − y ∣/ M } α .
For each configuration, we compute the empirical Gibbs risk, estimate the population Gibbs risk on an independent test set and compare PAC-Bayesian bounds based on KL divergence, Wasserstein-1 and Wasserstein-2, TV distance and other OT distances.
We perform four controlled sweeps. First, varying n n n in Figure 1 a shows similar scaling across all bounds, consistent with their O ( ln ( n ) / n ) O\left(\sqrt{\ln(n)/n}\right) O ( ln ( n ) / n ) complexity terms. In Figure 1 b, we move the prior mean away from a fixed posterior concentrated near w ⋆ w_{\star} w ⋆ , isolating the effect of prior–posterior mismatch. Next, Figure 1 b and Figure 1 c vary the prior and posterior means, respectively, to isolate the effect of prior-posterior mismatch. Although the KL divergence increases sharply with this mismatch, its bound can remain competitive because its complexity term has a smaller prefactor compared to the OT and IPM based bounds. Finally, Figure 1 d decreases the common variance σ 2 \sigma^{2} σ 2 . The KL term grows
Figure 1. In this linear regression experiment, we compare PAC-Bayesian bounds whose remainder terms are based on different statistical distances. We compare the behavior of the bounds for different priors, posteriors and sample sizes. For each experiment, the picture on the left shows the behavior of the distance and the right shows the full bound.
rapidly as σ \sigma σ decreases and is numerically evaluated as infinite for σ ≤ 0.05 \sigma\le0.05 σ ≤ 0.05 due to floating-point overflow, although it remains finite mathematically. The OT-based discrepancies remain finite on the bounded hypothesis grid, yielding meaningful bounds even for small σ \sigma σ . For larger σ \sigma σ , however, the KL-based bound is tighter. Performance generally improves as ϕ \phi ϕ becomes more concave. A possible explanation is that the prior and posterior differ by transporting non-negligible mass over relatively large distances. More concave choices of ϕ \phi ϕ assign lower marginal cost to such long-range transport, reducing the OT discrepancy and potentially tightening the resulting bound.
Classification
We next consider binary classification on the UCI Pendigits dataset [1 ] , licensed under CC BY 4.0.). We restrict each task to digits 3 and 5, encoded as labels − 1 -1 − 1 and + 1 +1 + 1 . We split the data into prior, training, and test sets with proportions 40%/30%/30%. A two-layer ReLU network is trained as a feature extractor f f f on the prior set and then frozen. The resulting hypothesis class consists of affine classifiers on the learned representation,
h θ ( x ) = sign ( θ T ( f ( x ) 1 ) ) , θ ∈ R d + 1 . h_{\theta}(x) = \operatorname{sign}\left(\theta^{\mathsf{T}}\begin{pmatrix} f(x) \\ 1 \end{pmatrix}\right),\quad\theta\in\mathbb{R}^{d+1}. h θ ( x ) = sign ( θ T ( f ( x ) 1 ) ) , θ ∈ R d + 1 .
Unlike in the synthetic regression experiment, we use continuous prior and posterior distributions. The prior is the isotropic Gaussian
P = N ( μ P , σ 2 I d + 1 ) , P = \mathcal{N}(\mu_P, \sigma^2 I_{d+1}), P = N ( μ P , σ 2 I d + 1 ) ,
where μ P \mu_P μ P is obtained by training on the prior set. We obtain a target posterior mean μ ⋆ \mu_\star μ ⋆ by training on the training set and consider the family of posteriors
Q t = N ( μ P + t ( μ ⋆ − μ P ) , σ 2 I ) , t ∈ [ 0 , 1.5 ] . Q_t = \mathcal{N}\left(\mu_P + t(\mu_\star- \mu_P), \sigma^2 I\right), \qquad t \in[0, 1.5]. Q t = N ( μ P + t ( μ ⋆ − μ P ) , σ 2 I ) , t ∈ [ 0 , 1.5 ] .
Values t ≤ 1 t \le1 t ≤ 1 interpolate between the prior mean and the target, while t > 1 t > 1 t > 1 extrapolates beyond the target to stress-test the discrepancy terms.
For each t t t , we compute the empirical Gibbs risk on the training set and estimate the population Gibbs risk on the test set. We compare McAllester’s KL bound with the VC-based bounds involving d T V ( Q t , P ) d_{\mathrm{TV}}(Q_t, P) d TV ( Q t , P ) and C ϕ ( Q t , P ) C_{\phi}(Q_t, P) C ϕ ( Q t , P ) . See Figure 2 for the results.
Figure 2. In this experiment, we compare PAC-Bayesian bounds whose complexity terms are based on different statistical distance. We compare the behavior of the bounds for different posteriors. The picture on the left shows the behavior of the distance and the right shows the full bound.
For this experiment, the behavior of the bounds as a function of t t t can be understood from the exact expressions for KL and W p W_p W p given in the Supplementary Material G. In particular, since σ P = σ Q t \sigma_P = \sigma_{Q_t} σ P = σ Q t
D K L ( Q t ∥ P ) = t 2 ∥ μ ⋆ − μ P ∥ 2 2 2 σ 2 , D_{\mathrm{KL}}(Q_t \mathbin{\|} P) = \frac{t^2\lVert\mu_\star- \mu_P \rVert_2^2}{2\sigma^2}, D KL ( Q t ∥ P ) = 2 σ 2 t 2 ∥ μ ⋆ − μ P ∥ 2 2 ,
W p ( Q t , P ) = t ∥ μ ⋆ − μ P ∥ 2 . W_p(Q_t, P) = t\lVert\mu_\star- \mu_P \rVert_2. W p ( Q t , P ) = t ∥ μ ⋆ − μ P ∥ 2 .
Hence, the KL divergence grows quadratically in t t t , whereas Wasserstein distances grow linearly. For small t t t , the KL-based bound is tighter because its discrepancy term has a smaller coefficient. As t t t increases, the growth of KL eventually dominates, and the OT-based bounds become tighter. In our experiment, this occurs for t ≥ 0.8 t \ge0.8 t ≥ 0.8 . Notably, the KL divergence already exceeds the OT discrepancies in the small-t t t regime, but the smaller coefficient in the KL bound compensates for this difference. Overall, the results illustrate the complementary behavior predicted by the theory, that KL-based bounds are advantageous for small prior-posterior mismatch, whereas OT-based bounds are more robust to larger shifts.
Conclusion
We introduced a general framework for PAC-Bayesian generalization bounds that replaces the KL divergence between posterior and prior with general OT distances. This change removes the requirement that the posterior has to be absolutely continuous w.r.t. the prior and consequently, allows PAC-Bayesian bounds to be formulated for prior and posterior distributions with disjoint supports. More generally, OT distances account for the geometry of the hypothesis space through the choice of cost function, providing a notion of proximity between distributions that is not captured by the KL divergence or IPMs. The resulting bounds can therefore remain meaningful in settings where KL-based bounds become vacuous due to support mismatch or substantial prior-posterior displacement.
Our numerical experiments illustrate this difference. When the prior is displaced from the posterior or assigns little mass to the region containing the posterior, KL-based bounds become substantially worse, whereas OT-based bounds account for the distance between the corresponding hypotheses and can remain informative. Conversely, when the prior and posterior are well aligned, the KL divergence can provide tighter bounds than the OT-based alternatives. This demonstrates that OT does not uniformly dominate KL, rather, the two complexity measures capture different notions of prior-posterior discrepancy. The choice between them therefore depends on the geometry of the hypothesis space and on how the prior is constructed.
AI use statement
In this work, we used generative AI tools for assist in the writing of proofs, design or provide feedback on research methodology or experiments, implement methods. We have not used generative AI tools for generate synthetic data sets, help develop theoretical models or conceptual frameworks, formulate mathematical claims, provide critical ingredients for proving mathematical claims, propose or refine hypotheses and assist with translation, clean and reformat datasets, support qualitative and thematic data analysis, interpret results are not applicable to this work. Additionally, we used generative AI tools for suggest experimental parameters, create or edit software code, summarize or analyze existing literature, brainstorming, sourcing/searching for information, edit a research paper to improve readability, identify relevant literature. We have reviewed all AI-assisted work. LLM-generated code was verified and tested for correctness by two authors. LLM-assisted literature summaries were cross-checked against the original source papers. Any citations or claims derived from these summaries were independently verified to ensure accuracy and appropriate attribution. All information retrieved through AI-assisted search was traced back to primary sources. We confirmed the existence, accuracy, and relevance of each source before incorporating it into the manuscript. AI-assisted edits were reviewed line by line by the authors. No substantive claims, technical content, or logical arguments were altered without explicit author approval. We take responsibility for the final content of this work, including text, claims, or artifacts produced with the aid of generative AI.
Acknowledgements
We acknowledge funding by the ANR-DFG joint project TRINOM-DS under the numbers ANR-20-CE92-0037-01 and OC150/5-1.
Bibliography
Proof of Theorem 2.2
Proof. Let n ≥ 2 n \ge2 n ≥ 2 and define
f : Z n → R , f ( s n ) : = sup Q ( 2 ( n − 1 ) Q [ Δ ( ⋅ , s n ) 2 ] − C n ⋅ 2 ( n − 1 ) OT c ( Q , P ) ) . f : \mathcal{Z}^{n} \to\mathbb{R}, \qquad f(s_n) := \sup_Q \left(2(n-1)Q\left[\Delta(\cdot,s_n)^2\right] - C_n \cdot2(n-1)\operatorname{OT}_c(Q,P)\right). f : Z n → R , f ( s n ) := Q sup ( 2 ( n − 1 ) Q [ Δ ( ⋅ , s n ) 2 ] − C n ⋅ 2 ( n − 1 ) OT c ( Q , P ) ) .
Markov’s inequality (Kallenberg, [13 ] ) yields
P [ f ( S n ) ≥ ε ] = P [ e f ( S n ) ≥ e ε ] ≤ E S n [ e f ] e ε . (8) \mathbb{P}[f(S_n) \ge\varepsilon] = \mathbb{P}\left[e^{f(S_n)} \ge e^\varepsilon\right] \le\frac{\mathbb{E}_{S_n}[e^f]}{e^\varepsilon}. \tag*{(8)} P [ f ( S n ) ≥ ε ] = P [ e f ( S n ) ≥ e ε ] ≤ e ε E S n [ e f ] . (8)
The rest of the proof bounds E S n [ e f ] \mathbb{E}_{S_n}[e^f] E S n [ e f ] .
By assumption, we have a bounded loss ℓ : H × Z → [ 0 , 1 ] \ell: \mathcal{H} \times\mathcal{Z} \to[0,1] ℓ : H × Z → [ 0 , 1 ] and therefore for all f ∈ H f \in\mathcal{H} f ∈ H
Δ n ( f ) = ( E Z [ ℓ ( f , ⋅ ) ] − 1 n ∑ i = 1 n ℓ ( f , z i ) ) ∈ [ − 1 , 1 ] . \Delta_n(f) = \left(\mathbb{E}_{Z}[\ell(f,\cdot)] - \frac{1}{n}\sum_{i=1}^{n}\ell(f,z_i)\right) \in[-1,1]. Δ n ( f ) = ( E Z [ ℓ ( f , ⋅ )] − n 1 i = 1 ∑ n ℓ ( f , z i ) ) ∈ [ − 1 , 1 ] .
and in particular
ψ : = C n − 1 Δ n 2 ∈ [ 0 , C n − 1 ] . \psi:= C_n^{-1}\Delta_n^2 \in[0,C_n^{-1}]. ψ := C n − 1 Δ n 2 ∈ [ 0 , C n − 1 ] .
Furthermore, since ψ \psi ψ is a composition of measurable functions by definition, both ψ \psi ψ and − ψ -\psi − ψ are measurable and bounded functions, i.e., they belong to M b ( H ) M_b(\mathcal{H}) M b ( H ) . Together with the assumption C n − 1 Δ n 2 ⊕ − C n − 1 Δ n 2 ≤ c C_n^{-1}\Delta_n^2 \oplus-C_n^{-1}\Delta_n^2 \le c C n − 1 Δ n 2 ⊕ − C n − 1 Δ n 2 ≤ c holding P S n \mathbb{P}_{S_n} P S n -a.s., Kantorovich’s duality in Theorem 1.1 implies for P S n \mathbb{P}_{S_n} P S n almost all s n s_n s n and for all distributions Q Q Q over H \mathcal{H} H
Q [ C n − 1 Δ n 2 ] + P [ − C n − 1 Δ n 2 ] ≤ OT c ( Q , P ) . Q[C_n^{-1}\Delta_n^2] + P[-C_n^{-1}\Delta_n^2] \le\operatorname{OT}_c(Q,P). Q [ C n − 1 Δ n 2 ] + P [ − C n − 1 Δ n 2 ] ≤ OT c ( Q , P ) .
Equivalently,
Q [ 2 ( n − 1 ) Δ n 2 ] + P [ − 2 ( n − 1 ) Δ n 2 ] ≤ C n ⋅ 2 ( n − 1 ) ⋅ OT c ( Q , P ) . Q[2(n-1)\Delta_n^2] + P[-2(n-1)\Delta_n^2] \le C_n \cdot2(n-1)\cdot\operatorname{OT}_c(Q,P). Q [ 2 ( n − 1 ) Δ n 2 ] + P [ − 2 ( n − 1 ) Δ n 2 ] ≤ C n ⋅ 2 ( n − 1 ) ⋅ OT c ( Q , P ) .
Therefore, rearranging and Jensen’s inequality applied to the exponential function yield
2 ( n − 1 ) Q [ Δ n 2 ] − C n ⋅ 2 ( n − 1 ) ⋅ OT c ( Q , P ) ≤ P [ 2 ( n − 1 ) Δ n 2 ] ≤ ln P [ e 2 ( n − 1 ) Δ n 2 ] . 2(n-1)Q[\Delta_n^2] - C_n \cdot2(n-1)\cdot\operatorname{OT}_c(Q,P) \le P[2(n-1)\Delta_n^2] \le\ln P\left[e^{2(n-1)\Delta_n^2}\right]. 2 ( n − 1 ) Q [ Δ n 2 ] − C n ⋅ 2 ( n − 1 ) ⋅ OT c ( Q , P ) ≤ P [ 2 ( n − 1 ) Δ n 2 ] ≤ ln P [ e 2 ( n − 1 ) Δ n 2 ] .
Since it holds for all distributions Q Q Q over H \mathcal{H} H , we get
f ( s n ) = sup Q ( 2 ( n − 1 ) Q [ Δ n 2 ] − C n ⋅ 2 ( n − 1 ) ⋅ OT c ( Q , P ) ) ≤ ln P [ e 2 ( n − 1 ) Δ n 2 ] . f(s_n) = \sup_Q\left(2(n-1)Q[\Delta_n^2] - C_n \cdot2(n-1)\cdot\operatorname{OT}_c(Q,P)\right) \le\ln P\left[e^{2(n-1)\Delta_n^2}\right]. f ( s n ) = Q sup ( 2 ( n − 1 ) Q [ Δ n 2 ] − C n ⋅ 2 ( n − 1 ) ⋅ OT c ( Q , P ) ) ≤ ln P [ e 2 ( n − 1 ) Δ n 2 ] .
By the independence of the prior P P P and the sample set S n S_n S n , we get
E S n [ e f ] ≤ E S n [ P [ e 2 ( n − 1 ) Δ n 2 ] ] = P [ E S n [ e 2 ( n − 1 ) Δ n 2 ] ] . \mathbb{E}_{S_n}[e^f] \le\mathbb{E}_{S_n}\left[P\left[e^{2(n-1)\Delta_n^2}\right]\right] = P\left[\mathbb{E}_{S_n}\left[e^{2(n-1)\Delta_n^2}\right]\right]. E S n [ e f ] ≤ E S n [ P [ e 2 ( n − 1 ) Δ n 2 ] ] = P [ E S n [ e 2 ( n − 1 ) Δ n 2 ] ] .
Let h ∈ H h \in\mathcal{H} h ∈ H . Hoeffding’s inequality yields
P [ Δ n ( h ) ≥ ε ] ≤ e − 2 n ε 2 , \mathbb{P}[\Delta_n(h) \ge\varepsilon] \le e^{-2n\varepsilon^2}, P [ Δ n ( h ) ≥ ε ] ≤ e − 2 n ε 2 ,
which implies by Lemma 5 in [16 ]
E S n [ e 2 ( n − 1 ) Δ n ( h ) 2 ] ≤ n . \mathbb{E}_{S_n}\left[e^{2(n-1)\Delta_n(h)^2}\right]\le n. E S n [ e 2 ( n − 1 ) Δ n ( h ) 2 ] ≤ n .
Hence E S n [ e f ( S n ) ] ≤ n \mathbb{E}_{S_n}\left[e^{f(S_n)}\right]\le n E S n [ e f ( S n ) ] ≤ n . Combining this with (8) , we get
P [ f ( S n ) ≥ ε ] ≤ n e ε . \mathbb{P}[f(S_n)\ge\varepsilon]\le\frac{n}{e^\varepsilon}. P [ f ( S n ) ≥ ε ] ≤ e ε n .
Choosing ε = ln n δ \varepsilon=\ln\frac{n}{\delta} ε = ln δ n and rearranging terms yields the statement.
Proof of Theorem 3.2
We first restate Theorem 3.2 with all constants made explicit. We then establish the claimed bound by combining three intermediate lemmas.
Theorem B.1. Let ϕ : [ 0 , ∞ ) → [ 0 , ∞ ) \phi:[0,\infty)\to[0,\infty) ϕ : [ 0 , ∞ ) → [ 0 , ∞ ) be non-decreasing and concave, with ϕ ( 0 ) = 0 \phi(0)=0 ϕ ( 0 ) = 0 and ϕ ( r ) > 0 \phi(r)>0 ϕ ( r ) > 0 for every r > 0 r>0 r > 0 . Let Z = ( X , Y ) Z=(X,Y) Z = ( X , Y ) be a random variable taking values in R d × R \mathbb{R}^{d}\times\mathbb{R} R d × R . Assume that there exist R , Y max > 0 R,Y_{\max}>0 R , Y m a x > 0 such that
∥ X ∥ 2 ≤ R and ∣ Y ∣ ≤ Y max \lVert X\rVert_{2}\le R\qquad\text{and}\qquad|Y|\le Y_{\max} ∥ X ∥ 2 ≤ R and ∣ Y ∣ ≤ Y m a x almost surely. Consider the hypothesis class and squared loss
H = { w ∈ R d : ∥ w ∥ 2 ≤ B } , ℓ ( w , ( x , y ) ) = 1 ( B R + Y max ) 2 ( ⟨ w , x ⟩ − y ) 2 , \mathcal{H}=\{w\in\mathbb{R}^{d}:\lVert w\rVert_{2}\le B\},\qquad\ell(w,(x,y))=\frac{1}{(BR+Y_{\max})^{2}}(\langle w,x\rangle-y)^{2}, H = { w ∈ R d : ∥ w ∥ 2 ≤ B } , ℓ ( w , ( x , y )) = ( B R + Y m a x ) 2 1 (⟨ w , x ⟩ − y ) 2 , where B > 0 B>0 B > 0 . Equip H \mathcal{H} H with the Euclidean metric d ( w , v ) = ∥ w − v ∥ 2 d(w,v)=\lVert w-v\rVert_{2} d ( w , v ) = ∥ w − v ∥ 2 . Let δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , n ≥ 2 n\ge2 n ≥ 2 and P P P be a prior distribution over H \mathcal{H} H . Then, for every posterior distribution Q Q Q over H \mathcal{H} H ,
Q [ R ℓ ] ≤ Q [ R ^ ℓ ( ⋅ , S n ) ] Q[R_{\ell}]\le Q[\widehat{R}_{\ell}(\cdot,S_n)] Q [ R ℓ ] ≤ Q [ R ℓ ( ⋅ , S n )] + 4 B ϕ ( 2 B ) ( B 2 R 2 + Y max 2 2 + B R Y max ) ( B R 2 + R Y max ) ( 1 + ln 2 δ ) 2 n C ϕ ( P , Q ) + ln 2 n δ 2 ( n − 1 ) +\sqrt{\frac{4B}{\phi(2B)}\left(\frac{B^{2}R^{2}+Y_{\max}^{2}}{2}+BRY_{\max}\right)(BR^{2}+RY_{\max})\frac{\left(1+\sqrt{\ln\frac{2}{\delta}}\right)^{2}}{n}C_{\phi}(P,Q)+\frac{\ln\frac{2n}{\delta}}{2(n-1)}} + ϕ ( 2 B ) 4 B ( 2 B 2 R 2 + Y m a x 2 + B R Y m a x ) ( B R 2 + R Y m a x ) n ( 1 + ln δ 2 ) 2 C ϕ ( P , Q ) + 2 ( n − 1 ) ln δ 2 n holds with probability at least 1 − δ 1-\delta 1 − δ over an i.i.d. sample S n = ( Z 1 , … , Z n ) S_n=(Z_1,\ldots,Z_n) S n = ( Z 1 , … , Z n ) .
Assumption B.2 (Uniform convergence [24 ] ). There exists a bound function u ( n , δ ) > 0 u(n,\delta)>0 u ( n , δ ) > 0 such that for δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , u ( n , δ ) → n → ∞ 0 u(n,\delta)\xrightarrow[n\to\infty]{}0 u ( n , δ ) n → ∞ 0 and for any n ∈ N n\in\mathbb{N} n ∈ N
P [ ∣ Δ n ( h ) ∣ ≤ u ( n , δ ) , ∀ h ∈ H ] ≥ 1 − δ . \mathbb{P}\left[|\Delta_n(h)|\le u(n,\delta),\ \forall h\in\mathcal{H}\right]\ge1-\delta. P [ ∣ Δ n ( h ) ∣ ≤ u ( n , δ ) , ∀ h ∈ H ] ≥ 1 − δ .
Assumption B.3 (Loss-Gradient UC Property). There exists a bound function u g r a d ( n , δ ) > 0 u_{\mathrm{grad}}(n,\delta)>0 u grad ( n , δ ) > 0 such that for any δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , u g r a d ( n , δ ) → n → ∞ 0 u_{\mathrm{grad}}(n,\delta)\xrightarrow[n\to\infty]{}0 u grad ( n , δ ) n → ∞ 0 and for any n ∈ N n\in\mathbb{N} n ∈ N
P [ sup f ≠ g ∣ Δ n ( f , S n ) − Δ n ( g , S n ) ∣ ϕ ( d ( f , g ) ) ≤ u g r a d ( n , δ ) ] ≥ 1 − δ . \mathbb{P}\left[\sup_{f\ne g}\frac{|\Delta_n(f,S_n)-\Delta_n(g,S_n)|}{\phi(d(f,g))}\le u_{\mathrm{grad}}(n,\delta)\right]\ge1-\delta. P [ f = g sup ϕ ( d ( f , g )) ∣ Δ n ( f , S n ) − Δ n ( g , S n ) ∣ ≤ u grad ( n , δ ) ] ≥ 1 − δ .
Remark B.4. Assumption B.3 generalizes the Loss-Gradient Uniform Convergence (UC) property introduced by Amit et al. [4 ] , which requires that with probability at least 1 − δ 1-\delta 1 − δ
sup h ∈ Int ( H ) ∥ E Z [ ∇ h ℓ ( h , Z ) ] − 1 n ∑ i = 1 n ∇ h ℓ ( h , z i ) ∥ 2 ≤ u g r a d ( n , δ ) , \sup_{h\in\operatorname{Int}(\mathcal{H})}\left\lVert\mathbb{E}_{Z}[\nabla_h\ell(h,Z)]-\frac{1}{n}\sum_{i=1}^{n}\nabla_h\ell(h,z_i)\right\rVert_{2}\le u_{\mathrm{grad}}(n,\delta), h ∈ Int ( H ) sup E Z [ ∇ h ℓ ( h , Z )] − n 1 i = 1 ∑ n ∇ h ℓ ( h , z i ) 2 ≤ u grad ( n , δ ) ,
under the assumption that ℓ : H × Z → R \ell:\mathcal{H}\times\mathcal{Z}\to\mathbb{R} ℓ : H × Z → R is differentiable w.r.t. h h h on Int ( H ) × Z \operatorname{Int}(\mathcal{H})\times\mathcal{Z} Int ( H ) × Z and continuous on H × Z \mathcal{H}\times\mathcal{Z} H × Z .
Lemma B.5. Let ( H , d ) (\mathcal{H},d) ( H , d ) be a metric space, ℓ : H × Z → [ 0 , 1 ] \ell:\mathcal{H}\times\mathcal{Z}\to[0,1] ℓ : H × Z → [ 0 , 1 ] be measurable, P P P be a prior distribution over H \mathcal{H} H , δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , n ≥ 2 n\ge2 n ≥ 2 and let ϕ : [ 0 , ∞ ) → [ 0 , ∞ ) \phi:[0,\infty)\to[0,\infty) ϕ : [ 0 , ∞ ) → [ 0 , ∞ ) be non-decreasing with ϕ ( 0 ) = 0 \phi(0)=0 ϕ ( 0 ) = 0 and ϕ ( r ) > 0 \phi(r)>0 ϕ ( r ) > 0 for r ≠ 0 r\ne0 r = 0 . Assume that the assumptions B.2 and B.3 are satisfied. Then, for every posterior distribution Q Q Q over H \mathcal{H} H ,
Q [ R ℓ ] ≤ Q [ R ^ ℓ ( ⋅ , S n ) ] + 2 ⋅ u ( n , δ 4 ) u g r a d ( n , δ 4 ) C ϕ ( P , Q ) + ln 2 n δ 2 ( n − 1 ) Q[\mathcal{R}_{\ell}] \le Q[\widehat{\mathcal{R}}_{\ell}(\cdot,S_n)] + \sqrt{2\cdot u\left(n,\frac{\delta}{4}\right)u_{\mathrm{grad}}\left(n,\frac{\delta}{4}\right)C_{\phi}(P,Q)+\frac{\ln\frac{2n}{\delta}}{2(n-1)}} Q [ R ℓ ] ≤ Q [ R ℓ ( ⋅ , S n )] + 2 ⋅ u ( n , 4 δ ) u grad ( n , 4 δ ) C ϕ ( P , Q ) + 2 ( n − 1 ) ln δ 2 n holds with probability at least 1 − δ 1-\delta 1 − δ .
Proof. The proof of this theorem is based on Theorem 2.2 , where the Lipschitz constant C n C_n C n will be bounded using Assumptions B.2 and B.3. For this, let f , g ∈ H f,g\in\mathcal{H} f , g ∈ H , then
∣ Δ n ( f ) 2 − Δ n ( g ) 2 ∣ = ∣ Δ n ( f ) − Δ n ( g ) ∣ ⋅ ∣ Δ n ( f ) + Δ n ( g ) ∣ . \left|\Delta_n(f)^2-\Delta_n(g)^2\right|=\left|\Delta_n(f)-\Delta_n(g)\right|\cdot\left|\Delta_n(f)+\Delta_n(g)\right|. Δ n ( f ) 2 − Δ n ( g ) 2 = ∣ Δ n ( f ) − Δ n ( g ) ∣ ⋅ ∣ Δ n ( f ) + Δ n ( g ) ∣ .
Assumptions B.2 provides, that
∣ Δ n ( f ) + Δ n ( g ) ∣ ≤ 2 sup h ∈ H ∣ Δ n ( h ) ∣ ≤ 2 ⋅ u ( n , δ 4 ) \left|\Delta_n(f)+\Delta_n(g)\right|\le2\sup_{h\in\mathcal{H}}\left|\Delta_n(h)\right|\le2\cdot u\left(n,\frac{\delta}{4}\right) ∣ Δ n ( f ) + Δ n ( g ) ∣ ≤ 2 h ∈ H sup ∣ Δ n ( h ) ∣ ≤ 2 ⋅ u ( n , 4 δ )
holds with probability at least 1 − δ 4 1-\frac{\delta}{4} 1 − 4 δ . Furthermore, Assumption B.3 yields
∣ Δ n ( f ) − Δ n ( g ) ∣ ≤ u g r a d ( n , δ 4 ) ⋅ ϕ ( d ( f , g ) ) \left|\Delta_n(f)-\Delta_n(g)\right|\le u_{\mathrm{grad}}\left(n,\frac{\delta}{4}\right)\cdot\phi(d(f,g)) ∣ Δ n ( f ) − Δ n ( g ) ∣ ≤ u grad ( n , 4 δ ) ⋅ ϕ ( d ( f , g ))
with probability at least 1 − δ 4 1-\frac{\delta}{4} 1 − 4 δ . Combining both, by the union bound argument,
∣ Δ n ( f ) 2 − Δ n ( g ) 2 ∣ ≤ 2 ⋅ u ( n , δ 4 ) u g r a d ( n , δ 4 ) ⋅ ϕ ( d ( f , g ) ) \left|\Delta_n(f)^2-\Delta_n(g)^2\right|\le2\cdot u\left(n,\frac{\delta}{4}\right)u_{\mathrm{grad}}\left(n,\frac{\delta}{4}\right)\cdot\phi(d(f,g)) Δ n ( f ) 2 − Δ n ( g ) 2 ≤ 2 ⋅ u ( n , 4 δ ) u grad ( n , 4 δ ) ⋅ ϕ ( d ( f , g ))
holds with probability at least 1 − δ 2 1-\frac{\delta}{2} 1 − 2 δ . Taking C n = 2 ⋅ u ( n , δ 4 ) u g r a d ( n , δ 4 ) C_n=2\cdot u\left(n,\frac{\delta}{4}\right)u_{\mathrm{grad}}\left(n,\frac{\delta}{4}\right) C n = 2 ⋅ u ( n , 4 δ ) u grad ( n , 4 δ ) in Theorem 2.2 and using again the union bound implies the statement.
Definition B.6 (Bounded Differences Property). A function f : X 1 × X 2 × ⋯ × X n → R f:\mathcal{X}_1\times\mathcal{X}_2\times\cdots\times\mathcal{X}_n\to\mathbb{R} f : X 1 × X 2 × ⋯ × X n → R satisfies the bounded differences property if substituting the value of the i i i -th coordinate x i x_i x i changes the value of f f f by at most c i c_i c i . More precisely, if there are constants c 1 , c 2 , … , c n c_1,c_2,\ldots,c_n c 1 , c 2 , … , c n such that for all i ∈ [ n ] i\in[n] i ∈ [ n ] and all x 1 ∈ X 1 , x 2 ∈ X 2 , … , x n ∈ X n x_1\in\mathcal{X}_1,x_2\in\mathcal{X}_2,\ldots,x_n\in\mathcal{X}_n x 1 ∈ X 1 , x 2 ∈ X 2 , … , x n ∈ X n ,
sup x i ′ ∈ X i ∣ f ( x 1 , … , x i − 1 , x i , x i + 1 , … , x n ) − f ( x 1 , … , x i − 1 , x i ′ , x i + 1 , … , x n ) ∣ ≤ c i . \sup_{x_i'\in\mathcal{X}_i}\left|f(x_1,\ldots,x_{i-1},x_i,x_{i+1},\ldots,x_n)-f(x_1,\ldots,x_{i-1},x_i',x_{i+1},\ldots,x_n)\right|\le c_i. x i ′ ∈ X i sup ∣ f ( x 1 , … , x i − 1 , x i , x i + 1 , … , x n ) − f ( x 1 , … , x i − 1 , x i ′ , x i + 1 , … , x n ) ∣ ≤ c i .
Lemma B.7 (McDiarmid’s Inequality, (McDiarmid, [19 ] ).) Let f : X 1 × X 2 × ⋯ × X n → R f:\mathcal{X}_1\times\mathcal{X}_2\times\cdots\times\mathcal{X}_n\to\mathbb{R} f : X 1 × X 2 × ⋯ × X n → R satisfy the bounded differences property with bounds c 1 , c 2 , … , c n c_1,c_2,\ldots,c_n c 1 , c 2 , … , c n . Consider independent random variables X 1 , X 2 , … , X n X_1,X_2,\ldots,X_n X 1 , X 2 , … , X n where X i ∈ X i X_i\in\mathcal{X}_i X i ∈ X i for all i i i . Then, for any ε > 0 \varepsilon>0 ε > 0 ,
P [ f ( X 1 , X 2 , … , X n ) − E [ f ( X 1 , X 2 , … , X n ) ] ≥ ε ] ≤ exp ( − 2 ε 2 ∑ i = 1 n c i 2 ) , \mathbb{P}\left[f(X_1,X_2,\ldots,X_n)-\mathbb{E}\left[f(X_1,X_2,\ldots,X_n)\right]\ge\varepsilon\right]\le\exp\left(-\frac{2\varepsilon^2}{\sum_{i=1}^{n}c_i^2}\right), P [ f ( X 1 , X 2 , … , X n ) − E [ f ( X 1 , X 2 , … , X n ) ] ≥ ε ] ≤ exp ( − ∑ i = 1 n c i 2 2 ε 2 ) , P [ f ( X 1 , X 2 , … , X n ) − E [ f ( X 1 , X 2 , … , X n ) ] ≤ − ε ] ≤ exp ( − 2 ε 2 ∑ i = 1 n c i 2 ) , \mathbb{P}\left[f(X_1,X_2,\ldots,X_n)-\mathbb{E}\left[f(X_1,X_2,\ldots,X_n)\right]\le-\varepsilon\right]\le\exp\left(-\frac{2\varepsilon^2}{\sum_{i=1}^{n}c_i^2}\right), P [ f ( X 1 , X 2 , … , X n ) − E [ f ( X 1 , X 2 , … , X n ) ] ≤ − ε ] ≤ exp ( − ∑ i = 1 n c i 2 2 ε 2 ) , and as an immediate consequence,
P [ ∣ f ( X 1 , X 2 , … , X n ) − E [ f ( X 1 , X 2 , … , X n ) ] ∣ ≥ ε ] ≤ 2 exp ( − 2 ε 2 ∑ i = 1 n c i 2 ) . \mathbb{P}\left[\left|f(X_1,X_2,\ldots,X_n)-\mathbb{E}\left[f(X_1,X_2,\ldots,X_n)\right]\right|\ge\varepsilon\right]\le2\exp\left(-\frac{2\varepsilon^2}{\sum_{i=1}^{n}c_i^2}\right). P [ ∣ f ( X 1 , X 2 , … , X n ) − E [ f ( X 1 , X 2 , … , X n ) ] ∣ ≥ ε ] ≤ 2 exp ( − ∑ i = 1 n c i 2 2 ε 2 ) .
The following lemma provides a dimension-free Hoeffding-type concentration bound for empirical means of bounded Hilbert-space-valued random elements.
Lemma B.8. Let K > 0 K>0 K > 0 . Let X , X 1 , … , X n X,X_1,\ldots,X_n X , X 1 , … , X n be i.i.d. random vectors taking values in a Hilbert space ( X , ⟨ ⋅ , ⋅ ⟩ ) (\mathcal{X},\langle\cdot,\cdot\rangle) ( X , ⟨ ⋅ , ⋅ ⟩) satisfying ∥ X i ∥ ≤ K \lVert X_i\rVert\le K ∥ X i ∥ ≤ K almost surely. Then with probability at least 1 − η 1-\eta 1 − η ,
∥ E [ X ] − 1 n ∑ i = 1 n X i ∥ ≤ K n ( 2 ln ( 1 / η ) + 1 ) . \left\lVert\mathbb{E}[X]-\frac{1}{n}\sum_{i=1}^{n}X_i\right\rVert\le\frac{K}{\sqrt{n}}\left(\sqrt{2\ln(1/\eta)}+1\right). E [ X ] − n 1 i = 1 ∑ n X i ≤ n K ( 2 ln ( 1/ η ) + 1 ) .
Proof. Jensen’s inequality and the i.i.d. assumption entail
E [ ∥ E [ X ] − 1 n ∑ i = 1 n X i ∥ 2 ] ≤ E [ ∥ E [ X ] − 1 n ∑ i = 1 n X i ∥ 2 ] = 1 n E [ ∥ E [ X ] − X ∥ 2 ] = 1 n ( E [ ∥ X ∥ 2 ] − ∥ E [ X ] ∥ 2 ) . \mathbb{E}\left[\left\|\mathbb{E}[X]-\frac{1}{n}\sum_{i=1}^{n}X_i\right\|^2\right]\leq\mathbb{E}\left[\left\|\mathbb{E}[X]-\frac{1}{n}\sum_{i=1}^{n}X_i\right\|^2\right]=\frac{1}{n}\mathbb{E}\left[\left\|\mathbb{E}[X]-X\right\|^2\right]=\frac{1}{n}\left(\mathbb{E}\left[\|X\|^2\right]-\|\mathbb{E}[X]\|^2\right). E E [ X ] − n 1 i = 1 ∑ n X i 2 ≤ E E [ X ] − n 1 i = 1 ∑ n X i 2 = n 1 E [ ∥ E [ X ] − X ∥ 2 ] = n 1 ( E [ ∥ X ∥ 2 ] − ∥ E [ X ] ∥ 2 ) .
Therefore
E [ ∥ E [ X ] − 1 n ∑ i = 1 n X i ∥ ] ≤ ( 1 n E [ ∥ X − E [ X ] ∥ 2 ] ) 1 / 2 ≤ E [ ∥ X ∥ 2 ] 1 / 2 n ≤ K n . (9) \mathbb{E}\left[\left\|\mathbb{E}[X]-\frac{1}{n}\sum_{i=1}^{n}X_i\right\|\right]\leq\left(\frac{1}{n}\mathbb{E}\left[\left\|X-\mathbb{E}[X]\right\|^2\right]\right)^{1/2}\leq\frac{\mathbb{E}\left[\|X\|^2\right]^{1/2}}{\sqrt{n}}\leq\frac{K}{\sqrt{n}}. \tag*{(9)} E [ E [ X ] − n 1 i = 1 ∑ n X i ] ≤ ( n 1 E [ ∥ X − E [ X ] ∥ 2 ] ) 1/2 ≤ n E [ ∥ X ∥ 2 ] 1/2 ≤ n K . (9)
We apply McDiarmid’s bounded-differences inequality from Lemma B.7 to f : X n → R f:\mathcal{X}^{n}\to\mathbb{R} f : X n → R , where f ( x 1 , … , x n ) : = ∥ E [ X ] − 1 n ∑ i = 1 n x i ∥ f(x_1,\ldots,x_n):=\left\|\mathbb{E}[X]-\frac{1}{n}\sum_{i=1}^{n}x_i\right\| f ( x 1 , … , x n ) := E [ X ] − n 1 ∑ i = 1 n x i . Since ∥ X i ∥ ≤ K \|X_i\|\leq K ∥ X i ∥ ≤ K almost surely, the bounded differences property holds almost surely for c i : = 2 K n c_i:=\frac{2K}{n} c i := n 2 K . McDiarmid’s inequality then implies
P [ f ( X 1 , … , X n ) − E [ f ( X 1 , … , X n ) ] ≥ ε ] ≤ 1 − exp ( − ε 2 n 2 K 2 ) . \mathbb{P}\left[f(X_1,\ldots,X_n)-\mathbb{E}[f(X_1,\ldots,X_n)]\geq\varepsilon\right]\leq1-\exp\left(-\frac{\varepsilon^2n}{2K^2}\right). P [ f ( X 1 , … , X n ) − E [ f ( X 1 , … , X n )] ≥ ε ] ≤ 1 − exp ( − 2 K 2 ε 2 n ) .
Taking ε : = K 2 ln ( 1 / η ) n \varepsilon:=K\sqrt{\frac{2\ln(1/\eta)}{n}} ε := K n 2 l n ( 1/ η ) and using (9) , we obtain
P [ ∥ E [ X ] − 1 n ∑ i = 1 n X i ∥ ≥ K n ( 2 ln ( 1 / η ) + 1 ) ] ≤ P [ f ( X 1 , … , X n ) ≥ K 2 ln ( 1 / η ) n + E [ f ( X 1 , … , X n ) ] ] ≤ η . \mathbb{P}\left[\left\|\mathbb{E}[X]-\frac{1}{n}\sum_{i=1}^{n}X_i\right\|\geq\frac{K}{\sqrt{n}}\left(\sqrt{2\ln(1/\eta)}+1\right)\right]\leq\mathbb{P}\left[f(X_1,\ldots,X_n)\geq K\sqrt{\frac{2\ln(1/\eta)}{n}}+\mathbb{E}[f(X_1,\ldots,X_n)]\right]\leq\eta. P [ E [ X ] − n 1 i = 1 ∑ n X i ≥ n K ( 2 ln ( 1/ η ) + 1 ) ] ≤ P [ f ( X 1 , … , X n ) ≥ K n 2 ln ( 1/ η ) + E [ f ( X 1 , … , X n )] ] ≤ η .
Lemma B.9 (Bounded linear regression under a concave modulus). Let ϕ : [ 0 , ∞ ) → [ 0 , ∞ ) \phi:[0,\infty)\to[0,\infty) ϕ : [ 0 , ∞ ) → [ 0 , ∞ ) be non-decreasing and concave, with ϕ ( 0 ) = 0 \phi(0)=0 ϕ ( 0 ) = 0 and ϕ ( r ) > 0 \phi(r)>0 ϕ ( r ) > 0 for every r > 0 r>0 r > 0 . Let Z = ( X , Y ) Z=(X,Y) Z = ( X , Y ) be a random variable taking values in R d × R \mathbb{R}^{d}\times\mathbb{R} R d × R . Assume that there exist R , Y max > 0 R,Y_{\max}>0 R , Y m a x > 0 such that
∥ X ∥ 2 ≤ R and ∣ Y ∣ ≤ Y max \|X\|_2\leq R\qquad\text{and}\qquad|Y|\leq Y_{\max} ∥ X ∥ 2 ≤ R and ∣ Y ∣ ≤ Y m a x almost surely. Consider the hypothesis class and squared loss
H = { w ∈ R d : ∥ w ∥ 2 ≤ B } , ℓ ( w , ( x , y ) ) = 1 2 ( ⟨ w , x ⟩ − y ) 2 , \mathcal{H}=\{w\in\mathbb{R}^{d}:\|w\|_2\leq B\},\qquad\ell(w,(x,y))=\frac{1}{2}\left(\langle w,x\rangle-y\right)^2, H = { w ∈ R d : ∥ w ∥ 2 ≤ B } , ℓ ( w , ( x , y )) = 2 1 ( ⟨ w , x ⟩ − y ) 2 , where B > 0 B>0 B > 0 . Equip H \mathcal{H} H with the Euclidean metric d ( w , v ) = ∥ w − v ∥ 2 d(w,v)=\|w-v\|_2 d ( w , v ) = ∥ w − v ∥ 2 . Let
κ n ( η ) = 1 n + 2 ln ( 1 / η ) n \kappa_n(\eta)=\frac{1}{\sqrt{n}}+\sqrt{\frac{2\ln(1/\eta)}{n}} κ n ( η ) = n 1 + n 2 ln ( 1/ η ) and δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) . Then with probability at least 1 − δ 1-\delta 1 − δ over an i.i.d. sample S n = ( Z 1 , … , Z n ) S_n=(Z_1,\ldots,Z_n) S n = ( Z 1 , … , Z n ) , the following two inequalities hold simultaneously
sup w ∈ H ∣ Δ n ( w ) ∣ ≤ u ( n , δ ) and sup w , v ∈ H : w ≠ v ∣ Δ n ( w ) − Δ n ( v ) ∣ ϕ ( ∥ w − v ∥ 2 ) ≤ u g r a d ( n , δ ) , \sup_{w\in\mathcal{H}}|\Delta_n(w)|\leq u(n,\delta)\qquad\text{and}\qquad\sup_{\substack{w,v\in\mathcal{H}:\\w\neq v}}\frac{|\Delta_n(w)-\Delta_n(v)|}{\phi(\|w-v\|_2)}\leq u_{\mathrm{grad}}(n,\delta), w ∈ H sup ∣ Δ n ( w ) ∣ ≤ u ( n , δ ) and w , v ∈ H : w = v sup ϕ ( ∥ w − v ∥ 2 ) ∣ Δ n ( w ) − Δ n ( v ) ∣ ≤ u grad ( n , δ ) , where
u ( n , δ ) = ( B 2 R 2 + Y max 2 2 + B R Y max ) κ n ( δ / 3 ) , and u(n,\delta)=\left(\frac{B^2R^2+Y_{\max}^2}{2}+BRY_{\max}\right)\kappa_n(\delta/3),\qquad\text{and} u ( n , δ ) = ( 2 B 2 R 2 + Y m a x 2 + B R Y m a x ) κ n ( δ /3 ) , and u g r a d ( n , δ ) = 2 B ϕ ( 2 B ) ( B R 2 + R Y max ) κ n ( δ / 3 ) . u_{\mathrm{grad}}(n,\delta)=\frac{2B}{\phi(2B)}\left(BR^2+RY_{\max}\right)\kappa_n(\delta/3). u grad ( n , δ ) = ϕ ( 2 B ) 2 B ( B R 2 + R Y m a x ) κ n ( δ /3 ) .
Proof. First, expanding the squared loss gives
Δ n ( w ) = R ℓ ( w ) − R ^ ℓ ( w , S n ) = E [ 1 2 ( ⟨ w , X ⟩ − Y ) 2 ] − 1 n ∑ i = 1 n 1 2 ( ⟨ w , X i ⟩ − Y i ) 2 = 1 2 w T E [ X X T ] w − w T E [ X Y ] + 1 2 E [ Y 2 ] − ∑ i = 1 n 1 n ( 1 2 w T [ X i X i T ] w − w T [ X i Y i ] + 1 2 E [ Y i 2 ] ) = 1 2 w T A S w + w T b S + 1 2 c S , \begin{aligned}
\Delta_n(w)&=\mathcal{R}_{\ell}(w)-\widehat{\mathcal{R}}_{\ell}(w,S_n)\\
&=\mathbb{E}\left[\frac{1}{2}\left(\langle w,X\rangle-Y\right)^2\right]-\frac{1}{n}\sum_{i=1}^{n}\frac{1}{2}\left(\langle w,X_i\rangle-Y_i\right)^2\\
&=\frac{1}{2}w^{\mathsf{T}}\mathbb{E}[XX^{\mathsf{T}}]w-w^{\mathsf{T}}\mathbb{E}[XY]+\frac{1}{2}\mathbb{E}[Y^2]-\sum_{i=1}^{n}\frac{1}{n}\left(\frac{1}{2}w^{\mathsf{T}}[X_iX_i^{\mathsf{T}}]w-w^{\mathsf{T}}[X_iY_i]+\frac{1}{2}\mathbb{E}[Y_i^2]\right)\\
&=\frac{1}{2}w^{\mathsf{T}}A_Sw+w^{\mathsf{T}}b_S+\frac{1}{2}c_S,
\end{aligned} Δ n ( w ) = R ℓ ( w ) − R ℓ ( w , S n ) = E [ 2 1 ( ⟨ w , X ⟩ − Y ) 2 ] − n 1 i = 1 ∑ n 2 1 ( ⟨ w , X i ⟩ − Y i ) 2 = 2 1 w T E [ X X T ] w − w T E [ X Y ] + 2 1 E [ Y 2 ] − i = 1 ∑ n n 1 ( 2 1 w T [ X i X i T ] w − w T [ X i Y i ] + 2 1 E [ Y i 2 ] ) = 2 1 w T A S w + w T b S + 2 1 c S ,
where
A S = E [ X X ⊤ ] − 1 n ∑ i = 1 n X i X i ⊤ , b S = E [ Y X ] − 1 n ∑ i = 1 n Y i X i , and c S = E [ Y 2 ] − 1 n ∑ i = 1 n Y i 2 . A_S = \mathbb{E}[XX^\top] - \frac{1}{n}\sum_{i=1}^{n} X_iX_i^\top,\qquad b_S = \mathbb{E}[YX] - \frac{1}{n}\sum_{i=1}^{n}Y_iX_i,\qquad\text{and}\qquad c_S = \mathbb{E}[Y^2] - \frac{1}{n}\sum_{i=1}^{n}Y_i^2. A S = E [ X X ⊤ ] − n 1 i = 1 ∑ n X i X i ⊤ , b S = E [ Y X ] − n 1 i = 1 ∑ n Y i X i , and c S = E [ Y 2 ] − n 1 i = 1 ∑ n Y i 2 .
Next, we apply Lemma B.8 to X X ⊤ XX^\top X X ⊤ , viewed as an element of the Hilbert space of matrices equipped with the Frobenius norm, to Y X ∈ R d YX \in\mathbb{R}^d Y X ∈ R d and to Y 2 ∈ R Y^2 \in\mathbb{R} Y 2 ∈ R , where
∥ X X ⊤ ∥ F = ∥ X ∥ 2 2 ≤ R 2 , ∥ Y X ∥ 2 ≤ R Y max , and Y 2 ≤ Y max 2 , \lVert XX^\top\rVert_F = \lVert X\rVert_2^2 \le R^2,\qquad\lVert YX\rVert_2 \le RY_{\max},\qquad\text{and}\qquad Y^2 \le Y_{\max}^2, ∥ X X ⊤ ∥ F = ∥ X ∥ 2 2 ≤ R 2 , ∥ Y X ∥ 2 ≤ R Y m a x , and Y 2 ≤ Y m a x 2 ,
almost surely. Hence, a union bound shows that, with probability at least 1 − δ 1-\delta 1 − δ ,
∥ A S ∥ o p ≤ ∥ A S ∥ F ≤ R 2 κ n ( δ / 3 ) , ∥ b S ∥ 2 ≤ R Y max κ n ( δ / 3 ) , ∣ c S ∣ ≤ Y max 2 κ n ( δ / 3 ) \lVert A_S\rVert_{\mathrm{op}} \le\lVert A_S\rVert_F \le R^2\kappa_n(\delta/3),\qquad\lVert b_S\rVert_2 \le RY_{\max}\kappa_n(\delta/3),\qquad|c_S| \le Y_{\max}^2\kappa_n(\delta/3) ∥ A S ∥ op ≤ ∥ A S ∥ F ≤ R 2 κ n ( δ /3 ) , ∥ b S ∥ 2 ≤ R Y m a x κ n ( δ /3 ) , ∣ c S ∣ ≤ Y m a x 2 κ n ( δ /3 )
hold simultaneously. Consequently, with probability at least 1 − δ 1-\delta 1 − δ , for every w ∈ H w\in\mathcal{H} w ∈ H ,
∣ Δ n ( w ) ∣ ≤ 1 2 ∥ w ∥ 2 2 ∥ A S ∥ o p + ∥ w ∥ 2 ∥ b S ∥ 2 + 1 2 ∣ c S ∣ ≤ ( B 2 R 2 2 + B R Y max + Y max 2 2 ) κ n ( δ / 3 ) , |\Delta_n(w)| \le\frac{1}{2}\lVert w\rVert_2^2\lVert A_S\rVert_{\mathrm{op}}+\lVert w\rVert_2\lVert b_S\rVert_2+\frac{1}{2}|c_S| \le\left(\frac{B^2R^2}{2}+BRY_{\max}+\frac{Y_{\max}^2}{2}\right)\kappa_n(\delta/3), ∣ Δ n ( w ) ∣ ≤ 2 1 ∥ w ∥ 2 2 ∥ A S ∥ op + ∥ w ∥ 2 ∥ b S ∥ 2 + 2 1 ∣ c S ∣ ≤ ( 2 B 2 R 2 + B R Y m a x + 2 Y m a x 2 ) κ n ( δ /3 ) ,
which proves the first inequality.
For w , v ∈ H w,v\in\mathcal{H} w , v ∈ H , the symmetry of A S A_S A S yields
Δ n ( w ) − Δ n ( v ) = 1 2 w ⊤ A S w + w ⊤ b S + 1 2 c S − ( 1 2 v ⊤ A S v + v ⊤ b S + 1 2 c S ) = 1 2 ( w − v ) ⊤ A S ( w + v ) + ( w − v ) ⊤ b S . \begin{aligned}
\Delta_n(w)-\Delta_n(v)
&=\frac{1}{2}w^\top A_Sw+w^\top b_S+\frac{1}{2}c_S-\left(\frac{1}{2}v^\top A_Sv+v^\top b_S+\frac{1}{2}c_S\right)\\
&=\frac{1}{2}(w-v)^\top A_S(w+v)+(w-v)^\top b_S.
\end{aligned} Δ n ( w ) − Δ n ( v ) = 2 1 w ⊤ A S w + w ⊤ b S + 2 1 c S − ( 2 1 v ⊤ A S v + v ⊤ b S + 2 1 c S ) = 2 1 ( w − v ) ⊤ A S ( w + v ) + ( w − v ) ⊤ b S .
Hence, by the triangle inequality and the Cauchy Schwarz inequality
∣ Δ n ( w ) − Δ n ( v ) ∣ ≤ ∥ w − v ∥ 2 ( 1 2 ∥ A S ∥ o p ∥ w + v ∥ 2 + ∥ b S ∥ 2 ) ≤ ∥ w − v ∥ 2 ( B ∥ A S ∥ o p + ∥ b S ∥ 2 ) \begin{aligned}
|\Delta_n(w)-\Delta_n(v)|
&\le\lVert w-v\rVert_2\left(\frac{1}{2}\lVert A_S\rVert_{\mathrm{op}}\lVert w+v\rVert_2+\lVert b_S\rVert_2\right)\\
&\le\lVert w-v\rVert_2\left(B\lVert A_S\rVert_{\mathrm{op}}+\lVert b_S\rVert_2\right)
\end{aligned} ∣ Δ n ( w ) − Δ n ( v ) ∣ ≤ ∥ w − v ∥ 2 ( 2 1 ∥ A S ∥ op ∥ w + v ∥ 2 + ∥ b S ∥ 2 ) ≤ ∥ w − v ∥ 2 ( B ∥ A S ∥ op + ∥ b S ∥ 2 )
and therefore with probability at least 1 − δ 1-\delta 1 − δ
∣ Δ n ( w ) − Δ n ( v ) ∣ ∥ w − v ∥ 2 ≤ ( B R 2 + R Y max ) κ n ( δ / 3 ) . \frac{|\Delta_n(w)-\Delta_n(v)|}{\lVert w-v\rVert_2}\le\left(BR^2+RY_{\max}\right)\kappa_n(\delta/3). ∥ w − v ∥ 2 ∣ Δ n ( w ) − Δ n ( v ) ∣ ≤ ( B R 2 + R Y m a x ) κ n ( δ /3 ) .
It remains to compare the Euclidean distance with its modulus under ϕ \phi ϕ . Since 0 ≤ ∥ w − v ∥ 2 ≤ 2 B 0\le\lVert w-v\rVert_2\le2B 0 ≤ ∥ w − v ∥ 2 ≤ 2 B , let t ∈ [ 0 , 2 B ] t\in[0,2B] t ∈ [ 0 , 2 B ] . Every t ∈ [ 0 , 2 B ] t\in[0,2B] t ∈ [ 0 , 2 B ] can be written as a convex combination of 0 0 0 and 2 B 2B 2 B . Concavity and ϕ ( 0 ) = 0 \phi(0)=0 ϕ ( 0 ) = 0 therefore imply
ϕ ( t ) = ϕ ( t 2 B 2 B + ( 1 − t 2 B ) 0 ) ≥ t 2 B ϕ ( 2 B ) . \phi(t)=\phi\left(\frac{t}{2B}2B+\left(1-\frac{t}{2B}\right)0\right)\ge\frac{t}{2B}\phi(2B). ϕ ( t ) = ϕ ( 2 B t 2 B + ( 1 − 2 B t ) 0 ) ≥ 2 B t ϕ ( 2 B ) .
Hence, for every t ∈ ( 0 , 2 B ] t\in(0,2B] t ∈ ( 0 , 2 B ] ,
t ϕ ( t ) ≤ 2 B ϕ ( 2 B ) . \frac{t}{\phi(t)}\le\frac{2B}{\phi(2B)}. ϕ ( t ) t ≤ ϕ ( 2 B ) 2 B .
Combining the preceding inequalities gives
sup w , v ∈ H : w ≠ v ∣ Δ n ( w ) − Δ n ( v ) ∣ ϕ ( ∥ w − v ∥ 2 ) ≤ sup w , v ∈ H : w ≠ v 2 B ϕ ( 2 B ) ∣ Δ n ( w ) − Δ n ( v ) ∣ ∥ w − v ∥ 2 ≤ 2 B ϕ ( 2 B ) ( B R 2 + R Y max ) κ n ( δ / 3 ) \begin{aligned}
\sup_{\substack{w,v\in\mathcal{H}:\\w\ne v}}\frac{|\Delta_n(w)-\Delta_n(v)|}{\phi(\lVert w-v\rVert_2)}
\le
\sup_{\substack{w,v\in\mathcal{H}:\\w\ne v}}
\frac{2B}{\phi(2B)}\frac{|\Delta_n(w)-\Delta_n(v)|}{\lVert w-v\rVert_2} \\
&\le\frac{2B}{\phi(2B)}\left(BR^2+RY_{\max}\right)\kappa_n(\delta/3)
\end{aligned} w , v ∈ H : w = v sup ϕ (∥ w − v ∥ 2 ) ∣ Δ n ( w ) − Δ n ( v ) ∣ ≤ w , v ∈ H : w = v sup ϕ ( 2 B ) 2 B ∥ w − v ∥ 2 ∣ Δ n ( w ) − Δ n ( v ) ∣ ≤ ϕ ( 2 B ) 2 B ( B R 2 + R Y m a x ) κ n ( δ /3 )
with probability at least 1 − δ 1-\delta 1 − δ which proves the second inequality.
Proof of Theorem 3.2. Combining Lemma B.9 and Lemma B.5 proves Theorem 3.2
Proof of Theorem 3.4
For the proof of Theorem 3.4 , we first rederive the PAC-Bayesian bound for the TV distance from Amit et al., [4 ] through the lens of optimal transport. We then combine this bound with a standard result on Rademacher complexity from classical learning theory.
Theorem C.1. (Amit et al., [4 ] , Theorem 6) Let ℓ : H × Z → [ 0 , 1 ] \ell:\mathcal{H}\times\mathcal{Z}\to[0,1] ℓ : H × Z → [ 0 , 1 ] be a measurable loss function. Assume Assumption B.2 holds with bound function u : N × ( 0 , 1 ) → R u:\mathbb{N}\times(0,1)\to\mathbb{R} u : N × ( 0 , 1 ) → R . Further, let P P P be a prior distribution over H \mathcal{H} H , n ≥ 2 n\ge2 n ≥ 2 and let δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) . Then for any distribution Q Q Q over H \mathcal{H} H
Q [ R ℓ ] ≤ Q [ R ^ ℓ ( ⋅ , S n ) ] + u 2 ( n , δ 2 ) d T V ( Q , P ) + ln 2 n δ 2 ( n − 1 ) Q[\mathcal{R}_{\ell}]\le Q[\widehat{\mathcal{R}}_{\ell}(\cdot,S_n)]+\sqrt{u^2\left(n,\frac{\delta}{2}\right)d_{\mathrm{TV}}(Q,P)+\frac{\ln\frac{2n}{\delta}}{2(n-1)}} Q [ R ℓ ] ≤ Q [ R ℓ ( ⋅ , S n )] + u 2 ( n , 2 δ ) d TV ( Q , P ) + 2 ( n − 1 ) ln δ 2 n holds with probability at least 1 − δ 1-\delta 1 − δ , where S n = { Z i } i = 1 n S_n=\{Z_i\}_{i=1}^n S n = { Z i } i = 1 n are n n n i.i.d. copies of Z Z Z .
Proof. Let n ∈ N n\in\mathbb{N} n ∈ N and δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) be fixed. Let P P P and Q Q Q be distributions over H \mathcal{H} H and let h : H → R h:\mathcal{H}\to\mathbb{R} h : H → R be given by h ( f ) : = 2 ( n − 1 ) Δ n ( f ) 2 h(f):=2(n-1)\Delta_n(f)^2 h ( f ) := 2 ( n − 1 ) Δ n ( f ) 2 . The Kantorovich duality in Theorem 1.1 provides the following dual formulation for the TV distance
d T V ( Q , P ) = sup h 1 , h 2 ∈ M b ( H ) : h 1 ⊕ h 2 ≤ 1 ≠ Q [ h 1 ] + P [ h 2 ] . d_{\mathrm{TV}}(Q,P)=\sup_{\substack{h_1,h_2\in\mathcal{M}_b(\mathcal{H}):\\h_1\oplus h_2\le1_{\ne}}}Q[h_1]+P[h_2]. d TV ( Q , P ) = h 1 , h 2 ∈ M b ( H ) : h 1 ⊕ h 2 ≤ 1 = sup Q [ h 1 ] + P [ h 2 ] .
Given u ( n , δ ) > 0 u(n,\delta)>0 u ( n , δ ) > 0 , it can be reformulated to
2 ( n − 1 ) u 2 ( n , δ ) ⋅ W p ( Q , P ) p = sup h 1 , h 2 ∈ M b ( H ) : h 1 ⊕ h 2 ≤ 2 ( n − 1 ) u 2 ( n , δ ) 1 ≠ Q [ h 1 ] + P [ h 2 ] . (10) 2(n-1)u^2(n,\delta)\cdot W_p(Q,P)^p=\sup_{\substack{h_1,h_2\in\mathcal{M}_b(\mathcal{H}):\\h_1\oplus h_2\le2(n-1)u^2(n,\delta)1_{\ne}}}Q[h_1]+P[h_2]. \tag*{(10)} 2 ( n − 1 ) u 2 ( n , δ ) ⋅ W p ( Q , P ) p = h 1 , h 2 ∈ M b ( H ) : h 1 ⊕ h 2 ≤ 2 ( n − 1 ) u 2 ( n , δ ) 1 = sup Q [ h 1 ] + P [ h 2 ] . (10)
To apply Theorem 2.2 , we need to verify that h ( f ) − h ( g ) ≤ 2 ( n − 1 ) u 2 ( n , δ ) 1 f ≠ g h(f)-h(g)\le2(n-1)u^2(n,\delta)1_{f\ne g} h ( f ) − h ( g ) ≤ 2 ( n − 1 ) u 2 ( n , δ ) 1 f = g for all f , g ∈ H f,g\in\mathcal{H} f , g ∈ H . By Assumption B.2
P [ ∣ Δ n ( f ) ∣ ≤ u ( n , δ ) , ∀ f ∈ H ] ≥ 1 − δ . \mathbb{P}\left[|\Delta_n(f)|\le u(n,\delta),\ \forall f\in\mathcal{H}\right]\ge1-\delta. P [ ∣ Δ n ( f ) ∣ ≤ u ( n , δ ) , ∀ f ∈ H ] ≥ 1 − δ .
Since the loss function ℓ \ell ℓ maps to the interval [ 0 , 1 ] [0,1] [ 0 , 1 ] , also the generalization gap
∣ Δ n ∣ = ∣ E [ ℓ ( ⋅ , Z ) ] − 1 n ∑ i = 1 n ℓ ( ⋅ , Z i ) ∣ ∈ [ 0 , 1 ] . |\Delta_n|=\left|\mathbb{E}[\ell(\cdot,Z)]-\frac{1}{n}\sum_{i=1}^{n}\ell(\cdot,Z_i)\right|\in[0,1]. ∣ Δ n ∣ = E [ ℓ ( ⋅ , Z )] − n 1 i = 1 ∑ n ℓ ( ⋅ , Z i ) ∈ [ 0 , 1 ] .
Therefore, also
P [ Δ n 2 ( f ) ≤ u 2 ( n , δ ) , ∀ f ∈ H ] ≥ 1 − δ (11) \mathbb{P}\left[\Delta_n^2(f)\le u^2(n,\delta),\ \forall f\in\mathcal{H}\right]\ge1-\delta \tag*{(11)} P [ Δ n 2 ( f ) ≤ u 2 ( n , δ ) , ∀ f ∈ H ] ≥ 1 − δ (11)
holds. This implies h ( f ) − h ( g ) ≤ 2 ( n − 1 ) u 2 ( n , δ ) 1 f ≠ g h(f)-h(g)\le2(n-1)u^2(n,\delta)1_{f\ne g} h ( f ) − h ( g ) ≤ 2 ( n − 1 ) u 2 ( n , δ ) 1 f = g for all f , g ∈ H f,g\in\mathcal{H} f , g ∈ H with probability at least 1 − δ 1-\delta 1 − δ . The union bound of the statements in Theorem 2.2 and (11) both with confidence parameter δ 2 \frac{\delta}{2} 2 δ implies the statement. □
The following standard uniform-convergence bound follows from symmetrization and McDiarmid’s inequality, compare Bartlett and Mendelson, [6 ] , Theorem 8 and Appendix B).
Proposition C.2 (Rademacher uniform-convergence bound (Bartlett and Mendelson, [6 ] )). Let
ℓ : H × Z → [ 0 , 1 ] \ell:\mathcal{H}\times\mathcal{Z}\to[0,1] ℓ : H × Z → [ 0 , 1 ] be measurable and let F ℓ \mathcal{F}_{\ell} F ℓ be the induced loss class from Definition 3.3. Assume that the relevant suprema are measurable. Then, for every η ∈ ( 0 , 1 ) \eta\in(0,1) η ∈ ( 0 , 1 ) ,
P ( sup h ∈ H ∣ R ℓ ( h ) − R ^ ℓ ( h , S n ) ∣ ≤ 2 R n ( F ℓ ) + ln ( 2 / η ) 2 n ) ≥ 1 − η . \mathbb{P}\left(\sup_{h\in\mathcal{H}}|\mathcal{R}_{\ell}(h)-\widehat{\mathcal{R}}_{\ell}(h,S_n)|\le2\mathfrak{R}_n(\mathcal{F}_{\ell})+\sqrt{\frac{\ln(2/\eta)}{2n}}\right)\ge1-\eta. P ( h ∈ H sup ∣ R ℓ ( h ) − R ℓ ( h , S n ) ∣ ≤ 2 R n ( F ℓ ) + 2 n ln ( 2/ η ) ) ≥ 1 − η .
Proof of Theorem 3.4. The statement follows directly from combining Proposition C.2 and Theorem C.1 with
u ( n , δ ) = 2 R n ( F ℓ ) + ln ( 2 / η ) 2 n . u(n,\delta)=2\mathfrak{R}_n(\mathcal{F}_{\ell})+\sqrt{\frac{\ln(2/\eta)}{2n}}. u ( n , δ ) = 2 R n ( F ℓ ) + 2 n ln ( 2/ η ) .
Proof of Theorem 3.7
In this section, we proof Theorem 3.7 . The following proposition by Boucheron et al. [8 ] gives a well known uniform bound on the generalization gap at a rate of O ( VC ( H ) / n ) O\left(\sqrt{\operatorname{VC}(\mathcal{H})/n}\right) O ( VC ( H ) / n ) .
Proposition D.1. Consider a binary classification problem, with the 0-1 loss, and hypothesis class H \mathcal{H} H , with finite VC dimension. Then there exists some constant c > 0 c > 0 c > 0 , s.t. for any δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) we have
P [ Δ n ( h ) ≤ c VC ( H ) + ln 1 δ n , ∀ h ∈ H ] ≥ 1 − δ . \mathbb{P}\left[\Delta_n(h) \leq c\sqrt{\frac{\operatorname{VC}(\mathcal{H})+\ln\frac{1}{\delta}}{n}},\ \forall h \in\mathcal{H}\right] \geq1-\delta. P Δ n ( h ) ≤ c n VC ( H ) + ln δ 1 , ∀ h ∈ H ≥ 1 − δ .
Proof of Theorem 3.7. By Proposition D.1 is the uniform convergence assumption satisfied for u ( n , δ ) = c VC ( H ) + ln 1 δ n u(n,\delta)=c\sqrt{\frac{\operatorname{VC}(\mathcal{H})+\ln\frac{1}{\delta}}{n}} u ( n , δ ) = c n VC ( H ) + l n δ 1 . Therefore, Theorem C.1 implies the statement. □
Bounding the regularity constant using classical learning theory for general OT distances
In the main part of the paper, when using classical learning theory to control the regularity constant, we focused on the TV distance because it provides a particularly simple and compact special case. Classical learning-theoretic approaches typically control the generalization gap uniformly over the hypothesis class and therefore provide a bound for the uniform convergence quantity in Assumption B.2. They do not, in general, directly provide bounds for the loss-gradient UC quantity in Assumption B.3. The TV distance is special in this respect because its corresponding loss-gradient UC condition can be reduced to the standard UC condition. Since the TV distance is obtained for ϕ ( r ) = 1 { r > 0 } \phi(r)=\mathbf{1}_{\{r>0\}} ϕ ( r ) = 1 { r > 0 } , we have
sup f ≠ g ∣ Δ n ( f , S n ) − Δ n ( g , S n ) ∣ ϕ ( d ( f , g ) ) = sup f ≠ g ∣ Δ n ( f , S n ) − Δ n ( g , S n ) ∣ 1 { f ≠ g } = sup f ≠ g ∣ Δ n ( f , S n ) − Δ n ( g , S n ) ∣ ≤ sup f ≠ g ∣ Δ n ( f , S n ) ∣ + ∣ Δ n ( g , S n ) ∣ ≤ 2 sup f ∣ Δ n ( f , S n ) ∣ . \sup_{f\ne g}\frac{\left|\Delta_n(f,S_n)-\Delta_n(g,S_n)\right|}{\phi(d(f,g))}
=\sup_{f\ne g}\frac{\left|\Delta_n(f,S_n)-\Delta_n(g,S_n)\right|}{\mathbf{1}_{\{f\ne g\}}}
=\sup_{f\ne g}\left|\Delta_n(f,S_n)-\Delta_n(g,S_n)\right|
\leq\sup_{f\ne g}|\Delta_n(f,S_n)|+|\Delta_n(g,S_n)|
\leq2\sup_f|\Delta_n(f,S_n)|. f = g sup ϕ ( d ( f , g )) ∣ Δ n ( f , S n ) − Δ n ( g , S n ) ∣ = f = g sup 1 { f = g } ∣ Δ n ( f , S n ) − Δ n ( g , S n ) ∣ = f = g sup ∣ Δ n ( f , S n ) − Δ n ( g , S n ) ∣ ≤ f = g sup ∣ Δ n ( f , S n ) ∣ + ∣ Δ n ( g , S n ) ∣ ≤ 2 f sup ∣ Δ n ( f , S n ) ∣.
Thus, Assumption B.2 immediately implies Assumption B.3 for the TV distance, with u g r a d ( n , δ ) = 2 u ( n , δ ) u_{\mathrm{grad}}(n,\delta)=2u(n,\delta) u grad ( n , δ ) = 2 u ( n , δ ) .
Consequently, the regularity constant in Lemma B.5 for general ϕ \phi ϕ -OT distances is bounded by the product of the two quantities u u u and u g r a d u_{\mathrm{grad}} u grad from Assumptions B.2 and B.3, whereas for the TV distance, Theorem C.1 yields a bound involving only u 2 u^2 u 2 . Hence, standard uniform-convergence arguments can be applied directly to control the regularity constant in the TV case.
For general OT distances, however, controlling the generalization gap alone is not sufficient. In addition to controlling the magnitude of the generalization gap uniformly over the hypothesis class, one must control how rapidly the generalization gap can change between hypotheses. In our framework, this additional requirement is precisely captured by the loss-gradient UC condition in Assumption B.3. Standard uniform-convergence results generally provide no such bound, since they control the pointwise magnitude of the generalization gap but not its variation across hypotheses. This is the reason why the classical learning-theoretic arguments used for the TV case do not directly extend to arbitrary OT distances.
The extension to more general OT distances is nevertheless possible under additional regularity assumptions. For example, if ℓ \ell ℓ is differentiable with respect to the hypothesis and the corresponding class of loss gradients has finite VC dimension under suitable assumptions, one can apply uniform-convergence arguments separately to the gradient class. This yields a high-probability bound on the quantity in Assumption B.3, which can then be combined with the standard UC bound from Assumption B.2 to control the regularity constant in Lemma B.5. Thus, the limitation is not specific to OT distances themselves, but rather reflects the additional regularity information required. Whereas the TV case only requires uniform control of the generalization gap, general OT distances require both uniform control of its magnitude and uniform control of its variation across the hypothesis class.
Proof of Theorem 3.9
In this section, we prove Theorem 3.9 . We work under the assumptions of Theorem 3.9 . For h ≠ h ′ h \ne h' h = h ′ , let
g h , h ′ ( z ) = ℓ ( h , z ) − ℓ ( h ′ , z ) d ( h , h ′ ) p , G = { g h , h ′ : h , h ′ ∈ H , h ≠ h ′ } . g_{h,h'}(z)=\frac{\ell(h,z)-\ell(h',z)}{d(h,h')^{p}},\qquad\mathcal{G}=\{g_{h,h'}:h,h'\in\mathcal{H},\ h\ne h'\}. g h , h ′ ( z ) = d ( h , h ′ ) p ℓ ( h , z ) − ℓ ( h ′ , z ) , G = { g h , h ′ : h , h ′ ∈ H , h = h ′ } .
Denote
P f : = E [ f ( Z ) ] and P n f : = 1 n ∑ i = 1 n f ( Z i ) . Pf:=\mathbb{E}[f(Z)]\qquad\text{and}\qquad P_n f:=\frac{1}{n}\sum_{i=1}^{n}f(Z_i). P f := E [ f ( Z )] and P n f := n 1 i = 1 ∑ n f ( Z i ) .
By boundedness of H \mathcal{H} H , ∥ g ∥ ∞ ≤ G \lVert g\rVert_{\infty}\le G ∥ g ∥ ∞ ≤ G for all g ∈ G g\in\mathcal{G} g ∈ G , so P g P_g P g is well defined. Denote
S n : = sup g ∈ G ∣ ( P n − P ) g ∣ . S_n:=\sup_{g\in\mathcal{G}}|(P_n-P)g|. S n := g ∈ G sup ∣ ( P n − P ) g ∣.
The problem boils down to a standard bounded empirical-process supremum problem. For a probability measure Q Q Q on Z \mathcal{Z} Z with finite support, let N ( ε , G , L 2 ( Q ) ) N(\varepsilon,\mathcal{G},L_2(Q)) N ( ε , G , L 2 ( Q )) be the covering number of G \mathcal{G} G with L 2 ( Q ) L_2(Q) L 2 ( Q ) -balls of radius ε \varepsilon ε . Define
J ( 1 , G ) : = sup Q ∫ 0 1 1 + ln N ( ε G , G , L 2 ( Q ) ) d ε , J(1,\mathcal{G}):=\sup_Q\int_0^1\sqrt{1+\ln N(\varepsilon G,\mathcal{G},L_2(Q))}\,\mathrm{d}\varepsilon, J ( 1 , G ) := Q sup ∫ 0 1 1 + ln N ( εG , G , L 2 ( Q )) d ε ,
the supremum being over all finitely supported Q Q Q on Z \mathcal{Z} Z .
Note that J ( 1 , G ) ≥ 1 J(1,\mathcal{G})\ge1 J ( 1 , G ) ≥ 1 . On the other hand, the uniform Hölder continuity assumption of H \mathcal{H} H does not imply J ( 1 , G ) < ∞ J(1,\mathcal{G})<\infty J ( 1 , G ) < ∞ . Hölder continuity gives ∥ g ∥ ∞ ≤ G \lVert g\rVert_{\infty}\le G ∥ g ∥ ∞ ≤ G but no control of the complexity of G \mathcal{G} G near the diagonal h ′ → h h'\to h h ′ → h .
Lemma F.1. Under the assumptions of Theorem 3.9 , there is a universal constant c c c such that for all n ≥ 1 n\ge1 n ≥ 1 and δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , with probability at least 1 − δ 1-\delta 1 − δ ,
sup h ≠ h ′ ∣ Δ n ( h ) − Δ n ( h ′ ) ∣ d ( h , h ′ ) p ≤ c G J ( 1 , G ) n + G 2 ln ( 1 / δ ) n . \sup_{h\ne h'}\frac{|\Delta_n(h)-\Delta_n(h')|}{d(h,h')^p}\le\frac{cGJ(1,\mathcal{G})}{\sqrt{n}}+G\sqrt{\frac{2\ln(1/\delta)}{n}}. h = h ′ sup d ( h , h ′ ) p ∣ Δ n ( h ) − Δ n ( h ′ ) ∣ ≤ n c G J ( 1 , G ) + G n 2 ln ( 1/ δ ) .
In particular the bound is O ( n − 1 / 2 ) O(n^{-1/2}) O ( n − 1/2 ) whenever J ( 1 , G ) < ∞ J(1,\mathcal{G})<\infty J ( 1 , G ) < ∞ .
Proof. Since H \mathcal{H} H is compact, it has a countable dense subset H 0 \mathcal{H}_0 H 0 . Let G 0 = { g h , h ′ : h , h ′ ∈ H 0 , h ≠ h ′ } \mathcal{G}_0=\{g_{h,h'}:h,h'\in\mathcal{H}_0,\ h\ne h'\} G 0 = { g h , h ′ : h , h ′ ∈ H 0 , h = h ′ } . Given h ≠ h ′ h\ne h' h = h ′ , choose h m , h m ′ ∈ H 0 h_m,h'_m\in\mathcal{H}_0 h m , h m ′ ∈ H 0 with h m → h h_m\to h h m → h , h m ′ → h ′ h'_m\to h' h m ′ → h ′ , h m ≠ h m ′ h_m\ne h'_m h m = h m ′ . By uniform Hölder continuity, g h m , h m ′ ( z ) → g h , h ′ ( z ) g_{h_m,h'_m}(z)\to g_{h,h'}(z) g h m , h m ′ ( z ) → g h , h ′ ( z ) for every z z z . Hence G \mathcal{G} G is pointwise measurable, in the sense that every element is a pointwise limit of a sequence from the countable class G 0 \mathcal{G}_0 G 0 . In particular G \mathcal{G} G is P P P -measurable in the sense of van der Vaart [25 ] , and S n S_n S n is measurable.
G \mathcal{G} G is a P P P -measurable class with constant envelope G G G . It then follows from van der Vaart and Wellner [26 ] that
E [ S n ] ≤ c G J ( 1 , G ) n . \mathbb{E}[S_n]\le\frac{cGJ(1,\mathcal{G})}{\sqrt{n}}. E [ S n ] ≤ n c G J ( 1 , G ) .
for a universal constant c c c .
Now, replacing one Z i Z_i Z i by Z i ′ Z'_i Z i ′ changes each ( P n − P ) g (P_n-P)g ( P n − P ) g by at most ∣ g ( Z i ) − g ( Z i ′ ) ∣ / n ≤ 2 G / n |g(Z_i)-g(Z'_i)|/n\le2G/n ∣ g ( Z i ) − g ( Z i ′ ) ∣/ n ≤ 2 G / n , hence changes S n S_n S n by at most 2 G / n 2G/n 2 G / n . McDiarmid’s inequality then gives
P ( S n − E [ S n ] ≥ t ) ≤ exp ( − n t 2 2 G 2 ) , \mathbb{P}(S_n-\mathbb{E}[S_n]\ge t)\le\exp\left(-\frac{nt^2}{2G^2}\right), P ( S n − E [ S n ] ≥ t ) ≤ exp ( − 2 G 2 n t 2 ) ,
Taking t = G 2 ln ( 1 / δ ) / n t=G\sqrt{2\ln(1/\delta)/n} t = G 2 ln ( 1/ δ ) / n yields, with probability at least 1 − δ 1-\delta 1 − δ ,
S n ≤ E [ S n ] + G 2 ln ( 1 / δ ) n ≤ c G J ( 1 , G ) n + G 2 ln ( 1 / δ ) n S_n\le\mathbb{E}[S_n]+G\sqrt{\frac{2\ln(1/\delta)}{n}}\le\frac{cGJ(1,\mathcal{G})}{\sqrt{n}}+G\sqrt{\frac{2\ln(1/\delta)}{n}} S n ≤ E [ S n ] + G n 2 ln ( 1/ δ ) ≤ n c G J ( 1 , G ) + G n 2 ln ( 1/ δ )
as claimed. □
Proof of Theorem 3.9 . Combining Theorem 2.2 and Lemma F.1 yields the statement. □
Case of finite H \mathcal{H} H . In this case, the elements of G \mathcal{G} G form a cover at every scale, and ∣ G ∣ ≤ ∣ H ∣ ( ∣ H ∣ − 1 ) ≤ ∣ H ∣ 2 |\mathcal{G}| \leq|\mathcal{H}|(|\mathcal{H}|-1) \leq|\mathcal{H}|^2 ∣ G ∣ ≤ ∣ H ∣ ( ∣ H ∣ − 1 ) ≤ ∣ H ∣ 2 . The supremum is over a finite set of at most ∣ G ∣ |\mathcal{G}| ∣ G ∣ unordered pairs and S n S_n S n is a maximum of finitely many measurable functions. It then follows from Lemma F.1 that
sup h ≠ h ′ ∣ Δ n ( h ) − Δ n ( h ′ ) ∣ d ( h , h ′ ) p ≤ G 2 ( 2 ln ∣ H ∣ + ln ( 1 / δ ) ) n \sup_{h\ne h'} \frac{|\Delta_n(h)-\Delta_n(h')|}{d(h,h')^p} \leq G\sqrt{\frac{2(2\ln|\mathcal{H}|+\ln(1/\delta))}{n}} h = h ′ sup d ( h , h ′ ) p ∣ Δ n ( h ) − Δ n ( h ′ ) ∣ ≤ G n 2 ( 2 ln ∣ H ∣ + ln ( 1/ δ ))
with probability at least 1 − δ 1-\delta 1 − δ .
In terms of VC-class index. Let V V V be the VC-index of G \mathcal{G} G (the VC-index of the class of subgraphs). It follows from van der Vaart and Wellner, [26 ] that sup Q ln N ( ε L , G , L 2 ( Q ) ) ≤ c V + 2 ( V − 1 ) ln ( 1 / ε ) \sup_Q \ln N(\varepsilon L,\mathcal{G},L_2(Q)) \leq cV+2(V-1)\ln(1/\varepsilon) sup Q ln N ( ε L , G , L 2 ( Q )) ≤ c V + 2 ( V − 1 ) ln ( 1/ ε ) for a universal constant c c c . Using a + b ≤ a + b \sqrt{a+b}\leq\sqrt{a}+\sqrt{b} a + b ≤ a + b and ∫ 0 1 ln ( 1 / ε ) d ε = π / 2 ≤ 1 \int_0^1\sqrt{\ln(1/\varepsilon)}\,\mathrm{d}\varepsilon=\sqrt{\pi}/2\leq1 ∫ 0 1 ln ( 1/ ε ) d ε = π /2 ≤ 1 , we get
J ( 1 , G ) ≤ 1 + c V + 2 V ≲ V . J(1,\mathcal{G})\leq\sqrt{1+cV}+\sqrt{2V}\lesssim\sqrt{V}. J ( 1 , G ) ≤ 1 + c V + 2 V ≲ V .
Case of ℓ ( ⋅ , z ) \ell(\cdot,z) ℓ ( ⋅ , z ) is C 1 , α C^{1,\alpha} C 1 , α . Let H ⊂ R k \mathcal{H}\subset\mathbb{R}^k H ⊂ R k be compact and convex with D = diam ( H ) D=\operatorname{diam}(\mathcal{H}) D = diam ( H ) , d ( h , h ′ ) = ∣ h − h ′ ∣ d(h,h')=|h-h'| d ( h , h ′ ) = ∣ h − h ′ ∣ , and p = 1 p=1 p = 1 . Assume in addition that ℓ ( ⋅ , z ) \ell(\cdot,z) ℓ ( ⋅ , z ) is C 1 C^1 C 1 on a neighbourhood of H \mathcal{H} H for each z z z , and its gradient is α \alpha α -Hölder continuous with modulus M M M for all z z z . Set
κ = 1 + 1 α , ρ = D ( M G ) 1 / α , Λ = 2 κ ( 16 + 32 ⋅ 8 1 / α ρ ) ( ≥ 1 ) . \kappa=1+\frac{1}{\alpha},\qquad\rho=D\left(\frac{M}{G}\right)^{1/\alpha},\qquad\Lambda=2^\kappa(16+32\cdot8^{1/\alpha}\rho)\ (\geq1). κ = 1 + α 1 , ρ = D ( G M ) 1/ α , Λ = 2 κ ( 16 + 32 ⋅ 8 1/ α ρ ) ( ≥ 1 ) .
Then with probability at least 1 − δ 1-\delta 1 − δ ,
sup h ≠ h ′ ∣ Δ n ( h ) − Δ n ( h ′ ) ∣ ∣ h − h ′ ∣ ≤ C G n [ 1 + ( 2 k + 1 ) ln Λ + ( 2 k + 1 ) κ ] + G 2 ln ( 1 / δ ) n . \sup_{h\ne h'}\frac{|\Delta_n(h)-\Delta_n(h')|}{|h-h'|}\leq\frac{CG}{\sqrt{n}}\left[\sqrt{1+(2k+1)\ln\Lambda}+\sqrt{(2k+1)\kappa}\right]+G\sqrt{\frac{2\ln(1/\delta)}{n}}. h = h ′ sup ∣ h − h ′ ∣ ∣ Δ n ( h ) − Δ n ( h ′ ) ∣ ≤ n C G [ 1 + ( 2 k + 1 ) ln Λ + ( 2 k + 1 ) κ ] + G n 2 ln ( 1/ δ ) .
Note that this scales as
sup h ≠ h ′ ∣ Δ n ( h ) − Δ n ( h ′ ) ∣ ∣ h − h ′ ∣ ≲ k n + ln ( 1 / δ ) n . \sup_{h\ne h'}\frac{|\Delta_n(h)-\Delta_n(h')|}{|h-h'|}\lesssim\sqrt{\frac{k}{n}}+\sqrt{\frac{\ln(1/\delta)}{n}}. h = h ′ sup ∣ h − h ′ ∣ ∣ Δ n ( h ) − Δ n ( h ′ ) ∣ ≲ n k + n ln ( 1/ δ ) .
Proof. In view of Lemma F.1, it is sufficient to bound J ( 1 , G ) J(1,\mathcal{G}) J ( 1 , G ) .
Let Θ = { ( h , r , w ) : h ∈ H , r ∈ ( 0 , D ] , ∣ w ∣ = 1 , h − r w ∈ H } ⊂ R k × R × R k \Theta=\{(h,r,w):h\in\mathcal{H},\ r\in(0,D],\ |w|=1,\ h-rw\in\mathcal{H}\}\subset\mathbb{R}^k\times\mathbb{R}\times\mathbb{R}^k Θ = {( h , r , w ) : h ∈ H , r ∈ ( 0 , D ] , ∣ w ∣ = 1 , h − r w ∈ H } ⊂ R k × R × R k . For h ≠ h ′ h\ne h' h = h ′ put r = ∣ h − h ′ ∣ r=|h-h'| r = ∣ h − h ′ ∣ , w = ( h − h ′ ) / r w=(h-h')/r w = ( h − h ′ ) / r . By convexity the segment [ h ′ , h ] [h',h] [ h ′ , h ] lies in H \mathcal{H} H , and the fundamental theorem of calculus gives
g h , h ′ ( z ) = φ ( θ , z ) : = ∫ 0 1 ⟨ ∇ ℓ ( h − s r w , z ) , w ⟩ d s , θ = ( h , r , w ) ∈ Θ . g_{h,h'}(z)=\varphi(\theta,z):=\int_0^1\langle\nabla\ell(h-srw,z),w\rangle\,\mathrm{d}s,\qquad\theta=(h,r,w)\in\Theta. g h , h ′ ( z ) = φ ( θ , z ) := ∫ 0 1 ⟨ ∇ ℓ ( h − sr w , z ) , w ⟩ d s , θ = ( h , r , w ) ∈ Θ.
Hence G = { φ ( θ , ⋅ ) : θ ∈ Θ } \mathcal{G}=\{\varphi(\theta,\cdot):\theta\in\Theta\} G = { φ ( θ , ⋅ ) : θ ∈ Θ } . For θ , θ ′ ∈ Θ \theta,\theta'\in\Theta θ , θ ′ ∈ Θ and all z z z , by assumption,
∣ φ ( θ , z ) − φ ( θ ′ , z ) ∣ ≤ M sup s ∣ ( h − s r w ) − ( h ′ − s r ′ w ′ ) ∣ α + L ∣ w − w ′ ∣ . |\varphi(\theta,z)-\varphi(\theta',z)|\leq M\sup_s |(h-srw)-(h'-sr'w')|^\alpha+L|w-w'|. ∣ φ ( θ , z ) − φ ( θ ′ , z ) ∣ ≤ M s sup ∣ ( h − sr w ) − ( h ′ − s r ′ w ′ ) ∣ α + L ∣ w − w ′ ∣.
Since ∣ ( h − s r w ) − ( h ′ − s r ′ w ′ ) ∣ ≤ ∣ h − h ′ ∣ + ∣ r − r ′ ∣ + D ∣ w − w ′ ∣ ≤ ( 2 + D ) ∣ θ − θ ′ ∣ |(h-srw)-(h'-sr'w')|\leq|h-h'|+|r-r'|+D|w-w'|\leq(2+D)|\theta-\theta'| ∣ ( h − sr w ) − ( h ′ − s r ′ w ′ ) ∣ ≤ ∣ h − h ′ ∣ + ∣ r − r ′ ∣ + D ∣ w − w ′ ∣ ≤ ( 2 + D ) ∣ θ − θ ′ ∣ , the first term is at most M ( 2 + D ) α ∣ θ − θ ′ ∣ α M(2+D)^\alpha|\theta-\theta'|^\alpha M ( 2 + D ) α ∣ θ − θ ′ ∣ α . Since ∣ w − w ′ ∣ ≤ 2 |w-w'|\leq2 ∣ w − w ′ ∣ ≤ 2 , we have ∣ w − w ′ ∣ ≤ 2 1 − α ∣ w − w ′ ∣ α ≤ 2 ∣ θ − θ ′ ∣ α |w-w'|\leq2^{1-\alpha}|w-w'|^\alpha\leq2|\theta-\theta'|^\alpha ∣ w − w ′ ∣ ≤ 2 1 − α ∣ w − w ′ ∣ α ≤ 2∣ θ − θ ′ ∣ α . Therefore
sup z ∣ φ ( θ , z ) − φ ( θ ′ , z ) ∣ ≤ K ∣ θ − θ ′ ∣ α = : ρ ( θ , θ ′ ) . \sup_z|\varphi(\theta,z)-\varphi(\theta',z)|\leq K|\theta-\theta'|^\alpha=:\rho(\theta,\theta'). z sup ∣ φ ( θ , z ) − φ ( θ ′ , z ) ∣ ≤ K ∣ θ − θ ′ ∣ α =: ρ ( θ , θ ′ ) .
Because α ∈ ( 0 , 1 ] \alpha\in(0,1] α ∈ ( 0 , 1 ] , ρ \rho ρ is a metric on Θ \Theta Θ (a concave power of a metric is a metric).
We now apply van der Vaart and Wellner, [26 ] with T = Θ T=\Theta T = Θ , f θ = φ ( θ , ⋅ ) f_\theta=\varphi(\theta,\cdot) f θ = φ ( θ , ⋅ ) , the metric ρ \rho ρ above, envelope F ≡ 1 F\equiv1 F ≡ 1 , and ∥ ⋅ ∥ = ∥ ⋅ ∥ ∞ \|\cdot\|=\|\cdot\|_\infty ∥ ⋅ ∥ = ∥ ⋅ ∥ ∞ . It gives
N [ ] ( 2 ε , G , ∥ ⋅ ∥ ∞ ) ≤ N ( ε , Θ , ρ ) = N ( Θ , ∣ ⋅ ∣ , ( ε K ) 1 / α ) , ε > 0. N_{[]} (2\varepsilon,\mathcal{G},\|\cdot\|_\infty)\leq N(\varepsilon,\Theta,\rho)=N\left(\Theta,|\cdot|,\left(\frac{\varepsilon}{K}\right)^{1/\alpha}\right),\qquad\varepsilon>0. N [ ] ( 2 ε , G , ∥ ⋅ ∥ ∞ ) ≤ N ( ε , Θ , ρ ) = N ( Θ , ∣ ⋅ ∣ , ( K ε ) 1/ α ) , ε > 0.
Here the bracketing number N [ ] ( ε , G , ∥ ⋅ ∥ ∞ ) N_{[]}(\varepsilon,\mathcal{G},\|\cdot\|_\infty) N [ ] ( ε , G , ∥ ⋅ ∥ ∞ ) is the minimal number of brackets [ l , l ˉ ] = { f : Z → R : l ≤ f ≤ l ˉ } [l,\bar l]=\{f:\mathcal{Z}\to\mathbb{R}:l\leq f\leq\bar l\} [ l , l ˉ ] = { f : Z → R : l ≤ f ≤ l ˉ } of size ∥ l ˉ − l ∥ ∞ \|\bar l-l\|_\infty ∥ l ˉ − l ∥ ∞ smaller than ε \varepsilon ε needed to cover G \mathcal{G} G . A bracket [ l , l ˉ ] [l,\bar l] [ l , l ˉ ] with ∥ l ˉ − l ∥ ∞ ≤ 2 ε \|\bar l-l\|_\infty\leq2\varepsilon ∥ l ˉ − l ∥ ∞ ≤ 2 ε is contained in the sup-norm ball of radius ε \varepsilon ε around ( l + l ˉ ) / 2 (l+\bar l)/2 ( l + l ˉ ) /2 , so
N ( ε , G , ∥ ⋅ ∥ ∞ ) ≤ N [ ] ( 2 ε , G , ∥ ⋅ ∥ ∞ ) ≤ N ( Θ , ∣ ⋅ ∣ , ( ε K ) 1 / α ) . N(\varepsilon,\mathcal{G},\|\cdot\|_\infty)\leq N_{[]}(2\varepsilon,\mathcal{G},\|\cdot\|_\infty)\leq N\left(\Theta,|\cdot|,\left(\frac{\varepsilon}{K}\right)^{1/\alpha}\right). N ( ε , G , ∥ ⋅ ∥ ∞ ) ≤ N [ ] ( 2 ε , G , ∥ ⋅ ∥ ∞ ) ≤ N ( Θ , ∣ ⋅ ∣ , ( K ε ) 1/ α ) .
The set Θ ⊂ R 2 k + 1 \Theta\subset\mathbb{R}^{2k+1} Θ ⊂ R 2 k + 1 has diameter at most 2 Δ = 2 ( D + 1 ) 2\Delta= 2(D+1) 2Δ = 2 ( D + 1 ) . By the volumetric bound (e.g. Vershynin, [28 ] , applied to the ball of radius Δ \Delta Δ around a point of Θ \Theta Θ ),
N ( ε , G , ∥ ⋅ ∥ ∞ ) ≤ ( 1 + 2 Δ ( K / u ) 1 / α ) 2 k + 1 . \mathcal{N}(\varepsilon,\mathcal{G},\lVert\cdot\rVert_\infty)\leq\left(1+2\Delta\left(K/u\right)^{1/\alpha}\right)^{2k+1}. N ( ε , G , ∥ ⋅ ∥ ∞ ) ≤ ( 1 + 2Δ ( K / u ) 1/ α ) 2 k + 1 .
Sup-norm balls are contained in L 2 ( Q ) L_2(Q) L 2 ( Q ) -balls of the same radius, so the same bound holds for N ( ε , G , L 2 ( Q ) ) \mathcal{N}(\varepsilon,\mathcal{G},L_2(Q)) N ( ε , G , L 2 ( Q )) for every finitely supported Q Q Q .
Replace ε \varepsilon ε with ε G \varepsilon G εG with ε ∈ ( 0 , 1 ] \varepsilon\in(0,1] ε ∈ ( 0 , 1 ] above. Then 1 + 2 Δ ( K / ( ε G ) ) 1 / α ≤ Λ ε − 1 / α 1+2\Delta(K/(\varepsilon G))^{1/\alpha}\leq\Lambda\varepsilon^{-1/\alpha} 1 + 2Δ ( K / ( εG ) ) 1/ α ≤ Λ ε − 1/ α , so
ln N ( ε L , G , L 2 ( Q ) ) ≤ ( 2 k + 1 ) ( ln Λ + 1 α ln ( 1 / ε ) ) . \ln\mathcal{N}(\varepsilon L,\mathcal{G},L_2(Q))\leq(2k+1)\left(\ln\Lambda+\frac{1}{\alpha}\ln(1/\varepsilon)\right). ln N ( ε L , G , L 2 ( Q )) ≤ ( 2 k + 1 ) ( ln Λ + α 1 ln ( 1/ ε ) ) .
Using a + b ≤ a + b \sqrt{a+b}\leq\sqrt{a}+\sqrt{b} a + b ≤ a + b and ∫ 0 1 ln ( 1 / ε ) d ε = π / 2 ≤ 1 \int_0^1\sqrt{\ln(1/\varepsilon)}\,\mathrm{d}\varepsilon=\sqrt{\pi}/2\leq1 ∫ 0 1 ln ( 1/ ε ) d ε = π /2 ≤ 1 ,
J ( 1 , G ) ≤ 1 + ( 2 k + 1 ) ln Λ + ( 2 k + 1 ) / α < ∞ . J(1,\mathcal{G})\leq\sqrt{1+(2k+1)\ln\Lambda}+\sqrt{(2k+1)/\alpha}<\infty. J ( 1 , G ) ≤ 1 + ( 2 k + 1 ) ln Λ + ( 2 k + 1 ) / α < ∞.
For finite dimensions, we have the following special case of the theorem.
Theorem F.2. Let ℓ : H × Z → [ 0 , 1 ] \ell:\mathcal{H}\times\mathcal{Z}\to[0,1] ℓ : H × Z → [ 0 , 1 ] be a measurable loss function and H ⊂ R d \mathcal{H}\subset\mathbb{R}^d H ⊂ R d be a compact hypothesis metric space. Assume that ℓ ( ⋅ , z ) \ell(\cdot,z) ℓ ( ⋅ , z ) is a p p p -Hölder continuous function on H \mathcal{H} H w.r.t. the Euclidean norm ∥ ⋅ ∥ 2 \lVert\cdot\rVert_2 ∥ ⋅ ∥ 2 uniformly in z ∈ Z z\in\mathcal{Z} z ∈ Z , and denote G G G its uniform Hölder continuity constant. Let P P P be a prior distribution over H \mathcal{H} H , n ≥ 2 n\geq2 n ≥ 2 and let δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) . For ε > 0 \varepsilon>0 ε > 0 , let N ( H , ∥ ⋅ ∥ 2 , ε ) \mathcal{N}(\mathcal{H},\lVert\cdot\rVert_2,\varepsilon) N ( H , ∥ ⋅ ∥ 2 , ε ) denote the ε \varepsilon ε -covering number of H \mathcal{H} H w.r.t. ∥ ⋅ ∥ 2 \lVert\cdot\rVert_2 ∥ ⋅ ∥ 2 . Then for any p ≥ 1 p\geq1 p ≥ 1
Q [ R ℓ ] ≤ Q [ R ^ ℓ ( ⋅ , S n ) ] + ( 4 G ( ln ( 2 / δ ) + d ln ( 3 diam ( H ) ) + d 2 p ln ( G 2 n ) 2 n + 2 n ) W p ( Q , P ) p + ln ( 2 n / δ ) 2 ( n − 1 ) ) 1 / 2 (12) Q[\mathcal{R}_\ell]\leq Q[\widehat{\mathcal{R}}_\ell(\cdot,S_n)]+\left(4G\left(\sqrt{\frac{\ln(2/\delta)+d\ln(3\operatorname{diam}(\mathcal{H}))+\frac{d}{2p}\ln(G^2n)}{2n}+\frac{2}{\sqrt{n}}}\right)W_p(Q,P)^p+\frac{\ln(2n/\delta)}{2(n-1)}\right)^{1/2} \tag*{(12)} Q [ R ℓ ] ≤ Q [ R ℓ ( ⋅ , S n )] + 4 G 2 n ln ( 2/ δ ) + d ln ( 3 diam ( H )) + 2 p d ln ( G 2 n ) + n 2 W p ( Q , P ) p + 2 ( n − 1 ) ln ( 2 n / δ ) 1/2 (12) holds with probability at least 1 − δ 1-\delta 1 − δ over S n S_n S n simultaneously for any distribution Q Q Q over H \mathcal{H} H .
Lemma F.3. Let H ⊂ R \mathcal{H}\subset\mathbb{R} H ⊂ R be a compact hypothesis class and δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) . Assume that for any fixed z ∈ Z z\in\mathcal{Z} z ∈ Z , ∣ ℓ ( h , z ) − ℓ ( h ′ , z ) ∣ ≤ G d ( h , h ′ ) p |\ell(h,z)-\ell(h',z)|\leq Gd(h,h')^p ∣ ℓ ( h , z ) − ℓ ( h ′ , z ) ∣ ≤ G d ( h , h ′ ) p . For ε > 0 \varepsilon>0 ε > 0 , let N ( H , ∥ ⋅ ∥ 2 , ε ) \mathcal{N}(\mathcal{H},\lVert\cdot\rVert_2,\varepsilon) N ( H , ∥ ⋅ ∥ 2 , ε ) denote the ε \varepsilon ε -covering number of H \mathcal{H} H w.r.t. ∥ ⋅ ∥ 2 \lVert\cdot\rVert_2 ∥ ⋅ ∥ 2 . Then, with probability at least 1 − δ 1-\delta 1 − δ over S n = { Z i } i = 1 n S_n=\{Z_i\}_{i=1}^n S n = { Z i } i = 1 n ,
∣ Δ n ( f ) 2 − Δ n ( g ) 2 ∣ ≤ C n ( ε ) d ( f , g ) p |\Delta_n(f)^2-\Delta_n(g)^2|\leq C_n(\varepsilon)d(f,g)^p ∣ Δ n ( f ) 2 − Δ n ( g ) 2 ∣ ≤ C n ( ε ) d ( f , g ) p holds for all f , g ∈ H f,g\in\mathcal{H} f , g ∈ H , where
C n ( ε ) = 4 G ( ln ( 2 / δ ) + d ln ( 3 diam ( H ) ) + d 2 p ln ( G 2 n ) 2 n + 2 n ) . C_n(\varepsilon)=4G\left(\sqrt{\frac{\ln(2/\delta)+d\ln(3\operatorname{diam}(\mathcal{H}))+\frac{d}{2p}\ln(G^2n)}{2n}+\frac{2}{\sqrt{n}}}\right). C n ( ε ) = 4 G 2 n ln ( 2/ δ ) + d ln ( 3 diam ( H )) + 2 p d ln ( G 2 n ) + n 2 .
Proof. By the definition of the generalization gap,
C n = sup h , h ′ ∈ H : h ≠ h ′ ∣ Δ n 2 ( h ) − Δ n 2 ( h ′ ) ∣ d ( h , h ′ ) p = sup h , h ′ ∈ H : h ≠ h ′ ∣ Δ n ( h ) − Δ n ( h ′ ) ∣ ∣ Δ n ( h ) + Δ n ( h ′ ) ∣ d ( h , h ′ ) p ≤ ( sup h , h ′ ∈ H : h ≠ h ′ ∣ Δ n ( h ) − Δ n ( h ′ ) ∣ d ( h , h ′ ) p ) 2 sup h ∈ H ∣ Δ n ( h ) ∣ = 2 ( sup h , h ′ ∈ H : h ≠ h ′ ∣ ( R ℓ ( h ) − R ^ ℓ ( h , S n ) ) − ( R ℓ ( h ′ ) − R ^ ℓ ( h ′ , S n ) ) ∣ d ( h , h ′ ) p ) sup h ∈ H ∣ Δ n ( h ) ∣ = 2 ( sup h , h ′ ∈ H : h ≠ h ′ ∣ E [ ℓ ( h , Z ) − ℓ ( h ′ , Z ) ] − 1 n ∑ i = 1 n ( ℓ ( h , Z i ) − ℓ ( h ′ , Z i ) ) ∣ d ( h , h ′ ) p ) sup h ∈ H ∣ Δ n ( h ) ∣ . (13) \begin{aligned}
C_n
&=\sup_{\substack{h,h'\in\mathcal{H}:\\h\ne h'}}\frac{|\Delta_n^2(h)-\Delta_n^2(h')|}{d(h,h')^p}\\
&=\sup_{\substack{h,h'\in\mathcal{H}:\\h\ne h'}}\frac{|\Delta_n(h)-\Delta_n(h')||\Delta_n(h)+\Delta_n(h')|}{d(h,h')^p}\\
&\leq\left(\sup_{\substack{h,h'\in\mathcal{H}:\\h\ne h'}}\frac{|\Delta_n(h)-\Delta_n(h')|}{d(h,h')^p}\right)2\sup_{h\in\mathcal{H}}|\Delta_n(h)|\\
&=2\left(\sup_{\substack{h,h'\in\mathcal{H}:\\h\ne h'}}\frac{|(\mathcal{R}_\ell(h)-\widehat{\mathcal{R}}_\ell(h,S_n))-(\mathcal{R}_\ell(h')-\widehat{\mathcal{R}}_\ell(h',S_n))|}{d(h,h')^p}\right)\sup_{h\in\mathcal{H}}|\Delta_n(h)|\\
&=2\left(\sup_{\substack{h,h'\in\mathcal{H}:\\h\ne h'}}\frac{\left|\mathbb{E}[\ell(h,Z)-\ell(h',Z)]-\frac{1}{n}\sum_{i=1}^n(\ell(h,Z_i)-\ell(h',Z_i))\right|}{d(h,h')^p}\right)\sup_{h\in\mathcal{H}}|\Delta_n(h)|. \tag*{(13)}
\end{aligned} C n = h , h ′ ∈ H : h = h ′ sup d ( h , h ′ ) p ∣ Δ n 2 ( h ) − Δ n 2 ( h ′ ) ∣ = h , h ′ ∈ H : h = h ′ sup d ( h , h ′ ) p ∣ Δ n ( h ) − Δ n ( h ′ ) ∣∣ Δ n ( h ) + Δ n ( h ′ ) ∣ ≤ h , h ′ ∈ H : h = h ′ sup d ( h , h ′ ) p ∣ Δ n ( h ) − Δ n ( h ′ ) ∣ 2 h ∈ H sup ∣ Δ n ( h ) ∣ = 2 h , h ′ ∈ H : h = h ′ sup d ( h , h ′ ) p ∣ ( R ℓ ( h ) − R ℓ ( h , S n )) − ( R ℓ ( h ′ ) − R ℓ ( h ′ , S n )) ∣ h ∈ H sup ∣ Δ n ( h ) ∣ = 2 h , h ′ ∈ H : h = h ′ sup d ( h , h ′ ) p E [ ℓ ( h , Z ) − ℓ ( h ′ , Z )] − n 1 ∑ i = 1 n ( ℓ ( h , Z i ) − ℓ ( h ′ , Z i )) h ∈ H sup ∣ Δ n ( h ) ∣. (13)
For the rest of the proof, we will derive bounds for both sup h ∈ H ∣ Δ n ( h ) ∣ \sup_{h\in\mathcal{H}}|\Delta_n(h)| sup h ∈ H ∣ Δ n ( h ) ∣ and ∣ E [ ℓ ( h , Z ) − ℓ ( h ′ , Z ) ] − 1 n ∑ i = 1 n ( ℓ ( h , Z i ) − ℓ ( h ′ , Z i ) ) ∣ / d ( h , h ′ ) p \left|\mathbb{E}[\ell(h,Z)-\ell(h',Z)]-\frac{1}{n}\sum_{i=1}^{n}(\ell(h,Z_i)-\ell(h',Z_i))\right|/d(h,h')^p E [ ℓ ( h , Z ) − ℓ ( h ′ , Z )] − n 1 ∑ i = 1 n ( ℓ ( h , Z i ) − ℓ ( h ′ , Z i )) / d ( h , h ′ ) p individually. The statement follows then by combining both bounds using a union bound argument. We first derive a uniform high probability bound for sup h ∈ H ∣ Δ n ( h ) ∣ \sup_{h\in\mathcal{H}}|\Delta_n(h)| sup h ∈ H ∣ Δ n ( h ) ∣ using a covering argument.
Let ε > 0 \varepsilon>0 ε > 0 , and let H ε = { h 1 , … , h N ε } \mathcal{H}_{\varepsilon}=\{h_1,\ldots,h_{\mathcal{N}_{\varepsilon}}\} H ε = { h 1 , … , h N ε } be an ε \varepsilon ε -covering of H \mathcal{H} H , where N ε = N ( H , ∥ ⋅ ∥ 2 , ε ) \mathcal{N}_{\varepsilon}=\mathcal{N}(\mathcal{H},\lVert\cdot\rVert_2,\varepsilon) N ε = N ( H , ∥ ⋅ ∥ 2 , ε ) is the ε \varepsilon ε -covering number. For every h ∈ H h\in\mathcal{H} h ∈ H , choose h ε ∈ H ε h_{\varepsilon}\in\mathcal{H}_{\varepsilon} h ε ∈ H ε such that d ( h , h ε ) ≤ ε d(h,h_{\varepsilon})\leq\varepsilon d ( h , h ε ) ≤ ε . By the Hölder assumption,
∣ R ℓ ( h ) − R ℓ ( h ε ) ∣ = ∣ E [ ℓ ( h , Z ) − ℓ ( h ε , Z ) ] ∣ ≤ G ε p , \left|R_{\ell}(h)-R_{\ell}(h_{\varepsilon})\right|=\left|\mathbb{E}[\ell(h,Z)-\ell(h_{\varepsilon},Z)]\right|\leq G\varepsilon^p, ∣ R ℓ ( h ) − R ℓ ( h ε ) ∣ = ∣ E [ ℓ ( h , Z ) − ℓ ( h ε , Z )] ∣ ≤ G ε p ,
∣ R ^ ℓ ( h , S n ) − R ^ ℓ ( h ε , S n ) ∣ = ∣ 1 n ∑ i = 1 n ( ℓ ( h , Z i ) − ℓ ( h ε , Z i ) ) ∣ ≤ G ε p . \left|\widehat{R}_{\ell}(h,S_n)-\widehat{R}_{\ell}(h_{\varepsilon},S_n)\right|=\left|\frac{1}{n}\sum_{i=1}^{n}\left(\ell(h,Z_i)-\ell(h_{\varepsilon},Z_i)\right)\right|\leq G\varepsilon^p. R ℓ ( h , S n ) − R ℓ ( h ε , S n ) = n 1 i = 1 ∑ n ( ℓ ( h , Z i ) − ℓ ( h ε , Z i ) ) ≤ G ε p .
Consequently,
∣ Δ n ( h ) − Δ n ( h ε ) ∣ ≤ 2 G ε p . (14) \left|\Delta_n(h)-\Delta_n(h_{\varepsilon})\right|\leq2G\varepsilon^p. \tag*{(14)} ∣ Δ n ( h ) − Δ n ( h ε ) ∣ ≤ 2 G ε p . (14)
Since H \mathcal{H} H is compact, N ε < ∞ \mathcal{N}_{\varepsilon}<\infty N ε < ∞ . For each fixed h j ∈ H ε h_j\in\mathcal{H}_{\varepsilon} h j ∈ H ε , Hoeffding’s inequality yields
P ( ∣ Δ n ( h j ) ∣ ≤ ln ( 2 N ε / δ ) 2 n ) ≥ 1 − δ N ε . \mathbb{P}\left(\left|\Delta_n(h_j)\right|\leq\sqrt{\frac{\ln(2\mathcal{N}_{\varepsilon}/\delta)}{2n}}\right)\geq1-\frac{\delta}{\mathcal{N}_{\varepsilon}}. P ( ∣ Δ n ( h j ) ∣ ≤ 2 n ln ( 2 N ε / δ ) ) ≥ 1 − N ε δ .
A union bound over the finite ε \varepsilon ε -covering therefore yields
P ( sup h j ∈ H ε ∣ Δ n ( h j ) ∣ ≤ ln ( 2 N ε / δ ) 2 n ) ≥ 1 − δ . (15) \mathbb{P}\left(\sup_{h_j\in\mathcal{H}_{\varepsilon}}\left|\Delta_n(h_j)\right|\leq\sqrt{\frac{\ln(2\mathcal{N}_{\varepsilon}/\delta)}{2n}}\right)\geq1-\delta. \tag*{(15)} P ( h j ∈ H ε sup ∣ Δ n ( h j ) ∣ ≤ 2 n ln ( 2 N ε / δ ) ) ≥ 1 − δ . (15)
Combining (14) and (15) , we obtain
sup h ∈ H ∣ Δ n ( h ) ∣ ≤ sup h ∈ H , h ε ∈ H ε ∣ Δ n ( h ε ) ∣ + ∣ Δ n ( h ε ) − Δ n ( h ) ∣ ≤ ln ( 2 N ε / δ ) 2 n + 2 G ε p (16) \sup_{h\in\mathcal{H}}|\Delta_n(h)|\leq\sup_{h\in\mathcal{H},h_{\varepsilon}\in\mathcal{H}_{\varepsilon}}|\Delta_n(h_{\varepsilon})|+|\Delta_n(h_{\varepsilon})-\Delta_n(h)|\leq\sqrt{\frac{\ln(2\mathcal{N}_{\varepsilon}/\delta)}{2n}}+2G\varepsilon^p \tag*{(16)} h ∈ H sup ∣ Δ n ( h ) ∣ ≤ h ∈ H , h ε ∈ H ε sup ∣ Δ n ( h ε ) ∣ + ∣ Δ n ( h ε ) − Δ n ( h ) ∣ ≤ 2 n ln ( 2 N ε / δ ) + 2 G ε p (16)
with probability at least 1 − δ 1-\delta 1 − δ . By boundedness of H \mathcal{H} H , diam ( H ) < ∞ \operatorname{diam}(\mathcal{H})<\infty diam ( H ) < ∞ . Therefore the volumetric bound in [28 Corollary 4.2.13] yields
N ε ≤ ( 1 + 2 diam ( H ) ε ) d \mathcal{N}_{\varepsilon}\leq\left(1+\frac{2\operatorname{diam}(\mathcal{H})}{\varepsilon}\right)^d N ε ≤ ( 1 + ε 2 diam ( H ) ) d
and (16) becomes
sup h ∈ H ∣ Δ n ( h ) ∣ ≤ ln ( 2 ( 1 + 2 diam ( H ) ε ) d / δ ) 2 n + 2 G ε p . \sup_{h\in\mathcal{H}}|\Delta_n(h)|\leq\sqrt{\frac{\ln\left(2\left(1+\frac{2\operatorname{diam}(\mathcal{H})}{\varepsilon}\right)^d/\delta\right)}{2n}}+2G\varepsilon^p. h ∈ H sup ∣ Δ n ( h ) ∣ ≤ 2 n ln ( 2 ( 1 + ε 2 diam ( H ) ) d / δ ) + 2 G ε p .
For ε ≤ D \varepsilon\leq D ε ≤ D ,
ln ( 2 ( 1 + 2 diam ( H ) ε ) d / δ ) 2 n + 2 G ε p ≤ ln ( 2 / δ ) + d ln ( 3 diam ( H ) ε ) 2 n + 2 G ε p . \sqrt{\frac{\ln\left(2\left(1+\frac{2\operatorname{diam}(\mathcal{H})}{\varepsilon}\right)^d/\delta\right)}{2n}}+2G\varepsilon^p\leq\sqrt{\frac{\ln(2/\delta)+d\ln\left(\frac{3\operatorname{diam}(\mathcal{H})}{\varepsilon}\right)}{2n}}+2G\varepsilon^p. 2 n ln ( 2 ( 1 + ε 2 diam ( H ) ) d / δ ) + 2 G ε p ≤ 2 n ln ( 2/ δ ) + d ln ( ε 3 diam ( H ) ) + 2 G ε p .
Choosing
ε = ( 1 G 2 n ) 1 / ( 2 p ) \varepsilon=\left(\frac{1}{G^2n}\right)^{1/(2p)} ε = ( G 2 n 1 ) 1/ ( 2 p )
and substituting yields
sup h ∈ H ∣ Δ n ( h ) ∣ ≤ ln ( 2 / δ ) + d ln ( 3 diam ( H ) ) + d 2 p ln ( G 2 n ) 2 n + 2 n . (17) \sup_{h\in\mathcal{H}}|\Delta_n(h)|\leq\sqrt{\frac{\ln(2/\delta)+d\ln(3\operatorname{diam}(\mathcal{H}))+\frac{d}{2p}\ln(G^2n)}{2n}}+\frac{2}{\sqrt{n}}. \tag*{(17)} h ∈ H sup ∣ Δ n ( h ) ∣ ≤ 2 n ln ( 2/ δ ) + d ln ( 3 diam ( H )) + 2 p d ln ( G 2 n ) + n 2 . (17)
For the second term in (13) , let h , h ′ ∈ H h,h' \in\mathcal{H} h , h ′ ∈ H be arbitrary. By the Hölder assumption,
∣ E [ ℓ ( h , Z ) − ℓ ( h ′ , Z ) ] ∣ ≤ G d ( h , h ′ ) p , ∣ 1 n ∑ i = 1 n ( ℓ ( h , Z i ) − ℓ ( h ′ , Z i ) ) ∣ ≤ G d ( h , h ′ ) p . \left|\mathbb{E}\left[\ell(h,Z)-\ell(h',Z)\right]\right| \leq Gd(h,h')^p,
\qquad
\left|\frac{1}{n}\sum_{i=1}^{n}\left(\ell(h,Z_i)-\ell(h',Z_i)\right)\right| \leq Gd(h,h')^p. ∣ E [ ℓ ( h , Z ) − ℓ ( h ′ , Z ) ] ∣ ≤ G d ( h , h ′ ) p , n 1 i = 1 ∑ n ( ℓ ( h , Z i ) − ℓ ( h ′ , Z i ) ) ≤ G d ( h , h ′ ) p .
Hence,
sup h , h ′ ∈ H : h ≠ h ′ ∣ E [ ℓ ( h , Z ) − ℓ ( h ′ , Z ) ] − 1 n ∑ i = 1 n ( ℓ ( h , Z i ) − ℓ ( h ′ , Z i ) ) ∣ d ( h , h ′ ) p ≤ sup h , h ′ ∈ H : h ≠ h ′ ∣ E [ ℓ ( h , Z ) − ℓ ( h ′ , Z ) ] ∣ + ∣ 1 n ∑ i = 1 n ( ℓ ( h , Z i ) − ℓ ( h ′ , Z i ) ) ∣ d ( h , h ′ ) p ≤ 2 G . (18) \sup_{\substack{h,h'\in\mathcal{H}:h\ne h'}}
\frac{\left|\mathbb{E}\left[\ell(h,Z)-\ell(h',Z)\right]-\frac{1}{n}\sum_{i=1}^{n}\left(\ell(h,Z_i)-\ell(h',Z_i)\right)\right|}{d(h,h')^p}
\leq
\sup_{\substack{h,h'\in\mathcal{H}:h\ne h'}}
\frac{\left|\mathbb{E}\left[\ell(h,Z)-\ell(h',Z)\right]\right|+\left|\frac{1}{n}\sum_{i=1}^{n}\left(\ell(h,Z_i)-\ell(h',Z_i)\right)\right|}{d(h,h')^p}
\leq2G. \tag*{(18)} h , h ′ ∈ H : h = h ′ sup d ( h , h ′ ) p E [ ℓ ( h , Z ) − ℓ ( h ′ , Z ) ] − n 1 ∑ i = 1 n ( ℓ ( h , Z i ) − ℓ ( h ′ , Z i ) ) ≤ h , h ′ ∈ H : h = h ′ sup d ( h , h ′ ) p ∣ E [ ℓ ( h , Z ) − ℓ ( h ′ , Z ) ] ∣ + n 1 ∑ i = 1 n ( ℓ ( h , Z i ) − ℓ ( h ′ , Z i ) ) ≤ 2 G . (18)
Combining (13) , (17) , and (18) yields the statement. □ \square □
Proof of Theorem 3.9. Applying a union bound to combine Theorem 2.2 for ϕ ( r ) = r p \phi(r)=r^p ϕ ( r ) = r p and Lemma F.3, each evaluated with confidence parameter δ 2 \frac{\delta}{2} 2 δ , yields the statement. □ \square □
Properties of the Statistical Distances
We begin with three controlled experiments illustrating how KL divergence and OT distances respond to support mismatch, posterior concentration and displacement of the posterior mean.
Figure 3 visualizes the main advantage of OT distances compared to the KL divergence. OT distances do not require absolute continuity and can therefore remain finite even for posteriors that are not absolutely continuous w.r.t. the prior. Specifically, the prior is supported on [ − 2 , 2 ] [-2,2] [ − 2 , 2 ] and the posterior is defined as Q κ = ( 1 − κ ) Q i n + κ Q o u t Q_\kappa=(1-\kappa)Q_{\mathrm{in}}+\kappa Q_{\mathrm{out}} Q κ = ( 1 − κ ) Q in + κ Q out , where Q i n Q_{\mathrm{in}} Q in is supported on [ − 2 , 2 ] [-2,2] [ − 2 , 2 ] and Q o u t Q_{\mathrm{out}} Q out is supported outside this interval. Thus, κ \kappa κ controls the fraction of posterior mass lying outside the support of the prior. At κ = 0 \kappa=0 κ = 0 , the posterior is absolutely continuous w.r.t. the prior and the KL divergence is finite. For every κ > 0 \kappa>0 κ > 0 , absolute continuity is violated and the KL divergence becomes infinite. In contrast, the Wasserstein distance remains finite and increases smoothly with κ \kappa κ , reflecting the amount and distance of transported mass.
Figure 3. The posterior places a fraction κ \kappa κ of its mass outside the support of the prior. The Wasserstein distance remains finite and varies continuously with κ \kappa κ , whereas the KL divergence is infinite for every κ > 0 \kappa> 0 κ > 0 .
Wasserstein distances can also remain well behaved when the posterior and prior have common support and the posterior is absolutely continuous w.r.t. to the prior. In Figure 4 , we consider P = N ( 0 , σ P 2 I d ) P = \mathcal{N}(0,\sigma_P^2 I_d) P = N ( 0 , σ P 2 I d ) and Q σ = N ( μ , σ 2 I d ) Q_\sigma= \mathcal{N}(\mu,\sigma^2 I_d) Q σ = N ( μ , σ 2 I d ) , both of which have support on R d \mathbb{R}^d R d for σ > 0 \sigma> 0 σ > 0 and the posterior is absolutely continuous w.r.t. the prior. We progressively decrease σ \sigma σ , causing the posterior to concentrate around μ \mu μ . The behavior visualized in the figure can be obtained directly from the closed-form expressions. In particular,
Figure 4. The posterior variance σ 2 \sigma^2 σ 2 decreases toward zero while the prior remains fixed. The KL divergence diverges as the posterior collapses, whereas the Wasserstein distance converges to a finite value.
D K L ( Q σ ∥ P ) = d ln σ P σ + d σ 2 + ∥ μ ∥ 2 2 σ P 2 − d 2 . D_{\mathrm{KL}}(Q_\sigma\mathbin{\|}P) = d \ln\frac{\sigma_P}{\sigma} + \frac{d\sigma^2 + \lVert\mu\rVert^2}{2\sigma_P^2} - \frac{d}{2}. D KL ( Q σ ∥ P ) = d ln σ σ P + 2 σ P 2 d σ 2 + ∥ μ ∥ 2 − 2 d .
so, as σ → 0 \sigma\to0 σ → 0 , KL is dominated by the logarithmic term d ln ( σ P / σ ) d\ln(\sigma_P/\sigma) d ln ( σ P / σ ) and therefore blows up. In contrast, the Bures-Wasserstein formula gives
W 2 2 ( Q σ , P ) = ∥ μ ∥ 2 + d ( σ P − σ ) 2 , W_2^2(Q_\sigma,P) = \lVert\mu\rVert^2 + d(\sigma_P-\sigma)^2, W 2 2 ( Q σ , P ) = ∥ μ ∥ 2 + d ( σ P − σ ) 2 ,
and hence
W 2 2 ( Q σ , P ) ⟶ ∥ μ ∥ 2 + d σ P 2 as σ → 0. W_2^2(Q_\sigma,P) \longrightarrow\lVert\mu\rVert^2 + d\sigma_P^2 \quad\text{as } \sigma\to0. W 2 2 ( Q σ , P ) ⟶ ∥ μ ∥ 2 + d σ P 2 as σ → 0.
More generally, for any p ≥ 1 p \ge1 p ≥ 1 , the Wasserstein distance can be bounded by
W p p ( Q σ , P ) ≤ E [ ∥ μ + ( σ P − σ ) Z ∥ p ] , W_p^p(Q_\sigma,P) \le\mathbb{E}\left[\left\lVert\mu+(\sigma_P-\sigma)Z\right\rVert^p\right], W p p ( Q σ , P ) ≤ E [ ∥ μ + ( σ P − σ ) Z ∥ p ] ,
where Z ∼ N ( 0 , I d ) Z \sim\mathcal{N}(0,I_d) Z ∼ N ( 0 , I d ) . Since the right-hand side converges to
E [ ∥ μ + σ P Z ∥ p ] < ∞ \mathbb{E}\left[\left\lVert\mu+\sigma_P Z\right\rVert^p\right] < \infty E [ ∥ μ + σ P Z ∥ p ] < ∞
as σ → 0 \sigma\to0 σ → 0 , so that the Wasserstein distance remains bounded for any p ≥ 1 p \ge1 p ≥ 1 . Thus, while the KL divergence diverges as the posterior collapses to the deterministic distribution δ μ \delta_\mu δ μ , the Wasserstein distances of every order p ≥ 1 p \ge1 p ≥ 1 remain bounded and retain a direct geometric interpretation. The plots in Figure 4 reflect precisely this behavior.
Finally, Figure 5 examines the effect of translating the posterior while keeping its covariance fixed. We set P = N ( 0 , σ 2 I d ) P = \mathcal{N}(0,\sigma^2 I_d) P = N ( 0 , σ 2 I d ) and Q μ = N ( μ , σ 2 I d ) Q_\mu= \mathcal{N}(\mu,\sigma^2 I_d) Q μ = N ( μ , σ 2 I d ) , so that the posterior remains absolutely continuous w.r.t. the prior. In this case, the general KL expression simplifies to
Figure 5. The posterior mean is shifted by μ \mu μ while the prior and posterior covariances remain fixed. The KL divergence grows quadratically in ∣ μ ∣ 2 |\mu|_2 ∣ μ ∣ 2 , whereas the W 2 W_2 W 2 distance grows linearly.
D K L ( Q μ ∥ P ) = ∥ μ ∥ 2 2 σ 2 , D_{\mathrm{KL}}(Q_\mu\mathbin{\|}P) = \frac{\lVert\mu\rVert^2}{2\sigma^2}, D KL ( Q μ ∥ P ) = 2 σ 2 ∥ μ ∥ 2 ,
whereas the Bures-Wasserstein formula yields
W 2 ( Q μ , P ) = ∥ μ ∥ 2 . W_2(Q_\mu,P) = \lVert\mu\rVert_2. W 2 ( Q μ , P ) = ∥ μ ∥ 2 .
Consequently, both discrepancies increase with the magnitude of the translation, but at different rates. The KL divergence grows quadratically in ∥ μ ∥ 2 \lVert\mu\rVert_2 ∥ μ ∥ 2 , while the Wasserstein distance grows linearly. More generally, for any p ≥ 1 p \ge1 p ≥ 1 , the equal-scale Gaussian case also admits the exact expression
W p ( Q μ , P ) = ∥ μ ∥ 2 . W_p(Q_\mu,P) = \lVert\mu\rVert_2. W p ( Q μ , P ) = ∥ μ ∥ 2 .
Thus, the qualitative behavior shown in Figure 5 follows directly from the corresponding closed-form expressions.
Together, these experiments demonstrate that OT distances respond continuously to geometric changes in the posterior. By contrast, KL divergence becomes singular under support mismatch or posterior collapse and grows quadratically under mean shifts. These differences provide the motivation for replacing KL-based complexity terms with geometry-aware discrepancies in the PAC-Bayesian bounds studied below.
Adult Income Classification
The second experiment evaluates the PAC Bayesian bounds on a real-world tabular classification task. We use the UCI Adult dataset to predict whether an individual’s income exceeds 50 K 50K 50 K . After removing observations with missing values, we one-hot encode categorical features, standardize numerical features, and normalize each feature vector to have Euclidean norm at most one. We stratify the data into a model-zoo split (S z o o S_{\mathrm{zoo}} S zoo ), a bound split (S b o u n d S_{\mathrm{bound}} S bound ), and a test split (S t e s t S_{\mathrm{test}} S test ), with proportions (35%/35%/30%).
Figure 6. In this experiment, we compare PAC-Bayesian bounds whose complexity terms are based on different statistical distance. We compare the behavior of the bounds for different priors and posteriors.
We construct a finite hypothesis class by training a randomized zoo of 200 linear classifiers on S z o o S_{\mathrm{zoo}} S zoo . We introduce diversity through bootstrap subsampling, random feature masks, varying regularization strengths, and varying positive-class weights. For each classifier, we use the clipped margin loss
ℓ ( h , ( x , y ) ) = min { 1 , max { 0 , 1 − y h ( x ) } } , \ell(h,(x,y))=\min\{1,\max\{0,1-yh(x)\}\}, ℓ ( h , ( x , y )) = min { 1 , max { 0 , 1 − y h ( x )}} ,
where y ∈ { − 1 , 1 } y \in\{-1,1\} y ∈ { − 1 , 1 } . The posterior Q ( h ) ∝ exp ( − β R ^ ℓ ( h , S b o u n d ) ) Q(h) \propto\exp\left(-\beta\widehat{R}_{\ell}(h,S_{\mathrm{bound}})\right) Q ( h ) ∝ exp ( − β R ℓ ( h , S bound ) ) is a Gibbs distribution over the model zoo. We evaluate its empirical risk on S b o u n d S_{\mathrm{bound}} S bound and estimate its true risk on S t e s t S_{\mathrm{test}} S test .
We design the prior to examine prior compression and near-support mismatch. Using an independent subset of S z o o S_{\mathrm{zoo}} S zoo , we rank the hypotheses by their risk and concentrate the prior on the top k k k classifiers. A smoothing parameter η \eta η mixes this top-k k k distribution with the uniform distribution over the complete model zoo. We sweep
k ∈ { 1 , 2 , 5 , 10 , 20 , 50 , 100 , 200 } and η ∈ { 10 − 1 , 10 − 4 , 10 − 8 , 10 − 20 , 10 − 50 , 10 − 100 , 0 } . k \in\{1,2,5,10,20,50,100,200\}\quad\text{and}\quad\eta\in\{10^{-1},10^{-4},10^{-8},10^{-20},10^{-50},10^{-100},0\}. k ∈ { 1 , 2 , 5 , 10 , 20 , 50 , 100 , 200 } and η ∈ { 1 0 − 1 , 1 0 − 4 , 1 0 − 8 , 1 0 − 20 , 1 0 − 50 , 1 0 − 100 , 0 } .
Small values of η \eta η therefore yield a nearly support-deficient prior. Consequently, the KL divergence becomes large and when η = 0 \eta=0 η = 0 and k < 200 k<200 k < 200 , is infinite because Q Q Q assigns positive mass outside the support of P P P .
For each prior, we compute the KL divergence, and several concave OT discrepancies on the finite hypothesis class. The ground metric is the clipped and rescaled Euclidean distance between the parameter vectors of the linear classifiers. We consider the transformations ϕ ( r ) = r α \phi(r)=r^\alpha ϕ ( r ) = r α for α ∈ 0.25 , 0.5 , 0.75 , 1 \alpha\in0.25,0.5,0.75,1 α ∈ 0.25 , 0.5 , 0.75 , 1 , ϕ ( r ) = ln ( 1 + r ) \phi(r)=\ln(1+r) ϕ ( r ) = ln ( 1 + r ) , and ϕ ( r ) = 1 − exp ( − r ) \phi(r)=1-\exp(-r) ϕ ( r ) = 1 − exp ( − r ) . This experiment complements the synthetic regression experiment by examining support mismatch in a finite, realistic hypothesis class, with a data-dependent prior constructed independently of the bound sample.