Subgroup Performance Analysis in Hidden Stratifications

Alceu Bissoto, Trung-Dung Hoang, Tim Flühmann, Susu Sun, Christian F. Baumgartner, Lisa M. KocharXiv 2025 · DOI

TL;DR

Medical AI models often suffer from hidden performance disparities across patient groups that standard metadata (like age or sex) fails to capture. This paper introduces an unsupervised subgroup discovery framework that uncovers these "hidden stratifications" without requiring text labels or metadata at test time. By exposing massive, previously unnoticed performance drops in chest X-ray and skin lesion classifiers, this approach provides a vital new tool for auditing and monitoring trustworthy AI in clinical settings.

What Problem Does This Paper Address?

When deploying machine learning (ML) models in healthcare, ensuring equity and safety across diverse patient populations is critical. Traditionally, researchers perform subgroup analysis by checking model performance against known metadata, such as a patient's sex or ethnicity.

However, this approach has a glaring flaw: standard metadata rarely captures the actual reasons a model fails. A model might underperform due to subtle image artifacts, variations in medical equipment, or specific clinical sub-types that aren't documented in the patient's chart. These are known as hidden stratifications.

While algorithmic "subgroup discovery" methods exist to find these hidden clusters in computer vision, they are notoriously difficult to evaluate because real-world datasets lack ground-truth labels for these unknown groups. As a result, subgroup discovery has remained largely underexplored for post-deployment AI performance monitoring.

Fig. 1: (a) Traditional subgroup analysis detects disparate patient outcomes, but it is limited to annotated metadata. (b) Subgroup discovery reveals hidden strat- ifications but lacks performance validation. (c) We bridge this gap by applying subgroup discovery for performance analysis in both (d) controlled synthetic set- tings and (e) real-world scenarios with unknown subgroups.

Methods

The authors adapt DOMINO, an unsupervised subgroup discovery algorithm, and tailor it specifically for post-deployment performance monitoring.

The pipeline works as follows:

  1. Feature Extraction: Images are passed through an external, pretrained foundation model (like CLIP) to extract rich visual features, which are then compressed using Principal Component Analysis (PCA).
  2. Target Model Predictions: The target medical AI model generates softmax probability predictions for the same images.
  3. Unsupervised Slicing: A generalized Gaussian Mixture Model (GMM) clusters the data into distinct subgroups by balancing the visual features (which capture task-agnostic details like artifacts) and the target model's predictions.

Crucially, the authors modify the original DOMINO algorithm by removing classification labels from the clustering step. This allows the method to function entirely on unlabeled test sets after an AI system has been deployed.

To validate their approach, they introduce two new evaluation metrics: performance gap (the difference between the best and worst-performing subgroups) and average purity (how well the discovered subgroups align with actual underlying traits).

Datasets

The method was validated on two prominent medical imaging datasets:

  • CheXpertPlus: A large-scale chest X-ray dataset. The authors used it for both a controlled synthetic setting—where they intentionally injected visual shortcuts (like hospital tags and hyperintense lines)—and a real-world setting.
  • SLICE-3D: A recent skin lesion dataset containing detailed annotations of visual traits (such as lesion color and area) alongside patient demographics.

Key Insights and Ideas

  • Metadata is a Poor Shield: Relying solely on demographic metadata can create a false sense of security. Standard subgroup analysis might show a negligible performance gap between male and female patients, while completely missing a massive performance drop triggered by an imaging artifact.
  • Natural Images Suffice for Medical Auditing: Surprisingly, using a standard CLIP model trained on general internet images exposed hidden medical subgroups just as effectively as BiomedCLIP, a model trained specifically on biomedical text-image pairs.
  • The Purity vs. Gap Trade-off: The hyperparameter $\gamma$ controls how much weight is given to the target model's predictions versus visual features. Increasing $\gamma$ widens the exposed performance gap up to an "elbow point," after which the visual cohesiveness (purity) of the subgroups degrades.

Key Results

In the synthetic experiments, the unsupervised framework successfully identified the severe performance drops caused by hidden artifacts that traditional metadata-based analysis completely overlooked.

Fig. 3: Detailed subgroup accuracies for our synthetic scenario. Purer subgroups performances (darker dots) capture the true performance gap characterized by hidden subgroups, which are overlooked by traditional subgroup analysis with access to a single artifact (known subgroups), and by overall performance.

In real-world scenarios, the results were even more striking:

  • Chest X-rays (CheXpertPlus): While traditional metadata analysis showed a narrow, safe-looking performance range (around 73–75% accuracy), subgroup discovery exposed hidden patient slices where the model's accuracy plummeted to below 60%.
  • Skin Lesion Classification (SLICE-3D): The algorithm uncovered a highly specific, underperforming subgroup consisting of 721 negative and 17 positive cases where the target model achieved a disastrous 5% accuracy. Traditional metadata analysis gave no indication that such a failure mode existed.

Limitations and Future Work

While highly effective, the authors note that the robustness of subgroup discovery across varying hyperparameter configurations and random seeds warrants deeper investigation to simplify adoption for clinical practitioners.

Looking forward, the authors suggest that these discovered subgroups shouldn't just be used for auditing; they could actively help train better models. By replacing or augmenting sparse metadata labels with algorithmically discovered slices, engineers could optimize future medical AI systems directly for worst-group performance, mitigating biases before deployment.

Summary updated

BibTeX
@misc{bissoto2025subgroup,
  author = {Alceu Bissoto and Trung-Dung Hoang and Tim Flühmann and Susu Sun and Christian F. Baumgartner and Lisa M. Koch},
  title = {{Subgroup Performance Analysis in Hidden Stratifications}},
  year = {2025},
  eprint = {2503.10382},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.10382},
}
Figure