Skip to content

DIP: Dynamic In-Context Planner For Diffusion Language Models

Jan 2026 · arXiv.org · Vol abs/2601.03199 · 1 citation · 44 references
Computer Science

TL;DR

DIP is proposed, a context-optimization algorithm based on average verified confidence that dynamically ranks and inserts in-context examples during generation, rather than providing all examples up front.

Abstract

Diffusion language models (DLMs) have shown strong potential for general natural language tasks with in-context examples. Existing In-Context Learning (ICL) approaches largely inherit the practice of autoregressive language models (ARLMs), incorporating all examples into a fixed prompt. However, applying this rigid, static-prompt paradigm to DLMs incurs substantial computational overhead, as the model must evaluate the maximum context length at every step. We address this inefficiency with a key discovery: the block-wise KV-cache mechanism inherent to DLM inference enables the \textit{low-cost dynamic adjustment of the context}. Following this intuition, our core idea is to start generation with a minimal prompt and progressively insert additional examples on the fly only when the generated tokens are of low confidence. Through rigorous empirical evaluations, we observe that average verified token confidence correlates strongly with generation accuracy, making it a reliable and computationally efficient signal of token quality. Formally, we propose \textbf{D}ynamic \textbf{I}n-Context \textbf{P}lanner (DIP), a context-optimization algorithm based on average verified confidence that dynamically ranks and inserts in-context examples during generation, rather than providing all examples up front. Experimental results on math and coding benchmarks with LLaDA-1.5 and LLaDA-8B-Instruct show that DIP achieves up to $1.59\times$ and $1.36\times$ speedups, respectively, while largely preserving the generation quality of the fixed-prompt baseline. Code: https://github.com/wmd3i/DIP

View source

Similar papers

#natural language process... Preprint Sep 2026

Towards Efficient Reasoning: Learning Causal Shortcuts for Diffusion Language Models

This work introduces a step-by-step token extraction procedure to extract causal shortcuts from data, and applies parallel prioritized masking on these tokens during training to enable efficient and accurate convergence to correct answers via causal shortcuts.

Dian Jin, Kai-Rong Han, Bao-Hong Li et al. · 0 citations
#artificial intelligence Preprint Oct 2026

ALoDLM: Adaptively Looped Diffusion Language Models

Diffusion language models (DLMs) enable fast generation by predicting multiple tokens in parallel, but their practical adoption remains limited by a persistent quality gap relative to comparably sized autoregressive (AR) models. We attribute this gap to a computation-difficulty mismatch: within a partially observed seq...

Lian-Cheng Fang, Zhuo-Wei Li, Youngeun Kim et al. · 0 citations
#artificial intelligence Preprint Sep 2026

In-Place Instruction Following in Diffusion Language Models

GRAFT, an IPP-oriented post-training framework combining constraint-aware SFT and preference optimization is proposed, an IPP-oriented post-training framework combining constraint-aware SFT and preference optimization that raises the average IIF score and preserves general generation ability.

Zheng Nie, Zhe-Rui Li, Jia-Ming Zhang et al. · 0 citations
#machine learning Preprint Sep 2026

Fork-dLLM: Avoiding the Flexibility Trap in Diffusion Language Models

Masked diffusion language models (dLLMs) have shown strong potential for faster inference through parallel token generation when combined with confidence-based samplers. However, recent work has shown that such methods can defer unmasking high-entropy fork positions at which multiple plausible continuations exist. This...

S. Frkovic, Metod Jazbec, C. Naesseth · 0 citations
Preprint Aug 2026

CAI-DLLM: Convergence Aware Inference for Diffusion Language Models

This work proposes CAI-DLLM, a training-free inference method that uses first-step confidence to guide denoising and reduce inference time, and evaluates CAI-DLLM on LLaDA-8B-Instruct and Dream-7B-Instruct across math, code, reasoning, commonsense, and long-context tasks.

Farhana Amin, Sabiha Afroz, D. Nikolopoulos · 0 citations
#natural language process... Preprint Sep 2026

DA-DLM: Explicitly Modeling Token Dependencies in Diffusion Language Models

DA-DLM is proposed, a model that adapts DAG-based dependency modeling to DLMs'iterative setting through a position-oriented DAG design, and consistently outperforms Block Diffusion, especially under fewer denoising steps, and matches autoregressive models while preserving the parallel generation advantage.

Peng-Yu Ji, Zi-Chen Zhang, Xiang Hu et al. · 0 citations

Related blog posts

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.