FlexEE: Self-Speculative and KV-Compatible Early Exiting for Offloading-Aware LLM Inference
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 per-token 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.
Create a lesson
Related papers
GreenDynaMix: Thermal-Aware Dynamic Mixed-Precision MoE LLM Inference Systems
Shared title terminologycs.AIHan-Yi Lin, Kieran Griperay, Qiang Zhou et al.
MMMem: Self-Improving Agents with Task-Aware Multimodal Experience Consolidation
Shared title terminologycs.AIYuxuan Chen, Changwei Lv, Yunfei Li et al.
Stranded Compute in AI Inference Workloads: Recovering Value Through Demand Aggregation
Shared title terminologycs.AISam Kingsley
Wavefront: Low-Rank Drafting with Parallel Causal Refinement for Speculative Decoding
Shared title terminologycs.AIHuy Huu Nguyen, Xin Huang
Self-Improving Long-Horizon Reasoning by Learning Summaries from Local Continuations
Shared title terminologycs.AIHaoqun Cao, Tengyang Xie
Language Models Steer on Injected Uncertainty Tokens, but Fail to Self-Monitor In Situ
Shared title terminologycs.AIDaniel Theron