FlexEE: Self-Speculative and KV-Compatible Early Exiting for Offloading-Aware LLM Inference

Qihu Xie, Ziwei Li, Yi Kang


Abstract
Large language model (LLM) inference is often constrained by both computation and memory, especially in offloading-based deployments where model weights are transferred across memory hierarchies during autoregressive decoding. In this setting, reducing the number of executed layers can lower token-generation latency while also avoiding costly weight movement. Motivated by this observation, we present **FlexEE**, an early exiting framework for resource-constrained and offloading-based LLM inference. FlexEE makes early exiting practical for LLM decoding through layer-wise exit supervision for reliable intermediate-layer prediction, self-speculative decoding over a Top-K local vocabulary for low-cost exit decisions, and dynamic hidden state management for KV-cache-correct and memory-aware execution. Across generative and downstream tasks, FlexEE enables efficient early exit with minimal accuracy degradation, delivering up to 1.27×/3.16× and 1.25×/2.83× end-to-end speedups on Llama2-7B and Llama3-8B under 0%/50% weight offloading, respectively.
Anthology ID:
2026.findings-emnlp.1426
Volume:
Findings of the Association for Computational Linguistics: EMNLP 2026
Month:
October
Year:
2026
Address:
Budapest, Hungary
Editors:
Hung-Yi Lee, Sunipa Dev, Jessy Li, Desmond Elliott
Venue:
Findings
SIG:
SIGDAT
Publisher:
Association for Computational Linguistics
Note:
Pages:
30396–30411
Language:
URL:
https://aclanthology.org/2026.findings-emnlp.1426/
DOI:
10.18653/2026.findings-emnlp.1426
Bibkey:
Cite (ACL):
Qihu Xie, Ziwei Li, and Yi Kang. 2026. FlexEE: Self-Speculative and KV-Compatible Early Exiting for Offloading-Aware LLM Inference. In Findings of the Association for Computational Linguistics: EMNLP 2026, pages 30396–30411, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
FlexEE: Self-Speculative and KV-Compatible Early Exiting for Offloading-Aware LLM Inference (Xie et al., Findings 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.findings-emnlp.1426.pdf