Improving the Throughput of Diffusion-based Large Language Models via a Training-Free Confidence-Aware Calibration
About
We present CadLLM, a training-free method to accelerate the inference throughput of diffusion-based LLMs (dLLMs). We first investigate the dynamic nature of token unmasking confidence across blocks and steps. Based on this observation, we present a lightweight adaptive approach that controls the generation block size, step size, and threshold based on the average confidence of unmasked tokens. We further reduce softmax overhead by dynamically leveraging a subset of the vocabulary to regulate sampling breadth. CadLLM is a plug-and-play, model-agnostic method compatible with KV-cache-based dLLMs. Extensive experiments on four popular tasks demonstrate that CadLLM yields up to 2.28x throughput improvement over the state-of-the-art baseline with competitive accuracy.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Code Generation | HumanEval 0-shot (test) | -- | 17 | |
| Code Generation | MBPP 3-shot pass@1 | Accuracy24 | 6 | |
| Mathematical Reasoning | GSM8k 5-shot | Accuracy78.01 | 6 |