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

Yanxi Chen, Xuchen Pan, Yaliang Li, Bolin Ding, Jingren Zhou
2/12/2026

No official code found. Best implementation: pan-x-c/EE-LLM (82 stars, last commit 2024-06-14).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

pan-x-c/EE-LLMCommunity100%

EE-LLM is a framework for large-scale training and inference of early-exit (EE) large language models (LLMs).

827C, C++Dec 7, 20232 years agoNOASSERTION

Similar Papers

Cite this paper

@article{chen2026eellm,
  title  = {EE-LLM: Large-Scale Training and Inference of Early-Exit Large Language Models with 3D Parallelism},
  author = {Yanxi Chen and Xuchen Pan and Yaliang Li and Bolin Ding and Jingren Zhou},
  year   = {2026},
  eprint = {2312.04916},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2312.04916},
  journal = {ICML 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.04916.svg)](https://codeofpaper.com/paper/2312.04916)

Discussion