Manuscript Offprint

arXiv:2609.08407

FastE: Readout-Triggered Token Compression for LLM Embedding Inference

Jinsong Shu, Jinyong Wen, Baokun Wang, Zhongle Xie, Lidan Shou, Weiqiang Wang, Gang Chen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

In this study, we identify depth-dependent prefix redundancy in final-readout LLM embedding models, notably across representative backbones including Qwen3-Embedding and Qwen3-VL-Embedding. We find that removing prefix states is substantially more damaging in shallow layers than at greater depth, showing that prefix states become increasingly compressible as the prefix and readout states propagate through the network. To this end, we introduce FastE, a training-free, plug-and-play method. FastE uses a shared fixed threshold on batch-mean readout-prefix alignment as a lightweight online heuristic for selecting when compression occurs, and ranks prefix states by the attention scores they receive from the readout position to determine which states are retained in subsequent layers. Our evaluations demonstrate FastE's ability to substantially reduce computational costs: on NarrativeQA with Qwen3-Embedding-0.6B, it reduces decoder-backbone FLOPs by 40.11% while retaining 99.53% of Full Forward nDCG@10. Across five text embedding benchmarks, two backbone scales, and three cross-modal retrieval tasks, the quality-efficiency trade-off is directly customizable through the maximum removal ratio without retraining. We believe FastE offers practical value for scalable embedding generation in retrieval, indexing, clustering, and multimodal representation systems.

Introduction

Embeddings are vector representations that support retrieval, indexing, classification, and clustering across text and multimodal applications (Manzoor et al. 2023; Opitz et al. 2025). Large language model (LLM)-based embedding models have recently become strong general-purpose embedding backbones by transferring the semantic capabilities of pretrained LLMs to embedding tasks for sequence inputs (Zhang et al. 2025b; Lee et al. 2025; Wang et al. 2024a; Behnam Ghader et al. 2024; Muennighoff et al. 2025).

We focus on final-readout LLM embedding models, which initialize each input as a prefix followed by an end-of-sequence (EOS) or dedicated readout token and process it with causal attention. The hidden state at this final position, namely readout state, develops layer by layer and ultimately yields the sequence embedding. The preceding serialized input forms the serialized prefix and its layer-wise hidden states, which are called prefix states, provide the context absorbed by the readout state. Note that standard inference propagates both through the transformer stack.

For long serialized prefixes, this joint propagation becomes computationally expensive. In an anonymized production workload, processing 450 million inputs with a mean valid serialized-prefix length of 732 tokens using an instruction-tuned LLM embedding model requires approximately 6 hours on 300 L20 GPUs. A natural response is prefix-state filtering, which shortens subsequent computation by removing selected prefix states. Attention-based pruning and token merging provide such reduction operators, but commonly apply them at fixed depths or rely on modality-specific signals (Chen et al. 2024; Zhang et al. 2025a; Yang et al. 2025a; Huang et al. 2024). Key-value (KV) cache compression instead selects past states for future autoregressive queries (Xiao et al. 2023; Li et al. 2024), yet its decoding objective does not characterize how prefix states support a single readout state as it develops through depth. Hence, these limitations leave a central question: are prefix states equally necessary in shallow and deep layers?

Our controlled depth-wise interventions reveal a clear answer: no, prefix-state removal causes substantially less performance loss in deeper layers. We call this empirical pattern depth-dependent prefix redundancy, in which prefix states that are important during shallow computation become more compressible after further contextualization. As Figure 1(a) quantifies: at 50% prefix-state removal, the performance drop decreases from 35.4–94.9% at layer 4 to 0–5.5% at layer 24 across the three evaluated settings. Furthermore, the depth at which removal incurs limited performance loss varies across task-backbone settings, making a single fixed trigger layer less reliable across settings. To identify an online signal for this depth effect, Figure 1(b) traces readout-prefix alignment, the cosine similarity between the readout state and the mean prefix-state representation, across depth. The alignment trajectories generally increase with depth, suggesting a lightweight heuristic for identifying when prefix-state compression becomes better tolerated without treating alignment as causal proof of redundancy.

Guided by these findings, we introduce FastE, a training-free method that decomposes prefix-state compression into two decisions: when compression should begin and which prefix states should be retained. To decide when compression should begin, FastE preserves the full serialized pre-

∗^{*}Corresponding author.

Figure

(a) Performance retention

(b) Readout-prefix alignment

Figure 1: Depth-wise prefix compressibility in final-readout LLM embedding inference. (a) Performance retention across removal ratios and eviction layers; later eviction better preserves quality under aggressive removal. (b) Readout-prefix alignment across depth for three task-backbone settings.

fix during an initial warm-up and uses a fixed threshold on batch-mean readout-prefix alignment, shared across the reported text tasks, to select the online trigger layer. To decide which prefix states should be retained, FastE applies readout-guided attention-score ranking at the first threshold crossing and performs one-shot prefix compression to the configured prefix-state budget while preserving the readout position, causal order, and original position identifiers. Across five text tasks and two Qwen3-Embedding scales, FastE outperforms transferred baselines under matched prefix-state budgets, while Qwen3-VL-Embedding and E5-Mistral results provide initial evidence across modalities and model architectures. On NarrativeQA with Qwen3-Embedding-0.6B, FastE retains 99.53% of Full Forward nDCG@10 while reducing decoder-backbone FLOPs by 40.11% and achieving a 1.363× measured end-to-end speedup. Together, the depth-wise finding, the readout-guided when/which design, and the measured quality-efficiency evaluation constitute the paper's main contributions.

References (30)