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. M 3 ViT 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. M 3 Vi $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 M 3 ViT, 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 M 3 ViT 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 M 3 ViT 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 M 3 ViT 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, 1 1 https://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
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
Minta发布了新的文献求助10
1秒前
呵呵呵应助Lucky采纳,获得20
2秒前
小蘑菇应助Tonsil01采纳,获得50
3秒前
聪明的短靴应助杨123采纳,获得10
3秒前
4秒前
科研通AI6.4应助naiz采纳,获得30
4秒前
大慶帝国御医完成签到,获得积分10
5秒前
DZZH完成签到 ,获得积分10
5秒前
6秒前
宵暮夕完成签到,获得积分10
7秒前
章英健发布了新的文献求助10
7秒前
8秒前
FFFFFFG发布了新的文献求助10
8秒前
宿零完成签到,获得积分10
10秒前
科研通AI6.4应助Minta采纳,获得10
11秒前
科小研完成签到,获得积分20
12秒前
12秒前
13秒前
可待完成签到 ,获得积分20
13秒前
popo就是康安叽完成签到,获得积分10
14秒前
wy完成签到 ,获得积分10
14秒前
15秒前
15秒前
认真若灵完成签到,获得积分20
15秒前
16秒前
17秒前
17秒前
MuGen发布了新的文献求助10
18秒前
章英健完成签到,获得积分10
18秒前
xixixii发布了新的文献求助10
18秒前
20秒前
小鱼歪优发布了新的文献求助10
21秒前
彩色雪糕完成签到,获得积分10
21秒前
funny完成签到,获得积分10
21秒前
蠕动完成签到,获得积分10
23秒前
LUOYI发布了新的文献求助10
24秒前
24秒前
24秒前
YY完成签到,获得积分20
25秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Principles of town planning: translating concepts to applications 1000
Management and the Arts 510
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
核安全综合知识2024版 500
Photothermal Science and Techniques 500
The Effective Clinical Neurologist 3ed 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7715213
求助须知:如何正确求助?哪些是违规求助? 9270440
关于积分的说明 20082048
捐赠科研通 7291619
什么是DOI,文献DOI怎么找? 3298438
关于科研通互助平台的介绍 2452604
邀请新用户注册赠送积分活动 2305879