Reproduce “Fast Forward: Accelerating LLM Prefill with Predictive FFN Sparsity” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

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

A framework named FastForward accelerates Large Language Model prefill by applying predictive, block-wise sparsity to Feed-Forward Networks, achieving up to a 1.45x end-to-end speedup for LLaMA models with minimal accuracy degradation (2-6% on LongBench). This approach integrates an expert neuron predictor, an error compensation network, and a layer-wise sparsity scheduler to efficiently process long input prompts.

Key insights

  • Feed-Forward Networks (FFNs) constitute the primary computational bottleneck during LLM prefill for a wide range of practical context lengths.
  • Applying dynamic, block-wise FFN sparsity, guided by an expert predictor, can significantly reduce prefill computation without breaking inherent parallelism.
  • Layer-wise sparsity scheduling and preserving density in critical blocks (first and last) are essential for maintaining model accuracy amidst aggressive sparsity.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.