arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.04215cs.LGcs.AI
收藏

预测后扩散:面向扩散大语言模型的自适应响应长度计算

Predict-then-Diffuse: Adaptive Response Length for Compute-Budgeted Inference in Diffusion LLMs

IEEE

Michael Rottoli, Subhankar Roy, Stefano Paraboschi

AI总结:

本文提出Predict-then-Diffuse框架,通过自适应响应长度预测器和安全机制,实现计算预算下的高效推理,减少计算成本并保持输出质量。

摘要:

扩散式大语言模型(D-LLMs)在生成AI领域展现出巨大潜力,提供完全并行的token生成,相较于传统自回归范式具有显著的吞吐量优势和更高的GPU利用率。然而,这种并行性受到生成前固定响应长度的限制,导致计算资源浪费或输出截断问题。为解决此问题,本文提出Predict-then-Diffuse框架,通过先预测响应长度再进行推理,核心是自适应响应长度预测器(AdaRLP)和数据驱动的安全机制,有效避免padding token的计算浪费,同时保持输出质量。实验验证显示,该框架在多个数据集上显著降低了计算成本(FLOP),且对偏斜数据分布具有鲁棒性。

英文摘要:

Diffusion-based Large Language Models (D-LLMs) represent a promising frontier in generative AI, offering fully parallel token generation that can lead to significant throughput advantages and superior GPU utilization over the traditional autoregressive paradigm. However, this parallelism is constrained by the requirement of a fixed-size response length prior to generation. This architectural limitation imposes a severe trade-off: oversized response length results in computational waste on semantically meaningless padding tokens, while undersized response length causes output truncation requiring costly re-computations that introduce unpredictable latency spikes. To tackle this issue, we propose Predict-then-Diffuse, a simple and model-agnostic framework that enables compute-budgeted inference per input query by first estimating the response length and then using it to run inference with D-LLM. At its core lies an Adaptive Response Length Predictor (AdaRLP), which estimates the optimal response length given an input query. As a measure against under-estimating the response length and re-running inference with a higher value, we introduce a data-driven safety mechanism based on a small increase of the predicted length. As a whole, our framework avoids wasting computation on padding tokens, at the same time preserving output quality. Experimental validation on multiple datasets demonstrates that Predict-then-Diffuse significantly reduces computational costs (FLOP) compared to the default D-LLM inference mechanism, while being robust to skewed data distributions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