Optimal Subgroup Discovery at Every Support Threshold

Lincen Yang, Qi Huang, Niki van Stein, Thomas Bäck, Matthijs van Leeuwen, Zhong LiNeurIPS 2026

TL;DR

Finding anomalous pockets of data—like a specific subset of coastal houses with wildly unusual pricing—usually forces algorithms to guess how you want to balance how weird a group is against how big it is. This paper proves that if you break your feature space into uniform "atomic" chunks first, finding the most anomalous subgroup of any user-specified minimum size collapses from an infinite search into a neat, finite puzzle. Better yet, a simple greedy recipe built on this math outperforms specialized neural networks and can even upgrade the outputs of existing tools.

What Problem Does This Paper Address?

Imagine hunting for a subgroup of hospital patients who respond unusually well to a treatment. In subgroup discovery, you want a subset of data whose target variable deviates sharply from the overall population (measured here via Kullback-Leibler, or KL, divergence).

Here is the catch: deviation and support (subgroup size) pull in opposite directions. A tiny group of three patients might look miraculous just by statistical noise, while a group covering 90% of your hospital cannot deviate much from the hospital average by definition.

Historically, algorithms handle this by mushing support and deviation into a single weighted score (like $\text{support} \times \text{KL}$). Not only does this lock you into one arbitrary trade-off, it also behaves poorly on finite data: multiplying a noisy KL estimate by a large support just amplifies the noise! As shown below, a pure-noise subgroup with 15% support can outrank a genuinely deviating subgroup with 8% support over 20% of the time at small sample sizes ($k=30$).

Figure 1: Ranking error under support-weighted KL estimation with finite samples. Two subgroups are drawn from a 5-mode Gaussian mixture background: Subgroup A (true, support = 0.08, KL ≈ 0.25) and Subgroup B (spurious, support = 0.15, KL = 0). Left: Conditional densities of the subgroups and background. Middle: Support-weighted KL estimates (support × KL) as a function of Subgroup A’s sample size k, with B’s size scaled by the support ratio; shaded regions show the 2.5th–97.5th percentile range over 300 draws. At small k, estimation noise inflates B’s score above A’s despite its zero true divergence. Right: Fraction of trials in which the spurious Subgroup B is ranked above the true Subgroup A. At k = 30 the error rate still exceeds 20%, showing that support-weighted KL ranking is unreliable at small sample sizes.

Instead of guessing weights, what if a practitioner could simply say, "Give me the most deviating subgroup that covers at least $\alpha$ patients," for any $\alpha$? Solving this directly across the whole size-versus-deviation Pareto front has remained an open problem.

Methods

The authors introduce AtomSD, a modular two-step framework directly guided by new mathematical theory. They model the feature space as a partition of atoms—regions where the conditional distribution of the target $P(Y \mid X)$ is internally uniform.

To turn this into an algorithm without reinventing the wheel, AtomSD pairs an off-the-shelf partitioner with a novel greedy selector:

  1. Learn the atoms (Standard): They fit a Conditional Density Estimation Tree (CDTree), which splits the feature space into disjoint leaf regions (conjunctions of rules), each holding a non-parametric histogram of the target $Y$ and regularized automatically via Minimum Description Length.
  2. Greedy Atomic Pruning, or GAP (Novel): Even with known atoms, picking the best combination under a size constraint is NP-hard (via a reduction from Subset-Sum). GAP alternates between two fast greedy moves until convergence: SearchFull, which toggles whole tree leaves in or out while respecting minimum support $\alpha$, and SearchPartial, which takes at most one leaf and greedily shrinks its bounding box one feature cut at a time.

You can also use AtomSD as a post-processor: feed it a subgroup found by any other method, restrict CDTree's leaves to those overlapping that subgroup, and run GAP to clean it up.

Datasets

The authors evaluate AtomSD on 19 standard benchmark datasets from the UCI Machine Learning Repository featuring continuous targets and diverse sample sizes and dimensionalities: Ailerons, Bikesharing, California, Concrete, Elevators, Energy, ForestFires, House, NavalProp, Puma32h, SkillCraft, SML2010, Supercond, Support2, Synchronous, Thermography, Toxicity, Treasury, and Wizmir. No new datasets are introduced.

