When in Doubt, Summon the Titans: Efficient Inference with Large Models
Not on the map. Why?
Abstract (arXiv)
Scaling neural networks to "large" sizes, with billions of parameters, has been shown to yield impressive results on many challenging problems. However, the inference cost incurred by such large models often prevents their application in most real-world settings. In this paper, we propose a two-stage framework based on distillation that realizes the modelling benefits of the large models, while largely preserving the computational benefits of inference with more lightweight models. In a nutshell, we use the large teacher models to guide the lightweight student models to only make correct predictions on a subset of "easy" examples; for the "hard" examples, we fall-back to the teacher. Such an approach allows us to efficiently employ large models in practical scenarios where easy examples are much more frequent than rare hard examples. Our proposed use of distillation to only handle easy instances allows for a more aggressive trade-off in the student size, thereby reducing the amortized cost of inference and achieving better accuracy than standard distillation. Empirically, we demonstrate the benefits of our approach on both image classification and natural language processing benchmarks.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 54 of its 77 references that are in the map. First posted on arXiv 19 Oct 2021.
Builds on
54 of 77 references.
References · 54
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2015Distilling the Knowledge in a Neural Networkcited by 10,324
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,442
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,475
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
- 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,329
38 more
- 2019Searching for MobileNetV3cited by 1,994
- 2016Identity Mappings in Deep Residual Networkscited by 1,965
- 2014FitNets: Hints for Thin Deep Netscited by 1,653
- 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,417
- 2019Self-training with Noisy Student improves ImageNet classificationcited by 1,311
- 2019Class-Balanced Loss Based on Effective Number of Samplescited by 1,245
- 2019Learning Imbalanced Datasets with Label-Distribution-Aware Margin Losscited by 989
- 2019When Does Label Smoothing Help?cited by 988
- 2017Revisiting Unreasonable Effectiveness of Data in Deep Learning Eracited by 919
- 2019Decoupling Representation and Classifier for Long-Tailed Recognitioncited by 809
- 2019Big Transfer (BiT): General Visual Representation Learningcited by 769
- 2017In-Datacenter Performance Analysis of a Tensor Processing Unitcited by 618
- 2020Long-tail learning via logit adjustmentcited by 618
- 2020Simple Copy-Paste is a Strong Data Augmentation Method for Instance Segmentationcited by 596
- 2019Improved Knowledge Distillation via Teacher Assistantcited by 573
- 2018Born Again Neural Networkscited by 546
- 2016Adaptive Computation Time for Recurrent Neural Networkscited by 506
- 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 482
- 2015Policy Distillationcited by 440
- 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 439
- 2019On the Efficacy of Knowledge Distillationcited by 381
- 2017SkipNet: Learning Dynamic Routing in Convolutional Networkscited by 332
- 2019Revealing the Dark Secrets of BERTcited by 301
- 2021Pruning and Quantization for Deep Neural Network Acceleration: A Surveycited by 263
- 2019Depth-Adaptive Transformercited by 236
- 2020FastBERT: a Self-distilling BERT with Adaptive Inference Timecited by 226
- 2016Clipper: A Low-Latency Online Prediction Serving Systemcited by 191
- 2020Compressing BERT: Studying the Effects of Weight Pruning on Transfer Learningcited by 185
- 2017Adaptive Neural Networks for Efficient Inferencecited by 163
- 2020The Right Tool for the Job: Matching Model and Instance Complexitiescited by 126
- 2020GOBO: Quantizing Attention-Based NLP Models for Low Latency and Energy Efficient Inferencecited by 106
- 2016Hierarchical Multiscale Recurrent Neural Networkscited by 104
- 2020Compressing Large-Scale Transformer-Based Models: A Case Study on BERTcited by 96
- 2017The Devil is in the Tails: Fine-grained Classification in the Wildcited by 89
- 2017IDK Cascades: Fast Deep Learning by Learning not to Overthinkcited by 48
- 2020Fixed Encoder Self-Attention Patterns in Transformer-Based Machine Translationcited by 43
- 2019On the Calibration of Multiclass Classification with Rejectioncited by 41
- 2020Controlling Computation versus Quality for Neural Sequence Modelscited by 27
50 most cited of 54 All 54 (JSON)
Built on by
Citing papers per year: 2022: 1; 2023: 2; 2024: 3; 2025: 2.
8 papers.
- 2023DistillSpec: Improving Speculative Decoding via Knowledge Distillationcited by 165
- 2024Language Model Cascades: Token-level uncertainty and beyondcited by 121
- 2025Universal Model Routing for Efficient LLM Inferencecited by 86
- 2023When Does Confidence-Based Cascade Deferral Suffice?cited by 60
- 2024Online Cascade Learning for Efficient Inference over Streamscited by 20
- 2024Cascade-Aware Training of Language Modelscited by 15
- 2025Gatekeeper: Improving Model Cascades Through Confidence Tuningcited by 10
- 2022Predicting on the Edge: Identifying Where a Larger Model Does Bettercited by 6
- 2025Gatekeeper: Improving Model Cascades Through Confidence Tuning26 Feb 2025
- 2025Universal Model Routing for Efficient LLM Inference12 Feb 2025
- 2024Cascade-Aware Training of Language Models29 May 2024
- 2024Language Model Cascades: Token-level uncertainty and beyond15 Apr 2024
- 2024Online Cascade Learning for Efficient Inference over Streams7 Feb 2024
- 2023DistillSpec: Improving Speculative Decoding via Knowledge Distillation12 Oct 2023
- 2023When Does Confidence-Based Cascade Deferral Suffice?6 Jul 2023
- 2022Predicting on the Edge: Identifying Where a Larger Model Does Better15 Feb 2022