TL;DR
SkipOPU is an FPGA-based overlay processor designed to accelerate Large Language Model (LLM) inference using dynamic computation allocation (token and layer skipping). By introducing fused nonlinear dataflows, a novel mixed-precision DSP overpacking technique, and an on-chip Key-Value (KV) invariance buffer, SkipOPU translates theoretical algorithmic savings into real-world hardware efficiency, outperforming GPUs and existing FPGA accelerators in bandwidth efficiency by up to 2.55×.
What Problem Does This Paper Address?
While LLMs deliver state-of-the-art performance, their auto-regressive decoding phase is highly memory-bound and computationally expensive. Algorithmic frameworks like SkipGPT address this by dynamically skipping submodules (like Multi-Head Attention or Feed-Forward Networks) for less informative tokens at runtime.
However, standard hardware architectures (like GPUs) are optimized for uniform, static execution. When forced to handle dynamic, token-wise skipping, they suffer from three major bottlenecks:
- Nonlinear Operation Inefficiency: Routing and normalization operations introduce complex data dependencies that break execution pipelines and cause long latencies.
- Underutilized Hardware in Hybrid Precision: LLM weights can be quantized to 4-bit integers, but activations usually remain in FP16. Standard Processing Elements (PEs) cannot efficiently handle this mixed-precision regime, leading to wasted hardware resources.
- Irregular Memory Access: Reusing KV cache entries across layers for skipped tokens creates highly fragmented off-chip memory access patterns, destroying High Bandwidth Memory (HBM) burst efficiency.
Methods
The authors present SkipOPU, an FPGA overlay processor implemented on an AMD Alveo U280 board that tackles these challenges through three core innovations:
- Deep-Fused Dataflow: The architecture decouples the reduction phase (e.g., calculating mean and variance in RMSNorm or max/sum in Softmax) from element-wise normalization. Reductions are performed incrementally and fused with adjacent linear operations, effectively hiding nonlinear latency within the pipeline.
- Mixed-Precision PE Array with DSP Overpacking: To maximize the utilization of FPGA DSP blocks (DSP48E2), the authors designed a fine-grained packing technique. By selectively truncating operand significands and utilizing the DSP's native C-port for "information injection" and corruption recovery, they pack multiple parallel multiplications into a single DSP. This is paired with a lightweight Block Floating Point (BFP) accumulation tree to minimize floating-point overhead.
- Proactive On-Chip KV Invariance Buffer: For skipped tokens, KV values remain unchanged across layers. SkipOPU exploits this cross-layer invariance by caching these entries in on-chip UltraRAM (URAM). This converts irregular off-chip HBM accesses into high-locality on-chip reuses, preserving long, contiguous burst transactions for newly generated KV data.
Datasets
The architecture was evaluated using the Llama2-7B and Llama2-13B models pruned via the SkipGPT methodology (with an approximate 25% skipping probability). Model perplexity and accuracy were validated across two standard benchmarks:
- WikiText2
- PTB (Penn Treebank)
Key Insights and Ideas
- Exploiting Permutation Invariance: The authors realized that the final reduction in self-attention is sum-based and therefore invariant to the arrival sequence of tokens. This allowed them to process out-of-order, locally permuted tokens directly in the PE array without using expensive Reorder Buffers (ROB), significantly saving Look-Up Table (LUT) and Flip-Flop (FF) resources.
- Breaking Precision Boundaries via Truncation: Instead of treating multiplication as a monolithic block, the authors structurally decomposed it. Truncating the least significant bits before execution reduced the number of corrupted guard bits, making corruption recovery simple enough to be handled entirely within the DSP's internal adder fabric rather than relying on external LUTs.
- Look-Ahead Routing: Because routing decisions for the next layer are finalized during the current token's decoding step, the hardware can proactively manage the on-chip KV buffer in the background with zero runtime overhead.
Key Results
- Bandwidth Efficiency: SkipOPU achieved 86.7% and 89.1% bandwidth efficiency for Llama2-7B and 13B, respectively, outperforming GPU (vLLM on an A100) and prior FPGA accelerators by 1.31× to 2.55×.
- Throughput: Under the Llama2 workload, SkipOPU achieved a decoding throughput of 140.8 Token/s for the 7B model and 75.6 Token/s for the 13B model.
- Resource and Storage Savings: The DSP overpacking and BFP accumulation tree saved 57.2% of LUT resources compared to standard cascaded FP16 accumulation. Additionally, the cross-layer KV reuse strategy reduced KV cache storage overhead by up to 25.4%.
Limitations and Future Work
The primary limitation manifests in high-sparsity scenarios (skipping ratios $\alpha \ge 40\%$). Under such aggressive pruning, the volume of read and write-back transactions to the on-chip KV invariance buffer increases drastically. Once this volume exceeds the physical access bandwidth of the instantiated URAMs, structural hazards on the buffer ports induce execution pipeline stalls, causing the overall speedup to plateau below the theoretical algorithmic gains. Future work will likely focus on multi-port buffer optimizations or multi-banking strategies to alleviate this bandwidth bottleneck.
Summary updated