MEGA Hub

Metacognitive Decoding: Efficient Inference for Diffusion Language Agents

Authors

Do you know Mingyu Zhao?You can claim authorship or link another user.Do you know Shuhang Lin?You can claim authorship or link another user.Do you know Ligong Han?You can claim authorship or link another user.Do you know Xiaojing Yu?You can claim authorship or link another user.Do you know Zhenting Wang?You can claim authorship or link another user.Do you know Yifei Pang?You can claim authorship or link another user.Do you know Yang Zhou?You can claim authorship or link another user.Do you know Dimitris N. Metaxas?You can claim authorship or link another user.

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.

Community

00

Publication notes

Author note
10 pages, 4 figures