arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.20533cs.CL
收藏

通过单序列内并行解码加速可并行化推理

Accelerate Parallelizable Reasoning via Parallel Decoding within One Sequence

Tsinghua University(清华大学);OpenCSG

Yijiong Yu

AI总结:

针对推理模型生成长序列耗时的问题,提出利用任务可并行性,在单序列内通过树状注意力掩码并行解码多个词元,实现近100%解码加速且基本保持答案质量。

摘要:

近期推理模型的进展表明,通过采用详细且全面的推理过程,其准确性得到了显著提升。然而,生成这些冗长的推理序列在计算上代价高昂且耗时。为解决这一低效问题,我们利用某些任务固有的可并行性来加速推理过程。具体而言,当存在多个并行的推理步骤时,我们在单序列内通过树状注意力掩码在每次前向传播中解码多个词元,从而避免额外的内存使用。实验结果表明,我们的方法在基本保持答案质量的同时,实现了高达近100%的解码速度提升。

英文摘要:

Recent advances in reasoning models have demonstrated significant improvements in accuracy by employing detailed and comprehensive reasoning processes. However, generating these lengthy reasoning sequences is computationally expensive and time-consuming. To address this inefficiency, we leverage the inherent parallelizability of certain tasks to accelerate the reasoning process. Specifically, when multiple parallel reasoning steps exist, we decode multiple tokens per forward pass via a tree-like attention mask within a single sequence, avoiding additional memory usage. Experimental results show that our method achieves up to nearly 100\% speedup in decoding while basically maintaining the answer quality.

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

↑