Model Cascades with Provable Per-Class Quality

Ashwin Gerard Colaco, Sharad Mehrotra, Michael J. De Lucia, Kevin Hamlen, Murat Kantarcioglu, Latifur Khan, Ananthram Swami, Bhavani Thuraisingham, Unnat JainNeurIPS 2026

TL;DR

Model cascades save serious compute by letting cheap, fast models handle easy inputs and saving the expensive heavyweights for the hard ones—usually deciding when to stop based on a model’s confidence score. The catch? Cheap models are often confidently wrong on rare or tricky categories, silently tanking performance where it matters most. NOMAD fixes this by shifting the exit signal from how confident a model is to what class it actually predicts, delivering a 4× average speedup while mathematically guaranteeing that no single class gets left behind.

What Problem Does This Paper Address?

Imagine a hospital triage system: a fast resident handles routine cases and calls the chief diagnostician only when stumped. In machine learning, we call this a model cascade. Traditionally, the resident decides they are "stumped" if their softmax confidence drops below a certain threshold.

Here’s the trap: confidence is not competence. A lightweight vision model looking at a Black-throated Blue Warbler might be 91% confident it’s looking at a Cerulean Warbler, even though its actual accuracy (F1 score) on that bird species is a dismal 0.61. Standard cascades optimize average accuracy across all data. Because rare or fine-grained classes make up a tiny fraction of traffic, a model can completely butcher them without moving the overall average needle. If you are monitoring endangered wildlife, triaging rare medical conditions, or catching 1%-of-traffic network intrusions, you don't just need high average accuracy—you need a strict quality floor on every single class.

Confident errors by cheap models on vision and text inputs compared to NOMAD's escalation.

Methods

NOMAD treats classifiers strictly as black boxes—no retraining or peeking at internal weights required—using a clever two-phase approach calibrated against a designated "role model" (usually your biggest, most accurate model) and a user-chosen error tolerance $\epsilon$:

  1. Exit Classes (Validation Phase): Instead of trusting confidence scores, NOMAD evaluates each model on held-out validation data to find its exit set: the exact subset of classes where its per-class F1 stays within $(1 - \epsilon)$ of the role model. At test time, a cheap model is only allowed to stop the cascade if it predicts a label inside its own certified exit set.
  2. Chain Safety (Validation Phase): Certifying models in isolation isn't enough. Early models might accidentally misclassify and "capture" an input that belonged to a class they aren't good at, preventing it from ever reaching the specialist downstream. NOMAD computes a chain-safety check using confusion matrices to measure "passthrough" rates, mathematically guaranteeing (under mild assumptions) that the entire sequence of models preserves per-class quality end-to-end.
  3. Adaptive Greedy Selection (Inference Phase): Rather than marching blindly from cheapest to most expensive, NOMAD maintains a running probability distribution ("belief") over what the input's true class might be. At each step, it calls the model most likely to resolve the input per unit of cost (provided the chain stays safe). If the model predicts a non-exit class, NOMAD updates its belief using the model's softmax output, zeroes out the classes that model would have exited on, and picks the next best model dynamically.

Datasets

No new benchmarks were introduced; instead, the authors stress-tested NOMAD across 16 existing datasets spanning three modalities, focusing heavily on class-imbalanced and fine-grained regimes:

  • Tabular: Classical datasets including Intrusions-NSL (network traffic with attack categories rarer than 1%), Pendigits, UCI-HAR, Letter, and Satimage.
  • Vision: Fine-grained and large-scale image sets including Birds-CUB (200 look-alike bird species), ImageNet, and Food-101 (using CNNs up to ViT-Large).
  • Text: Datasets like Intents-Banking (77 overlapping banking queries), evaluated using architectures from DistilBERT up to LLM cascades featuring Qwen2.5 (7B, 32B, 72B) and LLaMA-3.1 (8B, 70B).

