QUILL:面向缓存局部性可变形注意力的算法-架构协同设计
QUILL: An Algorithm-Architecture Co-Design for Cache-Local Deformable Attention
AI总结:
针对可变形Transformer因不规则内存访问、低算术强度难以硬件适配的问题,提出算法-架构协同设计的调度感知加速器QUILL,可实现缓存友好的单次可变形注意力计算,显著提升吞吐量与能效且精度损失极小。
摘要:
可变形Transformer实现了当前最优的检测性能,但因不规则内存访问与低算术强度难以高效映射到硬件。本文提出QUILL,一种调度感知加速器,可将可变形注意力转化为缓存友好的单次处理工作流。其核心是基于距离的乱序查询(DOOQ)机制,按空间邻近度对查询排序;前瞻逻辑驱动区域预取至备用缓冲区,形成可重叠内存访问与计算的调度感知预取循环。融合式MSDeformAttn引擎单次遍历即可完成插值、Softmax、聚合与最终投影(W''m)操作,无需溢出中间结果,同时小张量保留在片上,周边稠密层则在集成GEMM单元上运行。基于RTL实现并开展端到端评估,QUILL吞吐量最高达RTX 4090的7.29倍,能效为其47.3倍;相比此前加速器,吞吐量提升3.26-9.82倍,能效提升2.01-6.07倍。采用混合精度量化后,在Deformable DETR与Sparse DETR变体上,精度与FP32的差距不超过0.9 AP。通过将稀疏性转化为局部性、再将局部性转化为利用率,QUILL实现了稳定的端到端加速。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。