LLM Context Compression: How LCLMs Beat KV Cache Limits

On June 8, 2026, a group of researchers from NYU, Columbia, Princeton, Maryland, Harvard, Lawrence Livermore National Laboratory, Modal Labs, and FAIR at Meta published a paper that revived an idea most production teams had quietly abandoned. The paper, titled End to End Context Compression at Scale, introduces Latent Context Language Models, and it makes a strong case that LLM context compression can finally work without wrecking accuracy. The headline result is hard to ignore. At a 16x compression ratio, their models produced a first token roughly 8.8 times faster than KV cache compression baselines on the RULER long context benchmark.
For the last two years, the default answer to long context cost has been KV cache compression. Teams prefilled the full prompt, built the key and value cache, then evicted or quantized entries to save memory. That approach helped, but it carried a structural flaw. You still had to process the entire context before you could shrink anything, so the most expensive step happened first every single time.
Latent Context Language Models, or LCLMs, attack the problem from the other end. They compress the raw input tokens into a much shorter sequence of latent embeddings before the decoder ever sees them. The decoder then reads those compact embeddings instead of the original tokens. This blog explains how the architecture works, how it differs from KV cache compression, what the benchmark numbers actually mean, and where enterprise teams should consider it first.
Why long context became the most expensive part of inference

Long context is no longer a research luxury. Document analysis, multi turn assistants, retrieval pipelines, and agent workflows all push prompts into the tens or hundreds of thousands of tokens. The cost of that growth does not land on model weights. It lands on the KV cache, which expands every time the context gets longer.
The KV cache stores the key and value vectors for every token already processed. This lets the model avoid recomputing attention over the full prefix at each decoding step. The mechanism is efficient per step, but its memory footprint scales linearly with sequence length. As a result, long context inference becomes a memory bound problem rather than a compute bound one.
The KV cache memory wall
The numbers make the wall concrete. For a Llama 3.1 70B model with a batch size of 128 and a sequence length of 1024, the KV cache alone reaches about 40GB. Push context into the hundreds of thousands of tokens and the cache can exceed the model weights themselves. By several measurements, the KV cache consumes up to 70 percent of total GPU memory during long context inference.
That memory pressure is not an abstract concern. It caps how many requests you can batch on a single GPU, which directly sets your throughput and your cost per request. When the cache crowds out batch capacity, you either add hardware or you watch latency climb. Both outcomes hit the inference budget that enterprise teams care about most.
Why KV cache compression hit a ceiling
KV cache compression tried to relieve this pressure, and it works to a point. Eviction methods drop entries judged less important, while quantization methods store the cache at lower precision. Both reduce memory after the fact, but neither removes the core bottleneck.
The deeper limitation is sequencing. Most KV cache methods still require the full context to be prefilled before any compression happens, so the heaviest operation runs at full size first. Query dependent methods make things harder still, because they produce caches tuned to one question that are difficult to reuse across turns. On top of that, methods that evict unevenly across heads and layers are awkward to integrate with engines such as vLLM and SGLang, which assume a shared sequence length across the cache.
Inside the LLM context compression architecture behind LCLMs

