paper-with-me

홈 › Papers

Accelerating Large Language Model Inference with Self-Supervised Early Exits

2024-07-30 · Florian Valade

This paper presents a novel technique for accelerating inference in large, pre-trained language models (LLMs) by introducing early exits during inference. The computational demands of these models, used across a wide range of applications, can be substantial. By capitalizing on the inherent variability in token complexity, our approach enables selective acceleration of the inference process. Specifically, we propose the integration of early exit ''heads'' atop existing transformer layers, which facilitate conditional terminations based on a confidence metric. These heads are trained in a self-supervised manner using the model's own predictions as training data, thereby eliminating the need for additional annotated data. The confidence metric, established using a calibration set, ensures a desired level of accuracy while enabling early termination when confidence exceeds a predetermined threshold. Notably, our method preserves the original accuracy and reduces computational time on certain tasks, leveraging the existing knowledge of pre-trained LLMs without requiring extensive retraining. This lightweight, modular modification has the potential to greatly enhance the practical usability of LLMs, particularly in applications like real-time language processing in resource-constrained environments.

📄 PDF Abstract BibTeX arXiv:2407.21082

Code (0)

등록된 구현이 없습니다.

Tasks

Language ModelingLanguage ModellingLarge Language Model

Similar Papers 제목 키워드 기반

NarrowBERT: Accelerating Masked Language Model Pretraining and Inference

2023-01-11 · Haoxin Li, Phillip Keung, Daniel Cheng, Jungo Kasai 외

Large-scale language model pretraining is a very successful form of self-supervised learning in natural language processing, but it is increasingly expensive to perform as the models and pretraining corpora have become l…

Language ModelingLanguage ModellingmodelNER+2

Layer Reduction: Accelerating Conformer-Based Self-Supervised Model via Layer Consistency

2021-04-08 · Jinchuan Tian, Rongzhi Gu, Helin Wang, Yuexian Zou

Transformer-based self-supervised models are trained as feature extractors and have empowered many downstream speech tasks to achieve state-of-the-art performance. However, both the training and inference process of thes…

speech-recognitionSpeech Recognition

Self-Selected Attention Span for Accelerating Large Language Model Inference

2024-04-14 · Tian Jin, Wanzin Yazar, Zifei Xu, Sayeh Sharify 외

Large language models (LLMs) can solve challenging tasks. However, their inference computation on modern GPUs is highly inefficient due to the increasing number of tokens they must attend to as they generate new ones. To…

ArticlesLanguage ModelingLanguage ModellingLarge Language Model

FastMTP: Accelerating LLM Inference with Enhanced Multi-Token Prediction

2025-09-16 · Yuxuan Cai, Xiaozhuan Liang, Xinghua Wang, Jin Ma 외 arxiv

As large language models (LLMs) become increasingly powerful, the sequential nature of autoregressive generation creates a fundamental throughput bottleneck that limits the practical deployment. While Multi-Token Predict…

Draft & Verify: Lossless Large Language Model Acceleration via Self-Speculative Decoding

2023-09-15 · Jun Zhang, Jue Wang, Huan Li, Lidan Shou 외

We present a novel inference scheme, self-speculative decoding, for accelerating Large Language Models (LLMs) without the need for an auxiliary model. This approach is characterized by a two-stage process: drafting and v…

Language ModelingLanguage ModellingLarge Language Model