arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.00959cs.AR
收藏

利用近内存处理架构加速多尺度可变形注意机制

Accelerating Multi-Scale Deformable Attention Using Near-Memory-Processing Architecture

University of Central Florida(中佛罗里达大学);Huazhong University of Sci. & Tech.(华中科技大学);National University of Singapore(新加坡国立大学)

Huize Li, Qinggang Wang, Bing Gao, Dan Chen, Yu Huang, Xin Xin

AI总结:

本文提出DANMP,通过非均匀NMP集成和聚类打包方法,优化MSDAttn的内存访问,实现97.43倍加速和208.47倍能效提升。

摘要:

多尺度可变形注意机制(MSDAttn)因其有效的多尺度网格采样(MSGS)而成为各种视觉任务中的基本组件。然而,其依赖于随机采样导致高度不规则的内存访问模式,使其成为对GPU而言内存密集型且效率低下的操作。近内存处理(NMP)为加速内存受限内核提供了有前景的解决方案,但现有的基于NMP的注意加速器在MSDAttn方面仍不够优化,原因是负载均衡和数据重用策略不兼容。具体而言,当前的NMP解决方案在所有银行上均匀分布处理元素(PEs),导致显著的PE利用率低下和过多的跨银行数据传输。此外,大多数依赖于局部性基于的重用,这在MSDAttn的不可预测的采样模式下会失败。为了解决这些挑战,本文提出了DANMP,一种基于NMP的MSDAttn加速器,采用了非均匀的NMP集成来处理不平衡的工作负载,在选定的银行中仅分配PEs以处理热点条目,而冷数据则在银行组级别进行处理,从而减少PE空闲时间和跨银行传输。在软件方面,它引入了一种聚类和打包(CAP)方法,利用聚类来提高查询处理中的时间局部性,增强数据重用。最后,我们实现了主机NMP共同优化技术,包括优化的编程模型、定制指令和定制的数据流。在目标检测推理实验中,DANMP在NVIDIA A6000 GPU上实现了97.43倍的加速和208.47倍的能量效率提升。

英文摘要:

Multi Scale Deformable Attention (MSDAttn) has become a fundamental component in various vision tasks due to its effective multi scale grid sampling (MSGS). However, its reliance on random sampling results in highly irregular memory access patterns, making it a memory intensive operation inefficient for GPUs. Near memory processing (NMP) offers a promising solution for accelerating memory bound kernels, yet existing NMP based attention accelerators remain suboptimal for MSDAttn due to incompatible load balancing and data reuse strategies. Specifically, current NMP solutions uniformly distribute processing elements (PEs) across all banks, leading to significant PE underutilization and excessive cross bank data transfers. Moreover, most rely on locality based reuse, which fails under MSDAttn's unpredictable sampling patterns. To address these challenges, this paper presents DANMP, a hardware software co designed NMP based MSDAttn accelerator. On the hardware side, DANMP adopts non uniform NMP integration to handle unbalanced workloads, allocating PEs only in select banks for hot entries, while cold data are processed at the bank group level reducing PE idleness and cross bank transfers. On the software side, it introduces a clustering and packing (CAP) method that leverages clustering to improve temporal locality in query processing, enhancing data reuse. Finally, we implement host NMP co optimization techniques, including an optimized programming model, customized instructions, and a tailored dataflow. Experiments on object detection inference show that DANMP achieves 97.43x speedup and 208.47x energy efficiency improvement over NVIDIA A6000 GPU.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