The core idea behind LCLMs is to move compression before the decoder, not after it. The system pairs a small encoder with a larger decoder and trains them together. The encoder reads the raw input and emits a short sequence of latent tokens, and the decoder consumes those latent tokens in place of the original context.
This is encoder decoder context compression in its purest form, and the design choices are what make it competitive. The published family uses a 0.6B parameter encoder paired with a 4B parameter decoder. The decoder is built on a Qwen3 4B Instruct base, which keeps the released models close to a model teams already recognize.
[Diagram: raw tokens flow into the 0.6B encoder, get pooled into latent tokens, pass through an adapter, then enter the 4B decoder as soft tokens]
Encoder, adapter, and the soft token bottleneck
An LCLM has three parts working in sequence. Understanding each one explains why the approach holds quality where earlier soft token methods failed.
The encoder reads contiguous blocks of input tokens and pools each block into a single latent token, shrinking the sequence at the source.
The adapter projects those latent vectors into the decoder embedding dimension so the decoder can read them as native inputs.
The decoder treats the latent tokens as soft tokens and generates output exactly as it would from ordinary text embeddings.
The pooling step is the heart of the method. Instead of keeping one vector per token, the encoder maps a block of several tokens into one continuous embedding. That embedding is not a word and not a discrete token. It is a learned summary that carries the meaning of the block forward in a much smaller form.
How compression ratios map to latent tokens
The compression ratio is simply how many input tokens collapse into one latent token. The released suite covers ratios of 1:4, 1:8, and 1:16. At 1:16, sixteen raw tokens become a single latent embedding, which is where the largest speed and memory gains appear.
Because the input sequence shrinks before the decoder prefill, higher compression directly reduces decoder side compute and memory. This is the structural difference from cache eviction. The decoder never has to process the full length, so the savings compound rather than arriving after the expensive step. That property is what makes serious long context inference optimization possible without exotic hardware.
LCLM vs KV cache compression: what actually changed
The cleanest way to understand LCLMs is to compare them directly against the incumbent. The contrast between LCLM vs KV cache compression is not about which one shrinks memory more. It is about when and how the shrinking happens, and whether the result survives in real serving stacks.
Prefill, prompt dependence, and engine compatibility
Three differences matter for production teams choosing between the two families.
KV cache methods compress after a full prefill, while LCLMs compress the token sequence before the decoder prefill begins.
Many KV cache methods produce query specific caches that resist reuse, while LCLM latents are task agnostic and reusable across turns.
KV cache eviction often breaks the shared sequence length assumption in vLLM and SGLang, while LCLM latents slot into standard decoding because they look like ordinary embeddings.
There is also a cost of preparation worth naming. Some advanced cache methods distill a fixed size cache per corpus, and that distillation is not cheap. One such method needs roughly 30 minutes on an eight GPU H100 node to build an in context quality cache for an 8B model. LCLM compression, by contrast, is a single parallelizable forward pass through the encoder.
This is where KriraAI spends real engineering time with enterprise clients. KriraAI builds and deploys production AI systems, and the team has learned that a method which looks elegant in a paper can still fail the moment it meets a serving engine. The LCLM design earns attention precisely because it respects how vLLM and SGLang actually work.
The training recipe that closed the gap
Encoder decoder context compression is not a new idea. Earlier soft token compressors existed, but they typically degraded the base model or only worked after heavy domain specific tuning. The contribution of this paper is showing how to train a general compressor that preserves the decoder capabilities you started with.
Continual pretraining and staged objectives
The authors did not bolt an encoder onto a frozen model and hope. They initialized both the encoder and decoder from pretrained models, then continually pretrained the pair end to end. Each model in the family saw over 350 billion tokens during this process, which is what gave the latents enough signal to stay faithful.
Before committing to that scale, the team ran a from scratch architecture search. They swept pooling operators, encoder attention masks, adapter designs, and encoder window sizes to find the configuration that minimized pretraining loss at high compression. Only then did they invest in the full training run. This is the kind of disciplined sequencing that separates a result that holds from one that crumbles under evaluation.
The reconstruction and instruction tuning data mattered as much as the token count. By teaching the encoder to produce latents the decoder can faithfully unpack, the recipe avoided the quality collapse that sank earlier soft token attempts. The lesson for practitioners is direct. Context compression is a training problem first and an inference trick second.
Benchmark performance and what the numbers mean
A new architecture lives or dies on its frontier, meaning the tradeoff curve between accuracy, latency, and memory. LCLMs are notable because they push that frontier outward rather than trading one axis for another. They compress faster while holding accuracy, especially at the aggressive ratios where older methods fell apart.
RULER, LongBench, and GSM8K results
The evaluations cover the benchmarks practitioners actually cite. On RULER and LongBench, the models deliver better accuracy against latency and accuracy against memory curves than KV cache compression baselines running the same decoder. The standout figure is the 8.8 times faster time to first token at high compression on RULER, achieved while keeping or improving quality.
The GSM8K result is quietly more important for general use. On these math word problems, the full prompt is compressed rather than only a set of retrieved documents. LCLMs outscored every other method tested at every compression ratio they evaluated. That matters because it shows the gains are not limited to retrieval style inputs where redundancy is easy to squeeze.
There is one detail worth holding onto when reading these curves. The KV cache baselines appear as vertical lines on the speed axis, because the prefill cost is the same regardless of how aggressively they evict afterward. LCLMs move left along that axis as compression rises, which is the visual signature of compressing before prefill rather than after.
What this means for builders and the economics of inference
The practical promise of LLM context compression is simple to state. If you can shrink the input before the decoder touches it, you reduce LLM inference cost on the most expensive workloads you run. Long context assistants, document heavy retrieval, and multi step agents are exactly the cases where the savings show up.
The economics follow from memory. Every gigabyte you free from the KV cache is a gigabyte you can spend on larger batches. Bigger batches mean higher throughput per GPU, and higher throughput per GPU is the lever that actually moves cost per request. A method that compresses before prefill turns that lever harder than one that compresses after.
Where context compression pays off first
Not every workload benefits equally, so sequencing adoption matters. The strongest early candidates share a profile.
Retrieval augmented generation pipelines that stuff many documents into a single prompt gain the most, since most of that context is reference material the decoder skims.
Long horizon agents that carry growing histories benefit because compressed context lets them hold more state per GPU.
High volume assistant products with steady long prompts see the cost savings compound across millions of calls.
This is the analysis KriraAI runs before recommending any inference change to a client. KriraAI delivers production AI systems for enterprises and stays close to the research frontier, but the team applies a new method only when it produces measurable value on a real workload. For a RAG heavy product, an encoder that skims reference text and expands only what matters is a natural fit worth piloting.
Limitations and open questions you should weigh
No honest analysis ends at the benchmark table. LCLMs are a meaningful step, but they ship with real constraints that a serious team must weigh before betting a roadmap on them. Naming these clearly is the difference between adoption and disappointment.
The first limit is integration effort. Teams folding LCLMs into an existing retrieval pipeline will need to retune that pipeline, because compressed latents change what the retriever and the prompt assembly should do. The second limit is the reasoning trace. The authors note they have not yet solved online compression of a reasoning trace as it is generated, so chains of thought are not a settled use case.
There is also a scope boundary on the released models themselves. The public family centers on a 0.6B encoder and a 4B decoder, which is a useful and reproducible scale but not the frontier model many enterprises serve in production. Whether the recipe transfers cleanly to much larger decoders is an open empirical question rather than a proven result. A careful team treats the released suite as evidence and a starting point, not as a drop in replacement for a flagship model.
Finally, aggressive compression is still compression. At 1:16 the method holds up remarkably well in the reported tests, but information density varies by domain. Code, tables, and dense technical text may tolerate less compression than narrative prose, and the right ratio is something to measure on your own data rather than assume.
Conclusion
Three takeaways deserve to travel with your team. First, on mechanism, LCLMs compress raw input tokens into short latent sequences before the decoder prefill, which is why the savings hit the most expensive stage instead of arriving too late. Second, on where it matters, the biggest wins land on retrieval heavy pipelines, long horizon agents, and high volume assistants where context is large and repetitive. Third, on action, treat the released 0.6B encoder and 4B decoder suite as strong evidence and a pilot starting point, then measure compression quality on your own data before committing.
This is exactly how KriraAI approaches the AI research frontier. KriraAI builds and delivers production AI systems for enterprises, tracks new architectures as they appear, and applies emerging techniques only when they are ready to produce measurable value rather than chasing novelty for its own sake. A breakthrough like encoder decoder context compression is interesting on its own, but its worth is decided on a real workload with real cost and latency targets. That is the bar KriraAI holds every new method against before it reaches a client system.
If long context cost is shaping your roadmap, it is worth exploring what LLM context compression could mean for your own inference budget, and KriraAI can help you test whether this architecture earns a place in your stack.
FAQs
LLM context compression is the practice of shrinking the input a language model must process so that long prompts cost less memory and time. With Latent Context Language Models, a small encoder reads blocks of raw tokens and pools each block into a single latent embedding, then an adapter projects those embeddings into the decoder so the model reads a much shorter sequence. Because the sequence is shortened before the decoder prefill, the savings apply to the most expensive stage rather than arriving afterward. This is what separates the approach from cache eviction methods that still prefill the full prompt first.
The difference is timing and reusability. KV cache compression processes the entire context to build the key and value cache, then evicts or quantizes entries to save memory, so the heaviest step always runs at full size. LCLMs instead compress the token sequence into latent embeddings before the decoder prefill, so higher compression directly cuts decoder compute and memory. LCLM latents are also task agnostic and reusable across turns, while many KV cache methods produce query specific caches that are hard to reuse. Crucially, LCLM latents behave like ordinary embeddings, so they fit standard inference engines such as vLLM without breaking shared sequence length assumptions.
In the reported results, the loss is small enough to be worth the speed and memory gains, and in some cases accuracy improves. On RULER and LongBench the LCLM family delivers better accuracy against latency and accuracy against memory curves than KV cache baselines running the same decoder. On GSM8K math problems, where the full prompt is compressed, the models outscored every other method tested at every compression ratio. The honest caveat is that information density varies, so dense code or tabular inputs may tolerate less compression than prose, and teams should measure quality on their own data before going aggressive.
The savings come from memory, which then frees batch capacity and raises throughput per GPU. At a 16x compression ratio the published models produced a first token about 8.8 times faster than KV cache compression baselines on RULER, and they reach this while holding quality. Because the KV cache can consume up to 70 percent of GPU memory during long context inference, reducing input length before prefill lets you serve more concurrent requests on the same hardware. The exact cost reduction depends on your workload mix, but long context and retrieval heavy products are where the gains are largest and most repeatable.
Yes, and engine compatibility is one of the strongest practical arguments for the approach. Because the encoder turns text into latent embeddings that look like ordinary inputs, the decoder runs standard decoding without special cache handling. The released code ships a two stage path for vLLM, where the encoder first writes latent embeddings to a file and the decoder then reads those embeddings and generates output. This avoids the integration friction that keeps many KV cache eviction methods out of production engines, since those methods often violate the shared sequence length assumptions that vLLM and SGLang rely on.
Ridham Chovatiya is the COO at KriraAI, driving operational excellence and scalable AI solutions. He specialises in building high-performance teams and delivering impactful, customer-centric technology strategies.