QUILL: An Algorithm-Architecture Co-Design for Cache-Local Deformable Attention
Hyunwoo Oh, Hanning Chen, Sanggeon Yun, Yang Ni, Wenjun Huang, Tamoghno Das, Suyeon Jang, Mohsen Imani
TL;DR
Deformable transformer inference suffers from irregular memory accesses that limit hardware efficiency. QUILL couples a schedule-aware DOOQ-based prefetch with a fused MSDeformAttn core to transform sparse sampling into cache-friendly, single-pass computation, preserving model accuracy. The RTL-based accelerator achieves up to 7.29× throughput and 47.3× energy efficiency over a top-tier GPU, and outperforms prior accelerators by up to 9.82× in throughput while maintaining FP32-level accuracy under mixed precision. By converting sparsity to locality and locality to utilization, QUILL demonstrates robust end-to-end speedups for Deformable DETR variants and establishes a scalable, co-design paradigm for sparse attention in vision transformers.
Abstract
Deformable transformers deliver state-of-the-art detection but map poorly to hardware due to irregular memory access and low arithmetic intensity. We introduce QUILL, a schedule-aware accelerator that turns deformable attention into cache-friendly, single-pass work. At its core, Distance-based Out-of-Order Querying (DOOQ) orders queries by spatial proximity; the look-ahead drives a region prefetch into an alternate buffer--forming a schedule-aware prefetch loop that overlaps memory and compute. A fused MSDeformAttn engine executes interpolation, Softmax, aggregation, and the final projection (W''m) in one pass without spilling intermediates, while small tensors are kept on-chip and surrounding dense layers run on integrated GEMMs. Implemented as RTL and evaluated end-to-end, QUILL achieves up to 7.29x higher throughput and 47.3x better energy efficiency than an RTX 4090, and exceeds prior accelerators by 3.26-9.82x in throughput and 2.01-6.07x in energy efficiency. With mixed-precision quantization, accuracy tracks FP32 within <=0.9 AP across Deformable and Sparse DETR variants. By converting sparsity into locality--and locality into utilization--QUILL delivers consistent, end-to-end speedups.
