paper-with-me

Papers

ConsistentEE: A Consistent and Hardness-Guided Early Exiting Method for Accelerating Language Models Inference

2023-12-19 · Ziqian Zeng, Yihuai Hong, Hongliang Dai, Huiping Zhuang, Cen Chen

Early Exiting is one of the most popular methods to achieve efficient inference. Current early exiting methods adopt the (weighted) sum of the cross entropy loss of all internal classifiers during training, imposing all these classifiers to predict all instances correctly. However, during inference, as long as one internal classifier predicts an instance correctly, it can accelerate without losing accuracy. Thus, there is a notable gap between training and inference. We propose ConsistentEE, an early exiting method that is consistent in training and inference. ConsistentEE formulates the early exiting process as a reinforcement learning problem. A policy network is added to decide whether an instance should exit or continue. The training objective of ConsistentEE only require each instance to be predicted correctly by one internal classifier. Additionally, we introduce the concept Memorize Layer to measure the hardness of an instance. We incorporate memorized layer into reward function design, which allows "easy" instances to focus more on acceleration while "hard" instances to focus more on accuracy. Experimental results show that our method outperforms other baselines on various natural language understanding and generation tasks.

📄 PDF Abstract BibTeX arXiv:2312.11882

Code (1)

zeronlp/consistentee 공식 구현 pytorch

Tasks

Natural Language Understanding

Methods 이 논문이 사용한 방법론

Focus 설명 없음
Early exiting Exit whenever the model is confident enough allowing early exiting from hidden layers

Similar Papers 제목 키워드 기반

ELF: An Early-Exiting Framework for Long-Tailed Classification

2020-06-22 · Rahul Duggal, Scott Freitas, Sunny Dhamnani, Duen Horng Chau 외

The natural world often follows a long-tailed data distribution where only a few classes account for most of the examples. This long-tail causes classifiers to overfit to the majority class. To mitigate this, prior solut…

ClassificationGeneral ClassificationLong-tail Learning

DE$^3$-BERT: Distance-Enhanced Early Exiting for BERT based on Prototypical Networks

2024-02-03 · Jianing He, Qi Zhang, Weiping Ding, Duoqian Miao 외

Early exiting has demonstrated its effectiveness in accelerating the inference of pre-trained language models like BERT by dynamically adjusting the number of layers executed. However, most existing early exiting methods…

SmartBERT: A Promotion of Dynamic Early Exiting Mechanism for Accelerating BERT Inference

2023-03-16 · Boren Hu, Yun Zhu, Jiacheng Li, Siliang Tang

Dynamic early exiting has been proven to improve the inference speed of the pre-trained language model like BERT. However, all samples must go through all consecutive layers before early exiting and more complex samples …

Contrastive LearningLanguage ModellingRTEWNLI

PCEE-BERT: Accelerating BERT Inference via Patient and Confident Early Exiting

2022-07-01 · Findings (NAACL) 2022 7 · Zhen Zhang, Wei Zhu, Jinfan Zhang, Peng Wang 외

BERT and other pretrained language models (PLMs) are ubiquitous in modern NLP. Even though PLMs are the state-of-the-art (SOTA) models for almost every NLP task (CITATION), the significant latency during inference prohib…

Model Compression

Know What You Don't Know: Selective Prediction for Early Exit DNNs

2025-09-15 · Divya Jyoti Bajpai, Manjesh Kumar Hanawal arxiv

Inference latency and trustworthiness of Deep Neural Networks (DNNs) are the bottlenecks in deploying them in critical applications like sensitive tasks. Early Exit (EE) DNNs overcome the latency issues by allowing sampl…