LOCKS Unlocks LLM Long Context Efficiency

LOCKS revolutionizes long-context LLMs by approximating KV cache with spectral summaries, achieving near full-quality inference while drastically cutting latency and computation.

7 min read
Abstract representation of data flow and spectral analysis in LLM context
Conceptual diagram illustrating LOCKS' approach to spectral summarization for efficient KV cache attention.

Visual TL;DR. LLM Long Context Bottleneck due to KV Cache Full Reads. LLM Long Context Bottleneck solves LOCKS Framework. KV Cache Full Reads addressed by LOCKS Framework. LOCKS Framework uses Spectral Summaries. Spectral Summaries enables Reconstruct Logits. Reconstruct Logits leads to Attend Top-Ranked Pages. Attend Top-Ranked Pages achieves Near Full-Quality. Attend Top-Ranked Pages reduces Cut Latency/Computation. Near Full-Quality while Cut Latency/Computation.

  1. LLM Long Context Bottleneck: KV cache memory and computational demands bottleneck extensive context windows
  2. KV Cache Full Reads: full reads at every decoding step create a significant performance impediment
  3. LOCKS Framework: approximates KV cache with spectral summaries for efficient attention selection
  4. Spectral Summaries: each KV cache 'page' gets a summary, about one-tenth the full cache size
  5. Reconstruct Logits: summaries reconstruct within-page logits and estimate each page's attention mass
  6. Attend Top-Ranked Pages: system attends only to top-ranked pages, reducing keys and values read
  7. Near Full-Quality: maintains performance, staying within a small margin of full-quality inference
  8. Cut Latency/Computation: drastically cuts latency and computation for long-context LLMs
Visual TL;DR
Visual TL;DR, startuphub.ai LLM Long Context Bottleneck solves LOCKS Framework. LOCKS Framework uses Spectral Summaries. Attend Top-Ranked Pages achieves Near Full-Quality solves uses achieves LLM Long Context Bottleneck LOCKS Framework Spectral Summaries Attend Top-Ranked Pages Near Full-Quality From startuphub.ai · The publishers behind this format
Visual TL;DR, startuphub.ai LLM Long Context Bottleneck solves LOCKS Framework. LOCKS Framework uses Spectral Summaries. Attend Top-Ranked Pages achieves Near Full-Quality solves uses achieves LLM Long ContextBottleneck LOCKS Framework SpectralSummaries Attend Top-RankedPages Near Full-Quality From startuphub.ai · The publishers behind this format
Visual TL;DR, startuphub.ai LLM Long Context Bottleneck solves LOCKS Framework. LOCKS Framework uses Spectral Summaries. Attend Top-Ranked Pages achieves Near Full-Quality solves uses achieves LLM Long Context Bottleneck KV cache memory and computational demandsbottleneck extensive context windows LOCKS Framework approximates KV cache with spectralsummaries for efficient attentionselection Spectral Summaries each KV cache 'page' gets a summary, aboutone-tenth the full cache size Attend Top-Ranked Pages system attends only to top-ranked pages,reducing keys and values read Near Full-Quality maintains performance, staying within asmall margin of full-quality inference From startuphub.ai · The publishers behind this format
Visual TL;DR, startuphub.ai LLM Long Context Bottleneck solves LOCKS Framework. LOCKS Framework uses Spectral Summaries. Attend Top-Ranked Pages achieves Near Full-Quality solves uses achieves LLM Long ContextBottleneck KV cache memory andcomputationaldemands bottleneck… LOCKS Framework approximates KVcache with spectralsummaries for… SpectralSummaries each KV cache'page' gets asummary, about… Attend Top-RankedPages system attends onlyto top-rankedpages, reducing… Near Full-Quality maintainsperformance,staying within a… From startuphub.ai · The publishers behind this format
Visual TL;DR, startuphub.ai LLM Long Context Bottleneck due to KV Cache Full Reads. LLM Long Context Bottleneck solves LOCKS Framework. KV Cache Full Reads addressed by LOCKS Framework. LOCKS Framework uses Spectral Summaries. Spectral Summaries enables Reconstruct Logits. Reconstruct Logits leads to Attend Top-Ranked Pages. Attend Top-Ranked Pages achieves Near Full-Quality. Attend Top-Ranked Pages reduces Cut Latency/Computation. Near Full-Quality while Cut Latency/Computation due to solves addressed by uses enables leads to achieves reduces while LLM Long Context Bottleneck KV cache memory and computational demandsbottleneck extensive context windows KV Cache Full Reads full reads at every decoding step create asignificant performance impediment LOCKS Framework approximates KV cache with spectralsummaries for efficient attentionselection Spectral Summaries each KV cache 'page' gets a summary, aboutone-tenth the full cache size Reconstruct Logits summaries reconstruct within-page logitsand estimate each page's attention mass Attend Top-Ranked Pages system attends only to top-ranked pages,reducing keys and values read Near Full-Quality maintains performance, staying within asmall margin of full-quality inference Cut Latency/Computation drastically cuts latency and computationfor long-context LLMs From startuphub.ai · The publishers behind this format
Visual TL;DR, startuphub.ai LLM Long Context Bottleneck due to KV Cache Full Reads. LLM Long Context Bottleneck solves LOCKS Framework. KV Cache Full Reads addressed by LOCKS Framework. LOCKS Framework uses Spectral Summaries. Spectral Summaries enables Reconstruct Logits. Reconstruct Logits leads to Attend Top-Ranked Pages. Attend Top-Ranked Pages achieves Near Full-Quality. Attend Top-Ranked Pages reduces Cut Latency/Computation. Near Full-Quality while Cut Latency/Computation due to solves addressed by uses enables leads to achieves reduces while LLM Long ContextBottleneck KV cache memory andcomputationaldemands bottleneck… KV Cache FullReads full reads at everydecoding stepcreate a… LOCKS Framework approximates KVcache with spectralsummaries for… SpectralSummaries each KV cache'page' gets asummary, about… ReconstructLogits summariesreconstructwithin-page logits… Attend Top-RankedPages system attends onlyto top-rankedpages, reducing… Near Full-Quality maintainsperformance,staying within a… CutLatency/Computation drastically cutslatency andcomputation for… From startuphub.ai · The publishers behind this format

