Archer: Adaptive Reuse of Cached Hidden States for Efficient Rollback in Diffusion Language Models

Xuning He, Zinan Sheng, Yongding Tao, Huanyu Liu, Ge Li, Xue Jiang, Yihong DongarXiv 2026

TL;DR

Archer introduces a training-free Key-Value (KV) caching mechanism specifically designed for Diffusion Language Models (DLMs) with rollback capabilities. By asymmetrically caching fixed prompt states while fully recomputing mutable response states, Archer breaks the traditional speed-vs-quality trade-off—delivering up to a 2.95x speedup alongside noticeable accuracy improvements.

What Problem Does This Paper Address?

Autoregressive language models generate text strictly from left to right, making their history immutable and perfectly suited for standard KV caching. In contrast, Diffusion Language Models (DLMs) use bidirectional attention to iteratively refine an entire sequence at once. This enables a powerful feature called rollback: the ability to reconsider and revise earlier token predictions as later context evolves, which is particularly valuable for highly structured tasks like code generation.

However, this flexibility comes at a massive computational cost. Because attention is bidirectional, changing a single token in the generated response alters the hidden states of the entire sequence, including the prompt. Consequently, existing rollback decoders must recompute the full sequence forward pass at every single denoising step. Standard KV caching cannot be directly applied because it assumes past states never change, creating a fundamental conflict between caching efficiency and rollback flexibility.

Methods

The authors propose Archer (Adaptive Reuse of Cached Hidden States for Efficient Rollback), a training-free cache controller that introduces an asymmetric state reuse strategy:

  1. Prompt-Only Caching: Archer caches only the KV states of the prompt, while completely recomputing the generation/response region at every step. This preserves full rollback capability for all generated tokens.
  2. State-Anchored Refresh: Instead of updating the prompt cache at every step or after a fixed number of iterations, Archer tracks the Hamming distance (the number of token changes) between the current generation and the generation state when the cache was last built. The prompt cache is only refreshed when this token drift exceeds a threshold radius $K$.

This turns the caching problem into a controlled "lag-and-reset" process, alternating local cache reuse with global synchronization.

Datasets

The primary evaluation focuses on code generation benchmarks:

  • MBPP and HumanEval, along with their Extended Test Cases (ET) variants (which add rigorous edge-case testing).
  • LiveCodeBench (a contamination-aware coding benchmark).

To test cross-domain generalization beyond code, the authors also evaluate Archer on:

  • MATH-500 (competition-level mathematics).
  • FinQA (financial reasoning over reports and tables).
  • PubMedQA (biomedical question answering).

Key Insights and Ideas

  • The Prompt as a Natural Cache Boundary: Even though prompt representations change under bidirectional attention due to updates in the response, the identities of the prompt tokens remain fixed. This makes the prompt a stable boundary for bounding approximation errors.
  • Delayed Feedback as a Regularizer: Surprisingly, using a slightly stale prompt cache actually improves generation quality. In full-recomputation baselines, a tentative, incorrect token can immediately feed back into the prompt and prematurely reinforce a transient error. Archer’s bounded cache reuse delays this cross-region feedback loop, giving the rollback mechanism more time to self-correct before the error locks in.
  • State Distance > Cache Age: Refreshing the cache based on actual token drift (Hamming distance) is far more effective than time-based schedules. Two caches of the same chronological age can have completely different levels of validity depending on how much the model has revised its output.
The effect of prompt-cache radius K on performance and speedup. Quality peaks at moderate K values due to beneficial delayed feedback.

Key Results

  • Breaking the Pareto Frontier: Archer achieves a 2.57x mean speedup while simultaneously delivering the highest average performance (33.63%) across the main suite, outperforming both standard DLM sampling and existing acceleration methods.
  • Accuracy Gains: Archer improves Pass@1 accuracy by up to 3.05 points compared to the baseline rollback decoder (Saber).
  • Robust Acceleration: It reduces latency across all tested backbones (including LLaDA, Dream, and DiffuCoder) by 1.36x to 1.78x, demonstrating that the benefits transfer across independently trained models.
Archer shifts the quality-speed frontier on MBPP, improving accuracy while reducing latency compared to Saber and LLaDA.

Limitations and Future Work

  • Conservative Cache Boundary: Archer only caches the prompt states and completely recomputes the response states. While this guarantees unrestricted rollback, it leaves potential generation-side computational savings on the table.
  • Integration with Other Optimizations: The current implementation operates as a standalone cache controller. The authors note that future work should explore combining Archer with other DLM acceleration techniques, such as sparse attention, layer-level reuse, or parallel token acceptance, to scale rollback-capable DLMs to even longer contexts.

Summary updated

BibTeX
@misc{he2026archer,
  author = {Xuning He and Zinan Sheng and Yongding Tao and Huanyu Liu and Ge Li and Xue Jiang and Yihong Dong},
  title = {{Archer: Adaptive Reuse of Cached Hidden States for Efficient Rollback in Diffusion Language Models}},
  year = {2026},
  eprint = {2608.08086},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.08086},
}
Figure