paper-with-me

Papers

EE-LLM: Large-Scale Training and Inference of Early-Exit Large Language Models with 3D Parallelism

2023-12-08 · Yanxi Chen, Xuchen Pan, Yaliang Li, Bolin Ding, Jingren Zhou

We present EE-LLM, a framework for large-scale training and inference of early-exit large language models (LLMs). While recent works have shown preliminary evidence for the efficacy of early exiting in accelerating LLM inference, EE-LLM makes a foundational step towards scaling up early-exit LLMs by supporting their training and inference with massive 3D parallelism. Built upon Megatron-LM, EE-LLM implements a variety of algorithmic innovations and performance optimizations tailored to early exiting, including a lightweight method that facilitates backpropagation for the early-exit training objective with pipeline parallelism, techniques of leveraging idle resources in the original pipeline schedule for computation related to early-exit layers, and two approaches of early-exit inference that are compatible with KV caching for autoregressive generation. Our analytical and empirical study shows that EE-LLM achieves great training efficiency with negligible computational overhead compared to standard LLM training, as well as outstanding inference speedup without compromising output quality. To facilitate further research and adoption, we release EE-LLM at https://github.com/pan-x-c/EE-LLM.

📄 PDF Abstract BibTeX arXiv:2312.04916

Code (1)

pan-x-c/ee-llm 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

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

Similar Papers 제목 키워드 기반

You Need Multiple Exiting: Dynamic Early Exiting for Accelerating Unified Vision Language Model

2022-11-21 · CVPR 2023 1 · Shengkun Tang, Yaqing Wang, Zhenglun Kong, Tianchi Zhang 외

Large-scale Transformer models bring significant improvements for various downstream vision language tasks with a unified architecture. The performance improvements come with increasing model size, resulting in slow infe…

DecoderLanguage ModelingLanguage Modelling

A Global Past-Future Early Exit Method for Accelerating Inference of Pre-trained Language Models

2021-06-01 · NAACL 2021 4 · Kaiyuan Liao, Yi Zhang, Xuancheng Ren, Qi Su 외

Early exit mechanism aims to accelerate the inference speed of large-scale pre-trained language models. The essential idea is to exit early without passing through all the inference layers at the inference stage. To make…

CalexNet: Soft Cascade-Aligned Training and Calibration for Lightweight Early-Exit Branches

2025-09-10 · Yehudit Aperstein, Alexander Apartsin arxiv

Early-exit cascades over a frozen convolutional backbone enable adaptive inference but suffer from three sources of train-inference mismatch: branches train on samples they will never see at inference, their per-class pr…

Learning to Weight Samples for Dynamic Early-exiting Networks

2022-09-17 · Yizeng Han, Yifan Pu, Zihang Lai, Chaofei Wang 외

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 earl…

Meta-Learning

DAISY: Data Adaptive Self-Supervised Early Exit for Speech Representation Models

2024-06-08 · Tzu-Quan Lin, Hung-Yi Lee, Hao Tang

Self-supervised speech models have shown to be useful for various tasks, but their large size limits the use in devices with low computing power and memory. In this work, we explore early exit, an approach for reducing l…