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

Qihu Xie, Ziwei Li, Yi Kang
9/15/2026
cs.AI

No confident code implementation found for this paper.

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$\times$/3.16$\times$ and 1.25$\times$/2.83$\times$ end-to-end speedups on Llama2-7B and Llama3-8B under 0\%/50\% weight offloading, respectively.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{xie2026flexee,
  title  = {FlexEE: Self-Speculative and KV-Compatible Early Exiting for Offloading-Aware LLM Inference},
  author = {Qihu Xie and Ziwei Li and Yi Kang},
  year   = {2026},
  eprint = {2609.17008},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.17008v1}
}

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/2609.17008.svg)](https://codeofpaper.com/paper/2609.17008)

Discussion