Skip to main content
QUICK REVIEW

[Paper Review] FAST-Prefill: FPGA Accelerated Sparse Attention for Long Context LLM Prefill

Rakshith Jayanth, Viktor Prasanna|arXiv (Cornell University)|Feb 24, 2026
Advanced Neural Network ApplicationsComputer Science0 citations
TL;DR

FAST-Prefill is an FPGA accelerator for dynamic sparse attention in long-context LLM prefill, delivering streaming sparse index generation, a liveness-driven two-tier KV cache, and a hybrid matrix processing unit, with up to 2.5x TTFT and up to 4.5x energy efficiency gains over GPU baselines.

ABSTRACT

In long-context large language model (LLM) inference, the prefill stage dominates computation due to self-attention over the complete input context. Sparse attention significantly reduces self-attention computation by limiting each token's interactions to a subset of tokens. The attention sparsity pattern varies across input prompts, and within a prompt, each attention head can follow a distinct pattern. This makes attention sparsity dynamic. The requirement of generating the sparsity pattern, combined with limited data reuse in attention, shifts the prefill compute to being memory-bound. This, in addition to the huge energy requirements for long-context inference on GPU, motivates FPGAs as good candidates for accelerating dynamic long-context inference. To tackle these challenges, we propose FAST-Prefill, the first FPGA accelerator for long-context prefill-stage inference with dynamic sparse attention. To efficiently generate sparse indices, we propose a extit{fused pipeline unit with a memory-aware execution order} to reduce large tensors and irregular memory accesses. To reduce off-chip memory traffic for accessing the KV cache, we utilize the memory hierarchy to design a extit{liveness-driven, dual-tier cache}. For high-throughput matrix multiplication, we design a extit{hybrid Matrix Processing Unit (MPU)} with DSPs and bit-plane decomposition using LUTs. We implement FAST-Prefill on Alveo U280 and evaluate it on the Llama and Qwen models (batch size = 1) for context lengths ranging from 4K to 128K tokens. We demonstrate an average speedup of up to 2.5$ imes$ in TTFT and 4.5$ imes$ improvement in energy efficiency over GPU implementation on Nvidia A5000 GPU.

Motivation & Objective

  • Motivate efficient long-context LLM prefill where self-attention is the dominant cost.
  • Address challenges of dynamic sparsity patterns and memory-bound prefill workloads on FPGA.
  • Propose architectural innovations to generate sparse indices, manage KV cache, and accelerate matmul.
  • Demonstrate feasibility and performance/energy benefits on FPGA hardware for real models.

Proposed method

  • Propose FAST-Prefill, the first FPGA accelerator for dynamic sparse prefill in long-context LLMs with W8A8 precision.
  • Implement a streaming, memory-aware Sparse Index Generation Unit (SIGU) that eliminates large intermediate tensors via incremental aggregation.
  • Design a liveness-driven, dual-tier KV cache (Hot/Cold) to reduce off-chip memory traffic and improve KV reuse.
  • Develop a Hybrid Matrix Processing Unit (MPU) that combines DSP-based and bit-plane (LUT-based) arithmetic for INT-8 matmul.
  • Process input in 128-token chunks with a barrier-filled pipeline to maintain correctness in sparse index generation while streaming through layers.
  • Evaluate on Xilinx Alveo U280 against Nvidia A5000, using Llama and Qwen models across 4K–128K context lengths, reporting TTFT and energy efficiency.
Figure 1 : FAST-Prefill Architecture
Figure 1 : FAST-Prefill Architecture

Experimental results

Research questions

  • RQ1Can dynamic sparse attention be efficiently accelerated on FPGA for long-context prefill with W8A8 precision?
  • RQ2How can sparse index generation be fused with accumulation to avoid large intermediates on FPGA?
  • RQ3What cache design and memory hierarchy best sustains high KV reuse for dynamic sparsity patterns?
  • RQ4Does a hybrid MPU combining bit-plane and DSP-based matmul improve throughput for INT-8 compute?

Key findings

  • FAST-Prefill achieves up to 1.2–2.5x TTFT improvement over GPU-based dynamic sparse prefill implementations.
  • FAST-Prefill delivers up to 4.5x energy efficiency relative to the GPU baseline.
  • A liveness-driven two-tier KV cache yields ~65% hit rate, reducing off-chip accesses and improving TTFT by ~2.5x vs cacheless design.
  • Hybrid MPU provides ~1.8x latency improvement over DSP-only MPU and prevents LUTs from idling.
  • Streaming sparse index generation fused with accumulation avoids materializing large intermediates (≈4KB vs ≈4GB) and enables bandwidth-efficient operation.
  • Compared to Flex-Prefill baselines, W8A8-FAST-Prefill maintains comparable accuracy on RULER benchmarks when quantized to INT-8.
Figure 2 : Prefill Workflow with Sparse Attention
Figure 2 : Prefill Workflow with Sparse Attention

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.