paper-with-me

홈 › Papers

RAEE: A Robust Retrieval-Augmented Early Exiting Framework for Efficient Inference

2024-05-24 · Lianming Huang, Shangyu Wu, Yufei Cui, Ying Xiong, Xue Liu, Tei-Wei Kuo, Nan Guan, Chun Jason Xue

Deploying large language model inference remains challenging due to their high computational overhead. Early exiting optimizes model inference by adaptively reducing the number of inference layers. Existing methods typically train internal classifiers to determine whether to exit at intermediate layers. However, such classifier-based early exiting frameworks require significant effort to train the classifiers while can only achieve comparable performance at best. To address these limitations, this paper proposes RAEE, a robust Retrieval-Augmented Early Exiting framework for efficient inference. First, this paper demonstrates that the early exiting problem can be modeled as a distribution prediction problem, where the distribution is approximated using similar data's exiting information. Then, this paper details the process of collecting exiting information to build the retrieval database. Finally, based on the pre-built retrieval database, RAEE leverages the retrieved similar data's exiting information to guide the backbone model to exit at the layer, which is predicted by the approximated distribution. Experimental results demonstrate that the proposed RAEE can significantly accelerate inference. More importantly, RAEE can also achieve a robust zero-shot performance on 8 downstream tasks.

📄 PDF Abstract BibTeX arXiv:2405.15198

Code (0)

등록된 구현이 없습니다.

Tasks

Language ModelingLanguage ModellingLarge Language ModelRetrieval

Methods 이 논문이 사용한 방법론

Early exiting Exit whenever the model is confident enough allowing early exiting from hidden layers

Similar Papers 제목 키워드 기반

Beyond Exact Match: Semantically Reassessing Event Extraction by Large Language Models

2024-10-12 · Yi-Fan Lu, Xian-Ling Mao, Tian Lan, Chen Xu 외

Event extraction has gained extensive research attention due to its broad range of applications. However, the current mainstream evaluation method for event extraction relies on token-level exact match, which misjudges n…

Event Extraction

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…

LGViT: Dynamic Early Exiting for Accelerating Vision Transformer

2023-08-01 · Guanyu Xu, Jiawei Hao, Li Shen, Han Hu 외

Recently, the efficient deployment and acceleration of powerful vision transformers (ViTs) on resource-limited edge devices for providing multimedia services have become attractive tasks. Although early exiting is a feas…

GAML-BERT: Improving BERT Early Exiting by Gradient Aligned Mutual Learning

2021-11-01 · EMNLP 2021 11 · Wei Zhu, Xiaoling Wang, Yuan Ni, Guotong Xie

In this work, we propose a novel framework, Gradient Aligned Mutual Learning BERT (GAML-BERT), for improving the early exiting of BERT. GAML-BERT’s contributions are two-fold. We conduct a set of pilot experiments, which…

Knowledge Distillation

Adaptive Deep Neural Network Inference Optimization with EENet

2023-01-15 · Fatih Ilhan, Ka-Ho Chow, Sihao Hu, Tiansheng Huang 외

Well-trained deep neural networks (DNNs) treat all test samples equally during prediction. Adaptive DNN inference with early exiting leverages the observation that some test examples can be easier to predict than others.…

Inference OptimizationSchedulingSST-2