Contrastive Subgroups: Discovering Where Two Populations Differ, and Why

Sascha Xu, Jilles VreekenOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

Researchers have introduced SUBCON, a gradient-based method to discover "contrastive subgroups"—local regions of a population where two groups (like treatment vs. control) exhibit significantly different outcomes despite having similar characteristics. By optimizing for exceptionality, generality, and covariate independence, SUBCON identifies actionable, causally-relevant patterns that traditional subgroup discovery and fairness audits often miss.

What Problem Does This Paper Address?

In fields like clinical trials or algorithmic fairness, we often ask: Does this group fare differently than that one?

Standard tools have blind spots. Subgroup Discovery usually looks for subsets that differ from the entire population, but it might miss a subgroup where the population average is normal, yet the gap between two specific groups (e.g., men vs. women) is massive. Conversely, Fairness Analysis often focuses on global disparities, failing to pinpoint exactly where in the feature space those disparities are most acute.

The challenge is finding "contrastive" subgroups: areas where the local distribution of a target variable (like survival rate) varies significantly between two populations, and ensuring that this difference is actually driven by group membership rather than just "spurious" shifts in other features within that subgroup.

Methods

The authors formalize the task into a single optimization objective with three key "desiderata":

  1. Exceptionality ($E$): Maximizing the divergence (e.g., Jensen-Shannon) between the target distributions of the two groups within the subgroup.
  2. Generality ($G$): Ensuring the subgroup is large enough to be statistically meaningful and actionable.
  3. Covariate Independence ($C$): This is the "secret sauce." It penalizes subgroups where the features ($X$) still influence the outcome ($Y$) locally. Minimizing this ensures that the observed difference is likely due to the group attribute itself, making the findings more "causally actionable."

To solve this, they introduce SUBCON, which uses a differentiable rule learner. Instead of a discrete search (which is computationally expensive), SUBCON uses "soft" thresholds (sigmoids) and weighted harmonic means to represent logical rules. This allows the model to use gradient descent to learn the optimal boundaries for a subgroup (e.g., Age > 45 AND Education < 12).

Datasets

The method was evaluated on a mix of synthetic and real-world data:

  • Simulated Data: Three distinct causal scenarios: Observational trials (confounded), Randomized trials, and Demographic groups (where group membership affects features).
  • IHDP (Infant Health and Development Program): A standard benchmark for causal inference used to measure the precision of treatment effect estimation.
  • COVID-19 ICU Dataset: Real-world data from NYC hospitals used to find mortality disparities between genders.
  • WHO Life Expectancy: Global data used to differentiate health outcomes between developed and developing nations.

Key Insights and Ideas

  • The "Why" Matters: By minimizing covariate dependence, SUBCON moves beyond simple pattern matching. The authors prove that under certain conditions, a subgroup with zero covariate dependence captures the interventional distribution (the "true" causal effect).
  • Contrastive vs. Regular: A subgroup might look "average" to a standard algorithm because its combined mean matches the population. SUBCON ignores the population average and focuses entirely on the internal gap between the two groups.
  • Differentiable Logic: By turning "if-then" rules into a continuous optimization problem, the method scales much better to high-dimensional data than traditional combinatorial search methods.

Key Results

  • Synthetic Dominance: SUBCON outperformed specialized baselines like CausalTree and HonestTree across all causal settings. While CausalTree excels in randomized trials, it struggles with observational data; SUBCON remained robust in both.
  • Precision in Causal Effects: On the IHDP benchmark, SUBCON achieved a significantly lower error (PEHE of 1.73) in estimating treatment effects within its discovered subgroups compared to HonestTree (2.33).
  • Real-World Discovery: On the COVID-19 dataset, SUBCON identified a specific subgroup—Black patients with diabetes and no prior cerebrovascular disease—where men had a much higher mortality rate than women. Standard methods missed this because the overall mortality for that subgroup wasn't "exceptional" compared to the whole hospital population.

Limitations and Future Work

  • Causal Assumptions: Like most causal tools, SUBCON assumes "no unobserved confounding"—it can only account for the features present in the dataset.
  • Single Subgroup Focus: Currently, the algorithm is designed to find the most contrastive subgroup. To find multiple, the authors currently use an iterative "find and remove" approach, but they suggest more principled multi-subgroup discovery as a future direction.
  • Density Estimation: The method's accuracy depends on the quality of the underlying density estimators (like Kernel Density Estimation), which can be tricky in very high dimensions.

Summary updated

Abstract

Given data from two distinct populations, a contrastive subgroup describes a subset of individuals from both groups who, despite sharing similar characteristics, exhibit significant differences in a target outcome. For example, we want to identify subsets of patients who respond differently to a treatment compared to a control group, or uncover disparities between protected and unprotected groups in fairness analysis. In this work, we formalize the notion of contrastive subgroups and propose a general optimization objective to discover them. To make these discovered subgroups actionable, we provide conditions under which the discovered subgroups allow to make causal inferences. We introduce Subcon, a gradient-based method to discover contrastive subgroups and evaluate it on both synthetic and real-world datasets. The results confirm that our method effectively identifies subgroups that expose significant, informative differences in real-world datasets.
BibTeX
@misc{xu2026contrastive,
  author = {Sascha Xu and Jilles Vreeken},
  title = {{Contrastive Subgroups: Discovering Where Two Populations Differ, and Why}},
  year = {2026},
  url = {https://openreview.net/forum?id=P4DbprVOgK},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure