Vol.01 · No.10 Daily Dispatch July 9, 2026

Latest AI News

AI · PapersDaily CurationOpen Access
AI NewsResearch
4 min read

Long-context memory shrinks 8.3× without retraining, keeping quality at 64K

A new method compresses the key–value cache in long-context models while preserving accuracy and reaching 72.8 tokens/s at 64K. Also in focus: single-layer reinforcement learning can match full updates, and an open-source tool cuts JSON tokens by up to 95%.

Reading Mode

One-Line Summary

Research centers on doing more with less: compressing long-context memory during inference, updating far fewer parameters in post-training, and shrinking prompt tokens before they ever reach the model.

Research Papers

DepthWeave-KV shrinks long-context memory with token-aware layer sharing

This work cuts the memory needed to run long-context models by compressing the attention key–value (KV) cache while keeping answer quality close to the original. Across LongBench, Needle-in-a-Haystack, L-Eval, and long-form QA/summarization, it reports near full-cache quality with an 8.3× reduction in KV memory and throughput of 72.8 tokens per second at a 64K context, improving average score and retrieval accuracy over prior compressed caches. 1

How it works: the method factorizes key and value states across neighboring transformer layers using shared low-rank channel bases, then adds lightweight token-specific residuals only where attention behavior is sensitive (e.g., instruction-bearing or retrieval-critical tokens). A token-conditional depth router allocates higher reconstruction rank to important tokens, and calibration-free online error tracking from attention-output probes adapts compression on the fly — without retraining the base model. 1

A fused CUDA (Compute Unified Device Architecture) implementation jointly performs basis lookup, residual dequantization, and attention projection to cut decode-time memory traffic — helpful where GPU (graphics processing unit) memory bandwidth is the bottleneck. Together, this positions long-context inference to fit on tighter memory budgets without sacrificing retrieval fidelity. 1

One-layer RL tuning rivals full-parameter updates in transformers

This study asks where reinforcement learning (RL) improvements live in the transformer stack and finds that training a single transformer layer during RL post-training can recover most of the gains from full-parameter updates — and sometimes even surpass them. The authors evaluate seven models across two families (Qwen3 and Qwen2.5), three RL algorithms including Group Relative Policy Optimization (GRPO), and tasks spanning mathematical reasoning, code generation, and agentic decision-making. 2

They introduce a “layer contribution” metric — the fraction of full RL improvement recovered when only one layer is trained — and observe a stable pattern: high-contribution layers cluster in the middle of the stack, while layers near the input and output contribute less. Layer rankings remain strongly correlated across datasets, tasks, model families, and RL algorithms, suggesting the potential to cut post-training cost by targeting far fewer parameters via careful layer selection. 2

Open Source & Repos

headroom compresses tool output and RAG chunks to cut tokens

headroom is a context-compression layer you place before a large language model (LLM): it compresses tool outputs, logs, files, and Retrieval-Augmented Generation (RAG) chunks so you send fewer tokens while keeping answers the same. The project claims 60–95% fewer tokens for JSON data and 15–20% fewer for coding agents, and ships as a library, a proxy, and a Model Context Protocol (MCP) server with a local-first, reversible design. 3

Release v0.30.0 (2026-07-03) adds “agent-savings” personas for coding and general workloads and a content router with “lossless-excluded compaction” for grep/log/JSON, enabled in those personas. For teams streaming structured tool results into prompts, this pre-prompt compression can reduce both cost and latency. 3

Community Pulse

Hacker News (151↑) — curiosity about manifold/expressivity limits meets skepticism that one layer is sufficient. 4

"I don’t actually know if there’s any research that quantifies the “manifold threshold” of each layer to try out this approach but it would be interesting for sure" — Hacker News 4

"Everything can be represented as f(), a full scale SotA transformer model is also just f(context). That does not mean one layer is sufficient. It all depends on the level of expressivity required by this f to be a good model." — Hacker News 4

Why It Matters

Compressing the KV cache during decoding, focusing RL updates on a single high-impact layer, and compressing inputs before prompting all point to the same direction: stretch fixed memory and bandwidth budgets without giving up accuracy, which directly lowers serving and training costs. 1

For practitioners, watch three indicators: tokens/sec at long contexts (e.g., 64K), retrieval accuracy under compression, and how much RL improvement you keep when training only middle layers — alongside real token savings from pre-prompt compressors like headroom. 3

Sources 4

Helpful?

Comments (0)