AI Coding Live News

Cache Engineering for Agents: Tsinghua and CUHK Introduce AKV Paradigm Cutting Inference Costs by 27.7%

Researchers from Tsinghua University and CUHK introduced a breakthrough paper titled 'Cache Engineering for Agents' (arXiv:2610.28577) alongside the open-source AKV serving engine (thu-nics/AKV). While multi-turn agents rely on traditional 'context engineering' (text trimming and summarization) that invalidates prefix KV-caches and incurs punishing re-prefilling overhead, cache engineering empowers agents to directly manipulate KV-cache states via 'drop' and 'repos' primitives. Coupled with AKV's drop-aware radix-tree engine, the framework slashes agent inference costs by 27.7%, accelerates P95 latency by 1.5x, and boosts benchmark solve scores by 1.7 points.

Cache Engineering for Agents: Tsinghua and CUHK Introduce AKV Paradigm Cutting Inference Costs by 27.7%

Key Takeaways

  • Tsinghua and CUHK researchers formalize 'Cache Engineering' in arXiv:2610.28577 for multi-turn autonomous agents
  • Demonstrates how traditional prompt trimming destroys prefix cache reuse, causing massive latency and redundant re-prefilling
  • Introduces 'drop' (selective cache eviction) and 'repos' (RoPE position alignment) primitives directly on GPU KV-caches
  • Open-sources the AKV stateful serving engine (thu-nics/AKV), slashing agent serving costs by 27.7% while accelerating P95 latency by 1.5x
Read full story

SparseEngine: Harbin Institute of Technology Open-Sources Sparse-First Inference Engine Delivering 2.5x Faster Decoding Than vLLM for Long-Horizon Agents

Long-horizon LLM agents accumulate expanding interaction histories that saturate GPU KV-cache memory and choke self-attention throughput. While sparse attention algorithms mitigate these bottlenecks mathematically, existing production serving engines (e.g. vLLM) are tightly coupled to dense tensor layouts, preventing heterogeneous sparse mechanisms from sharing infrastructure. Researchers from Harbin Institute of Technology (HIT) release SparseEngine (arXiv:2609.39068), an open-source, sparse-first inference engine built from the ground up for long-horizon agent workloads. SparseEngine establishes a shared lifecycle contract enabling 15 diverse sparse attention methods across four distinct families to control their custom KV representations while unifying memory management. It introduces Chain Cache to resume stateful KV-evicted contexts across multi-turn requests and Controllable Prefix-Cache Pruning to discard stale history without disrupting prefix matching. Empirical evaluations on long-horizon agent benchmarks show that SparseEngine delivers over 10x higher throughput under KV eviction, over 2.5x faster decoding throughput than vLLM at matched concurrency, and more than 2x end-to-end task speedups with zero degradation in model reasoning accuracy.

Key Takeaways

  • Harbin Institute of Technology open-sources SparseEngine, a sparse-first inference engine natively supporting 15 sparse attention algorithms
  • Introduces Chain Cache and Controllable Prefix-Cache Pruning to preserve prefix-cache benefits across multi-turn sparse agent sessions
  • Delivers 2.5x faster decoding than vLLM, lifts throughput by 10x under KV eviction, and halves end-to-end agent task latency
Read full story

FrugalEvo: Cost-Aware LLM-Guided Program Evolution Slashes Multi-Agent Optimization Costs by 97% with Prefix-Cache Reuse

LLM-guided evolutionary algorithms (such as AlphaEvolve) have achieved breakthrough results in computational optimization, including circle packing and systems tuning. However, existing methods optimize strictly over iteration counts rather than fiscal expenditure, burning dozens of dollars per task. Researchers from NUS, Stanford, and HKUST present FrugalEvo (arXiv:2610.03675), a cost-aware program evolution framework maximizing gain per dollar. FrugalEvo implements an asymmetric dual-LLM division of labor: a powerful, higher-cost LLM explores high-level solution concepts, while a cheap, high-speed LLM generates and iteratively refines concrete implementations. Additionally, FrugalEvo engineers prompt harnesses to maximize prefix KV-cache reuse across evolutionary generations. Across 10 mathematical optimization problems and ALE-Bench-Lite suites, FrugalEvo matches or outperforms OpenEvolve, EvoX, and SwarmResearch. On circle packing, FrugalEvo achieves SOTA performance using GLM-5.3/Flash for only $0.55 and GPT-5.6 Terra/Luna for $1.68—slashing costs by up to 99% compared to conventional $50 multi-agent baselines.

FrugalEvo: Cost-Aware LLM-Guided Program Evolution Slashes Multi-Agent Optimization Costs by 97% with Prefix-Cache Reuse

Key Takeaways

  • Pioneers FrugalEvo, the first cost-aware LLM program evolution framework maximizing optimization gain per dollar spent
  • Pairs an asymmetric dual-LLM hierarchy with prefix KV-cache reuse, establishing the new Budget-Aware AUC (BA-AUC) benchmark
  • Achieves SOTA on circle packing for $0.55-$1.68, outperforming $50 multi-agent baselines like CORAL and SwarmResearch
Read full story

Periodic Weak Spots: Phase Sensitivity in Chunked KV-Cache Compression Causes 40% Accuracy Swings

Chunked KV-cache compression reduces the memory and computational footprints of long-context LLMs by condensing contiguous token windows into fewer cache entries at fixed strides. Researchers from Stanford and Renmin University uncover an intrinsic vulnerability: chunking introduces a new relative positional coordinate—a token's phase relative to compression-window boundaries. The study reveals systematic 'phase sensitivity,' where retrieval accuracy for identical facts varies by up to 40 percentage points depending solely on input token phase alignments. Pretraining transformers across various KV compression configurations and conducting causal interventions, the authors demonstrate that standard aggregate benchmark scores mask recurrent blind spots, establishing a new evaluation standard for long-context compression.

