arXiv:2610.25723cs.LGOct 2026

Manuscript Offprint

arXiv:2610.25723

Learning to Couple: Context-Adaptive Joint Denoising for Diffusion Language Models

Zilei Shao, Ian Li, Heng Zhao, Kewei Lian, Guy Van den Broeck, Zhe Zeng, Anji Liu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Diffusion language models accelerate generation by predicting multiple tokens in parallel, but factorized denoisers treat simultaneous predictions as conditionally independent. Decoding heuristics reduce the resulting errors by controlling which tokens are committed, but leave the underlying distribution factorized. Joint modeling addresses the source of the problem, yet existing methods attach separately learned layers to frozen denoisers, leaving the backbone unadapted to the joint objective and the coupling parameters fixed across contexts. We propose Codpula, a context-parameterized denoiser combining a Transformer with a tractable probabilistic inference layer. Given a partially masked input, the Transformer produces token potentials that shape per-position predictions and compact gates that modulate the layer's coupling parameters, yielding a context-dependent joint distribution while retaining exact conditional inference. We jointly optimize both components under a conditional denoising objective using a dual-flow multiplicative update that preserves valid probabilistic parameters. At inference, Codpula supports standard heuristics and uses conditional queries to adapt commitments to dependencies among proposed tokens without extra Transformer evaluations within a step. Codpula sets new state-of-the-art results across a broad suite of reasoning benchmarks while advancing the accuracy–latency Pareto frontier in mathematical reasoning and code generation.

1 INTRODUCTION

Masked diffusion language models can accelerate generation by predicting multiple tokens in parallel, reducing the number of denoising steps. However, standard denoisers factorize their predictions across positions (Austin et al., 2021a; Sahoo et al., 2024; Nie et al., 2025). Even under a shared context, these predictions remain conditionally independent, preventing the model from expressing dependencies among tokens predicted together. These missing dependencies become increasingly consequential as more tokens are committed at once (Liu et al., 2025a). A parallel denoiser must therefore predict both what each token could be and how its predictions depend on one another.

Many approaches address the factorization barrier during decoding by varying commitments, prioritizing confident predictions, or revising earlier tokens (Arriola et al., 2025; Wu et al., 2025; Ben-Hamu et al., 2025; Zhao et al., 2024; Israel et al., 2025). These methods improve the quality–computation trade-off while retaining a factorized denoiser. Joint modeling instead captures dependencies among simultaneous predictions (Li et al., 2026; Kim & Sung, 2026). Existing models, however, typically attach a separately trained joint layer to a frozen backbone. This layer produces context-dependent probabilities, but its dependency parameters remain fixed across inputs and the backbone is not optimized through the joint distribution.

We propose Codpula, a jointly learned, context-parameterized denoiser that adapts both token predictions and their coupling to the current context. From the backbone representation, Codpula derives token scores that adjust per-position predictions and a compact set of gates that reweight shared

∗^{*}Equal contribution.

†^{\dagger}Corresponding author.

Figure

Figure 1: Factorized versus context-dependent joint prediction. Left: Given a masked return statement, a factorized denoiser predicts the sorting flag and index independently, assigning equal probability to all four completions regardless of the comment. Middle: Codpula assigns context-dependent joint probabilities, placing its mass on the completions consistent with each comment. Right: Codpula improves accuracy-latency trade-offs, achieving 2.95×2.95\times and 4.02×4.02\times speedups at matched accuracy on AIME24 (LLaDA-2.0; Bie et al. (2025)) and MBPP (Dream; Ye et al. (2025)).

coupling parameters. The resulting joint distribution can favor different combinations of token values depending on the context, as illustrated in Figure 1 (left): Codpula assigns high probability to different combinations of sort direction and index for different requested operations. Training through this distribution teaches the backbone to produce token preferences and coupling signals that together explain the clean completion. To support this training, we derive a dual-flow update that accommodates the signed learning statistics introduced by conditional normalization while preserving valid probabilistic parameters.

Beyond modeling which token values belong together, the learned joint distribution informs which proposals to commit together. Codpula supports the token-selection heuristics used by existing block and full-sequence decoders and provides conditional queries for dependence-adaptive decoding. These queries measure how each proposal's probability changes when the other candidates are assigned their proposed values. The decoder defers sensitive proposals, adapting the number of commitments to their dependencies. All queries reuse the token potentials and gates from the same Transformer forward pass, requiring no additional backbone evaluation within the step.

We evaluate Codpula on mathematical reasoning and code generation across four modern diffusion language models against a comprehensive suite of state-of-the-art baselines. The results show improved accuracy across a range of parallel decoding budgets and improved accuracy-latency tradeoffs after accounting for inference overhead. Figure 1 (Right) highlights that Codpula achieves comparable accuracy with 2.95×2.95\times faster generation on AIME24 using LLaDA-2.0 and 4.02×4.02\times faster generation on MBPP using Dream.