arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2403.00835cs.CLcs.AI
收藏

CLLMs:一致性大语言模型

CLLMs: Consistency Large Language Models

University of California, San Diego(加利福尼亚大学圣迭戈分校);School of Electronic Information and Electrical Engineering, Shanghai Jiao Tong University(上海交通大学电子信息与电气工程学院)

Siqi Kou, Lanxiang Hu, Zhezhi He, Zhijie Deng, Hao Zhang

AI总结:

针对 Jacobi 并行解码单步难以准确预测多个 token、加速有限的问题,本文提出 CLLMs,通过精炼目标 LLM 使其从任意状态一致预测不动点,实现 2.4×–3.4× 提速且保持生成质量。

摘要:

诸如 Jacobi 解码之类的并行解码方法有望实现更高效的 LLM 推理,因为它打破了 LLM 解码过程的顺序特性,并将其转化为可并行化的计算。然而在实践中,与传统的自回归(AR)解码相比,它几乎没有实现加速,这主要是因为 Jacobi 解码在单个不动点迭代步骤中很少能准确预测超过一个 token。为解决这一问题,我们开发了一种新方法,旨在实现从 Jacobi 轨迹上的任意状态到不动点的快速收敛。其实现方式是对目标 LLM 进行精炼,使其在给定任意状态作为输入时都能一致地预测不动点。大量实验证明了我们方法的有效性,结果显示生成速度提升了 2.4 倍至 3.4 倍,同时在领域特定和开放领域基准测试中均保持了生成质量。

英文摘要:

Parallel decoding methods such as Jacobi decoding show promise for more efficient LLM inference as it breaks the sequential nature of the LLM decoding process and transforms it into parallelizable computation. However, in practice, it achieves little speedup compared to traditional autoregressive (AR) decoding, primarily because Jacobi decoding seldom accurately predicts more than one token in a single fixed-point iteration step. To address this, we develop a new approach aimed at realizing fast convergence from any state to the fixed point on a Jacobi trajectory. This is accomplished by refining the target LLM to consistently predict the fixed point given any state as input. Extensive experiments demonstrate the effectiveness of our method, showing 2.4$\times$ to 3.4$\times$ improvements in generation speed while preserving generation quality across both domain-specific and open-domain benchmarks.

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

↑