TL;DR
Standard autoregressive language models struggle with complex tool-use planning because early choices rigidly lock them into suboptimal paths—a flaw known as "early commitment." To address this, DiG-Plan introduces a three-stage framework that decouples planning: a diffusion-based model proposes diverse tool sets globally, an autoregressive model refines their dependencies, and a lightweight value function selects the optimal plan. This approach yields a 10% relative improvement on complex compositional tasks without requiring expensive LLM judges at inference time.
What Problem Does This Paper Address?
When large language models (LLMs) are tasked with solving complex, multi-step problems, they must select a subset of tools from a library and arrange them into an executable workflow (a tool graph). This is a massive combinatorial search problem—a library of $N$ tools presents $2^N$ possible subsets.
Currently, most systems treat tool planning as a sequential text generation problem, relying on standard autoregressive (AR) decoding (left-to-right text generation). The authors identify a critical misalignment here: early commitment. Because AR generation is strictly sequential, the very first tokens selected establish a prefix that rigidly constrains all subsequent choices. If the model makes a generic or slightly off-target choice early on, it gets trapped in that trajectory, failing to explore better tool combinations even when using diverse stochastic sampling.
Methods
The authors propose DiG-Plan (Diffusion-Guided Planning), a framework that separates tool-set exploration from structural refinement through a propose-refine-select paradigm:
- Stage 1: Propose (Diffusion Proposer): Instead of left-to-right generation, a discrete diffusion language model (such as Dream or LLaDA) uses iterative masking and denoising to generate $K$ diverse candidate tool sets. This allows the model to leverage global context and revise early decisions non-sequentially.
- Stage 2: Refine (Autoregressive Refiner): Once the tool sets are fixed, the combinatorial search problem is eliminated. A shared AR model (Qwen2.5-7B-Instruct) takes the instruction and the proposed tool set to predict the directed dependency edges between the tools.
- Stage 3: Select (Judge-Free Value Function): To choose the best plan from the $K$ candidates without relying on expensive external LLM judges, DiG-Plan trains a lightweight Gradient Boosting Regressor. It scores candidates using deployable features like proposer confidence, structural heuristics, and graph validity.
Datasets
The framework was evaluated on two primary benchmarks:
- TaskBench-23: A tool-graph planning benchmark with diverse dependency structures (single-tool, chain, and DAG tasks). The authors focus their analysis on the compositional subset (chain and DAG instances, $N=334$).
- API-Bank: A comprehensive benchmark for tool-augmented LLMs, converted to the tool-graph format to serve as an out-of-domain evaluation.
Key Insights and Ideas
- The "Early Commitment" Bottleneck is Real: In a controlled synthetic study isolating the decoding mechanism, masked denoising raised Pass@10 solution coverage from 0.320 to 0.943 compared to AR sampling under identical compute budgets and model capacities.
- Randomness Doesn't Fix AR: Simply increasing sampling randomness (tuning temperature or
top-p) does not help AR models recover missed plans. The path dependency of the prefix constraint is too strong. - Division of Labor: Diffusion models excel at global combinatorial exploration (picking the right tools), while AR models excel at sequential structured prediction (ordering the tools). Combining them maximizes their respective strengths.
Key Results
- End-to-End Performance: On TaskBench-23, DiG-Plan (using the Dream proposer) achieved a ToolF1 score of 0.729, outperforming the two-stage AR baseline (0.661) by a 10% relative margin.
- Superior Candidate Pools: The diffusion proposer significantly improved the quality of the top candidates. For $K=10$, Dream raised
UnionPrec@10from 0.575 to 0.692 andOracle@10from 0.735 to 0.787 compared to an AR proposer. - Cross-Domain Robustness: The framework successfully transferred to API-Bank, where diffusion proposers achieved the highest Oracle@10 scores and competitive value-selected ToolF1 scores.
Limitations and Future Work
- Edge Refinement Bottleneck: Error analysis revealed that missing edges were the most frequent error tag, affecting 82.9% of failed samples. While diffusion effectively fixed the tool selection problem, predicting the exact dependencies between those tools remains a major challenge.
- End-to-End Diffusion Struggles: Pure diffusion models (without the AR refiner) failed completely on complex chain and DAG structures, confirming that non-autoregressive models currently struggle with precise tool-name grounding and sequential dependency ordering. Future work will focus on strengthening the edge refinement stage.
Summary updated