A Vector Metadata-Residency Subsystem for Grouped-Query Attention on FPGA Accelerators
Abstract
Long-context inference systems increasingly require hardware support for deciding which token or KVcache metadata should remain resident near the accelerator. This paper extends a scalar non-stalling metadata-residency tile into a scalable vector subsystem for per-layer, per-head, and grouped-query-attention (GQA) deployment. The scalar tile performs one metadata decision per cycle using dynamic threshold admission, structural hashing, a dual-bank BRAM table, a small CAM stash, bounded score-conditioned eviction, and non-blocking bypass/drop paths. A new 1024-bit vector wrapper instantiates sixteen independent scalar tiles behind sixteen 64-bit lanes, allowing either eight waves for 128 query heads or one wave for sixteen KV groups under an 8:1 GQA mapping when upstream logic emits per-KV-group metadata. Out-of-context synthesis of the vector1024 subsystem on a Xilinx Kintex UltraScale xcku13p device meets a 200 MHz target with +0.255 ns WNS, using 28698 LUTs, 25955 registers, 48 RAMB36E2 blocks, and zero DSPs. Functional simulation passes for the 1024-bit/16-lane wrapper. Trace-level evaluation on Qwen2.5 and DeepSeek attention metadata shows full maximum-score top-K recall by K = 16 in the evaluated grouped schedule; a separate exhaustive DeepSeek-R1 1.5B archive sweep over 28 layers, 12 heads per layer, and 8192 events per head shows high mean maximum-score recall across all 336 traces. The result is metadata-residency and scheduling evidence, not an end-to-end LLM quality or GPU speedup claim
Create a lesson
Related papers
Exploring Runtime-Configurable Piecewise Linear Function Interpolation for FPGA-Based LLM Hardware Acceleration
Shared title terminologycs.ARPatrick Nepveu-Nelson, Fabiola Jiménez-Chacón, Roger Morales-Monge et al.
WADJET: Whole-Job Authorization and Dispatch for Job Execution Trust on FPGA System-on-Chip Accelerators
Shared title terminologycs.ARMohamed El-Hadedy
Native Block-Quantized Matrix Multiplication and Explicit K/V Residency with Dual-View Access for LLM Inference on RISC-V Vector Processors
Shared title terminologycs.ARWeiying Wang, Yuanyang Xiang, Zhiwei Zhang
Bottom-Up FPGA Reconfigurable Accelerator Overlay Generation
Shared title terminologycs.ARMohamed Bouaziz, Suhaib A. Fahmy
PACER: Accelerating Mixture-of-Experts LLM Inference on High Bandwidth Flash Memory via Resource-Aware Expert Prefetching and Caching
Shared title terminologycs.ARGeraldo F. Oliveira, Ahmet Caner Yüzügüler, Renzo Andri et al.
Sattva: A Hardware-Algorithm Co-Designed SAT Solving Accelerator with Off-Chip Scalability
Shared title terminologycs.ARHuifeng Ke, Michael Lo, Justin Oh et al.