Metacognitive Decoding: Efficient Inference for Diffusion Language Agents
Organizations: Rutgers · Amazon · UNC
Abstract
Diffusion language models offer a promising path to efficient agents through parallel token generation. However, efficient interaction requires adapting both where computation is spent and how much text is generated. We introduce a metacognitive controller that guides diffusion generation according to the needs of the current response and the agent's interaction with the environment. It learns when to finalize tokens and how far generation should extend, reducing overall computation within responses. Our controller, a lightweight plug-in for the diffusion backbone, is trained on agent trajectories to balance correctness and generation cost. This approach connects the agent's generation process to the interaction the agent serves. Experiments across five benchmarks demonstrate that our approach reduces inference FLOPs by 20.6% on average compared with the most efficient baseline, while maintaining competitive task accuracy. Ablation studies further validate the effectiveness of our approach.
Figures & tables
| Method | BFCL Live | BFCL Non-live | HotpotQA | 2Wiki | MuSiQue | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| Acc. | FLOPs | Acc. | FLOPs | Acc. | FLOPs | Acc. | FLOPs | Acc. | FLOPs | |
| Fast-dLLM | 57.46 | 57.58 | 52.66 | 54.98 | 43.20 | 324.16 | 67.70 | 340.49 | 21.20 | 342.32 |
| LLaDA-8B-Tools | 50.00 | 2889.56 | 37.27 | 1375.23 | 16.50 | 4310.92 | 22.80 | 4185.11 | 2.20 | 2644.99 |
| DLLM-Searcher | 40.85 | 547.10 | 16.09 | 433.45 | 37.10 | 1277.25 | 50.40 | 1261.22 | 17.80 | 1237.25 |
| LLaDA-8B (SFT) | 66.52 | 32.49 | 63.60 | 19.28 | 45.70 | 175.00 | 67.10 | 204.51 | 20.70 | 197.38 |
| LLaDA2.0-mini | 69.72 | 43.79 | 79.42 | 14.12 | 36.30 | 142.09 | 41.00 | 199.93 | 10.80 | 168.37 |
| Setting | BFCL Live | BFCL Non-live | HotpotQA | 2Wiki | MuSiQue | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| Acc. | FLOPs | Acc. | FLOPs | Acc. | FLOPs | Acc. | FLOPs | Acc. | FLOPs | |
| w/o flux policy | 70.07 | 26.95 | 64.46 | 17.39 | 47.60 | 149.71 | 66.70 | 162.46 | 19.60 | 162.93 |
| w/o conf. align. | 69.63 | 23.11 | 64.46 | 14.55 | 48.90 | 145.49 | 68.90 | 166.48 | 19.10 | 167.32 |
| Controller (Ours) | 70.96 | 18.48 | 65.47 | 12.51 | 46.60 | 131.91 | 67.90 | 147.68 | 20.30 | 142.83 |
| Dataset | LLaDA | Dream | ||
|---|---|---|---|---|
| Acc. | FLOPs | Acc. | FLOPs | |
| BFCL Live | 43.1% | 17.2% | ||
| BFCL Non-live | 35.1% | 29.0% | ||
| HotpotQA | 24.6% | 52.9% | ||
| 2Wiki | 27.8% | 58.0% | ||
| MuSiQue | 27.6% | 67.5% | ||
Diffusion Language Model Inference
Diffusion language model inference studies how to generate, guide, and serve text efficiently through iterative denoising and parallel token updates.
See all 179 papers