Kandinsky Conformal Prediction: Efficient Calibration of Image Segmentation Algorithms

Joren Brunekreef, Eric Marcus, Ray Sheombarsing, Jan-Jakob Sonke, Jonas Teuwen · DOI

Abstract

Kandinsky Conformal Prediction (KCP) addresses the fundamental trade-off in image segmentation between coarse image-level (marginal) calibration and data-intensive pixel-level (conditional) calibration. By grouping pixels into spatial clusters—reminiscent of abstract geometric art—KCP produces statistically valid confidence measures even when labeled calibration data is extremely scarce.

Introduction

In high-stakes fields such as medical imaging, it is critical to quantify the uncertainty of AI-driven segmentation. Conformal Prediction (CP) provides a robust framework for this by offering "guaranteed coverage," mathematically ensuring that the true label resides within the predicted set at a user-defined confidence level (e.g., 95%).

However, applying CP to segmentation typically involves a choice between two extremes. Marginal calibration averages scores across all pixels, which is data-efficient but fails to account for spatial variations in model performance (e.g., higher error rates at image boundaries). Conversely, pixelwise calibration treats every coordinate independently; while precise, it requires thousands of labeled images to achieve statistical significance, a requirement rarely met in specialized domains.

Methods: Kandinsky Calibration

The core innovation of this work is Kandinsky Calibration, which clusters "similar" pixels to find a middle ground. The process involves:

  1. Non-conformity Scoring: Calculating a "strangeness" score for every pixel.
  2. Spatial Clustering: Grouping pixels based on the intuition that error patterns often follow spatial structures, such as distance from the image center. The authors propose several clustering techniques:
  3. GenAnn (Genetic Annuli): Uses a genetic algorithm to find optimal concentric rings or ellipses.
  4. FCC (Fourier Concentric Clustering): Employs Fourier series to define smooth, nested boundaries.
  5. Aggregation: Pooling scores within these clusters to "denoise" the calibration, providing robust, localized confidence measures.
Figure 4: Visualization of computed spatial clusters using geometric priors (red dashed lines) to group pixels with similar error characteristics.

Experimental Results

The authors evaluated KCP on the MS-COCO dataset (using "person" segmentation) and the Medical Decathlon (pancreas CT scans). They compared performance across large (XL) and small (S) data regimes.

Low-Data Performance

In scenarios with limited data (e.g., MS-COCO-S with only 100 calibration images), Kandinsky methods significantly outperformed standard pixelwise and imagewise baselines. By leveraging spatial priors, the method effectively "denoises" the calibration signal that would otherwise be lost to noise in a purely pixelwise approach.

Figure 6: Pixelwise coverage error on the MS-COCO-S dataset. Kandinsky methods (GenAnn, FCC-Ann) show lower and more stable error rates compared to the pixelwise baseline in this low-data setting.

High-Data Convergence

When data is abundant (MS-COCO-XL), pixelwise calibration eventually achieves the highest precision. However, Kandinsky methods remain highly competitive, demonstrating robustness across varying data scales.

Conclusion

Kandinsky Conformal Prediction demonstrates that spatial priors can act as a "cheat code" for calibration. By grouping pixels into geometrically sensible clusters, the method achieves reliable uncertainty quantification in data-constrained environments. Future work will explore more flexible clustering techniques that can learn these structures directly from data or model architectures without requiring fixed geometric shapes.

Summary updated

BibTeX
@inproceedings{brunekreef2024kandinsky,
  author = {Joren Brunekreef and Eric Marcus and Ray Sheombarsing and Jan-Jakob Sonke and Jonas Teuwen},
  title = {{Kandinsky Conformal Prediction: Efficient Calibration of Image Segmentation Algorithms}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  doi = {10.1109/cvpr52733.2024.00396},
}

Loading related content...

Figure