arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.11517cs.CLcs.DCcs.LG
收藏

学习承诺:通过学习异步解码扩展语言模型解码并行性

Learning to Keep a Promise: Scaling Language Model Decoding Parallelism with Learned Asynchronous Decoding

DeepMind, London, UK(深度思维公司,伦敦,英国);Google Research, New York, NY, USA(谷歌研究院,纽约,纽约州,美国);Stanford University, Stanford, CA, USA(斯坦福大学,斯坦福,加利福尼亚州,美国);University of Toronto, Toronto, Ontario, Canada(多伦多大学,多伦多,安大略省,加拿大);University of Washington, Seattle, WA, USA(华盛顿大学,西雅图,华盛顿州,美国)

Tian Jin, Ellie Y. Cheng, Zack Ankner, Nikunj Saunshi, Blake M. Elias, Amir Yazdanbakhsh, Jonathan Ragan-Kelley, Suvinay Subramanian, Michael Carbin

AI总结:

本文提出PASTA系统,通过学习使语言模型识别语义独立性,提升解码并行性,实验证明在解码速度和响应质量上优于现有方法。

摘要:

传统的自回归大语言模型(LLM)解码通常是顺序进行的,逐个生成token。新兴的研究探索了通过识别并同时生成语义独立的LLM响应片段来实现并行解码。然而,这些技术依赖于手工制定的启发式方法,与语法结构如列表和段落相关,使它们僵化且不精确。我们提出了PASTA,一个基于学习的系统,教会LLM识别语义独立性并在自身响应中表达并行解码机会。其核心是PASTA-LANG及其解释器:PASTA-LANG是一种注释语言,使LLM能够在自身响应中表达语义独立性;语言解释器作用于这些注释,以在推理时实时协调并行解码。通过两阶段微调过程,我们训练LLM生成PASTA-LANG注释,以优化响应质量和解码速度。在AlpacaEval指令遵循基准上的评估显示,我们的方法在解码速度和响应质量上优于现有方法;我们的结果表明,几何平均速度提升范围从1.21x到1.93x,对应的质量变化为+2.2%到-7.1%,通过长度控制的胜利率与顺序解码基线比较。

英文摘要:

Decoding with autoregressive large language models (LLMs) traditionally occurs sequentially, generating one token after another. An emerging line of work explored parallel decoding by identifying and simultaneously generating semantically independent chunks of LLM responses. However, these techniques rely on hand-crafted heuristics tied to syntactic structures like lists and paragraphs, making them rigid and imprecise. We present PASTA, a learning-based system that teaches LLMs to identify semantic independence and express parallel decoding opportunities in their own responses. At its core are PASTA-LANG and its interpreter: PASTA-LANG is an annotation language that enables LLMs to express semantic independence in their own responses; the language interpreter acts on these annotations to orchestrate parallel decoding on-the-fly at inference time. Through a two-stage finetuning process, we train LLMs to generate PASTA-LANG annotations that optimize both response quality and decoding speed. Evaluation on AlpacaEval, an instruction following benchmark, shows that our approach Pareto-dominates existing methods in terms of decoding speed and response quality; our results demonstrate geometric mean speedups ranging from 1.21x to 1.93x with corresponding quality changes of +2.2% to -7.1%, measured by length-controlled win rates against sequential decoding baseline.

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

↑