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.
FlexEE: Self-Speculative and KV-Compatible Early Exiting for Offloading-Aware LLM Inference
University of Science and Technology of China(中国科学技术大学);Institute of Artificial Intelligence, Hefei Comprehensive National Science Center(合肥综合性国家科学中心人工智能研究院)
Two-dimensional early exit optimisation of LLM inference
Institute for Research and Applications of Fuzzy Modelling(模糊建模研究与应用研究所);University of Ostrava(奥斯特拉瓦大学);Institute of Computer Science(计算机科学研究所);Faculty of Philosophy and Science(哲学与科学学院);Silesian University in Opava(奥帕瓦西里西亚大学)
LayerSkip: Enabling Early Exit Inference and Self-Speculative Decoding
FAIR at Meta(Meta FAIR研究院);GenAI at Meta(Meta GenAI部门);Reality Labs at Meta(Meta Reality Labs);University of Toronto(多伦多大学);University of Wisconsin-Madison(威斯康星大学麦迪逊分校);Dana-Farber Cancer Institute(丹娜法伯癌症研究院);Carnegie Mellon University(卡内基梅隆大学)
Early Exit and Multi Stage Knowledge Distillation in VLMs for Video Summarization
Department of Computer Science and Engineering, IIT Bombay(印度理工学院班加罗尔计算机科学与工程系);Center of Machine Intelligence and Data Science (C-MInDS), IIT Bombay(印度理工学院班加罗尔人工智能与数据科学中心)
Nav-EE: Navigation-Guided Early Exiting for Efficient Vision-Language Models in Autonomous Driving
Department of Computer Science, City University of Hong Kong(香港城市大学计算机科学系);Department of Computer Science, McGill University(麦吉尔大学计算机科学系);Department of Computer Science, Mohamed bin Zayed University of Artificial Intelligence(马尔代夫穆罕默德· bin·扎耶德人工智能大学计算机科学系)
Runaway is Ashamed, But Helpful: On the Early-Exit Behavior of Large Language Model-based Agents in Embodied Environments
Southeast University(东南大学);The University of Sydney(悉尼大学);Southeast University Shenzhen Research Institute(东南大学深圳研究院);Institute of Computing and Intelligence, Harbin Institute of Technology, Shenzhen, China(哈尔滨工业大学计算机与智能信息学院,深圳,中国);College of Computing and Data Science at Nanyang Technological University, Singapore 639798(南洋理工大学计算机与数据科学学院,新加坡)
DistrEE: Distributed Early Exit of Deep Neural Network Inference on Edge Devices
School of Computer Science (National Pilot Software Engineering School), Beijing University of Posts and Telecommunications(北京邮电大学计算机学院(国家示范性软件学院));School of Electronic Engineering, Beijing University of Posts and Telecommunications(北京邮电大学电子工程学院)
Confidence-gated training for efficient early-exit neural networks
International University of Rabat(拉巴特国际大学);TICLab(TIC实验室);Thales Alenia Space(泰勒斯阿莱尼亚空间);Mohammed 6 Polytechnic University(穆莱·6技术大学);University of Leeds(利兹大学)
The Hebrew University of Jerusalem, Israel(特拉维夫大学);Bar Ilan University, Israel(巴伊兰大学);Ben-Gurion University of the Negev, Israel(贝纳亚克大学);University of California, Riverside, USA(加州大学河滨分校)
Towards Anytime Classification in Early-Exit Architectures by Enforcing Conditional Monotonicity
UvA-Bosch Delta Lab(阿姆斯特丹大学-博世三角洲实验室);University of Amsterdam(阿姆斯特丹大学);University of Cambridge(剑桥大学);Bosch Center for AI(博世人工智能中心);University of Tübingen(蒂宾根大学)
Goal-oriented Communications based on Recursive Early Exit Neural Networks
Sapienza University of Rome(罗马大学);Consorzio Nazionale Interuniversitario per le Telecomunicazioni(意大利国家大学电信联盟);CEA-Leti(法国原子能和替代能源委员会-莱蒂研究所);Université Grenoble Alpes(格勒诺布尔阿尔卑斯大学)
Temporal Decisions: Leveraging Temporal Correlation for Efficient Decisions in Early Exit Neural Networks
Infineon Technologies Dresden GmbH & Co. KG(英飞凌德累斯顿有限两合公司);Technical University of Munich(慕尼黑工业大学);Infineon Technologies AG(英飞凌股份公司);Technical University of Dresden(德累斯顿工业大学)