OverFill: Two-Stage Models for Efficient Language Model Decoding

Woojeong Kim, Junxiong Wang, Jing Nathan Yan, Mohamed Abdelfattah, Alexander M. Rush
8/11/2025
cs.AI

Official code: friendshipkim/overfill (5 stars, last commit 2025-09-02).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

Code for OverFill: Two-Stage Models for Efficient Language Model Decoding

52Shell, PythonApr 21, 20251 years ago
efficient-deep-learninglarge-language-modelspruning

Similar Papers

Cite this paper

@article{kim2025overfill,
  title  = {OverFill: Two-Stage Models for Efficient Language Model Decoding},
  author = {Woojeong Kim and Junxiong Wang and Jing Nathan Yan and Mohamed Abdelfattah and Alexander M. Rush},
  year   = {2025},
  eprint = {2508.08446},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.08446v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.08446.svg)](https://codeofpaper.com/paper/2508.08446)

Discussion