In-Context Reverse Classification Accuracy: Efficient Estimation of Segmentation Quality without Ground-Truth

Matias Cosarinsky, Ramiro Billot, Lucas Mansilla, Gabriel Gimenez, Nicolás Gaggion, Guanghui Fu, Enzo Ferrante · OpenReview

TL;DR

This paper introduces ConfIC-RCA, a novel framework for automatically assessing medical image segmentation quality without needing ground truth annotations. It combines efficient "in-context learning" for faster estimation with "conformal prediction" to provide statistically guaranteed confidence intervals, moving beyond simple point estimates.

What Problem Does This Paper Address?

In clinical settings, automatically segmenting medical images is crucial for tasks like treatment planning. However, evaluating the quality of these automatic segmentations is a major challenge because obtaining accurate "ground truth" (expert-annotated) data for every new image is often impractical or impossible. Existing methods like Reverse Classification Accuracy (RCA) try to estimate quality by training a "reverse" segmenter on the prediction and testing it on known data, but these are computationally expensive and don't quantify uncertainty. This paper aims to provide a faster, more reliable, and uncertainty-aware method for segmentation quality assessment.

Methods

The paper introduces two main innovations:

  • In-Context RCA: This leverages recent "in-context learning" (ICL) models, which can perform new segmentation tasks with minimal examples without retraining. By using ICL models as the "reverse segmenter" in the RCA framework, the authors significantly reduce computational costs. They also incorporate "retrieval augmentation" (RA) to intelligently select the most relevant reference images, further improving efficiency and accuracy.
  • Conformal RCA: This extends the RCA framework by using "split conformal prediction" to generate prediction intervals for segmentation quality scores. Unlike traditional RCA which gives a single score, Conformal RCA provides a range (interval) within which the true quality is guaranteed to lie with a user-specified probability. This is achieved by adapting Conformalized Quantile Regression (CQR) to directly estimate quantiles from the RCA scores, avoiding the need to train additional models.

Datasets

The authors evaluated their methods on 10 diverse medical imaging datasets, including:

  • 3D-IRCAdB (Liver)
  • HC18 (Fetal head)
  • ISIC 2018 (Skin lesion)
  • JSRT (Lungs and heart)
  • NuCLS (Nuclei of breast cancer cells)
  • PH2 (Skin lesion)
  • PSFHS (Pubic symphysis and fetal head)
  • SCD (Left ventricle)
  • WBC-CV (White blood cells)
  • WBC-JTSC (White blood cells)

These datasets cover various modalities (MRI, Ultrasound, Dermoscopy, X-Ray, CT, Histopathology) and anatomical structures.

Key Insights and Ideas

  • In-context learning is a game-changer for RCA: Using ICL models like UniverSeg and SAM 2 as reverse segmenters dramatically speeds up RCA, making it practical for real-time clinical use.
  • Retrieval augmentation is more than just efficiency: Selecting reference images based on similarity not only reduces the number of images needed but also improves the accuracy of the quality estimation.
  • Conformal prediction provides crucial uncertainty quantification: Moving from a single quality score to a prediction interval offers a statistically grounded way to understand how reliable a segmentation quality estimate is, which is vital for clinical decision-making.
  • Model-agnosticism is key: Both In-Context RCA and Conformal RCA can work with any segmentation model, making them broadly applicable without requiring specialized architectures.

Key Results

  • Computational Efficiency: In-Context RCA is significantly faster than traditional RCA, with SAM 2 and UniverSeg achieving the task in approximately 0.70 and 0.37 seconds per image, respectively, compared to about one minute for the classic atlas-based RCA. This is an 85-162x speedup.
  • Performance: In-Context RCA achieved comparable or even better correlation with true segmentation quality (measured by DSC) than traditional atlas-based methods, especially on challenging, irregular segmentation tasks.
  • Conformal Prediction Guarantees: Conformal RCA provides prediction intervals with statistical guarantees, ensuring the true quality score falls within the interval with a user-specified probability.
  • Broad Applicability: The methods were validated across 10 diverse medical imaging datasets, demonstrating robustness across different modalities and anatomies.

Limitations and Future Work

  • Exchangeability Assumption: The conformal prediction guarantees rely on the assumption that calibration and test data are exchangeable (i.e., come from the same distribution). If this assumption is violated (e.g., due to domain shifts), coverage guarantees might degrade. The authors suggest that developing methods robust to distribution shifts is an important future direction.
  • Real-world Deployment: Further validation on real deployment data and integration with human-in-the-loop systems are suggested to establish clinical reliability and practical utility.

Summary updated

BibTeX
@article{cosarinsky2026context,
  author = {Matias Cosarinsky and Ramiro Billot and Lucas Mansilla and Gabriel Gimenez and Nicolás Gaggion and Guanghui Fu and Enzo Ferrante},
  title = {{In-Context Reverse Classification Accuracy: Efficient Estimation of Segmentation Quality without Ground-Truth}},
  journal = {IEEE Trans. Medical Imaging},
  year = {2026},
  doi = {10.1109/tmi.2026.3679618},
}
Figure