PAC-Bayesian Generalization Guarantees for Fairness on Stochastic and Deterministic Classifiers

Julien Bastian, Benjamin Leblanc, Pascal Germain, Amaury Habrard, Christine Largeron, Guillaume Metzler, Emilie Morvant, Paul ViallardarXiv 2026

Here is a concise, engaging summary of the paper.

TL;DR

While standard machine learning theory provides guarantees on a model's accuracy, it completely ignores whether the model is fair. This paper introduces a novel PAC-Bayesian framework that delivers the first direct generalization guarantees for both accuracy and group fairness on deterministic classifiers. By turning these theoretical bounds into an optimization objective, the authors create a "self-bounding" algorithm that explicitly certifies its own fairness and accuracy trade-offs during training.

What Problem Does This Paper Address?

As machine learning is increasingly deployed in high-stakes scenarios (like credit scoring or recidivism prediction), ensuring models do not perpetuate human biases is critical. Group fairness metrics aim to balance predictions across sensitive attributes like race, gender, or age.

However, statistical learning theory has a gap: traditional Probably Approximately Correct (PAC) generalization bounds only guarantee that a model's empirical error on training data will match its true error on unseen data. They say nothing about whether a model's fairness will generalize. The few existing frameworks that offer fairness guarantees either apply only after training (post-hoc) or are restricted to stochastic (randomized) classifiers, which are rarely used in production. This paper tackles the challenge of providing provable, optimizable fairness guarantees for practical, deterministic classifiers.

Methods

The authors leverage PAC-Bayesian theory, a framework that bounds the generalization gap by considering a distribution over hypotheses (classifiers) rather than a single fixed model.

Their core contributions unfold in two steps:

  1. Stochastic Classifiers: For randomized "Gibbs" classifiers (which sample a model from a distribution for each prediction), the authors derive a tight fairness bound using standard PAC-Bayes tools (specifically, Seeger’s bound), outperforming previous looser bounds.
  2. Deterministic Classifiers: Standard PAC-Bayes doesn't easily translate to deterministic models like a weighted majority vote. To solve this, the authors utilize a recent risk decomposition technique (Leblanc & Germain, 2025) that breaks down deterministic risk into Gibbs risk and conditional expectations. They derive novel, tractable upper and lower bounds for these expectations across three posterior distribution families: Categorical, Dirichlet, and Gaussian.

Because bounding a fairness metric (expressed as a difference in risk between groups) requires controlling deviations on both sides, the authors develop a two-phase Self-Bounding Algorithm. It directly minimizes a loss function that trades off the accuracy bound and the fairness bound. Since the deterministic bounds contain discrete elements, the algorithm first optimizes a stochastic proxy via gradient descent and then refines it using discrete heuristics (clipping, coordinate descent, and scaling).

Datasets

The framework was evaluated using the AI Fairness 360 toolkit across four widely studied real-world datasets:

  • ADULT (Census Income): Predicting if income exceeds \$50k (Sensitive attributes: Gender, Race).
  • COMPAS (ProPublica Recidivism): Predicting pretrial recidivism risk (Sensitive attributes: Gender, Race).
  • GERMAN (German Credit): Assessing credit risk (Sensitive attributes: Gender, Age).
  • MEPS (Medical Expenditure Panel Surveys): Predicting high utilization of medical visits (Sensitive attributes: Gender, Race).

Key Insights and Ideas

  • The Stochastic-Deterministic Gap: A crucial "aha moment" is that stochastic fairness does not imply deterministic fairness. The authors present a clear mathematical example where an ensemble's average fairness risk is zero, yet every individual deterministic classifier within that ensemble is completely unfair. This underscores why deriving dedicated deterministic bounds is vital.
  • Risk Discrepancy Framework: The math elegantly unifies multiple popular group fairness definitions—such as Demographic Parity, Equalized Odds, and Equal Opportunity—by treating them all as variations of a "risk discrepancy" (the absolute difference in risk between two subgroups).
  • Intrinsic Certification: Instead of relying on a separate validation set to check for fairness post-training, the model's optimized training objective is its own mathematical guarantee.

Key Results

The authors evaluated their method against existing PAC-Bayesian fairness baselines (referred to as O1 and O2) across three fairness metrics.

  • Tightness: The proposed bounds proved to be remarkably tight, closely tracking the actual test error and test fairness metrics on almost all datasets.
  • Competitive Trade-offs: The deterministic self-bounding algorithm successfully navigated the accuracy-fairness frontier, often achieving lower predictive risk than stochastic alternatives, albeit sometimes at a slight, controlled cost to fairness.

Limitations and Future Work

The primary limitation arises in high-dimensional settings. On the MEPS dataset (which features 41 dimensions), the deterministic bounds lost some tightness. The authors attribute this to the increased difficulty of applying their discrete optimization heuristics when the parameter space grows large.

For future work, the authors plan to expand this framework beyond binary classification and binary sensitive attributes to handle multi-class problems and non-binary sensitive groups (e.g., intersecting identities or continuous age brackets).

Summary updated

BibTeX
@misc{bastian2026pac,
  author = {Julien Bastian and Benjamin Leblanc and Pascal Germain and Amaury Habrard and Christine Largeron and Guillaume Metzler and Emilie Morvant and Paul Viallard},
  title = {{PAC-Bayesian Generalization Guarantees for Fairness on Stochastic and Deterministic Classifiers}},
  year = {2026},
  eprint = {2602.11722},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.11722},
}
Figure