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

UbiMoE:一种在 FPGA 上采用混合计算模式的普适性混合专家 Vision Transformer 加速器

UbiMoE: A Ubiquitous Mixture-of-Experts Vision Transformer Accelerator With Hybrid Computation Pattern on FPGA

Jiale Dong, Wenqi Lou, Zhendong Zheng, Yunji Qin, Lei Gong, Chao Wang, Xuehai Zhou

AI总结:

本文提出端到端 FPGA 加速器 UbiMoE,通过流式注意力、可复用线性内核和两阶段启发式参数搜索,在两种平台上显著提升 MoE-ViT 的吞吐量与能效。

摘要:

与传统 Vision Transformers(ViT)相比,Mixture-of-Experts Vision Transformers(MoE-ViT,混合专家视觉 Transformer)被提出用于扩展模型规模,同时不会带来计算复杂度的成比例增加,因此成为新的研究热点。凭借高性能和可重构性,面向 MoE-ViT 的基于 FPGA 的加速器开始出现,并相较通用处理器带来显著收益。然而,现有加速器往往未能充分探索设计空间,导致资源利用率与性能之间的权衡不够理想。为解决该问题,我们提出 UbiMoE,这是一种专为 MoE-ViT 定制的新型端到端 FPGA 加速器。利用 MoE-ViT 独特的计算与访存模式,我们开发了延迟优化的流式注意力内核以及资源高效的可复用线性内核,有效平衡性能与资源消耗。为进一步提升设计效率,我们提出两阶段启发式搜索算法,针对不同 FPGA 资源约束最优地调节硬件参数。与最先进(SOTA)FPGA 设计相比,UbiMoE 在 Xilinx ZCU102 和 Alveo U280 平台上分别使 MoE-ViT 吞吐量提升 1.34 倍和 3.35 倍,同时将能效分别提高 1.75 倍和 1.54 倍。我们的实现可在 https://github.com/DJ000011/UbiMoE 获取。

英文摘要:

Compared to traditional Vision Transformers (ViT), Mixture-of-Experts Vision Transformers (MoE-ViT) are introduced to scale model size without a proportional increase in computational complexity, making them a new research focus. Given the high performance and reconfigurability, FPGA-based accelerators for MoE-ViT emerge, delivering substantial gains over general-purpose processors. However, existing accelerators often fall short of fully exploring the design space, leading to suboptimal trade-offs between resource utilization and performance. To overcome this problem, we introduce UbiMoE, a novel end-to-end FPGA accelerator tailored for MoE-ViT. Leveraging the unique computational and memory access patterns of MoE-ViTs, we develop a latency-optimized streaming attention kernel and a resource-efficient reusable linear kernel, effectively balancing performance and resource consumption. To further enhance design efficiency, we propose a two-stage heuristic search algorithm that optimally tunes hardware parameters for various FPGA resource constraints. Compared to state-of-the-art (SOTA) FPGA designs, UbiMoE achieves 1.34x and 3.35x throughput improvements for MoE-ViT on Xilinx ZCU102 and Alveo U280 platforms, respectively, while enhancing energy efficiency by 1.75x and 1.54x. Our implementation is available at https://github.com/DJ000011/UbiMoE.

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

↑