Papers · 2026 · Reading: 26 min, plus 3 in closed details.
Paper · arXiv preprint, 2026 · arXiv 2606.09659

End-to-End Context Compression at Scale (Latent Context Language Models, LCLM)

Ang Li, Sean McLeish, Haozhe Chen (equal contribution), Nimit Kalra, Zaiqian Chen, Artem Gazizov, Venkata Anoop Suhas Kumar Morisetty, Bhavya Kailkhura, Harshitha Menon, Zhuang Liu, Brian R. Bartoldson, Tom Goldstein, Sanae Lotfi, Micah Goldblum, Pavel Izmailov
NYU, Modal Labs, University of Maryland, Princeton, Columbia, Harvard, Lawrence Livermore National Laboratory, FAIR at Meta (advisory only) · 8 June 2026 (arXiv v1, the only version as of 3 October 2026)

In one line: Revives encoder-decoder soft-token compression by arguing its weakness was training scale rather than architecture: a 0.6B encoder (causal, window 1,024, mean pooling, MLP adapter, chosen in a from-scratch search of single runs with loss gaps of 0.002 to 0.022) plus a 4B decoder, trained end to end on 350B tokens at 4x/8x/16x, reaches its first token 4.7 to 8.8x sooner than FastKVzip at the same ratio (a baseline itself slower than not compressing; against no compression the gain is 1.45x at 4K and 4.5x at 64K) and cuts peak memory at long context, while staying within about 2.6 RULER points of uncompressed at 4x; the slower KV methods remain more accurate on RULER at 4x and 8x. The standard KV layout lets the decoder run in standard engines (the released vLLM path runs encoder and decoder as separate processes), and an EXPAND agent recovers 17 to 20 points on RULER needle tasks at 16x (a codebase is illustrated, not evaluated).

8.8x faster TTFT
LCLM 4x against FastKVzip 4x, RULER at 4K
but 2.4 points less accurate (91.76 against 94.17) · Figure 1
26 GB
peak memory of the 16x model from 128K to 512K tokens
every KV method stops at 256K; uncompressed needs 119 GB there · Figure 4
91.76 / 75.06 RULER 4K
LCLM at 4x / 16x, against 94.41 uncompressed
GSM8K: 91.05 / 81.05 against 93.25 · Table 6

How far to trust it: Believe the systems result: shrinking the sequence before the decoder sees it cuts time and memory, by a lot at long context, and the released checkpoints let anyone check. Treat the quality claims more carefully: at 4x and 8x the slower KV methods are still more accurate on RULER, the 8.8x headline is measured against a baseline that is itself six times slower than not compressing at all, the 16x points in Figures 1 and 5 sit 1.5 to 2.8 points above the paper's own Table 6, and several architecture choices rest on single-run loss gaps of 0.003 to 0.02 that the downstream tables do not always confirm. The evidence, judged.

The idea in one sentence: shrink a long prompt before the decoder reads it: a small encoder turns every N tokens into one latent token, so the 4B decoder prefills and caches T/N positions instead of T, while KV cache compression evicts entries only after paying for the full prefill; trained end to end on 350B tokens, it is the only method in the paper faster than not compressing, at a cost of about 2.6 RULER points at 4x.

KV compression pays for the whole prefill first; the LCLM never does

  1. One prompt, three pipelines. A 65,536-token (64K) prompt as 16 blocks of 4,096 tokens (four encoder windows each). Back row: no compression; middle row: KV cache compression with FastKVzip at 4x, the baseline behind the paper's "8.8x faster" headline; front row: the LCLM at 4x. Every row is to scale in positions.
  2. No compression. The 4B decoder (36 layers) prefills all 65,536 positions and keeps a KV cache of 65,536 positions: 9.66 GB in bf16 at 147,456 bytes per position. First token after 4.47 s; peak memory 35.4 GB.
  3. KV cache compression: prefill first, then evict. The same full prefill and the same 9.66 GB cache; then every entry is scored and three in four are evicted. Different heads and layers keep different positions (orange; which ones is illustrative), so no stretch of the sequence can be freed: evicted entries are masked but still allocated. Scoring adds time: first token after 5.19 s, slower than not compressing; peak memory 36.1 GB.
  4. LCLM: encode in windows, pool every 4. The 0.6B encoder reads the prompt in windows of 1,024 tokens (64 windows here, all in one batched pass) and mean-pools every 4 hidden states into one latent token: 16,384 latents, each block a quarter of its length.
  5. LCLM: the decoder reads the latents. The adapter maps each latent from 1,024 to 2,560 dimensions; the decoder prefills 16,384 positions, a quarter of the work, and keeps a cache of 2.42 GB in the standard layout a paged engine can use. First token after 1.00 s; peak memory 17.4 GB.
  6. Side by side. Time to first token (dark bars) and peak memory (pale bars), back row to front: 4.47 s and 35.4 GB, 5.19 s and 36.1 GB, 1.00 s and 17.4 GB. The price is accuracy: at 4x on RULER 4K the LCLM scores 91.76 against 94.17 for FastKVzip and 94.41 uncompressed (Table 6).

