Retrieval-Augmented Generation (RAG) improves factual grounding by incorporating external knowledge into language model generation. However, when retrieved context is noisy, unreliable, or inconsistent with the model's parametric knowledge, it introduces retrieval-prior conflicts that can degrade generation quality. While this problem has been studied in autoregressive language models, it remains largely unexplored in diffusion-based language models, where the iterative denoising process introduces unique challenges for integrating retrieved context. In this work, we propose Adaptive Retrieval-Augmented Masked Diffusion (ARAM), a training-free adaptive guidance framework for Masked Diffusion Models (MDMs) in RAG settings. ARAM dynamically calibrates the guidance scale during denoising according to the Signal-to-Noise Ratio (SNR) of the distributional shift induced by retrieved context. Intuitively, the model strengthens guidance when the retrieved context provides reliable corrective evidence and suppresses it when the contextual signal is noisy or non-supportive. Extensive experiments on multiple knowledge-intensive QA benchmarks show that ARAM improves overall QA performance over competitive RAG baselines.
Figures & tables
Figure 1: Overview of ARAM. ARAM mitigates knowledge conflict via step-wise and token-wise adaptive guidance driven by the Signal-to-Noise Ratio.
Figure 2
Figure 2: Comparison of noise proxies during the denoising process. (a) The variance of the log-likelihood ratio s attenuates the guidance scale even when correction is required. (b) In contrast, conditional entropy provides a stable measure of uncertainty, more clearly distinguishing between informative and noisy contexts.
Method
Positive ( ↑ )
Negative ( ↓ )
Cons. Correct
Cons. Wrong
LLaDA
RAG
0.135
0.051
0.040
0.774
Ours
0.234
0.022
0.069
0.675
Dream
RAG
0.259
0.049
0.100
0.592
Ours
0.266
0.038
0.111
0.585
Table 2: Categorization rates of retrieval-prior interaction outcomes.
Method
Gold
Non-Answering
Irrelevant
LLaDA
Dream
LLaDA
Dream
LLaDA
Dream
RAG
24.2
49.7
0.77
1.54
0.00
0.00
Ours
41.7
52.0
1.92
1.92
0.00
0.00
Table 3: Performance comparison across subsets stratified by retrieval context quality.
Figure 3: Dynamics of adaptive guidance . (a) Average guidance scale ( λt ) per step. ARAM maintains high guidance for gold documents but suppresses λt for noisy ones. (b) Token-wise guidance heatmap. Black squares mark unmasking positions, demonstrating a right-to-left generation tendency. ARAM assigns larger guidance to positions that align with the unmasking pattern.
λmax
β
LLaDA
Dream
EM
F1
EM
F1
1.0
1.0
24.9
36.1
33.9
43.6
2.0
13.9
27.3
31.4
42.4
3.0
9.1
22.8
26.3
38.9
1.0
0.1
30.4
39.3
33.5
42.0
0.3
28.4
38.7
34.3
43.4
Table 4: Ablation study on λmax and β . Bold denotes the best score and underlined represents second-best.
Noise Proxy
LLaDA
Dream
EM
F1
EM
F1
Varpprior(s)
20.3
32.5
33.5
43.2
H(pcond)
24.9
36.1
33.9
43.6
Table 5: Comparison of noise proxies. Average EM and F1 scores are reported.
Method
EM
F1
LLaDA 1.5
15.8
22.0
LLaDA 1.5 + RAG
17.6
30.6
LLaDA 1.5 + Ours
24.2
35.9
Table 6: Performance on LLaDA 1.5.
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
Noise Proxy
LLaDA
Dream
EM
F1
EM
F1
Varpprior(s)
20.3
32.5
33.5
43.2
H(pprior)
20.5
32.4
33.6
42.8
∣H(pprior)−H(pcond)∣
23.7
35.3
33.4
42.8
H(pcond)
24.9
36.1
33.9
43.6
Appendix
Table 7: Comparison of noise proxies. Average EM and F1 scores are reported.
Signal Proxy
LLaDA
Dream
EM
F1
EM
F1
- (Raw SNR)
21.5
33.5
33.5
43.4
Tanh
24.9
36.1
33.9
43.6
Appendix
Table 8: Comparison of stability function. Average EM and F1 scores are reported.
Method
NFE / Step
LLaDA
Dream
No-RAG
1
0.93
0.94
RAG
1
1.55
1.56
CFG
2
2.02
3.06
ARAM (Ours)
2
2.07
3.29
Appendix
Table 9: Average inference time per query (seconds).
Figure 4: Prompt template for LLM-based retrieval context quality annotation.
Figure 5: Prompt template used for LLaDA.
Figure 6: Few-shot prompt template used for the Dream and other AR backbones.
Discrete diffusion language models generate text by iteratively denoising an entire response in parallel. At each step, they predict tentative tokens for every masked position, committing the confident predictions to the output and discarding the unconfident ones. We show that the discarded tokens are in fact a useful lookahead signal for retrieval-augmented generation: even low-confidence tokens often surface salient entities early in the denoising trajectory, enabling retrieval of stronger evidence before the output is finalized. We exploit this through Self-Augmenting Retrieval for Diffusion Language Models (SARDI), a dynamic RAG framework that uses these lookahead tokens to guide retrieval during denoising. SARDI is training-free, retriever-agnostic, and applicable to any reasoning-capable discrete diffusion language model. Across five multi-hop QA benchmarks, SARDI outperforms current training-free diffusion and autoregressive retrieval baselines at up to 8× higher throughput.
Paul Jünger, Justin Lovelace, Linxi Zhao +2
Department of Computer Science, Cornell University.
Visual retrieval-augmented generation (RAG) commonly expands the retrieved evidence set to improve answer-page coverage, implicitly assuming that all available evidence should be passed to the generator. We show that this assumption does not hold for diffusion language models (DLMs): retrieving more pages increases answer-page recall, whereas unconditionally passing all retrieved pages to the generator often reduces answer accuracy, primarily because of semantic conflict. A latent-source analysis explains this mismatch through source-coherence loss in parallel denoising, where position-wise proposals can combine incompatible visual sources into unsupported answers. We further find that such interference is already visible in the first-step answer-block distribution, making it possible to assess evidence before decoding. To preserve retrieval coverage while limiting harmful visual exposure, we propose the Entropy-Based Candidate Filter (ECF), a training-free evidence-admission framework. To reduce irrelevant content within individual candidates, ECF constructs multi-granularity evidence units; to identify beneficial additional evidence, it uses blank-controlled block confidence and retrieval rank to determine whether and which candidate should enter the final context. Across three multimodal DLMs and five visual QA benchmarks, ECF improves answer accuracy by 2.62 percentage points on average over the strongest fixed top-k input and, with LLaDA2.0-Uni, by 2.37 percentage points on average over the best competing training-free result for each dataset. These results show that broader retrieval benefits visual DLM-RAG through selective evidence admission rather than unconditional evidence expansion. Code is publicly available at https://github.com/wjkuser/ECF.
Jiankun Wang, Yisen Gao, Ziwei Zhang +3
School of Computer Science and Engineering, Beihang University · Department of Computer Science and Engineering, The Hong Kong University of Science and Technology · School of Computer Science and Engineering, Guangxi Normal University +2
While reasoning on autoregressive (AR) models is often performed by chain-of-thought reasoning and reflection, their refinement of previous outputs still relies on fully sequential generation, even when only local edits are needed. In contrast, the masking mechanism in Mask Diffusion Models (MDMs) naturally supports explicit local edits on previous outputs, allowing selective refinement without discarding previous answers and generating another from scratch. While this property more closely aligns with how humans correct mistakes by iterative local refinement, existing MDMs do not support multi-turn masking and denoising. We propose Reflective Masking (RM), which elicits such an intrinsic reasoning capability in MDMs via lightweight post-training. RM provides a native test-time scaling, where an MDM iteratively revisits and revises its prior outputs based on evolving context. To exploit insights from previous turns like AR reasoning, we further introduce History Reference, a parameter-free mechanism that leverages intermediate denoising states during revision. Our approach requires no architectural changes and is easily applicable to existing MDMs. Across diverse tasks and modalities, including text generation, Sudoku, and image editing, Reflective Masking consistently outperforms standard masking-based baselines and demonstrates strong generality, positioning RM as a fundamental primitive for reasoning on MDMs.
Yanming Zhang, Yihan Bian, Jingyuan Qi +3
University of Maryland · Virginia Tech · Intuit +2