Explore the research collection
5 entries · Follow this search
- Paper
The Surprising Effectiveness of Shared Memory in Looped Transformers
Looped Transformers add compute without parameters by re-applying the same layers, but each recursion writes its own KV cache, so memory grows with compute. This paper pretrains looped models to share memory instead: only the first recursion writes a cache; later recursions read it while keeping a short window of their own. Sharing memory does not cost quality — it improves it. At 150M-1B parameters, the Looped Prediction Transformer (LPT) and its hybrid variant set a new quality-memory frontier for looped models: with five recursions, the hybrid lowers FineWeb-Edu validation perplexity by 1.12-1.82 vs a same-size standard Transformer while using 76-79% less context memory. Analysis: shared and local memory develop different representations, later recursions attend mostly to the shared memory, which also acts as a gradient highway to the first recursion.
- Paper
Still: Amortized KV Cache Compaction in a Single Forward Pass
Still is a per-layer Perceiver (~50M / ~1% of Qwen3-4B at t=128) that cross-attends the full KV cache in a position-free RoPE frame and writes compact (C_k, C_v) in one forward, leaving base weights frozen. Occupies the speed–quality frontier at 8x–200x compression and 8k–128k context vs H2O/SnapKV/StreamingLLM/Attention Matching/KV-Distill. Matched-training RULER: +8–22 points vs KV-Distill in 16/18 cells. HELMET multi_lexsum recovers 74–95% of full-context gain at 8k–64k. Iterative chunked compaction at fixed ratio 1/c is possible because compaction is a forward pass; 8k-trained compactors collapse at 128k. No official code repo on the abs page. Project https://www.baseten.co/research/still-amortized-kv-cache-compaction-in-a-single-forward-pass/.
- Thread
Scaling KV Cache Compression to Frontier Models (X thread by @RampLabs)
An X thread from @RampLabs titled 'Scaling KV Cache Compression to Frontier Models' (per the Discord link card), shared without additional caption. Claims relate to KV-cache compression methods scaled to frontier-scale models.
- Paper
The State-Prediction Separation Hypothesis
SPS inserts a dummy prediction token after every input so the input stream owns the persistent KV cache and the prediction stream emits the next token (plus a w=64 ephemeral prediction window). Pretraining 53M-1.678B on FineWeb-Edu: at 1.6B, matches a standard Transformer validation loss with 2.6x fewer tokens (pre-decay) and gains ~2-3 pp average zero-shot accuracy, with persistent KV ~1.01x Standard and decode throughput within 6-10%. 2x Memory and Delayed State ablations show extra compute/memory is not enough; gradient analysis routes future-loss onto the input stream. Code https://github.com/lil-lab/sps.
- Paper
Cross-Model KV Cache Transfer in LLM Families: A Closed-Form Linear Mapping for Prefill Reuse
Shows within-family matched-KV pairs (shared KV head count and head dim) have substantial linear structure: on Qwen3 14B->32B one source layer explains 56%/32% of target key/value variance, 79%/65% with multiple layers. A closed-form per-head ridge mapper with top-k cross-layer source selection and RoPE-stripped content-space keys retains 73-98% of standalone-prefill accuracy on four of six pairs (Qwen3, Llama 3.1, Ministral 3) and is 2.7-25x faster than re-prefill; two Ministral pairs collapse and a nonlinear MLP recovers up to +37 pp HellaSwag. Attention-output cosine predicts retention better than reconstruction R^2.