Masked Diffusion Language Agents for Tool-Integrated Chemical Reasoning

Mengdi Liu, Hong Chang, Shiguang Shan and colleagues (Institute of Computing Technology, CAS) present ChemDiffAgent, a masked diffusion language agent for tool-integrated chemical reasoning, accepted at NeurIPS 2026.
Ask this paper
Why diffusion. Autoregressive agents decide each tool call left to right. ChemDiffAgent treats an interleaved reasoning and tool-use trajectory as a sequence to denoise, so tool decisions are made with the whole trajectory in context.
Training analysis. The authors argue diffusion training creates harder infilling subproblems and that arbitrary-order decoding helps planning at inference time.
Post-training. Two stages: agentic SFT, then variance-reduced preference optimization for tool use and reasoning.
Benchmark. A new benchmark covers six chemistry tasks in single-turn and multi-turn tool-use settings.
Results. At matched scale, data, tool budget and inference constraints, SDAR-8B with SFT beats Qwen3-8B with SFT by 19.9% overall, and RL raises the overall score from 89.0% to 91.8%. The 8B model is comparable to GPT 5.5 and Claude Opus 4.7 on some tasks.
Abstract
Designing tool-integrated reasoning agent systems for complex chemical tasks remains a fundamental challenge. Although recent chemical agents have demonstrated promising performance through the integration of external tools, they are still built on the autoregressive paradigm, which is inherently constrained by causal attention and left-to-right generation. As a result, they often struggle with bidirectional molecular understanding, global coordinated tool planning and multi-source evidence integration. To address this challenge, we introduce ChemDiffAgent, the first masked diffusion language agent for tool-integrated chemical reasoning. It reformulates chemical reasoning as iterative denoising over interleaved reasoning and tool-use trajectories, enabling tool-use decisions to be jointly determined under full-trajectory context and thereby better aligning the agent's decision boundary with its knowledge boundary. We further analyze how this paradigm benefits agentic reasoning through harder infilling subproblems during training and flexible arbitrary-order decoding during inference. Then we develop a two-stage post-training framework, comprising agentic supervised fine-tuning and variance-reduced preference optimization, to enhance tool-use and reasoning capabilities. We also construct a comprehensive benchmark covering six chemistry tasks across both single-turn and multi-turn tool-use scenarios. Under matched budgets and evaluation, ChemDiffAgent consistently outperforms autoregressive agents, achieving an overall improvement of approximately 20%. Notably, our 8B model achieves performance comparable to, in some cases surpassing, significantly larger frontier models, such as GPT 5.5 and Claude Opus 4.7. Code is available at https://github.com/bilemond/ChemDiffAgent.