Performance Control in Early Exiting to Deploy Large Models at the Same Cost of Smaller Ones

Mehrnaz Mofakhami, Reza Bayat, Ioannis Mitliagkas, Joao Monteiro, Valentina Zantedeschi · Submission to ICLR 2025 · Withdrawn

TL;DR

Instead of using early exiting solely to speed up small models at the cost of accuracy, this paper shows that deploying large models equipped with early exiting outperforms smaller models under the same computational budget. To solve the brittleness of standard confidence-based exit rules, the authors introduce Performance Control Early Exiting (PCEE), a lightweight post-hoc method that maps prediction confidence to empirical accuracy, giving practitioners direct, predictable control over model performance.

What Problem Does This Paper Address?

Early Exiting (EE) inserts intermediate classifiers throughout a deep network, allowing simpler inputs to exit at shallow layers while reserving deeper layers for challenging inputs. Traditionally, models exit whenever their softmax confidence exceeds an arbitrary threshold $\delta$.

However, two major challenges limit EE in practice:

  1. Pervasive Overconfidence & Miscalibration: Deep neural networks are notoriously overconfident, and calibration often deteriorates further in deeper layers. A high confidence score (e.g., 0.85) rarely means 85% accuracy, triggering premature exits on misclassified samples.
  2. Complex Tuning: Raw confidence values do not directly map to actual accuracy metrics. Consequently, existing methods often resort to an exhaustive per-layer search across millions of threshold combinations to control performance.

Methods

The authors introduce Performance Control Early Exiting (PCEE) and a smoothed variant, PCEE-WS:

  • Reliability-Diagram Mapping (PCEE): Instead of comparing a sample's raw confidence $c_i(x)$ at layer $i$ directly against a cutoff threshold, PCEE maps $c_i(x)$ to a precomputed validation reliability diagram $D_i$. If the historical empirical accuracy of samples in that confidence bin meets or exceeds a user-chosen target accuracy $\delta$, the model exits.
  • Single Global Threshold: Because the threshold is defined directly in terms of target accuracy (e.g., "guarantee $\ge 70\%$ accuracy") rather than an arbitrary per-layer confidence value, a single threshold $\delta$ can be shared across all exit heads without expensive multi-dimensional grid searches.
  • Neighborhood Smoothing (PCEE-WS): Sparsely populated bins in validation reliability diagrams can introduce noise. PCEE-WS smooths binary correctness labels across the $H$ nearest neighbors ($H=150$) in confidence space before binning (50 bins), stabilizing the accuracy estimate.
  • Zero Retraining Required: PCEE is strictly post-hoc and works with any model returning a confidence score, though it can optionally combine with Temperature Scaling (TS).

Datasets

The authors evaluated their methods across standard vision benchmarks:

  • CIFAR-10 (10% held-out validation split)
  • CIFAR-100 (10% held-out validation split)
  • ImageNet-1K (4% held-out validation split)

Evaluations were conducted on MSDNet (Multi-Scale Dense Networks, evaluating Small, Medium, and Large variants) and Vision Transformers (ViT) (12-layer backbone vs. 6-layer small variant). No new benchmarks were introduced.

Key Insights and Ideas

  • Scale as an Inference Efficiency Lever: The conventional view treats large models as inherently compute-prohibitive. This paper shows that deeper networks learn better representations earlier: an 8-layer MSDNet can accurately classify "easy" samples by layer 2, saving enough compute on average to beat a full 4-layer model at equal or lower total FLOPs.
  • Accuracy Thresholding Beats Confidence Thresholding: Shifting from “How confident is the model?” to “How accurate are samples with this confidence historically?” provides true monotonic performance control. When the target threshold rises, actual test accuracy consistently meets or exceeds that target.
  • Overcoming Destructive Overthinking: At certain thresholds, PCEE-WS actually outperforms an "Oracle" exit policy (which knows the final layer's prediction). This happens because intermediate layers can correctly classify examples that later layers subsequently confuse or overfit ("destructive overthinking").

Key Results

  • Large + EE vs. Full Small Models:
  • CIFAR-10 (MSDNet): Large model with EE achieved 93.88% accuracy vs. 93.04% for the full small model at equivalent/lower FLOPs.
  • CIFAR-100 (MSDNet): Large model with EE achieved 73.06% accuracy vs. 71.24% for the full small model.
  • ImageNet-1K (MSDNet): Large model with EE reached 72.13% accuracy vs. 70.70% for the full small model.
  • ViT on CIFAR-10 & CIFAR-100: Large ViT with EE scored 90.16% (vs. 88.15% Small) on CIFAR-10 and 63.38% (vs. 62.94% Small) on CIFAR-100 under equal or lower compute.
  • Guaranteed Performance Control: On CIFAR-100 with MSDNet-Large at a target accuracy threshold $\delta = 0.73$, standard confidence thresholding fell short at 72.72% (violating the target), whereas PCEE reached 73.85% and PCEE-WS achieved 73.97%.

Limitations and Future Work

  • Distribution Shift & Out-of-Distribution (OOD) Data: PCEE relies on validation statistics matching test statistics. Like temperature scaling, its calibration guarantees weaken under significant dataset or domain shift. The authors propose continuously updating reliability diagrams with live production data or adding an explicit "abstain/I don't know" class to handle distribution drift.
  • Underconfident Models: While most deep nets are overconfident, the authors note that pre-trained ViT models on ImageNet can exhibit underconfidence at early layers. While PCEE still safely respects target accuracy bounds in this regime, confidence thresholding sometimes reached higher absolute accuracy (albeit at the expense of using more layers/compute).

Summary updated

BibTeX
@inproceedings{mofakhami2024performance,
  author = {Mehrnaz Mofakhami and Reza Bayat and Ioannis Mitliagkas and Joao Monteiro and Valentina Zantedeschi},
  title = {{Performance Control in Early Exiting to Deploy Large Models at the Same Cost of Smaller Ones}},
  booktitle = {ES-FoMo-II @ ICML},
  year = {2024},
  url = {https://openreview.net/forum?id=7zf1584SUG},
}
Figure