mlsanityData to 7 Oct 2026

Spectral-LSH: Sub-Quadratic Prompt Compression via Krylov-Projected Locality-Sensitive Hashing

arXiv 2607.19368 ↗First posted 12 Jun 2026cs.AI cs.CLcited by 0

On the map: Efficient LLM inference and serving → KV cache optimization

Abstract (arXiv)

Long-prompt inference remains expensive because prefill attention scales quadratically with sequence length. We propose Spectral-LSH, a training-free prompt compression method that operates before the prompt enters the language model. Spectral-LSH approximates the dominant components of an implicit attention-kernel operator using a Krylov subspace method together with random features, avoiding explicit O(N2) attention-kernel materialization. It then applies SimHash in the resulting attention eigenspace to group similar tokens and aggregate them into macro-tokens with causal positional assignments. We evaluate Mistral-7B-Instruct-v0.3, Qwen2.5-7B-Instruct, and Qwen2.5-14B-Instruct on C4. Our experiments reveal a compression-ratio phase transition. Below ρ = 4 ×, local token redundancy is low enough that lightweight chunking typically provides the best latency--quality trade-off. Above ρ = 8 ×, the spectral path preserves quality that chunking loses. At ρ = 16 ×, Qwen2.5-7B (adaptive) reduces the PPL ratio from 353.409 to 196.963, while Qwen2.5-14B (adaptive) reduces it from 9.533 to 3.427. On a small long-context structured stress test containing JSON-like, code-like, and table-like inputs, local LSH also improves every metric over chunking at 8 ×. The adaptive backend captures both regimes by using the chunk path at low compression and spectral clustering at high compression, although chunking remains the fastest backend in total latency.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 22 of its 28 references that are in the map. First posted on arXiv 12 Jun 2026.

Builds on

22 of 28 references.

Closest ancestors · 3

Same direction, newest first

  1. 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
  2. 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMs3 Oct
  3. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models24 Jun

Other references · 19

  1. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  2. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  3. 2023Mistral 7Bcited by 3,065
  4. 2016Pointer Sentinel Mixture Modelscited by 2,992
  5. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  6. 2024Qwen2 Technical Reportcited by 2,076
  7. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  8. 2020Reformer: The Efficient Transformercited by 1,658
  9. 2020Rethinking Attention with Performerscited by 1,584
  10. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  11. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  12. 2022Token Merging: Your ViT But Fastercited by 995
7 more
  1. 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
  2. 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 443
  3. 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 411
  4. 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compressioncited by 343
  5. 2025SmolLM2: When Smol Goes Big -- Data-Centric Training of a Small Language Modelcited by 307
  6. 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 279
  7. 2026Causal Unlearning in Collaborative Optimization: Exact and Approximate Influence Reversal under Adversarial Contributionscited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024Eigen Attention: Attention in Low-Rank Space for KV Cache Compression
  2. 2025KQ-SVD: Compressing the KV Cache with Provable Guarantees on Attention Fidelity
  3. 2026Compressing Sequences in the Latent Embedding Space: K-Token Merging for Large Language Models
  4. 2025SALS: Sparse Attention in Latent Space for KV cache Compression
  5. 2024MagicPIG: LSH Sampling for Efficient LLM Generation
  6. 2025RocketKV: Accelerating Long-Context LLM Inference via Two-Stage KV Cache Compression
  7. 2025Efficient Prompt Compression with Evaluator Heads for Long-Context Transformer Inference
  8. 2026S4R: Selective Sampling, Subspaces, and Sparse Reconstruction for Compressed Long-Context KV Caching