Learning to Weight Samples for Dynamic Early-exiting Networks
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
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2016Densely Connected Convolutional Networkscited by 6,691
- 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,861
- 2014Going Deeper with Convolutionscited by 4,231
- 2017MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applicationscited by 3,827
- 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,291
- 2019Class-Balanced Loss Based on Effective Number of Samplescited by 1,239
- 2017ShuffleNet: An Extremely Efficient Convolutional Neural Network for Mobile Devicescited by 1,194
19 more
- 2016Pruning Filters for Efficient ConvNetscited by 1,129
- 2020Meta-Learning in Neural Networks: A Surveycited by 944
- 2017Learning Efficient Convolutional Networks through Network Slimmingcited by 673
- 2018Learning to Reweight Examples for Robust Deep Learningcited by 670
- 2017BranchyNet: Fast Inference via Early Exiting from Deep Neural Networkscited by 591
- 2021Dynamic Neural Networks: A Surveycited by 405
- 2018Filter Pruning via Geometric Median for Deep Convolutional Neural Networks Accelerationcited by 365
- 2017SkipNet: Learning Dynamic Routing in Convolutional Networkscited by 328
- 2017Data-Driven Sparse Structure Selection for Deep Neural Networkscited by 181
- 2017Adaptive Neural Networks for Efficient Inferencecited by 161
- 2020Resolution Adaptive Networks for Efficient Inferencecited by 146
- 2019Dynamic Convolutions: Exploiting Spatial Sparsity for Faster Inferencecited by 91
- 2019Network Pruning via Transformable Architecture Searchcited by 80
- 2021Learning Fast Sample Re-weighting Without Reward Datacited by 69
- 2015Conditional Deep Learning for Energy-Efficient and Enhanced Pattern Recognitioncited by 67
- 2019Improved Techniques for Training Adaptive Deep Networkscited by 66
- 2019Batch-Shaping for Learning Conditional Channel Gated Networkscited by 42
- 2021CondenseNet V2: Sparse Feature Reactivation for Deep Networkscited by 34
- 2021Well-classified Examples are Underestimated in Classification with Deep Neural Networkscited by 8
Built on by
Citing papers per year: 2022: 3; 2023: 15; 2024: 18; 2025: 7; 2026: 1.
44 papers.
Sort:
By area:
- 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 170
- 2023GSVA: Generalized Segmentation via Multimodal Large Language Modelscited by 153
- 2023Weakly-Supervised Concealed Object Segmentation with SAM-based Pseudo Labeling and Multi-scale Feature Groupingcited by 92
- 2023Agent Attention: On the Integration of Softmax and Linear Attentioncited by 90
- 2024Dynamic Diffusion Transformercited by 60
- 2023Adaptive Rotated Convolution for Rotated Object Detectioncited by 51
- 2023Rank-DETR for High Quality Object Detectioncited by 49
- 2022EfficientTrain: Exploring Generalized Curriculum Learning for Training Visual Backbonescited by 42
- 2025ART: Anonymous Region Transformer for Variable Multi-Layer Transparent Image Generationcited by 37
- 2024A Stitch in Time Saves Nine: Small VLM is a Precise Guidance for Accelerating Large VLMscited by 35
- 2023Dynamic Perceiver for Efficient Visual Recognitioncited by 33
- 2024Fast yet Safe: Early-Exiting with Risk Controlcited by 27
32 more
- 2023Latency-aware Unified Dynamic Networks for Efficient Image Recognitioncited by 26
- 2023Train Once, Get a Family: State-Adaptive Balances for Offline-to-Online Reinforcement Learningcited by 26
- 2024Real-world Image Dehazing with Coherence-based Pseudo Labeling and Cooperative Unfolding Networkcited by 26
- 2022Latency-aware Spatial-wise Dynamic Networkscited by 25
- 2024Dynamic Tuning Towards Parameter and Inference Efficiency for ViT Adaptationcited by 25
- 2024Efficient Diffusion Transformer with Step-wise Dynamic Attention Mediatorscited by 24
- 2023Understanding, Predicting and Better Resolving Q-Value Divergence in Offline-RLcited by 20
- 2024DyFADet: Dynamic Feature Aggregation for Temporal Action Detectioncited by 18
- 2023Fine-grained Recognition with Learnable Semantic Data Augmentationcited by 17
- 2023Towards Anytime Classification in Early-Exit Architectures by Enforcing Conditional Monotonicitycited by 16
- 2024ROPO: Robust Preference Optimization for Large Language Modelscited by 16
- 2023Jointly-Learned Exit and Inference for a Dynamic Neural Network : JEI-DNNcited by 15
- 2023Computation-efficient Deep Learning for Computer Vision: A Surveycited by 14
- 2022Deep Incubation: Training Large Models by Divide-and-Conqueringcited by 13
- 2024GRA: Detecting Oriented Objects through Group-wise Rotating and Attentioncited by 13
- 2024Conditional computation in neural networks: principles and research trendscited by 10
- 2023Early-Exit with Class Exclusion for Efficient Inference of Neural Networkscited by 8
- 2024ENAT: Rethinking Spatial-temporal Interactions in Token-based Image Synthesiscited by 8
- 2024Towards Unbiased and Robust Spatio-Temporal Scene Graph Generation and Anticipationcited by 6
- 2025A Survey on Dynamic Neural Networks: from Computer Vision to Multi-modal Sensor Fusioncited by 5
- 2025Fast and Accurate Gigapixel Pathological Image Classification with Hierarchical Distillation Multi-Instance Learningcited by 5
- 2025EA-ViT: Efficient Adaptation for Elastic Vision Transformercited by 5
- 2024Tiny Models are the Computational Saver for Large Modelscited by 4
- 2025Linear Differential Vision Transformer: Learning Visual Contrasts via Pairwise Differentialscited by 4
- 20242023 Low-Power Computer Vision Challenge (LPCVC) Summarycited by 2
- 2024Deep Feature Surgery: Towards Accurate and Efficient Multi-Exit Networkscited by 2
- 2024Multiple-Exit Tuning: Towards Inference-Efficient Adaptation for Vision Transformercited by 2
- 2024Predicting Probabilities of Error to Combine Quantization and Early Exiting: QuEEcited by 1
- 2025SchoenbAt: Rethinking Attention with Polynomial basiscited by 1
- 2024Conditional Information Gain Trelliscited by 0
- 2025ORXE: Orchestrating Experts for Dynamically Configurable Efficiencycited by 0
- 2026Information-Theoretic Multi-Model Fusion for Target-Oriented Adaptive Sampling in Materials Designcited by 0
- 2026Information-Theoretic Multi-Model Fusion for Target-Oriented Adaptive Sampling in Materials Design3 Feb 2026
- 2025Linear Differential Vision Transformer: Learning Visual Contrasts via Pairwise Differentials2 Nov 2025
- 2025EA-ViT: Efficient Adaptation for Elastic Vision Transformer25 Jul 2025
- 2025SchoenbAt: Rethinking Attention with Polynomial basis18 May 2025
- 2025ORXE: Orchestrating Experts for Dynamically Configurable Efficiency7 May 2025
- 2025Fast and Accurate Gigapixel Pathological Image Classification with Hierarchical Distillation Multi-Instance Learning28 Feb 2025
- 2025ART: Anonymous Region Transformer for Variable Multi-Layer Transparent Image Generation25 Feb 2025
- 2025A Survey on Dynamic Neural Networks: from Computer Vision to Multi-modal Sensor Fusion13 Jan 2025
- 2024A Stitch in Time Saves Nine: Small VLM is a Precise Guidance for Accelerating Large VLMs4 Dec 2024
- 2024Towards Unbiased and Robust Spatio-Temporal Scene Graph Generation and Anticipation20 Nov 2024
- 2024ENAT: Rethinking Spatial-temporal Interactions in Token-based Image Synthesis11 Nov 2024
- 2024Dynamic Diffusion Transformer4 Oct 2024
32 more
- 2024Multiple-Exit Tuning: Towards Inference-Efficient Adaptation for Vision Transformer21 Sep 2024
- 2024Efficient Diffusion Transformer with Step-wise Dynamic Attention Mediators11 Aug 2024
- 2024Deep Feature Surgery: Towards Accurate and Efficient Multi-Exit Networks19 Jul 2024
- 2024DyFADet: Dynamic Feature Aggregation for Temporal Action Detection3 Jul 2024
- 2024Predicting Probabilities of Error to Combine Quantization and Early Exiting: QuEE20 Jun 2024
- 2024Real-world Image Dehazing with Coherence-based Pseudo Labeling and Cooperative Unfolding Network12 Jun 2024
- 2024Fast yet Safe: Early-Exiting with Risk Control31 May 2024
- 2024ROPO: Robust Preference Optimization for Large Language Models5 Apr 2024
- 2024Tiny Models are the Computational Saver for Large Models26 Mar 2024
- 2024Dynamic Tuning Towards Parameter and Inference Efficiency for ViT Adaptation18 Mar 2024
- 2024GRA: Detecting Oriented Objects through Group-wise Rotating and Attention17 Mar 2024
- 2024Conditional computation in neural networks: principles and research trends12 Mar 2024
- 20242023 Low-Power Computer Vision Challenge (LPCVC) Summary11 Mar 2024
- 2024Conditional Information Gain Trellis13 Feb 2024
- 2023GSVA: Generalized Segmentation via Multimodal Large Language Models15 Dec 2023
- 2023Agent Attention: On the Integration of Softmax and Linear Attention14 Dec 2023
- 2023Train Once, Get a Family: State-Adaptive Balances for Offline-to-Online Reinforcement Learning27 Oct 2023
- 2023Jointly-Learned Exit and Inference for a Dynamic Neural Network : JEI-DNN13 Oct 2023
- 2023Rank-DETR for High Quality Object Detection13 Oct 2023
- 2023Understanding, Predicting and Better Resolving Q-Value Divergence in Offline-RL6 Oct 2023
- 2023Early-Exit with Class Exclusion for Efficient Inference of Neural Networks23 Sep 2023
- 2023Fine-grained Recognition with Learnable Semantic Data Augmentation1 Sep 2023
- 2023Latency-aware Unified Dynamic Networks for Efficient Image Recognition30 Aug 2023
- 2023Computation-efficient Deep Learning for Computer Vision: A Survey27 Aug 2023
- 2023FLatten Transformer: Vision Transformer using Focused Linear Attention1 Aug 2023
- 2023Dynamic Perceiver for Efficient Visual Recognition20 Jun 2023
- 2023Towards Anytime Classification in Early-Exit Architectures by Enforcing Conditional Monotonicity5 Jun 2023
- 2023Weakly-Supervised Concealed Object Segmentation with SAM-based Pseudo Labeling and Multi-scale Feature Grouping18 May 2023
- 2023Adaptive Rotated Convolution for Rotated Object Detection14 Mar 2023
- 2022Deep Incubation: Training Large Models by Divide-and-Conquering8 Dec 2022
- 2022EfficientTrain: Exploring Generalized Curriculum Learning for Training Visual Backbones17 Nov 2022
- 2022Latency-aware Spatial-wise Dynamic Networks12 Oct 2022
- 2024Fast yet Safe: Early-Exiting with Risk Controlcited by 27
- 2023Towards Anytime Classification in Early-Exit Architectures by Enforcing Conditional Monotonicitycited by 16
- 2023Early-Exit with Class Exclusion for Efficient Inference of Neural Networkscited by 8
- 2024Tiny Models are the Computational Saver for Large Modelscited by 4
- 2024Multiple-Exit Tuning: Towards Inference-Efficient Adaptation for Vision Transformercited by 2
- 2024Predicting Probabilities of Error to Combine Quantization and Early Exiting: QuEEcited by 1
- 2024Multiple-Exit Tuning: Towards Inference-Efficient Adaptation for Vision Transformer21 Sep 2024
- 2024Predicting Probabilities of Error to Combine Quantization and Early Exiting: QuEE20 Jun 2024
- 2024Fast yet Safe: Early-Exiting with Risk Control31 May 2024
- 2024Tiny Models are the Computational Saver for Large Models26 Mar 2024
- 2023Early-Exit with Class Exclusion for Efficient Inference of Neural Networks23 Sep 2023
- 2023Towards Anytime Classification in Early-Exit Architectures by Enforcing Conditional Monotonicity5 Jun 2023
- 2024Dynamic Diffusion Transformercited by 60
- 2024Efficient Diffusion Transformer with Step-wise Dynamic Attention Mediatorscited by 24
- 2024Dynamic Diffusion Transformer4 Oct 2024
- 2024Efficient Diffusion Transformer with Step-wise Dynamic Attention Mediators11 Aug 2024
- 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 170
- 2023Weakly-Supervised Concealed Object Segmentation with SAM-based Pseudo Labeling and Multi-scale Feature Groupingcited by 92
- 2023Agent Attention: On the Integration of Softmax and Linear Attentioncited by 90
- 2023Adaptive Rotated Convolution for Rotated Object Detectioncited by 51
- 2023Rank-DETR for High Quality Object Detectioncited by 49
- 2022EfficientTrain: Exploring Generalized Curriculum Learning for Training Visual Backbonescited by 42
- 2025ART: Anonymous Region Transformer for Variable Multi-Layer Transparent Image Generationcited by 37
- 2023Dynamic Perceiver for Efficient Visual Recognitioncited by 33
- 2023Latency-aware Unified Dynamic Networks for Efficient Image Recognitioncited by 26
- 2024Real-world Image Dehazing with Coherence-based Pseudo Labeling and Cooperative Unfolding Networkcited by 26
- 2022Latency-aware Spatial-wise Dynamic Networkscited by 25
- 2024DyFADet: Dynamic Feature Aggregation for Temporal Action Detectioncited by 18
12 most cited of 29 All 29 (JSON)
- 2026Information-Theoretic Multi-Model Fusion for Target-Oriented Adaptive Sampling in Materials Design3 Feb 2026
- 2025Linear Differential Vision Transformer: Learning Visual Contrasts via Pairwise Differentials2 Nov 2025
- 2025EA-ViT: Efficient Adaptation for Elastic Vision Transformer25 Jul 2025
- 2025SchoenbAt: Rethinking Attention with Polynomial basis18 May 2025
- 2025ORXE: Orchestrating Experts for Dynamically Configurable Efficiency7 May 2025
- 2025Fast and Accurate Gigapixel Pathological Image Classification with Hierarchical Distillation Multi-Instance Learning28 Feb 2025
- 2025ART: Anonymous Region Transformer for Variable Multi-Layer Transparent Image Generation25 Feb 2025
- 2025A Survey on Dynamic Neural Networks: from Computer Vision to Multi-modal Sensor Fusion13 Jan 2025
- 2024Towards Unbiased and Robust Spatio-Temporal Scene Graph Generation and Anticipation20 Nov 2024
- 2024ENAT: Rethinking Spatial-temporal Interactions in Token-based Image Synthesis11 Nov 2024
- 2024Deep Feature Surgery: Towards Accurate and Efficient Multi-Exit Networks19 Jul 2024
- 2024DyFADet: Dynamic Feature Aggregation for Temporal Action Detection3 Jul 2024
12 newest of 29 All 29 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024How to Train Your Multi-Exit Model? Analyzing the Impact of Training Strategies
- 2026Balancing Stability and Plasticity in Sequentially Trained Early-Exiting Neural Networks
- 2021Adaptive Inference through Early-Exit Networks: Design, Challenges and Directions
- 2025A Survey of Early Exit Deep Neural Networks in NLP
- 2023Adaptive Deep Neural Network Inference Optimization with EENet
- 2022Boosted Dynamic Neural Networks
- 2025Know What You Don't Know: Selective Prediction for Early Exit DNNs
- 2023Finding the SWEET Spot: Analysis and Improvement of Adaptive Inference in Low Resource Settings