PAC-Bayesian theory provides a robust framework for understanding generalization, yet it has historically been tethered to the Kullback-Leibler (KL) divergence. This reliance introduces significant geometric limitations, particularly regarding the topology of the predictor space and the requirement for absolute continuity between priors and posteriors. Presented at NeurIPS 2023, this work introduces a paradigm shift by replacing KL divergence with the Wasserstein distance, deriving the first high-probability generalization bounds that respect the underlying geometry of the hypothesis space.
The Limitations of KL-Based PAC-Bayes
Traditional PAC-Bayesian bounds face two primary "geometric" hurdles:
- Sensitivity to Topology: KL divergence is "blind" to the distance between points in parameter space; it only measures the overlap of probability masses. If two distributions have disjoint supports, their KL divergence is infinite, rendering the resulting bounds vacuous.
- The Continuity Constraint: KL requires the "posterior" distribution to be absolutely continuous with respect to the "prior." This effectively prevents the use of deterministic predictors (Dirac masses) in many theoretical settings, even though deterministic models are what practitioners use in the real world.
While previous attempts have been made to use the Wasserstein distance (which measures the "work" required to move one distribution to another) to address these issues, those bounds were typically restricted to "in expectation" results or required strictly bounded loss functions.
Theoretical Framework and Methodology
The authors bridge the gap between Wasserstein geometry and high-probability bounds using two key mathematical pillars:
- Kantorovich-Rubinstein Duality: This allows the replacement of the standard change-of-measure inequality with a Wasserstein-based term, ensuring the bound is sensitive to the metric of the hypothesis space.
- Supermartingale Techniques: By utilizing advanced concentration inequalities (such as Ville’s inequality), the authors derive bounds that hold with high probability even under heavy-tailed loss distributions. This is a significant relaxation from the typical requirement of bounded or sub-Gaussian losses; the new framework only requires the loss to have a bounded second moment.
Algorithmic Implementation
The paper introduces two primary algorithms to operationalize these theoretical insights:
- Batch Learning (Alg 1): This approach employs a "multiple prior" strategy. The training data is partitioned to learn $K$ data-dependent priors. The final posterior is then optimized using a regularization term based on the average Wasserstein distance to these learned priors, which helps attenuate the impact of high-dimensional parameter spaces.
- Online Learning (Alg 2): Designed for streaming data, this algorithm updates the hypothesis at each step by balancing the current loss against the Wasserstein distance to the previous hypothesis. This acts as a geometric regularizer, preventing the model from overfitting to transient noise or drifting too far from established patterns.
Empirical Evaluation and Results
The framework was validated across MNIST, FashionMNIST, and 11 diverse UCI datasets (including Adult, Letter, and Phishing) using both linear models and 2-layer ReLU Neural Networks.
- Batch Performance: The Wasserstein-regularized batch algorithm outperformed standard Empirical Risk Minimization (ERM) in 11 of 13 datasets for linear models and 9 of 13 for neural networks.
- Online Stability: In the online setting, the Wasserstein approach (Alg 2) demonstrated a significant advantage over Online Gradient Descent (OGD). For example, on the
Letterdataset, Alg 2 achieved a test risk of 0.945, compared to OGD’s 0.963. This suggests that the Wasserstein constraint effectively stabilizes the model against noisy individual samples. - Non-Vacuous Bounds: Crucially, the authors demonstrate that their bounds remain informative even when KL-based counterparts fail due to the presence of singular distributions.
Key Insights
- Dirac Measures are Supported: Because the Wasserstein distance handles disjoint supports gracefully, the theory now supports deterministic priors and posteriors. This allows PAC-Bayes to directly justify the generalization of standard SGD-trained models.
- Robustness to Heavy Tails: Most generalization theory assumes losses are nicely bounded (e.g., between 0 and 1). This work proves that as long as the loss variance is finite, strong generalization guarantees are still achievable.
Limitations and Future Directions
Despite the theoretical progress, the authors note several practical challenges. The batch algorithm introduces computational overhead by requiring the training of $K$ separate priors. Additionally, the regularization parameter $\epsilon$ (the weight of the Wasserstein term) is highly sensitive and requires careful tuning. In online settings, the tightness of the bound depends on the "path length"—the sum of distances between successive models. If the data distribution shifts violently, this sum may grow quickly, reducing the bound's utility. Future research may explore adaptive methods to control this path length and further optimize the computational efficiency of the multi-prior approach.
Summary updated