Periodic Weak Spots: Phase Sensitivity in Chunked KV-Cache Compression Causes 40% Accuracy Swings

Key Takeaways

  • Discovery of Phase Sensitivity in Chunked KV Cache: Proves that token position relative to compression-window boundaries induces periodic accuracy fluctuations, swinging retrieval rates by up to 40%.
  • Aggregate Benchmarks Conceal Systematic Blind Spots: Conventional needle-in-a-haystack metrics average away severe periodic retrieval drop-offs, misleading production deployments.
  • Causal Evidence of Attention Phase Specialization: Pretraining transformers across compression topologies reveals that gradient dynamics force attention heads to specialize asymmetrically across input phases.
Read full story
ADSponsored

PrismQuant: Optimal Null-Space Rotations for Grouped Quantizers Slashes Peak Memory by 56% with Only 0.22% Drop on 70B Models

Deploying 70B+ LLMs under tight memory constraints necessitates extreme 4-bit weight, activation, and KV-cache quantization (W4A4KV4). However, current methods predominantly focus on suppressing activation outliers, overlooking their geometric alignment with the quantizer grid. Researchers introduce PrismQuant, a quantizer-aware rotation framework that mathematically aligns the leading activation eigenspace with the constant group subspace of asymmetric grouped INT4 quantization. Formulated as a Ky Fan trace maximization problem, PrismQuant derives a closed-form, provably optimal rotation solution without requiring expensive gradient descent. Benchmarked across Llama, Qwen, and Mistral architectures up to 70B parameters and 30B MoE variants, PrismQuant sets new SOTA marks: on Llama-3.1-70B under W4A4KV4, it achieves 72.46% zero-shot accuracy—merely 0.22 percentage points below full FP16 precision. Deployment benchmarks demonstrate a 1.51x prefill speedup and 56.34% reduction in peak decoding VRAM with code open-sourced on GitHub.

PrismQuant: Optimal Null-Space Rotations for Grouped Quantizers Slashes Peak Memory by 56% with Only 0.22% Drop on 70B Models

Key Takeaways

  • Quantizer-Aware Geometric Alignment: Establishes that minimizing activation outlier magnitudes is secondary to aligning the leading activation eigenspace with the grouped quantizer's null-space.
  • Closed-Form Optimal Rotation: Solves Ky Fan trace maximization analytically, deriving gradient-free Householder rotations that can be computed in seconds without retraining.
  • Near-Lossless W4A4KV4 on 70B & 56% VRAM Drop: Reaches 72.46% zero-shot accuracy on Llama-3.1-70B (within 0.22% of FP16), delivers a 1.51x prefill speedup, and cuts peak decode VRAM by 56.34%.
Read full story
Linked Models & Agents:

Continuous Depth Batching (CDB): Unlocking Depth-Adaptive Inference for Looped Language Models with 99% Speedup Realization

While looped language models enable depth-adaptive inference by executing fewer layer repetitions on easy tokens and more on complex tokens, variable loop counts break conventional batching engines like vLLM. Researchers from TUM and Imperial College introduced Continuous Depth Batching (CDB). By dynamically reorganizing batches between loop iterations, orchestrating looped KV-caches, and asynchronously predicting token exits, CDB achieves up to 99% of the theoretical maximum inference speedup across Ouro 1.4B and Huginn 3.5B architectures.

Continuous Depth Batching (CDB): Unlocking Depth-Adaptive Inference for Looped Language Models with 99% Speedup Realization

Key Takeaways

  • Resolving the Looped Batching Impasse: Depth-adaptive inference allows tokens to exit recurrent transformer layers early, but differing loop counts prevent uniform forward passes in engines like vLLM; CDB introduces inter-step batch reformation.
  • Asynchronous Exit Prediction & Looped KV Cache: Integrates a dynamic scheduler between recurrent blocks that manages recurrent KV-cache states and asynchronously prepares future batches based on exit-likelihood estimates.
  • 99% Theoretical Limit Realized: Validated on Ouro 1.4B and Huginn 3.5B, CDB achieves up to 99% of the upper-bound theoretical speedup, clearing the path for production deployment of adaptive-depth architectures.
Read full story
Linked Models & Agents:

NVIDIA Open-Sources SoL-Pi: Coding Agent Inference Acceleration Slashing Token Traffic by 49%

NVIDIA (@nvidia) has open-sourced SoL-Pi, a high-throughput inference acceleration engine tailored for autonomous coding agents. Addressing the severe computational redundancy in multi-turn AST parsing and context diffing, SoL-Pi leverages speculative tree decoding and dynamic KV-cache branch reuse to cut token traffic by 44%-49% while lowering inference API costs by 33%.

NVIDIA Open-Sources SoL-Pi: Coding Agent Inference Acceleration Slashing Token Traffic by 49%

Key Takeaways

  • Designed specifically to optimize token economics for long-horizon coding agents like Pi, OpenHands, and Cline.
  • Implements Tree KV-Cache Reuse to bypass redundant attention computations across unchanged repository files.
  • Cuts end-to-end task turnaround time by 52% and reduces aggregate token traffic by 49% on complex refactoring tasks.
  • Full source code and specialized CUDA kernels published on GitHub with native TensorRT-LLM and vLLM drivers.
Read full story