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

BlockBatch: 面向高效扩散语言模型推理的多尺度共识解码

BlockBatch: Multi-Scale Consensus Decoding for Efficient Diffusion Language Model Inference

Georgia Institute of Technology(佐治亚理工学院)

Xiaoyou Wu, Cheng-Jhih Shih, Binfei Ji, Yong Liu, Yingyan Celine Lin

AI总结:

提出BlockBatch框架,通过多分支并行解码和置信度门控合并,在不训练的情况下加速扩散语言模型推理,平均减少26.6%的去噪步数并实现1.33倍端到端加速。

摘要:

扩散语言模型(dLLMs)通过并行迭代去噪多个标记位置来生成文本,为严格自回归解码提供了有吸引力的替代方案。然而,在实际中,块状dLLM推理暴露了难以权衡的粒度问题:小块保留局部条件但需要更多去噪步骤,而大块暴露更多并行性但可能做出过早承诺并累积缓存误差。现有加速方法通常为每个请求选择单一块大小,未利用块大小之间的互补性。我们表明块大小本身是一个有用的分支维度。不同块大小产生相关但非相同的KV缓存轨迹:分支通常共享初始前缀,在语义决定性位置分叉,并在句法轻量级标记上后来达成一致。受此结构启发,我们提出BlockBatch,一种无需训练的在线推理框架,在批处理前向传递中为同一请求执行多个块大小分支。BlockBatch通过置信度门控标记合并、基于领导者的同步和周期性全序列刷新来协调这些分支,将局部块更新重新锚定到全局一致的KV状态。在3个代表性dLLM和4个数据集上,BlockBatch平均减少26.6%的去噪NFE,并在保持准确性的同时实现比Fast-dLLM平均1.33倍的端到端加速。这些结果将块大小多样性确定为分支并行dLLM推理中一个实用且先前未被充分探索的维度。

英文摘要:

Diffusion language models (dLLMs) generate text by iteratively denoising multiple token positions in parallel, offering an attractive alternative to strictly autoregressive decoding. In practice, however, block-wise dLLM inference exposes a difficult granularity trade-off: small blocks preserve local conditioning but require many denoising steps, whereas large blocks expose more parallelism but can make premature commitments and accumulate cache error. Existing acceleration methods typically choose a single block size per request, leaving the complementarity among block sizes unused. We show that block size itself is a useful branching dimension. Different block sizes induce related but non-identical KV-cache trajectories: branches often share an initial prefix, bifurcate at semantically decisive positions, and later agree on syntactically lightweight tokens. Motivated by this structure, we propose BlockBatch, a training-free online inference framework that executes multiple block-size branches for the same request inside a batched forward pass. BlockBatch coordinates these branches through confidence-gated token merging, leader-based synchronization, and periodic full-sequence refreshes that re-anchor local block updates to a globally consistent KV state. Across 3 representative dLLMs and 4 datasets, BlockBatch reduces denoising NFEs by 26.6\% on average and achieves a 1.33$\times$ average end-to-end speedup over Fast-dLLM while preserving accuracy. These results identify block-size diversity as a practical and previously underexplored axis for branch-parallel dLLM inference.

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

↑