mlsanityData to 7 Oct 2026

Learning to Weight Samples for Dynamic Early-exiting Networks

arXiv 2209.08310 ↗First posted 17 Sep 2022cs.CVcited by 44

On the map: Efficient LLM inference and serving → Early exit and edge inference

Abstract (arXiv)

Early exiting is an effective paradigm for improving the inference efficiency of deep networks. By constructing classifiers with varying resource demands (the exits), such networks allow easy samples to be output at early exits, removing the need for executing deeper layers. While existing works mainly focus on the architectural design of multi-exit networks, the training strategies for such models are largely left unexplored. The current state-of-the-art models treat all samples the same during training. However, the early-exiting behavior during testing has been ignored, leading to a gap between training and testing. In this paper, we propose to bridge this gap by sample weighting. Intuitively, easy samples, which generally exit early in the network during inference, should contribute more to training early classifiers. The training of hard samples (mostly exit from deeper layers), however, should be emphasized by the late classifiers. Our work proposes to adopt a weight prediction network to weight the loss of different training samples at each exit. This weight prediction network and the backbone model are jointly optimized under a meta-learning framework with a novel optimization objective. By bringing the adaptive behavior during inference into the training phase, we show that the proposed weighting mechanism consistently improves the trade-off between classification accuracy and inference efficiency. Code is available at https://github.com/LeapLabTHU/L2W-DEN.

Key facts. Cited by 44 papers in the map (data through 7 Oct 2026). Placed in Early exit and edge inference, one of 12 directions in Efficient LLM inference and serving. Builds on 31 of its 52 references that are in the map. First posted on arXiv 17 Sep 2022.

Builds on

31 of 52 references.

References · 31

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
  5. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  6. 2016Densely Connected Convolutional Networkscited by 6,691
  7. 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,861
  8. 2014Going Deeper with Convolutionscited by 4,231
  9. 2017MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applicationscited by 3,827
  10. 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,291
  11. 2019Class-Balanced Loss Based on Effective Number of Samplescited by 1,239
  12. 2017ShuffleNet: An Extremely Efficient Convolutional Neural Network for Mobile Devicescited by 1,194
19 more
  1. 2016Pruning Filters for Efficient ConvNetscited by 1,129
  2. 2020Meta-Learning in Neural Networks: A Surveycited by 944
  3. 2017Learning Efficient Convolutional Networks through Network Slimmingcited by 673
  4. 2018Learning to Reweight Examples for Robust Deep Learningcited by 670
  5. 2017BranchyNet: Fast Inference via Early Exiting from Deep Neural Networkscited by 591
  6. 2021Dynamic Neural Networks: A Surveycited by 405
  7. 2018Filter Pruning via Geometric Median for Deep Convolutional Neural Networks Accelerationcited by 365
  8. 2017SkipNet: Learning Dynamic Routing in Convolutional Networkscited by 328
  9. 2017Data-Driven Sparse Structure Selection for Deep Neural Networkscited by 181
  10. 2017Adaptive Neural Networks for Efficient Inferencecited by 161
  11. 2020Resolution Adaptive Networks for Efficient Inferencecited by 146
  12. 2019Dynamic Convolutions: Exploiting Spatial Sparsity for Faster Inferencecited by 91
  13. 2019Network Pruning via Transformable Architecture Searchcited by 80
  14. 2021Learning Fast Sample Re-weighting Without Reward Datacited by 69
  15. 2015Conditional Deep Learning for Energy-Efficient and Enhanced Pattern Recognitioncited by 67
  16. 2019Improved Techniques for Training Adaptive Deep Networkscited by 66
  17. 2019Batch-Shaping for Learning Conditional Channel Gated Networkscited by 42
  18. 2021CondenseNet V2: Sparse Feature Reactivation for Deep Networkscited by 34
  19. 2021Well-classified Examples are Underestimated in Classification with Deep Neural Networkscited by 8

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 3; 2023: 15; 2024: 18; 2025: 7; 2026: 1.

44 papers.

Sort:

By area:

  1. 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 170
  2. 2023GSVA: Generalized Segmentation via Multimodal Large Language Modelscited by 153
  3. 2023Weakly-Supervised Concealed Object Segmentation with SAM-based Pseudo Labeling and Multi-scale Feature Groupingcited by 92
  4. 2023Agent Attention: On the Integration of Softmax and Linear Attentioncited by 90
  5. 2024Dynamic Diffusion Transformercited by 60
  6. 2023Adaptive Rotated Convolution for Rotated Object Detectioncited by 51
  7. 2023Rank-DETR for High Quality Object Detectioncited by 49
  8. 2022EfficientTrain: Exploring Generalized Curriculum Learning for Training Visual Backbonescited by 42
  9. 2025ART: Anonymous Region Transformer for Variable Multi-Layer Transparent Image Generationcited by 37
  10. 2024A Stitch in Time Saves Nine: Small VLM is a Precise Guidance for Accelerating Large VLMscited by 35
  11. 2023Dynamic Perceiver for Efficient Visual Recognitioncited by 33
  12. 2024Fast yet Safe: Early-Exiting with Risk Controlcited by 27
