Cache the Encoder Within:Compact, Reusable Memory across LLM Queries
Not on the map. Why?
Abstract (arXiv)
Repeated queries over shared documents incur redundant encoding, while caching model states introduces persistent storage costs. Building on CoMem's intermediate-state interface, EncBank treats a pretrained LLM's lower layers as a reusable document encoder and compactly stores their outputs for an adapted upper-layer reader. A self-distilled suffix adapter is shared across storage precisions within each backbone, without quantization-specific retraining. Across five benchmark suites on three Qwen backbones spanning different sizes and full-attention and hybrid architectures, 4-bit storage keeps each reported benchmark aggregate within one score point of native-precision EncBank. In a fixed Qwen3-8B workload, it retains 28.1% of the native-precision persistent GPU store. Separate native-precision controls yield a 1.40x selected-pack prefill speedup over same-evidence, same-adapter text replay, at a 3.12-point RULER accuracy cost. A native-precision Qwen3.8-27B configuration also passes 70 of 89 Terminal-Bench 2.1 tasks. EncBank thus combines reusable computation with compact memory, while task fidelity and end-to-end benefits remain dependent on the workload, preparation costs, and reuse frequency.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 12 of its 32 references that are in the map. First posted on arXiv 7 Oct 2026.
Builds on
12 of 32 references.
References · 12
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2025Qwen3 Technical Reportcited by 8,195
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2024CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusioncited by 211
- 2023CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Servingcited by 199
- 2024Fast State Restoration in LLM Serving with HCachecited by 32
- 2026KV Packet: Recomputation-Free Context-Independent KV Caching for LLMscited by 10
- 2026The Residual Stream Is All You Need: On the Redundancy of the KV Cache in Transformer Inferencecited by 4
- 2025ILRe: Intermediate Layer Retrieval for Context Compression in Causal Language Modelscited by 3
- 2026SemPIC: Learning Semantic Position-Independent KV Cachescited by 2
- 2026CoMem: Reusing Transformer Depth across Queries with Persistent Intermediate Residualscited by 1
Built on by
Not cited yet.