Conformal Classification with Equalized Coverage for Adaptively Selected Groups

Yanfei Zhou, Matteo Sesia

Introduction

Machine learning models often exhibit disparate performance across demographic subgroups. While standard conformal prediction provides a rigorous framework for uncertainty quantification, it typically guarantees only marginal coverage—meaning the error rate is controlled on average across the entire population. This can mask significant under-coverage for specific minority groups. Conversely, attempting to guarantee coverage across every possible intersection of attributes (exhaustive equalized coverage) often results in overly conservative, uninformative prediction sets.

This paper introduces Adaptively Fair Conformal Prediction (AFCP), a novel method designed to navigate this efficiency-fairness trade-off. AFCP identifies the most "at-risk" subgroups from the data and adjusts prediction sets specifically for them, ensuring rigorous fairness without sacrificing predictive efficiency.

The Challenge: Marginal vs. Conditional Coverage

In conformal inference, the goal is to produce a prediction set $C(X)$ that contains the true label $Y$ with a probability $1-\alpha$.

  • Marginal Coverage ensures $P(Y \in C(X)) \ge 1-\alpha$. However, a model might achieve 90% coverage overall while only achieving 70% for a specific demographic, effectively "subsidizing" the accuracy of one group with the errors of another.
  • Exhaustive Equalized Coverage attempts to ensure $P(Y \in C(X) | A=a) \ge 1-\alpha$ for all possible attribute combinations $a$. As the number of attributes increases, the data is partitioned into increasingly smaller subsets. This lack of statistical power forces the algorithm to produce very large prediction sets to maintain the guarantee, rendering the output less useful for decision-making.

Methodology: Adaptively Fair Conformal Prediction

AFCP addresses these issues by adaptively selecting which attributes require group-specific protection based on observed miscoverage.

1. Automatic Attribute Selection

The algorithm employs a "leave-one-out" procedure to evaluate sensitive attributes (e.g., race, age, gender). It identifies which attribute exhibits the highest empirical miscoverage. To maintain the validity of the conformal guarantee, this selection must be performed without knowing the true label of the test point.

2. The Intersection Rule

To avoid selection bias, AFCP utilizes an intersection rule: an attribute is selected for adjustment only if it is flagged as the most biased across all possible candidate labels for the test point. This stability ensures that the selection process does not invalidate the underlying statistical assumptions.

3. Hybrid Prediction Sets

Once a critical attribute is identified, AFCP constructs a prediction set that is the union of a standard marginal set and a group-specific set. This hybrid approach ensures that even if the adaptive selection is imperfect, the coverage guarantee remains robust.

4. Mathematical Validity

The authors provide a formal proof (Theorem 1) demonstrating that this data-driven selection process maintains valid coverage. This is a significant contribution, as choosing groups based on the same data used for prediction typically introduces biases that break standard conformal guarantees.

Experimental Evaluation

The method was evaluated across several benchmarks, including synthetic medical data, the Nursery dataset, the COMPAS recidivism dataset, and the Adult income dataset.

  • Restoring Fairness: In synthetic experiments where a specific group was intentionally disadvantaged, marginal methods provided only ~46% coverage for that group. AFCP successfully restored coverage to the target 90% while maintaining significantly smaller set sizes than exhaustive methods.
  • Real-World Utility: On the COMPAS dataset, AFCP identified "Race" as the primary source of under-coverage and corrected it. On the Nursery dataset, AFCP produced prediction sets that were 2-3x smaller than those generated by exhaustive equalized coverage methods, demonstrating superior efficiency.
  • Consistency: The algorithm showed remarkable stability; as sample sizes increased, it consistently identified the truly biased attributes, preventing the prediction sets from becoming unnecessarily bloated.

Limitations and Future Directions

While AFCP offers a powerful middle ground, it faces certain limitations:

  • Sample Size Sensitivity: In very small datasets ($n < 200$), the evidence of bias may not be statistically significant enough for the algorithm to trigger group-specific adjustments.
  • Attribute Types: The current framework is optimized for discrete categorical attributes. Extending the logic to continuous variables remains a subject for future research.
  • Computational Complexity: For problems with a very high number of possible classes, the intersection rule (checking every label) can become computationally intensive.

Conclusion

Adaptively Fair Conformal Prediction provides a "Goldilocks" solution to the fairness-efficiency trade-off in uncertainty quantification. By focusing protection on the groups that actually need it, AFCP ensures that machine learning models remain both fair and informative, providing a rigorous safety net that adapts to the complexities of real-world data.

Summary updated

BibTeX
@inproceedings{zhou2024conformal,
  author = {Yanfei Zhou and Matteo Sesia},
  title = {{Conformal Classification with Equalized Coverage for Adaptively Selected Groups}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=3pWHKxK1sC},
}
Figure