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

面向高效测试时计算扩展的并行循环Transformer

Parallel Loop Transformer for Efficient Test-Time Computation Scaling

ByteDance Seed(字节跳动种子)

Bohong Wu, Mengzhao Chen, Xiang Luo, Shen Yan, Qifan Yu, Fan Xia, Tianqi Zhang, Hongrui Zhan, Zheng Zhong, Xun Zhou, Siyuan Qiao, Xingyan Bin

AI总结:

针对循环Transformer推理延迟与内存成本随循环数增长的问题,提出并行循环Transformer,通过跨循环并行和高效表征增强策略,在保持高准确率的同时实现接近标准Transformer的低延迟与低内存开销。

摘要:

大语言模型(LLMs)性能强大,但推理阶段的实际应用往往速度过慢、成本过高。循环Transformer通过在多个计算步骤(即“循环”)中复用同一组权重来节省参数,但该方法存在重大缺陷:循环依次串行运行,导致推理延迟和内存需求随循环数量增加而上升,无法适配高速度要求的应用场景。为解决这一问题,我们提出并行循环Transformer(PLT)——一种兼具深度循环模型性能优势、又具备标准非循环模型低延迟特性的新架构。PLT基于两项核心技术实现:第一,跨循环并行(CLP)打破串行依赖,在单次前向传播中同时为不同token计算不同循环的输出;第二,为抑制内存成本增长,采用高效表征增强策略:将首个循环的内存(KV缓存)共享给所有其他循环,再通过门控滑动窗口注意力(G-SWA)融合共享的全局信息与局部信息,维持高准确率。实验结果表明,PLT达到了传统循环模型的高准确率,且与标准Transformer相比几乎无额外延迟或内存开销。

英文摘要:

Large Language Models (LLMs) are powerful but often too slow and costly for real-world use during inference. Looped transformers save on parameters by reusing the same weights for multiple computational steps, or "loops." However, this approach has a major flaw: the loops run one after another, causing inference latency and memory requirements to increase with each added loop. This makes them impractical for fast applications. To solve this problem, we introduce the Parallel Loop Transformer (PLT). PLT is a new architecture that delivers the performance benefits of a deep, looped model but with the low latency of a standard, non-looped model. PLT works using two key techniques. First, Cross-Loop Parallelism (CLP) breaks the sequential dependency by computing different loops for different tokens at the same time, all within a single pass. Second, to prevent memory costs from growing, we use an Efficient Representation Enhancement strategy. This method shares the memory (KV cache) from the first loop with all other loops. It then uses a Gated Sliding-Window Attention (G-SWA) to combine this shared global information with local information, maintaining high accuracy. Our experiments show that PLT achieves the high accuracy of a traditional looped model but with almost no extra latency or memory cost compared to a standard transformer.

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

↑