Times and peak memory: the paper's Figure 4, read from its vector paths (one H200, one sample, mean of 30 runs); peak memory includes both models' weights, 9.24 GB. Cache sizes are computed from the released config. Any length and ratio: the Simulate a long prompt tab.

You need: how a KV cache grows with context and what eviction does (Long context), and why a paged engine cannot always reclaim what eviction frees (Batching, KV cache and scheduling). New terms: latent token (one continuous embedding standing for a block of N tokens); compression ratio N (tokens per latent: 4, 8 or 16); encoder window W (how many tokens the encoder reads in one pass, 1,024 here); adapter (the MLP that maps encoder width to decoder width); TTFT (time to first token); EXPAND (the agent's tool that swaps a compressed chunk back for its text); systems-realisable (a cache saving an engine can actually free).

Problem

§1, §2

Long-context inference is bottlenecked by memory, because the KV cache grows with context length (§1; the sizing in general is on Long context). For the decoder used throughout this paper, Qwen3-4B-Instruct-2507 (36 layers, 8 key-value heads of 128 dimensions), every token of context costs of keys and values in bf16, so a 256K-token prompt needs of cache before the model writes a word (derived from the released decoder config: 2 × 36 × 8 × 128 × 2 bytes).

The established fix is KV cache compression: prefill normally, then evict entries by some heuristic (eviction policies compared on Long context; this paper's baselines are SnapKV, Expected Attention, KVzip and Attention Matching, §2, Appendix B). It has four practical problems the paper is blunt about:

  • The expensive part still happens. Most methods need the full context to fit in the window and to be prefilled first; some need prefill passes two to three times longer than the input (KVzip reconstructs the context to score it; §2).
  • Query-dependent caches do not survive a second turn. SnapKV in its query-aware form keeps what one question attended to, so the cache is tuned to that question.
  • Non-uniform eviction cannot shrink the sequence. Methods that evict different entries in different heads and layers (KVzip) cannot cut the sequence-length dimension, so they mask evicted positions instead and forfeit the memory and throughput benefit in a paged-attention engine (what a paged engine can reclaim is on Batching, KV cache and scheduling; the layout is the PagedAttention paper).
  • Engines do not run them. They are largely unsupported in vLLM and SGLang.

The paper adds a distinction worth keeping: algorithmic or theoretical cache reduction (entries masked or subsampled from a full cache, non-uniform per head) is not systems-realisable cache reduction, which needs kernels that "have not been released or even implemented" (§6.1).

The alternative is soft-token compression: an encoder turns raw tokens into a much shorter sequence of continuous embeddings, which the decoder reads in place of the context. In principle this is better shaped: compression is parallelisable, it works in standard inference engines, and it can extend the decoder past its native context length. In practice the existing methods (gist tokens, ICAE, AutoCompressor, xRAG, REFRAG and others) either degraded the base model noticeably or only worked after task-specific finetuning, so they lost to KV cache compression on the accuracy-efficiency frontier; none was tested on information-dense long-context suites such as RULER (§1, §2).

The question: is that loss intrinsic to the encoder-decoder shape, or did nobody train one properly? Can a general, task-agnostic compressor keep a strong model's abilities?

At a 4K-token prompt, which reaches the first output token sooner?

Architecture

§3, Eq. 1

An LCLM is three trained parts in a row (§3, Figure 3 left):

  1. An encoder reads the input in windows of W tokens: I = ⌈T/W⌉ windows, each processed in its own forward pass (Eq. 1).
  2. A pooling operator turns each contiguous block of N tokens into one latent token: a window of |wi| tokens yields Mi = ⌈|wi|/N⌉ latents. N is the compression ratio.
  3. An adapter projects each latent from the encoder's width to the decoder's, and the decoder reads the projected latents s1:M in place of the original tokens.

The encoder window W is a separate knob from the ratio N. With W = N, as in prior work (REFRAG, the work of Liao et al.), each forward pass sees only the block it compresses. With W = T the encoder reads the whole input at once. The paper settles on W = 1,024 at N = 16: each latent summarises 16 tokens that were read in the context of up to 1,024. The three pooling operators of the search (Appendix D.1):

  • Token pooling (EOS or CLS): append one learned pooling token per latent to the window and keep its final hidden state (Eq. 2 to 3). Most prior work does this.
  • Mean pooling: average the hidden states over each block of N (Eq. 4 to 5). Common in vision and multimodal models.
  • Concatenation: stack the N hidden states into one vector of width N·denc, and widen the adapter's first layer to match (Eq. 6), like Qwen's patch merger.

The adapter is a LLaVA-style two-layer MLP applied to each latent on its own; an attention-based alternative was also searched.

The adapter's equation and size (App. D.2)

The adapter is the LLaVA-style projector: RMSNorm, then a two-layer MLP with GELU, applied to each latent on its own, sm = W2 GELU(W1 RMSNorm(zm) + b1) + b2 (Eq. 7 to 8). In the released 16x checkpoint it maps 1,024 dimensions to 2,560 through a hidden width of 2,560: parameters (shapes from the adapter weights' header). The attention-based alternative adds one self-attention layer over the latents before the MLP (Eq. 9 to 11).

Try: click a latent (the squares below the strip) to see which input tokens it can depend on. Then switch W from N to the full window, and the mask from causal to bidirectional.
Ratio N
Window W
Encoder mask
Pooling

Drawn with 64 input tokens so every token is visible. The paper's default is N = 16 and W = 1,024, which is 64 blocks per window: much wider, relative to the block, than the "64 (all)" setting here. Which tokens can influence a latent follows from the mask and the window; how much they do is learned.

Training: three kinds of data, four stages

§4, Table 1, App. C

The goal is to keep a strong model's abilities, not to win one task, so the data is broad (§4). Three kinds are mixed (§4.1, Figure 2):

  • Continual pre-training with interleaved compression. Segments alternate between compressed (between <|memory_start|> and <|memory_end|>) and normal tokens, and the next-token loss is taken only on the uncompressed tokens. Prior work compressed the first half and trained on the second; interleaving teaches the model to condition on latents at many positions, not only at the start.
  • Supervised fine-tuning on reasoning, long-context instruction following and multi-turn chat, with compressed prompts and documents.
  • Auxiliary reconstruction: compress a document and ask the decoder to repeat it verbatim. It appears in both of the above.

Why mix them is the instructive part (App. C.1). Reconstruction alone gives a model that reconstructs with negligible loss and "cannot perform any other tasks, even when the LLM decoder is kept frozen": a general form of prefix tuning. Next-token prediction alone gives latents that support generation but lose exact strings. Neither failure is shown with numbers; both are "early experiments".

The data sources and the exact compression format (App. C)

Pre-training mixture: Common Crawl text, code, science and reasoning, long-context and instruction-style data, mostly NVIDIA's Nemotron sets plus about 500K long documents from OLMo-3's longmino (App. C.1). SFT: outdated completions relabelled with Qwen3-30B-A3B-Instruct-2507 and Qwen3-235B-A22B-Instruct-2507 (Apache-2.0 checkpoints), plus three synthetic long-context corpora: repository summarisation, document summarisation and repository-level code generation (App. C.3). Reconstruction: code, text, long documents, maths and LaTeX, with a bank of 100 prompt templates per source to stop the model overfitting one phrasing (App. C.2).

Raw documents get a fixed alternation that starts with a wrapped (compressed) segment and ends with an unwrapped one. Documents over 16,384 tokens keep 8,192 trainable tokens; shorter ones keep half. Segment pairs: 1 under 2,048 tokens, 1 to 2 up to 4,096, 2 to 4 up to 8,192, 4 to 6 up to 16,384, 4 to 8 above. The first wrapped segment holds 30% to 40% of the wrapped tokens and the last unwrapped segment 40% to 50% of the trainable ones.

Conversations are wrapped per message: with probability one half the whole message is enclosed; otherwise 1 to 3 wrapped regions are placed inside it (1 region for 32 to 200 tokens, 1 to 2 for 200 to 600, 1 to 3 above; messages under 32 tokens are always fully wrapped), covering 80% to 100% of the message with a 5% unwrapped gap where feasible, falling back to full wrapping below 70% coverage (App. C.4). Training packs several examples per sequence with a block-diagonal mask so they cannot see each other (App. E.4).

Staged training (§4.2, Table 1): Stage 0 trains the adapter only; Stage 1 unfreezes the encoder; Stage 2 unfreezes the decoder at a small learning rate (1e-5 against 6e-5); Stage 3 is SFT with the decoder at 3e-5. Training everything end to end from the start "underperforms": the decoder is not used to the encoder's output, both sides take large gradients, and the model degrades. It is the same align-then-finetune shape as vision-language model training (LLaVA, Cambrian). Variants that freeze the decoder or use LoRA, which is what most prior work does, "substantially underperform" (early experiments, no numbers).

The models (§5): a Qwen3-Embedding-0.6B encoder and a Qwen3-4B-Instruct-2507 decoder, trained at 4x, 8x and 16x. Training ran on 32 nodes of 4 AMD MI300A GPUs each.

Where "350B tokens" comes from, per stage (Table 1)

"Over 350B tokens each" is a sum over both sides: in the 16x run the encoder reads B tokens and the decoder B (its count includes latent positions), B together (Table 1; the paper gives the token counts for the 16x run only). The from-scratch search ran on 16 nodes of the same kind (App. F).

Results

§6, Figures 1, 4, 5, Table 6

Evaluation is mostly long-context: RULER (synthetic stress tests, 4K to 16K; the benchmark itself is on Long-context and multimodal benchmarks), LongBench (16 English and 5 Chinese subtasks) and LongHealth (clinical multiple choice over five concatenated patient records, about 64K tokens, no chain of thought). Instructions stay as normal tokens; only the long context is compressed (§6, Table 5). GSM8K is the odd one out: the whole prompt is compressed. Baselines are SnapKV (plain, query-aware and self-study), Expected Attention, KVzip, FastKVzip and Attention Matching (fast and slow), all on the same Qwen3-4B decoder (§6.1).

A new frontier on time to first token against accuracy. In Figures 1 and 5 KV methods appear as vertical lines: they prefill the whole context whatever the target ratio, and eviction is cheap next to prefill, so their time barely moves; a higher LCLM ratio removes decoder work directly (§6.2). The printed speed-ups, recomputed from the decoded points, all compare LCLM 4x with FastKVzip 4x:

PanelPrintedRecomputedAccuracy, LCLM against FastKVzipLCLM 4x against no compression

Defaults reproduce every printed speed-up, independently (TTFT ratio of two decoded points, method in the Tables tab). The last column is the comparison the figure leaves out: the uncompressed decoder's own TTFT at the same length, from Figure 4.

Memory scales differently. From 4K to 1M tokens (Figure 4), the 16x model's peak memory stays flat at about 26 GB from 128K to 512K, because the encoder's batched activations (128 windows of 1,024 tokens, 131,072 tokens per pass) dominate until the decoder's prefill over the latents overtakes them; the 8x model is flat from 128K to 256K. Every KV baseline runs out of memory at 512K and 1M on the 141 GB H200, except that Attention Matching fails at 512K from numerical instability in its linear solver. At 256K the uncompressed decoder needs GB against GB for LCLM 4x and GB for 16x. At 4K everything costs about the same, GB, which is just the two models' weights in bf16 (computed from the configs: GB).

Every KV method is slower than doing nothing; the LCLM's memory goes flat. The paper's Figure 4, rebuilt from its vector paths, beside this text. In time, every KV method sits above the uncompressed line (they add scoring to a full prefill); switch to memory for the 16x model's flat stretch, and to the computed KV cache for what the decoder alone would hold.

Single sample, mean of 30 runs, one H200. The uncompressed decoder's line stops at 256K, which is also its maximum position (262,144 in the config).

Quality against the uncompressed decoder (Table 6, beside this text). At 4x the model is close to uncompressed and even above it on LongBench English (46.04 against 45.21). At 16x RULER 4K falls to 75.06 while GSM8K holds at 81.05, which is the notable one: 16x discards 93.75% of the positions of a short, dense maths problem where nearly every token matters (App. G.1). Most KV baselines collapse on GSM8K at 16x (none above 31.39), and SnapKV scores 0.08 at every ratio, which is one problem of 1,319; at 4x, though, KVzip reaches 89.08 against the LCLM's 91.05. LongBench Chinese drops furthest: 40.92 at 4x against 46.63 uncompressed, where KVzip keeps 47.45.

Quality against the uncompressed decoder (Table 6)

Scaling cuts against "more understanding effort helps". Scaling the decoder from 4B to 8B lowered the end-of-stage-2 loss from 0.6884 to 0.6591; scaling the encoder from 0.6B to 4B only to 0.6860 (Figure 11). Downstream the picture is mixed (Table 4): the 4B encoder wins LongBench, LongHealth and GSM8K, the 0.6B encoder wins every RULER length, and the 8B decoder wins nothing but LongBench (37.80 against 37.33). Lower ratios give lower loss: 0.6643 at 4x, 0.6789 at 8x, 0.6884 at 16x.

Why the bigger models did not pay off downstream, in the authors' words

The authors' reading: a bigger encoder buys better semantic aggregation and worse exact retrieval; the 8B decoder is a hybrid-thinking model that the 4B-tuned data may not suit, and the 4B instruct model already beats it uncompressed on several tasks (App. E.3).

The agent: skim, then EXPAND

§7, Figure 6, Table 33

Agents usually find information by lexical or semantic search, which fails when the right keyword is not obvious before reading: a bug reported in the "dashboard login flow" may live in an indirectly called entitlement module that never mentions "dashboard" or "login" (§7). An LCLM makes it cheap to put everything in context at once. The harness: cut the input into 512-token chunks, compress each, give each an integer id, and give the model one tool, EXPAND(i), which returns chunk i's original text; at each turn the model can expand or answer.

The test is RULER's needle-in-a-haystack tasks at 16x (Table 33): the agent lifts the 8-task average from at 4K, from at 8K and from at 16K, with the biggest gains on the hardest needles (ns3 and nm3, about +40 points each). For scale, the uncompressed decoder averages on the same eight tasks at 4K (Table 7). The codebase in Figure 6 is the motivating illustration; no code task is evaluated.

Without EXPAND, the 16x model answers RULER's eight needle tasks at 4K from latents alone. What share of the uncompressed decoder's accuracy does it keep?
The paper's Figure 6: on the left an agent's context holds file names and numbered compressed blocks; it calls EXPAND(sft_rollout.py, 3) and the block's original code is inserted uncompressed before it answers. On the right, bars of RULER needle accuracy at 4K, 8K and 16K for the 16x model without and with the agent.
Notice the context on the left: file names stay as text, contents are numbered latent blocks, and one EXPAND brings back exactly one block. The bar chart's axis starts at 60, which makes the gap look larger than the +17 to +20 points it is. Figure 6 of Li, McLeish, Chen et al. (arXiv 2606.09659), CC BY 4.0.

Why it matters (beyond the paper)

  • It closes a gap that had made the whole soft-token line look like a dead end. The prior verdict was that encoder-decoder compressors were the right shape but lost on quality (the map of that line is the prompt-compression survey: gist tokens, ICAE, AutoCompressor, 500xCompressor, xRAG). The paper's claim is that this was a training-scale artefact rather than an architectural limit, and its evidence is that fixing the recipe and spending 350B tokens moves the time-accuracy frontier past KV cache compression.
  • It is the strongest published argument for a small encoder feeding a large decoder. Most of the compression literature freezes the decoder or trains an adapter only; this paper reports both underperform full training. For an asymmetric reader-writer system this is the recipe with the most evidence behind it, though that particular comparison is not shown in numbers.
  • The systems argument is the underrated one. Soft-token compression keeps the standard KV cache layout, so it composes with vLLM, SGLang and paged attention, while much of the KV compression literature reports theoretical cache reduction that no released kernel realises. That distinction, algorithmic against systems-realisable compression, is worth carrying into any evaluation of this area. It also composes with compression inside attention, such as MLA (DeepSeek-V3), one layer down.
  • The causal-encoder result is a live disagreement. It sits against the T5Gemma line, where making the encoder bidirectional is worth several points. The two encoders do different jobs (compressing into latents against building a representation for cross-attention), but nobody has resolved the tension, and it is a good thing to be suspicious about.
  • Open directions the authors name (§8): compress at several granularities and allocate capacity by information density or perplexity, so detail is kept where it exists without an explicit expand tool; and compress the model's own generated state (long chains of thought, tool observations, accumulated history), which is what actually dominates the context budget of long-horizon agents. They call LCLMs naturally compatible with Recursive Language Models.

Connections

  • Encoder-Decoder Gemma and T5Gemma 2: the other route to spending more parameters on reading than writing, restructuring the model rather than compressing the input; the two disagree on whether the encoder should be causal.
  • Trained Persistent Memory: the same instinct applied to memory rather than input context, putting state in continuous latents so reads and writes are differentiable.
  • PagedAttention (vLLM): the KV cache layout this paper's baselines are constrained by, and the reason systems-realisability is a real distinction.
  • DeepSeek-V3: MLA compresses the KV cache inside attention, the same goal one layer down, which composes with this rather than competing (animated on the DeepSeek page).
  • Prime Agent: the recursive-language-model direction the authors name as naturally compatible, where a compressed working memory is the substrate.
  • Mamba: the other way to avoid a growing cache, a fixed-size recurrent state, with the same exact-recall cost that shows up here at high compression.
  • Topics: inference-and-serving (KV cache, TTFT, memory), rag-and-retrieval (context compression for RAG, REFRAG), agentic-harnesses (skim-then-expand as a harness pattern).

How much of this to believe

What holds up.

  • The systems result. The LCLM is the only method in Figure 4 faster than not compressing, at every length, and its memory flattens where every KV method stops (each time a mean of 30 runs). Checkpoints and code are public, so this is checkable.
  • The big quality gaps are beyond noise. Score granularity gives the sample sizes: GSM8K 1,319 problems (81.05 is 1,069 of them; standard error about points), LongHealth 400 questions (about ), RULER 500 per task over 13 tasks. (Standard errors as √(p(1 − p)/n), explained on Evaluation statistics.) So the 4x model's 2.6-point RULER and 2.2-point GSM8K deficits are real, and so is the 16x drop. Causal beats bidirectional at scale on all seven columns (+2.3 to +7.8; Table 30).
  • Fair in places. One decoder, one harness (Hugging Face Transformers) and one GPU for all; baselines from KVPress or official code. The authors flag their own window confound (Table 31 caption) and the 8B decoder's data mismatch, which counts in their favour.

The weaknesses, concretely.

  1. The headline speed-up has a slow yardstick. "8.8x faster" is LCLM 4x against FastKVzip 4x, which at 4K takes s to its first token against s for the uncompressed decoder. Against not compressing, LCLM 4x is x faster at 4K and x at 64K, while losing accuracy. And on RULER 4K the LCLM is 2.4 points below the FastKVzip point it is compared with (91.76 against 94.17; Table 6), so "at equal accuracy" is loose.
  2. On accuracy alone, KV methods still win much of the table. At 4x and 8x KVzip beats the LCLM on RULER at all three lengths (94.43 against 91.76 at 4K, 4x); at 16x Attention Matching wins LongBench English and SnapKV-QA LongBench Chinese and LongHealth. The LCLM wins every ratio only on GSM8K. It is a time-accuracy frontier, not "more accurate".
  3. The figures and the appendix disagree for the 16x model. Decoded from the vector paths, the 16x LCLM points of Figures 1 and 5 sit 2.25, 2.84 and 2.26 points above Table 6 on RULER 4K, 8K and 16K and 1.5 above on LongHealth, while every 4x and 8x point matches within 0.02: a different run from Table 6's (no row of Table 16 matches either). Table 33's no-agent baseline (76.89 on the eight needle tasks at 4K) also differs from Table 7's 16x row (), and one Attention Matching point at RULER 8K differs by 3.9.
  4. The architecture search rests on single runs and small gaps (one seed per variant, a 100-step running average, gaps of 0.002 to 0.022; Figure 3). Re-tested at scale, two claims do not survive: the attention adapter has the lower loss (0.6897 against 0.6912, Figure 9d, whose caption says "the same trends hold at scale") and is 6.7 to 9.9 points better on RULER (Table 26); and mean against concat at 16x is a 0.0005 loss gap while concat is 8.8 points better on LongHealth (about 2.8 standard errors). "Mean beats token pooling" holds only with a wide window. The window ablation at scale pits a bidirectional W = 1,024 run against causal ones, and W = 1,024 beats 256 on only 3 of 7 columns; only "W = N is much worse" is clear.
  5. No accuracy beyond about 64K tokens. Time and memory reach 1M; quality stops at 64K, so "extends the decoder far beyond its native context length" is shown for cost, not quality.
  6. No seeds, no error bars anywhere; one training run per configuration, which at 350B tokens is understandable.
Four narrower weaknesses: decoder scaling, recipe claims without numbers, the GSM8K setup, the agent
  • The decoder-scaling loss is not like for like. A bigger decoder has a lower loss on uncompressed tokens even with no compression, and the paper does not report each decoder's uncompressed loss, so 0.6591 against 0.6860 does not isolate the effect of compression. The 8B decoder is also a different kind of model (hybrid thinking), and those runs used 256 ranks, fewer steps and truncated curves (Figure 11).
    A column that changes meaning between tables

    Unsaid in the paper: Table 4's LongBench column is the en16 and cn5 average weighted by subtask count, (16 × 39.08 + 5 × 31.74) / 21 = 37.33, unlike Table 6's en16 column.

  • Several recipe claims have no numbers. Staged training beating end-to-end, frozen-decoder and LoRA variants "substantially" underperforming, reconstruction-only latents collapsing and next-token-only latents losing exact strings are all "early experiments" without a table.
  • GSM8K measures a regime the baselines were not built for. The whole prompt, question included, is compressed; SnapKV's identical 0.08 at every ratio (one problem) says the setup breaks eviction methods rather than measures them. The LCLM was fine-tuned on compressed prompts (Table 3).
  • The agent is a first attempt. Needle tasks only, 4K to 16K, no count of turns, expansions or time, and no retrieval or keyword-search harness to compare with.

Verdict. Believe the systems claim and the shape of the trade-off: an encoder that shrinks the context before the decoder buys large savings in time and memory at long context, keeps quality close to uncompressed at 4x, and works in standard engines. Discount the size of the win over KV compression (it is measured against baselines slower than doing nothing), keep in mind that the slower KV methods are still more accurate at 4x and 8x, and treat the architecture-search rankings beyond "W = N is bad" and "causal beats bidirectional" as provisional.

What it takes to use this

  • Code and weights. github.com/LeonLixyz/LCLM has training (one YAML drives the four stages, adapter warm-up to SFT, under DeepSpeed or FSDP), Hugging Face inference, a two-stage vLLM path and the EXPAND agent; the repository carries no licence (checked 3 October 2026), so ask before building on the code. Three checkpoints are public, 0.6b-4b-LCLM-4x, 8x and 16x, Apache-2.0; the 4B-encoder and 8B-decoder variants are not. Text to compress goes between <|memory_start|> and <|memory_end|>.
  • Serving. The checkpoints need the LCLM package; neither transformers.AutoModel nor vllm.LLM loads them alone. The vLLM path runs the encoder and decoder in separate processes that hand off a .pt file of embeddings, because vLLM takes all GPU memory at start-up and running both in one process runs out of memory (model card). So "works in vLLM" means the decoder half today.
  • Hardware. Inference: about 9.2 GB of bf16 weights for both models; the 16x model reaches 1M tokens in about 37 GB on one GPU, 4x needs about 121 GB there (Figure 4). Training the recipe: about 350B encoder plus decoder tokens per ratio on 128 MI300A GPUs, with data mostly from NVIDIA's Nemotron sets (NVIDIA's own licence) and OLMo's longmino and Dolci (ODC-BY).
  • Which setups worked. 0.6B encoder with the 4B instruct decoder; 4x is close to uncompressed, 16x is for skimming plus EXPAND. The 4B encoder helps aggregation but not retrieval; the 8B hybrid-thinking decoder did not pay off downstream. The compressor is tied to its decoder: a new decoder means retraining.
  • When it pays. Long inputs (tens of thousands of tokens and up), memory-bound serving, inputs past the decoder's window, and agents that need a whole corpus in view. When it buys little: short prompts (at 4K the time saving over uncompressed is 1.45x and memory is the same), exact-string retrieval at high ratios without an expand step, and Chinese text, which loses the most.