PAC-Bayes Bounds for Multiple Error Types

This direction is merged into another direction: PAC-Bayesian generalization bounds. Its last version stays readable and citable here.

Version 1 of 15 papers21 conceptsfrozen 2026-10-04

In traditional machine learning theory, we usually ask a single question: "How often will this model be wrong?" We answer this using generalization bounds that provide a statistical guarantee on the scalar error rate. However, in the real world, not all errors are created equal. A false positive in a medical screening is fundamentally different from a false negative.

Standard PAC-Bayesian theory provides a tight "certificate" of performance for a single error metric. But if you want to guarantee both the false positive rate and the false negative rate simultaneously, you typically have to use a "union bound"—a mathematical shortcut that often results in loose, overly pessimistic guarantees.

John Shawe-Taylor, Reuben Adams, and Benjamin Guedj have introduced a framework that moves beyond these scalar limits. Their work, detailed in Controlling Multiple Errors Simultaneously with a PAC-Bayes Bound, allows practitioners to bound an entire vector of error types—such as every cell in a confusion matrix—with a single, tight statistical certificate.

From Scalar Intervals to Simplex Regions

To understand how this works, imagine the performance of a classifier not as a single number on a line, but as a point inside a geometric shape called a simplex.

If you have three possible outcomes (e.g., Correct, Type I Error, Type II Error), their probabilities must sum to 1. This constraint means all possible error distributions live on a triangle in 3D space. A traditional bound tries to pin down where the true error rate lies on a 1D line. The approach by Shawe-Taylor and Adams instead draws a "confidence region" directly on that triangle.

By extending PAC-Bayesian tools from binomial distributions (right vs. wrong) to multinomial distributions (multiple error types), they can bound the Kullback-Leibler (KL) divergence between the empirical error vector we see during training and the true error vector we will see in the wild.

The Power of Post-Hoc Weighting

The most significant advantage of this vector-valued approach is flexibility. In many deployment scenarios, the "cost" of an error isn't known at training time. A self-driving car might need to be more conservative in rain than in sunshine; a fraud detection model might change its sensitivity based on current transaction volumes.

Normally, if you change your error costs, your old statistical guarantee becomes invalid. You would need to re-evaluate the model or even retrain it.

Because the bound developed by Adams et al. constrains the entire distribution of errors simultaneously, it remains valid for any arbitrary weighting of those errors chosen after the model is trained. If you decide that False Negatives are suddenly ten times more expensive than False Positives, the same PAC-Bayes certificate still provides a valid guarantee on that new cost-weighted sum.

Why the KL Divergence Mechanism Works

The intuition for why a single KL-divergence bound can cover all possible cost weightings lies in the geometry of the simplex.

When we bound the KL divergence between the empirical risk vector $\hat{\mathbf{r}}$ and the true risk vector $\mathbf{r}$, we are essentially saying that the true vector cannot be "too far" from our observation in an information-theoretic sense. This "distance" creates a convex bubble around our training results.

Mathematically, any specific cost-weighting of errors is just a linear projection of that vector. Because the KL-bound controls the divergence of the entire vector, it inherently limits how far any linear projection of that vector can stray. This avoids the "slack" introduced by union bounds, where you would treat each error type as an independent problem. Instead, it treats the confusion matrix as a single, coherent object, leading to much tighter and more useful performance certificates for complex, real-world decision-making.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_pac_bayes_bounds_for_multiple_error_type_82979f21,
  title = {PAC-Bayes Bounds for Multiple Error Types},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/pac-bayes-bounds-for-multiple-error-types/rdr_82979f21c3414f1abea8523addaffcd0},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-24},
}

This exact version (version 1, frozen text):

@misc{lacuna_pac_bayes_bounds_for_multiple_error_type_82979f21_v1,
  title = {PAC-Bayes Bounds for Multiple Error Types},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/pac-bayes-bounds-for-multiple-error-types/rdr_82979f21c3414f1abea8523addaffcd0/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-24},
}