Kandinsky Conformal Prediction: Beyond Class- and Covariate-Conditional Coverage

Konstantina Bairaktari, Jiayun Wu, Zhiwei Steven Wu · OpenReview

Abstract

Conformal prediction is a powerful distribution-free framework for constructing prediction sets with coverage guarantees. Classical methods, such as split conformal prediction, provide marginal coverage, ensuring that the prediction set contains the label of a random test point with a target probability. However, these guarantees may not hold uniformly across different subpopulations, leading to disparities in coverage. Prior work has explored coverage guarantees conditioned on events related to the covariates and label of the test point. We present Kandinsky conformal prediction, a framework that significantly expands the scope of conditional coverage guarantees. In contrast to Mondrian conformal prediction, which restricts its coverage guarantees to disjoint groups -- reminiscent of the rigid, structured grids of Piet Mondrian's art -- our framework flexibly handles overlapping and fractional group memberships defined jointly on covariates and labels, reflecting the layered, intersecting forms in Wassily Kandinsky's compositions. Our algorithm unifies and extends existing methods, encompassing covariate-based group conditional, class conditional, and Mondrian conformal prediction as special cases, while achieving a minimax-optimal high-probability conditional coverage bound. Finally, we demonstrate the practicality of our approach through empirical evaluation on real-world datasets.

Introduction

Conformal prediction (CP) has emerged as a robust method for quantifying uncertainty in machine learning by producing prediction sets that contain the true label with a pre-specified probability (e.g., 90%). While standard "marginal" CP guarantees this coverage on average across the entire population, it often fails to maintain consistent performance across specific subgroups. For instance, a model might achieve 90% coverage overall but only 50% for a minority demographic, raising significant concerns regarding fairness and reliability in high-stakes applications.

Beyond Rigid Partitions: The Kandinsky Framework

Existing approaches to conditional coverage, most notably Mondrian Conformal Prediction, attempt to solve this by providing guarantees for specific groups. However, Mondrian CP requires these groups to be disjoint—a structure analogous to the rigid, non-overlapping rectangles found in the art of Piet Mondrian.

Mondrian's rigid, disjoint grid structure, analogous to the partitions in Mondrian Conformal Prediction.

In real-world scenarios, group memberships are rarely so clean. Individuals often belong to multiple overlapping demographic categories (e.g., intersections of race, gender, and age), or group membership might be "fractional" when inferred probabilistically. Kandinsky Conformal Prediction addresses these complexities by allowing for fluid, overlapping, and layered group structures, much like the compositions of Wassily Kandinsky.

Kandinsky's overlapping, fluid forms, representing the flexible group structures supported by the Kandinsky CP framework.

Technical Innovations

Kandinsky CP introduces several key advancements over traditional methods:

  • Joint Grouping: Group definitions can depend on both input features ($X$) and labels ($Y$), unifying covariate-conditional and class-conditional approaches into a single framework.
  • Quantile Regression: The core algorithm solves a linear quantile regression problem over a vector space of "group functions." This allows the model to find a single quantile function that adjusts prediction set sizes per-instance to satisfy the coverage requirements of all overlapping groups simultaneously.
  • Statistical Efficiency: The authors prove that Kandinsky CP achieves a coverage error rate of $O(n_G^{-1/2})$, where $n_G$ is the average number of samples per group. This matches the theoretical minimax lower bound, indicating optimal data efficiency.

Empirical Evaluation

The framework was tested across three diverse real-world datasets to demonstrate its versatility and stability:

  1. ACSIncome: Predicting personal income using US Census data. Kandinsky CP maintained stable coverage even as the number of groups (US states) increased, whereas simpler methods saw performance degradation.
  2. CivilComments: Detecting toxic comments across 16 overlapping demographic groups. Kandinsky CP achieved superior calibration compared to standard split and class-conditional baselines as calibration samples increased.
  3. MMLU (MCQA): Evaluating a LLaMA-13B model on multiple-choice questions. The method proved effective as a "wrapper" for large language models, handling subjects grouped by varying difficulty levels.

Conclusion

Kandinsky Conformal Prediction bridges the gap between rigid group-conditional methods and flexible multi-group fairness research. By supporting overlapping and fractional group memberships, it provides a more realistic and robust framework for uncertainty quantification. While challenges remain regarding basis selection and computational overhead for high-throughput systems, Kandinsky CP represents a significant step toward more equitable and reliable machine learning models.

Summary updated

Abstract

Conformal prediction is a powerful distribution-free framework for constructing prediction sets with coverage guarantees. Classical methods, such as split conformal prediction, provide marginal coverage, ensuring that the prediction set contains the label of a random test point with a target probability. However, these guarantees may not hold uniformly across different subpopulations, leading to disparities in coverage. Prior work has explored coverage guarantees conditioned on events related to the covariates and label of the test point. We present Kandinsky conformal prediction, a framework that significantly expands the scope of conditional coverage guarantees. In contrast to Mondrian conformal prediction, which restricts its coverage guarantees to disjoint groups -- reminiscent of the rigid, structured grids of Piet Mondrian's art -- our framework flexibly handles overlapping and fractional group memberships defined jointly on covariates and labels, reflecting the layered, intersecting forms in Wassily Kandinsky's compositions. Our algorithm unifies and extends existing methods, encompassing covariate-based group conditional, class conditional, and Mondrian conformal prediction as special cases, while achieving a minimax-optimal high-probability conditional coverage bound. Finally, we demonstrate the practicality of our approach through empirical evaluation on real-world datasets.
BibTeX
@inproceedings{bairaktari2025kandinsky,
  author = {Konstantina Bairaktari and Jiayun Wu and Zhiwei Steven Wu},
  title = {{Kandinsky Conformal Prediction: Beyond Class- and Covariate-Conditional Coverage}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=IHAnkPkoiX},
}
Figure