Edge-MoE: Memory-Efficient Multi-Task Vision Transformer Architecture with Task-Level Sparsity via Mixture-of-Experts

计算机科学 变压器 建筑 任务(项目管理) 计算机体系结构 任务分析 人机交互 人工智能 嵌入式系统 工程类 电气工程 系统工程 电压 艺术 视觉艺术
作者
Rishov Sarkar,Hanxue Liang,Zhiwen Fan,Zhangyang Wang,Cong Hao
标识
DOI:10.1109/iccad57390.2023.10323651
摘要

The computer vision community is embracing two promising learning paradigms: the Vision Transformer (ViT) and Multi-task Learning (MTL). ViT models show extraordinary performance over traditional convolution networks but are commonly recognized as computation-intensive, especially the self-attention with quadratic complexity. MTL uses one model to infer multiple tasks with better performance by enforcing shared representation among tasks, but a huge drawback is that, most MTL regimes require activation of the entire model even when only one or a few tasks are needed, causing significant computing waste. M3ViT is the latest multi-task Vi$T$model that introduces mixture-of-experts (MoE), where only a small portion of subnetworks (“experts”) are sparsely and dynamically activated based on the current task. M3Vi$T$achieves better accuracy and over 80% computation reduction and paves the way for efficient real-time MTL using ViT. Despite the algorithmic advantages of MTL, ViT, and even M3ViT, there are still many challenges for efficient deployment on FPGA. For instance, in general Transformer/ViT models, the self-attention is known as computational intensive and requires high bandwidth. In addition, softmax operations and the activation function GELU are extensively used, which unfortunately can consume more than half of the entire FPGA resource (LUTs). In the M3ViT model, the promising MoE mechanism for multi-task exposes new challenges for memory access overhead and also increases resource usage because of more layer types. To address these challenges in both general Transformer/ViT models and the state-of-the-art multi-task M3ViT with MoE, we propose Edge-MoE, the first end-to-end FPGA accelerator for multi-task ViT with a rich collection of architectural innovations. First, for general Transformer/ViT models, we propose (1) a novel reordering mechanism for self-attention, which reduces the bandwidth requirement from proportional to constant regardless of the target parallelism; (2) a fast single-pass softmax approximation; (3) an accurate and low-cost GELU approximation, which can significantly reduce the computation latency and resource usage; and (4) a unified and flexible computing unit that can be shared by almost all computational layers to maximally reduce resource usage. Second, for the advanced multi-task M3ViT with MoE, we propose a novel patch reordering method to completely eliminate any memory access overhead. Third, we deliver on-board implementation and measurement on Xilinx ZCU102 FPGA, with verified functionality and open-sourced hardware design, which achieves 2.24× and 4.90× better energy efficiency comparing with GPU (A6000) and CPU (Xeon 6226R), respectively. A real-time video demonstration of our accelerated multi-task ViT on an autonomous driving dataset is available in GitHub,11https://github.com/sharc-lab/Edge-MoE/raw/main/demo.mp4 together with our FPGA design using High-Level Synthesis, host code, FPGA bitstream, and on-board performance results.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
刚刚
刚刚
思思完成签到,获得积分10
1秒前
重中之重发布了新的文献求助10
1秒前
Gallagher完成签到 ,获得积分10
1秒前
zzz完成签到,获得积分10
1秒前
1秒前
孤独的图图完成签到,获得积分10
2秒前
3秒前
秋风的应助被Misty采纳,获得10
3秒前
ZZY发布了新的文献求助10
3秒前
剑痕完成签到 ,获得积分10
3秒前
王小鱼发布了新的文献求助10
3秒前
晨曦发布了新的文献求助10
4秒前
在水一方的应助被葡萄采纳,获得10
5秒前
kkk发布了新的文献求助10
6秒前
6秒前
QAQ完成签到,获得积分10
7秒前
英勇的竺发布了新的文献求助10
8秒前
核桃的应助被grubby采纳,获得30
8秒前
炸毛小猫咪完成签到 ,获得积分10
10秒前
ml完成签到 ,获得积分10
10秒前
HtwoO完成签到,获得积分10
10秒前
董亦菲完成签到,获得积分10
10秒前
lala完成签到 ,获得积分10
10秒前
11秒前
guojianfang发布了新的文献求助10
11秒前
11秒前
可耐的冬日完成签到 ,获得积分10
11秒前
Freekor完成签到,获得积分10
12秒前
大棒槌完成签到,获得积分10
13秒前
晨曦完成签到,获得积分20
13秒前
啤啤发布了新的文献求助10
14秒前
魔幻凡雁完成签到,获得积分10
14秒前
秋风的应助被kkk采纳,获得20
14秒前
ning完成签到 ,获得积分10
14秒前
秋风的应助被Misty采纳,获得10
14秒前
16秒前
sunyi发布了新的文献求助10
16秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Energie-Contracting 1500
Spec 401: Standards for Jet Fuel Facility and Equipment Commissioning and Flushing at Airports, 2026.1 (Original Issue) 1000
Spec 103: Standard for Jet Fuel Quality Control at Airports, Revision 2026.1 1000
Mathematical models in hydrology 1000
Klimaschutzrecht durch den Energiesektor im Mehrebenensystem – Ein Rechtsvergleich 1000
Introduction to Industrial/Organizational Psychology 800
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 工程类 有机化学 化学工程 生物化学 物理 复合材料 内科学 催化作用 光电子学 人工智能 细胞生物学 无机化学 物理化学 数学
热门帖子
关注 科研通微信公众号,转发送积分 8092854
求助须知:如何正确求助?哪些是违规求助? 9505109
关于积分的说明 21445771
捐赠科研通 7665852
什么是DOI,文献DOI怎么找? 3405381
关于科研通互助平台的介绍 2533689
邀请新用户注册赠送积分活动 2444501