Serving large language models with extensive context windows has been fundamentally bottlenecked by the memory and computational demands of the Key-Value (KV) cache. This cache requires full reads at every decoding step, creating a significant performance impediment. The LOCKS framework, detailed on arXiv, introduces a paradigm shift by recognizing that attention keys, while globally high-rank, exhibit local low-rank properties.

Spectral Summaries for Efficient Attention Selection

LOCKS tackles this challenge by providing each KV cache 'page' with its own spectral summary. This summary, approximately one-tenth the size of the full cache, allows the system to reconstruct within-page logits and estimate each page's attention mass using a log-sum-exp approach. Crucially, this enables LOCKS to attend only to the top-ranked pages, drastically reducing the number of keys and values that need to be read without processing candidate keys. This approach maintains performance, staying within a point of full-cache quality on long-document QA benchmarks like LongBench-v1 and closely tracking an oracle on retrieval-dense tasks like RULER, even at the smallest computational budgets.

Near Full-Quality Inference at Extreme Context Lengths

The efficacy of the LOCKS KV cache optimization becomes particularly pronounced in demanding long-form reasoning tasks, where baseline selectors often fail. At a practical $2048$-token budget, LOCKS achieves aggregate quality comparable to a full KV cache with over $100$K$+$ context, while only attending to about $2%$ of the tokens. This translates to a halving of per-token decode latency (a $2.0 imes$ improvement at $1$M$ tokens) compared to dense attention mechanisms. The system is engineered as a drop-in plugin for unmodified vLLM, leveraging CUDA graphs for batched decoding and offering a seamless path to deployment.

© 2026 StartupHub.ai. All rights reserved. Do not enter, scrape, copy, reproduce, or republish this article in whole or in part. Use as input to AI training, fine-tuning, retrieval-augmented generation, or any machine-learning system is prohibited without written license. Substantially-similar derivative works will be pursued to the fullest extent of applicable copyright, database, and computer-misuse laws. See our terms.