Thinking Inside the Mask: In-Place Prompting in Diffusion LLMs

Xiangqi Jin, Yuxuan Wang, Yifeng Gao, Zichen Wen, Biqing Qi +2 more
8/14/2025
cs.CL

No official code found. Best implementation: Lueci4er/ICE (8 stars, last commit 2025-10-10).

Abstract

Despite large language models (LLMs) have achieved remarkable success, their prefix-only prompting paradigm and sequential generation process offer limited flexibility for bidirectional information. Diffusion large language models (dLLMs) present new opportunities through their bidirectional attention mechanisms and iterative refinement processes, enabling more flexible in-place prompting strategies. We introduce ICE (In-Place Chain-of-Thought Prompting with Early Exit), a novel framework that transforms prefix-only prompting into in-place prompting specifically designed for dLLMs. ICE integrates in-place prompts directly within masked token positions during iterative refinement and employs a confidence-aware early exit mechanism to significantly reduce computational overhead. Extensive experiments demonstrate ICE's effectiveness, achieving up to 17.29% accuracy improvement with 4.12$\times$ speedup on GSM8K, and up to 276.67$\times$ acceleration on MMLU while maintaining competitive performance.

View on arXivView PDF

Code Implementations(1)

Lueci4er/ICECommunity64%

Thinking Inside the Mask: In-Place Prompting in Diffusion LLMs

80Shell, PythonOct 10, 20251 years ago

Similar Papers

Cite this paper

@article{jin2025thinking,
  title  = {Thinking Inside the Mask: In-Place Prompting in Diffusion LLMs},
  author = {Xiangqi Jin and Yuxuan Wang and Yifeng Gao and Zichen Wen and Biqing Qi and Dongrui Liu and Linfeng Zhang},
  year   = {2025},
  eprint = {2508.10736},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.10736v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.10736.svg)](https://codeofpaper.com/paper/2508.10736)

Discussion