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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Huang, Lianming, Wu, Shangyu, Cui, Yufei, Xiong, Ying, Hu, Haibo, Liu, Xue, Kuo, Tei-Wei, Guan, Nan, Xue, Chun Jason
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915832457592832
author Huang, Lianming
Wu, Shangyu
Cui, Yufei
Xiong, Ying
Hu, Haibo
Liu, Xue
Kuo, Tei-Wei
Guan, Nan
Xue, Chun Jason
author_facet Huang, Lianming
Wu, Shangyu
Cui, Yufei
Xiong, Ying
Hu, Haibo
Liu, Xue
Kuo, Tei-Wei
Guan, Nan
Xue, Chun Jason
contents Deploying large language model inference remains challenging due to their high computational overhead. Early exit optimizes model inference by adaptively reducing the number of inference layers. Current methods typically train internal classifiers or use heuristic methods to determine the exit layer. However, those methods either introduce significant training overheads or lead to performance degradation. To address these limitations, this paper proposes RAEE, a robust Retrieval-Augmented Early Exit framework that not only enables early exit but also enhances model performance through corrective exit information at intermediate layers. This paper first demonstrates that the early exit problem can be effectively modeled as a distribution prediction problem, in which the distribution can be further approximated through the exit information of similar data. Subsequently, this paper introduces the process of collecting exit information of correct predictions and the steps to construct the retrieval database. Finally, leveraging the pre-constructed retrieval database, RAEE utilizes the exit information from retrieved similar data to guide the backbone model's exit. Experimental results demonstrate that RAEE can not only accelerate inference while achieving robust zero-shot performance across eight downstream tasks.
format Preprint
id arxiv_https___arxiv_org_abs_2405_15198
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle RAEE: A Robust Retrieval-Augmented Early Exit Framework for Efficient Inference
Huang, Lianming
Wu, Shangyu
Cui, Yufei
Xiong, Ying
Hu, Haibo
Liu, Xue
Kuo, Tei-Wei
Guan, Nan
Xue, Chun Jason
Computation and Language
Deploying large language model inference remains challenging due to their high computational overhead. Early exit optimizes model inference by adaptively reducing the number of inference layers. Current methods typically train internal classifiers or use heuristic methods to determine the exit layer. However, those methods either introduce significant training overheads or lead to performance degradation. To address these limitations, this paper proposes RAEE, a robust Retrieval-Augmented Early Exit framework that not only enables early exit but also enhances model performance through corrective exit information at intermediate layers. This paper first demonstrates that the early exit problem can be effectively modeled as a distribution prediction problem, in which the distribution can be further approximated through the exit information of similar data. Subsequently, this paper introduces the process of collecting exit information of correct predictions and the steps to construct the retrieval database. Finally, leveraging the pre-constructed retrieval database, RAEE utilizes the exit information from retrieved similar data to guide the backbone model's exit. Experimental results demonstrate that RAEE can not only accelerate inference while achieving robust zero-shot performance across eight downstream tasks.
title RAEE: A Robust Retrieval-Augmented Early Exit Framework for Efficient Inference
topic Computation and Language
url https://arxiv.org/abs/2405.15198