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

快速推进:通过预测性FFN稀疏性加速LLM预填

Fast Forward: Accelerating LLM Prefill with Predictive FFN Sparsity

Aayush Gautam, Mukul Gagrani, Junyoung Park, Mingu Lee, Chiris Lott, Narasimha Reddy

AI总结:

FastForward通过预测性FFN稀疏性加速LLM预填,实现计算瓶颈速度提升1.45倍,精度损失低于6%

摘要:

大型语言模型(LLM)推理的预填阶段是长上下文工作负载的关键计算瓶颈。在短至中等长度的上下文(1K-16K个标记)中,前馈网络(FFN)主导了这一成本,占总FLOPs的大部分。现有的FFN稀疏化方法,专为自回归解码设计,未能利用预填阶段的并行性,往往会导致精度下降。为了解决这个问题,我们引入了FastForward,一种预测稀疏性框架,通过块级、上下文感知的FFN稀疏性来加速LLM预填。FastForward结合(1)一个轻量级专家预测器,用于每块选择高重要性神经元;(2)一个误差补偿网络,用于纠正稀疏性引起的误差;(3)一个层间稀疏性调度器,根据标记混合的重要性分配计算资源。在LLaMA和Qwen模型中,最多8B参数,FastForward在50%FFN稀疏性下,相比密集基线在LongBench上,计算瓶颈速度提升达1.45倍,精度损失小于6%,大幅减少了在受限硬件上高效长上下文LLM推理的Time-to-First-Token(TTFT)时间。

英文摘要:

The prefill stage of large language model (LLM) inference is a key computational bottleneck for long-context workloads. At short-to-moderate context lengths (1K--16K tokens), Feed-Forward Networks (FFNs) dominate this cost, accounting for most of the total FLOPs. Existing FFN sparsification methods, designed for autoregressive decoding, fail to exploit the prefill stage's parallelism and often degrade accuracy. To address this, we introduce FastForward, a predictive sparsity framework that accelerates LLM prefill through block-wise, context-aware FFN sparsity. FastForward combines (1) a lightweight expert predictor to select high-importance neurons per block, (2) an error compensation network to correct sparsity-induced errors, and (3) a layer-wise sparsity scheduler to allocate compute based on token-mixing importance. Across LLaMA and Qwen models up to 8B parameters, FastForward delivers up to 1.45$\times$ compute-bound speedup at 50% FFN sparsity with $<$ 6% accuracy loss compared to the dense baseline on LongBench, substantially reducing Time-to-First-Token (TTFT) for efficient, long-context LLM inference on constrained hardware.

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

↑