Residual Context Diffusion Language Models (2 minute read)

TLDR AI Papers

Summary

This paper introduces Residual Context Diffusion (RCD), a module that recycles discarded token representations in diffusion language models to improve efficiency and accuracy, achieving 5–10% better accuracy and up to 4–5x fewer denoising steps on challenging reasoning tasks.

State-of-the-art block-wise Diffusion Large Language Models (dLLMs) rely on a remasking mechanism that decodes only the most confident tokens and discards the rest. Recycling computation from the discarded tokens is beneficial, as these tokens retain contextual information useful for subsequent decoding iterations. Residual Context Diffusion is a module that converts these discarded token representations into contextual residuals and injects them back for the next denoising step. It consistently improves frontier dLLMs in terms of accuracy with minimal extra computation overhead across a wide range of benchmarks.
Original Article
View Cached Full Text

Cached at: 07/03/26, 05:22 PM

# Residual Context Diffusion Language Models Source: [https://machinelearning.apple.com/research/residual-context-diffusion](https://machinelearning.apple.com/research/residual-context-diffusion) AuthorsYuezhou Hu†\*, Harman Singh†\*, Monishwaran Maheswaran†\*, Haocheng Xi†, Coleman Hooper†, Jintao Zhang†, Aditya Tomar†, Michael W\. Mahoney†, Sewon Min†, Mehrdad Farajtabar, Kurt Keutzer†, Amir Gholami†‡, Chenfeng Xu†‡ Diffusion Large Language Models \(dLLMs\) have emerged as a promising alternative to purely autoregressive language models because they can decode multiple tokens in parallel\. However, state\-of\-the\-art block\-wise dLLMs rely on a “remasking” mechanism that decodes only the most confident tokens and discards the rest, effectively wasting computation\. We demonstrate that recycling computation from the discarded tokens is beneficial, as these tokens retain contextual information useful for subsequent decoding iterations\. In light of this, we propose Residual Context Diffusion \(RCD\), a module that converts these discarded token representations into contextual residuals and injects them back for the next denoising step\. RCD uses a decoupled two\-stage training pipeline to bypass the memory bottlenecks associated with backpropagation\. We validate our method on both long CoT reasoning \(SDAR\) and short CoT instruction following \(LLaDA\) models\. We demonstrate that a standard dLLM can be efficiently converted to the RCD paradigm with merely ∼1 billion tokens\. RCD consistently improves frontier dLLMs by 5–10 points in accuracy with minimal extra computation overhead across a wide range of benchmarks\. Notably, on the most challenging AIME tasks, RCD nearly doubles baseline accuracy and attains up to 4–5x fewer denoising steps at equivalent accuracy levels\. - † University of California, Berkeley - \* Equal contribution - ‡ Equal advising ## Related readings and updates\. Diffusion \(Large\) Language Models \(dLLMs\) now match the downstream performance of their autoregressive counterparts on many tasks, while holding the promise of being more efficient during inference\. One critical design aspect of dLLMs is the sampling procedure that selects which tokens to unmask at each diffusion step\. Indeed, recent work has found that heuristic strategies such as confidence thresholding improve both sample quality and token… [Read more](https://machinelearning.apple.com/research/unmasking) Diffusion large language models \(dLLMs\) are compelling alternatives to autoregressive \(AR\) models because their denoising models operate over the entire sequence\. The global planning and iterative refinement features of dLLMs are particularly useful for code generation\. However, current training and inference mechanisms for dLLMs in coding are still under\-explored\. To demystify the decoding behavior of dLLMs and unlock their potential for coding,… [Read more](https://machinelearning.apple.com/research/diffucoder)

Similar Articles

Multi-Token Residual Prediction

arXiv cs.LG

Introduces Multi-token Residual Prediction (MRP), a lightweight module for diffusion language models that enables dependency-aware multi-token denoising within a single backbone forward pass, achieving up to 1.42× lossless speedup.

CRoCoDiL: Continuous and Robust Conditioned Diffusion for Language

arXiv cs.CL

CRoCoDiL proposes a continuous and robust conditioned diffusion approach for language that shifts masked diffusion models into a continuous semantic space, achieving superior generation quality and 10x faster sampling speeds compared to discrete methods like LLaDA.