arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2508.08446cs.AI
收藏

OverFill:用于高效语言模型解码的两阶段模型

OverFill: Two-Stage Models for Efficient Language Model Decoding

Cornell University(康奈尔大学)

Woojeong Kim, Junxiong Wang, Jing Nathan Yan, Mohamed Abdelfattah, Alexander M. Rush

AI总结:

提出OverFill两阶段解码框架,通过解耦预填充与解码阶段并切换至剪枝模型,在最小延迟下显著提升生成质量,性能超越同尺寸剪枝模型且训练数据更少。

摘要:

大型语言模型(LLMs)在多种任务中表现出色,但由于高昂的推理成本面临重大的部署挑战。LLM推理包括预填充(计算受限)和解码(内存受限)阶段,其中解码在长序列中主导延迟。当前的纯解码器模型统一处理这两个阶段,尽管它们的计算特征截然不同。我们提出了OverFill,将这两个阶段解耦以优化准确性与效率的权衡。OverFill首先使用完整模型进行预填充,并行处理系统和用户输入。然后切换到密集剪枝模型,同时顺序生成词元。通过在预填充期间利用更多计算,OverFill以最小的延迟开销提升了生成质量。我们的3B到1B OverFill配置比1B剪枝模型高出83.2%,而8B到3B配置在标准基准上平均比3B剪枝模型高出79.2%。OverFill匹配了从头训练的同尺寸模型的性能,同时使用显著更少的训练数据。代码可在 https://github.com/friendshipkim/overfill 获取。

英文摘要:

Large language models (LLMs) excel across diverse tasks but face significant deployment challenges due to high inference costs. LLM inference comprises prefill (compute-bound) and decode (memory-bound) stages, with decode dominating latency particularly for long sequences. Current decoder-only models handle both stages uniformly, despite their distinct computational profiles. We propose OverFill, which decouples these stages to optimize accuracy-efficiency tradeoffs. OverFill begins with a full model for prefill, processing system and user inputs in parallel. It then switches to a dense pruned model, while generating tokens sequentially. Leveraging more compute during prefill, OverFill improves generation quality with minimal latency overhead. Our 3B-to-1B OverFill configuration outperforms 1B pruned models by 83.2%, while the 8B-to-3B configuration improves over 3B pruned models by 79.2% on average across standard benchmarks. OverFill matches the performance of same-sized models trained from scratch, while using significantly less training data. Our code is available at https://github.com/friendshipkim/overfill.

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

↑