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

打破自回归链:用于高效LLM属性值提取的超并行解码

Breaking the Autoregressive Chain: Hyper-Parallel Decoding for Efficient LLM-Based Attribute Value Extraction

Amazon.com, Inc.(亚马逊公司);McGill University(麦吉尔大学);Mila - Quebec AI Institute(魁北克AI研究所);Int. Lab. Learning Systems(学习系统国际实验室)

Theodore Glavas, Nikhita Vedula, Dushyanta Dhyani, Yilun Zhu, Shervin Malmasi

AI总结:

本文提出超并行解码方法,通过利用共享内存和计算实现批量并行,提升属性值提取任务的效率,减少推理成本和时间,适用于多种独立输出结构的场景。

摘要:

一些文本生成任务,如属性值提取(AVE),需要从同一文档上下文中解码多个独立序列。尽管标准自回归解码因顺序性而较慢,但输出序列之间的独立性提供了并行化的机会。我们提出了超并行解码,一种新的解码算法,通过利用批量中的共享内存和计算加速离线解码。HPD通过位置ID操作实现令牌的非顺序生成,显著提高效率。在AVE上的实验表明,属性-值对是条件独立的,使我们能够在每个提示中并行生成值。通过进一步在单个提示中堆叠多个文档,可以在提示中并行解码多达96个令牌。HPD适用于所有LLM,且在不牺牲输出质量的情况下,将推理成本和总推理时间减少高达13.8倍,可能节省数万美元的行业AVE任务成本。尽管是为属性提取设计的,HPD不假设任何与AVE领域相关的特定假设,理论上可应用于具有独立输出结构的其他场景。

英文摘要:

Some text generation tasks, such as Attribute Value Extraction (AVE), require decoding multiple independent sequences from the same document context. While standard autoregressive decoding is slow due to its sequential nature, the independence between output sequences offers an opportunity for parallelism. We present Hyper-Parallel Decoding, a novel decoding algorithm that accelerates offline decoding by leveraging both shared memory and computation across batches. HPD enables out-of-order token generation through position ID manipulation, significantly improving efficiency. Experiments on AVE show that attribute-value pairs are conditionally independent, enabling us to parallelize value generation within each prompt. By further stacking multiple documents within a single prompt, we can decode in parallel up to 96 tokens per prompt. HPD works with all LLMs, and reduces both inference costs and total inference time by up to 13.8X without compromising output quality, potentially saving hundreds of thousands of dollars on industry AVE tasks. Although designed for attribute extraction, HPD makes no assumptions unique to the AVE domain and can in theory be applied to other scenarios with independent output structures.

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

↑