Key Insights and Ideas

  • Labels beat confidence: Prior theory proved that optimal cascade stopping depends on predicted labels, yet existing methods kept relying on confidence approximations. NOMAD operationalizes label-dependence directly: during exit decisions, it looks only at the predicted class label, completely ignoring the confidence score.
  • Cheap specialists outshine pricey generalists: You don't always need to escalate linearly by model size. On both Birds-CUB and Intents-Banking, the cheapest model was sometimes reliable on specific classes where pricier intermediate models failed. Dynamic routing lets NOMAD jump straight to the right cheap specialist.
  • Cascade ordering is secret Set Cover: The authors show that ordering models in a cascade reduces to Weighted Min-Sum Set Cover, a classic computer science problem. This yields the first formal approximation guarantee for greedy multiclass cascade ordering: an expected cost at most 4× that of the best fixed ordering (and within 1.07–1.17× in practice!).

Key Results

Evaluated against 11 baselines (including FrugalGPT, RouteLLM, AutoMix, and Cascade-Routing) at a 10% quality tolerance ($\epsilon = 0.10$):

  • Zero Violations: NOMAD achieved 0.0% per-class violations across all 16 datasets and all tested tolerances ($\epsilon \in \{0.05, \dots, 0.20\}$). Every single baseline violated the quality floor on at least one dataset, with standard confidence-based cascades failing on 29% to 72% of classes on featured benchmarks.
  • Real Speedups: While keeping every class safe, NOMAD delivered a 4.0× geometric-mean speedup over the role model across the 16 datasets—hitting 5.0× on Birds-CUB, 8.9× on ImageNet, and up to 41.8× on Pendigits.
  • Minimal Role-Model Fallback: Speedups aren't achieved by lazily dumping everything on the big model; the role model was called on just 4% of Birds-CUB inputs and at most 12% across featured datasets.

Limitations and Future Work

  • Uniformly Mediocre Models: When cheap models are equally mediocre across all classes rather than specialized (which happened on the Letter and Satimage datasets), no cheap model clears the quality bar. NOMAD safely falls back to ~1× speedup—protecting quality, though saving no compute. Designing specialized classifier portfolios could unlock savings here.
  • Distribution Shift: Like standard calibration methods, offline NOMAD assumes your validation set mirrors real-world traffic. The authors sketch an online Bayesian variant (NOMAD-BA) using Dirichlet posteriors that adapts without validation data (converging in ~1,800 inputs), though proving finite-horizon regret bounds remains open.
  • Smarter Policies: Moving beyond greedy selection to learned policies (like contextual bandits) could further tighten cost-efficiency in stochastic environments.

Summary updated

Abstract

Model cascades reduce inference cost by routing inputs through cheap models and escalating only when needed, from lightweight image classifiers to small language models. Existing exit rules (confidence thresholds, learned scorers, agreement signals) all optimize for aggregate quality, but none controls quality at the class level: a model that is systematically unreliable on a rare, fine-grained, or minority class silently violates the quality contract, regardless of its overall confidence. We introduce NOMAD, built on a simple insight: the predicted class label, not the confidence score alone, is the correct signal for cascade exit decisions. For each model, NOMAD identifies from held-out data the classes it handles reliably enough to serve as the final answer; a chain-safety certificate verifies that any sequence of models preserves per-class quality end-to-end, not just at each stage in isolation; and a greedy selector routes each input through the cheapest viable sequence, with a provable 4-approximation on cost. On 16 datasets spanning tabular, fine-grained vision, and text (including LLM cascades with 15–20× cost ratios between models), NOMAD achieves up to 40× speedup (geometric mean 4× over the role model) and is the only method among 11 baselines with zero per-class violations on every dataset. Code, configurations, fold indices, and an interactive results explorer (nomad-cascades.surge.sh) accompany this submission as supplementary material for reproducibility.
BibTeX
@inproceedings{colaco2026model,
  author = {Ashwin Gerard Colaco and Sharad Mehrotra and Michael J. De Lucia and Kevin Hamlen and Murat Kantarcioglu and Latifur Khan and Ananthram Swami and Bhavani Thuraisingham and Unnat Jain},
  title = {{Model Cascades with Provable Per-Class Quality}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=xObYyMlKf8},
}
Figure