Key Insights and Ideas

  • Optimal subgroups hate internal diversity: Without size constraints, any maximally deviating subgroup must have a uniform conditional target distribution throughout. If one half differed from the other, you could just keep the weirder half and get a higher KL score!
  • The "at most one slice" theorem: When you enforce a minimum support $\alpha$, you never need to take partial slices of two different atoms at once. Every optimal subgroup on the Pareto front is a union of whole atoms plus at most one fractional atom.
  • One partition rules all thresholds: Because the atoms depend only on the underlying data distribution—not on $\alpha$—you only learn the partition once, then trace out the entire Pareto front combinatorially.
  • Making unions of rules practical: Most classic methods restrict subgroups to single conjunctions of rules (e.g., age > 50 AND smoker = true), missing optimal subgroups that require unions of rules (Disjunctive Normal Form, or DNF). Selecting unions of learned tree leaves makes DNF subgroup discovery computationally tractable.

Key Results

Tested via 3-fold cross-validation across five support thresholds ($\alpha \in \{50, 100, 150, 200, 300\}$) against four baselines—SyFlow (a neural SGD method), RSD, SD-$\mu$, and SD-KL:

  • Dominance across thresholds: AtomSD wins 78 out of 95 (dataset, α) combinations, achieving an overall average rank of 1.25 (vs. 3.13 for runner-up SyFlow; $p < 10^{-5}$ at every support level).
  • Competitors collapse at higher supports: Because baselines optimize fixed internal trade-offs, they frequently fail to return any valid subgroup as $\alpha$ grows (especially at $\alpha \ge 150$), whereas AtomSD sustains high held-out KL divergence on large datasets like California, House, and Supercond.
  • Universal post-processing boost: Enforcing the "whole atoms + at most one slice" rule on subgroups returned by any of the four competitors reliably increases their held-out KL divergence across all support levels, proving that existing methods routinely leave performance on the table by awkwardly slicing across multiple atoms.

Limitations and Future Work

  • Model misspecification: The theoretical guarantees assume the real world cleanly partitions into homogeneous atoms. While experiments show the recipe works great when this holds only approximately, proving formal mathematical bounds under distributional misspecification remains open.
  • Single subgroup vs. diverse sets: AtomSD currently finds the single best subgroup for a given support threshold; the authors suggest extending the theory to subgroup set discovery, where you want a diverse collection of non-redundant subgroups.

Summary updated

Abstract

Subgroup discovery aims to identify regions of the feature space where a target variable deviates from its marginal distribution. A fundamental challenge in this problem is the trade-off between a subgroup's deviation and its support: small subgroups can be highly deviating but statistically meaningless, while large ones cannot deviate much by construction. Existing methods tackle this challenge by collapsing the two into a single scalar quality measure, implicitly committing to one particular trade-off and making it difficult to recover the most deviating subgroup under a user-specified support constraint. We instead provide the first theoretical and structural characterization of optimal subgroups with maximum Kullback-Leibler (KL) divergence under arbitrary support constraints. Under a partition-based generative model, where the feature space decomposes into regions of homogeneous conditional distributions of the target variable called atoms, we prove that every point on the deviation-support Pareto front is a union of whole atoms together with at most one fractional atom. This reduces an uncountable search to a finite combinatorial problem. Guided by this theory, we propose a simple two-step recipe: learn a homogeneous partition, then select atoms greedily. Across 19 benchmark datasets, it finds the most deviating subgroups at a range of support thresholds, and reliably improves subgroups returned by existing methods when applied as a post-processing step. These results empirically validate the sufficiency and necessity of our theoretical contributions.
BibTeX
@inproceedings{yang2026optimal,
  author = {Lincen Yang and Qi Huang and Niki van Stein and Thomas Bäck and Matthijs van Leeuwen and Zhong Li},
  title = {{Optimal Subgroup Discovery at Every Support Threshold}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=rheTYmImAU},
}
Figure