TraceQuery: learning what to recompute from full-denoising trajectory in diffusion language models
Yukai Jin, Zhankai Ye, Jiayue Yang, Fangyi Li, Shuoqiu Li, Xu Gao, Shibo Li, Xin Liu, Shangqian Gao
Abstract
Diffusion large language models (dLLMs) enable flexible generation through iterative masked denoising, but incur substantial inference cost because token representations are repeatedly recomputed across denoising steps. Existing cache-based methods reduce this cost by reusing intermediate results across denoising steps and recomputing only a subset of positions at each step, chosen either on a fixed schedule or by heuristic signals of change. Our trajectory experiments instead point to decoding trajectory as the more relevant quantity. Cached generation remains accurate when it stays close to the full-denoising trajectory, with errors concentrated around unmask-order deviations and reduced as longer reference prefixes are recovered. This suggests a more direct principle: limiting representation error helps, but keeping generation on the full-denoising trajectory is a more direct route to accurate decoding. We therefore formulate efficient dLLM inference as trajectory-guided querying. Rather than broadly repairing representation error, we use full-denoising trajectories to supervise which unresolved positions should receive limited fresh computation. Based on this formulation, we introduce TRACEQUERY, a lightweight sparse decoding framework that predicts a small set of near-future trajectory-relevant positions, queries only those candidates, and lets the backbone select which one to commit from their fresh predictions. TRACEQUERY delivers the strongest quality-computation trade-off among cache-based approaches, sustaining high accuracy with substantially fewer fresh token computations, and generalizes across tasks, model variants, and families. Code: https://github.com/fish1928/tracequery.git
Create a lesson
Metadata
- Categories
- cs.CL, cs.AI
- Comments
- 9 pages of main body, 5 pages of appendix, 4 figures, 1 table
Related papers
Denoising Hierarchical Representations: Joint Continuous Diffusion for Language Modeling
Shared title terminologycs.CLMathias Ollu, Nikos Komodakis
DiCALM: Converting Autoregressive Convolution-Attention Language Models into Discrete Diffusion Language Models
Shared title terminologycs.CLPhong Le, Ngoc-Quan Pham, Dat Quoc Nguyen
Pitfalls of Dependency-Ready Decoding for Masked Diffusion Language Models
Shared title terminologycs.CLLina Berrayana, Christopher Malon, Yoichi Ishibashi et al.
Rethinking Knowledge Distillation for Diffusion Language Models
Shared title terminologycs.CLYuxuan Sun, Yuanjian Xu, Jianing Hao et al.
On the Importance of Hidden-State Refinement in Masked Diffusion Language Models
Shared title terminologycs.CLLinhao Zhong, Bozhen Fang, Xuehao Wang et al.
TAP: Policy Interfaces for Diffusion Language Models
Shared title terminologycs.CLPreeti, Ankita Kushwaha, Kiran Ravish et al.