32 more
  1. 2023Latency-aware Unified Dynamic Networks for Efficient Image Recognitioncited by 26
  2. 2023Train Once, Get a Family: State-Adaptive Balances for Offline-to-Online Reinforcement Learningcited by 26
  3. 2024Real-world Image Dehazing with Coherence-based Pseudo Labeling and Cooperative Unfolding Networkcited by 26
  4. 2022Latency-aware Spatial-wise Dynamic Networkscited by 25
  5. 2024Dynamic Tuning Towards Parameter and Inference Efficiency for ViT Adaptationcited by 25
  6. 2024Efficient Diffusion Transformer with Step-wise Dynamic Attention Mediatorscited by 24
  7. 2023Understanding, Predicting and Better Resolving Q-Value Divergence in Offline-RLcited by 20
  8. 2024DyFADet: Dynamic Feature Aggregation for Temporal Action Detectioncited by 18
  9. 2023Fine-grained Recognition with Learnable Semantic Data Augmentationcited by 17
  10. 2023Towards Anytime Classification in Early-Exit Architectures by Enforcing Conditional Monotonicitycited by 16
  11. 2024ROPO: Robust Preference Optimization for Large Language Modelscited by 16
  12. 2023Jointly-Learned Exit and Inference for a Dynamic Neural Network : JEI-DNNcited by 15
  13. 2023Computation-efficient Deep Learning for Computer Vision: A Surveycited by 14
  14. 2022Deep Incubation: Training Large Models by Divide-and-Conqueringcited by 13
  15. 2024GRA: Detecting Oriented Objects through Group-wise Rotating and Attentioncited by 13
  16. 2024Conditional computation in neural networks: principles and research trendscited by 10
  17. 2023Early-Exit with Class Exclusion for Efficient Inference of Neural Networkscited by 8
  18. 2024ENAT: Rethinking Spatial-temporal Interactions in Token-based Image Synthesiscited by 8
  19. 2024Towards Unbiased and Robust Spatio-Temporal Scene Graph Generation and Anticipationcited by 6
  20. 2025A Survey on Dynamic Neural Networks: from Computer Vision to Multi-modal Sensor Fusioncited by 5
  21. 2025Fast and Accurate Gigapixel Pathological Image Classification with Hierarchical Distillation Multi-Instance Learningcited by 5
  22. 2025EA-ViT: Efficient Adaptation for Elastic Vision Transformercited by 5
  23. 2024Tiny Models are the Computational Saver for Large Modelscited by 4
  24. 2025Linear Differential Vision Transformer: Learning Visual Contrasts via Pairwise Differentialscited by 4
  25. 20242023 Low-Power Computer Vision Challenge (LPCVC) Summarycited by 2
  26. 2024Deep Feature Surgery: Towards Accurate and Efficient Multi-Exit Networkscited by 2
  27. 2024Multiple-Exit Tuning: Towards Inference-Efficient Adaptation for Vision Transformercited by 2
  28. 2024Predicting Probabilities of Error to Combine Quantization and Early Exiting: QuEEcited by 1
  29. 2025SchoenbAt: Rethinking Attention with Polynomial basiscited by 1
  30. 2024Conditional Information Gain Trelliscited by 0
  31. 2025ORXE: Orchestrating Experts for Dynamically Configurable Efficiencycited by 0
  32. 2026Information-Theoretic Multi-Model Fusion for Target-Oriented Adaptive Sampling in Materials Designcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2024How to Train Your Multi-Exit Model? Analyzing the Impact of Training Strategies
  2. 2026Balancing Stability and Plasticity in Sequentially Trained Early-Exiting Neural Networks
  3. 2021Adaptive Inference through Early-Exit Networks: Design, Challenges and Directions
  4. 2025A Survey of Early Exit Deep Neural Networks in NLP
  5. 2023Adaptive Deep Neural Network Inference Optimization with EENet
  6. 2022Boosted Dynamic Neural Networks
  7. 2025Know What You Don't Know: Selective Prediction for Early Exit DNNs
  8. 2023Finding the SWEET Spot: Analysis and Improvement of Adaptive Inference in Low Resource Settings