TL;DR
When a classifier is uncertain about an image of a spider, standard uncertainty quantification might spit out a messy list of six different species. Hierarchical Conformal Classification (HCC) teaches models to use domain taxonomies to simply say "Spider" instead—delivering compact, human-friendly predictions without sacrificing rigorous statistical guarantees.
What Problem Does This Paper Address?
Imagine you’ve built an image classifier, and you want to deploy it in a high-stakes setting. Standard Conformal Prediction (CP) is a fantastic tool for this: given an input and an error tolerance $\alpha$ (say, 5%), it wraps any black-box model to output a set of labels guaranteed to contain the true answer at least 95% of the time.
The catch? Standard CP treats the world as completely flat. It has no idea that a Black widow, a Barn spider, and a Wolf spider are all siblings in the tree of life. When the base model gets uncertain, standard CP dumps a long, scattered list of fine-grained guesses onto the user.
Real-world knowledge—from medical diagnoses to ImageNet—is naturally organized into hierarchies, typically modeled as Directed Acyclic Graphs (DAGs). Existing attempts to blend CP with hierarchies either restrict themselves to simple trees (ignoring DAGs where a node can have multiple parents), predict only a single broad node, or rely on slow integer programming that struggles to scale. The authors tackle an open question: how can we generate compact prediction sets mixing broad concepts and specific labels over general DAGs, efficiently and with exact leaf-level coverage guarantees?
Methods
The authors frame HCC as a constrained optimization problem. They want to find a subset of hierarchy nodes that guarantees the true fine-grained ("leaf") label lies beneath at least one predicted node with probability $1 - \alpha$. Among valid sets, they minimize a cost trading off compactness (number of nodes returned) against specificity (total fine-grained leaves covered beneath those nodes, controlled by a hyperparameter $\beta$).
Searching every possible subset of nodes in a taxonomy is combinatorially explosive ($2^{|\mathcal{V}|}$). HCC makes this tractable by combining calibration with pruned search:
- Search-Space Pruning via NOL-Covers: Instead of checking all node combinations, HCC restricts candidates to Non-Overlapping Leaf covers (NOL-covers)—subsets of nodes that collectively cover every leaf in the taxonomy without containing any ancestor–descendant pairs.
- Upward Propagation & Novel DAG Scoring: Standard classifiers only output probabilities for leaf classes. HCC sums leaf probabilities upward to score internal nodes. Because a node in a DAG can have multiple parents, a single true leaf might make multiple nodes in a NOL-cover "correct" simultaneously. To handle this multi-label twist during calibration, the authors introduce a novel nonconformity score based on the most confident true ancestor in the cover.
- Test-Time Selection & Correction: Each NOL-cover gets its own calibrated conformal predictor. At test time, HCC evaluates multiple predictors in parallel and picks the lowest-cost output. To prevent "cherry-picking" from breaking the statistical guarantee, it applies a single-step Westfall-Young MaxT multiple-testing correction, alongside dynamic pruning that skips candidates above the lowest common ancestor of the standard leaf-level CP set.
Datasets
To test HCC across text, vision, and audio, the authors curate and release three hierarchical classification benchmarks (split 80/20 for calibration/testing):
- DBpedia14 (
dbp): 70,000 Wikipedia abstracts across 14 leaf labels (25 total nodes, depth 6), paired with a BERT classifier. - ImageNet1K (
img): 50,000 images across 1,000 leaf categories organized under WordNet (1,860 total nodes, depth 17), paired with ResNet-152. - GTZAN Genre Collection (
gtz): 1,000 music clips across 10 audio genres (15 total nodes, depth 3), paired with XGBoost.
Key Insights and Ideas
- Structure gives you massive pruning for free: The authors prove mathematically that any optimal solution to their objective must come from a NOL-cover. You never lose optimality by throwing away incomplete or redundant ancestor-descendant subsets upfront.
- Multiple testing correction without a leaf-level penalty: Usually, testing many predictors in parallel forces you to use stricter thresholds, inflating prediction sets. However, because an internal node's summed probability is always at least as large as its leaves' probabilities, the authors' MaxT threshold mathematically collapses to the exact same threshold as standard leaf-level CP. You get safe test-time selection across the hierarchy for free!
- Humans prefer compact abstractions: Replacing a laundry list of specific guesses with one or two coherent parent categories aligns much closer with how humans naturally express uncertainty.
Key Results
Across all three benchmarks, HCC meets target coverage guarantees while beating baselines—Standard CP, a Lowest Common Ancestor (LCA) heuristic, and Conformal Structured Prediction (CSP)—on overall optimization cost:
- Dramatically smaller prediction sets: On ImageNet (
1 - α = 0.98), Standard CP outputs an average of 11.04 labels per image, and CSP outputs 5.03. HCC shrinks this down to 3.73 nodes (at the cost of covering ~85.9 underlying leaves, compared to ~269.8 for CSP and ~344.7 for LCA) while achieving 98.82% empirical coverage. Similar reductions hold on DBpedia (shrinking sets from 2.67 to 1.23) and GTZAN (from 3.25 to 1.32). - Fast setup: Initial search spaces are built in 0.28s (
img), 0.02s (gtz), and 0.54s (dbp), narrowing down to just 10–15 evaluated candidates at inference time after dynamic pruning. - Human preference: In a preliminary user study on 500 random samples each from DBpedia and ImageNet, annotators preferred HCC over Standard CP in 57% (
dbp) and 71% (img) of cases.
Limitations and Future Work
- Scalability on deep graphs: Even with NOL-cover pruning, the worst-case number of candidates on a balanced binary tree of depth $d$ grows doubly exponentially as $\mathcal{O}(1.5028^{2^d})$. For deep hierarchies like ImageNet (depth 17), enumerating all NOL-covers is intractable; the authors had to use a "per-level fallback" (one cover per depth level), which preserves coverage guarantees but sacrifices guaranteed optimality.
- User study bias: The preliminary user study was conducted with the paper's authors serving as annotators, and blinding was impractical because HCC sets are visibly smaller. Larger, independent user studies in domains like medical diagnosis are needed.
- Tuning $\beta$: The compactness-specificity trade-off $\beta$ was set heuristically using median leaf counts. Future work could learn or adapt $\beta$ interactively per user or domain, and explore multi-step statistical corrections to further tighten performance.
Summary updated