VAQF: Fully Automatic Software-Hardware Co-Design Framework for Low-Bit Vision Transformer

现场可编程门阵列 计算机科学 量化(信号处理) 帧速率 硬件加速 软件 计算机硬件 变压器 计算机工程 嵌入式系统 人工智能 算法 程序设计语言 量子力学 物理 电压
作者
Mingwei Sun,Haoyu Ma,Guoliang Kang,Yifan Jiang,Tianlong Chen,Xiaolong Ma,Zhangyang Wang,Yanzhi Wang
出处
期刊:Cornell University - arXiv [Cornell University]
被引量:8
标识
DOI:10.48550/arxiv.2201.06618
摘要

The transformer architectures with attention mechanisms have obtained success in Nature Language Processing (NLP), and Vision Transformers (ViTs) have recently extended the application domains to various vision tasks. While achieving high performance, ViTs suffer from large model size and high computation complexity that hinders the deployment of them on edge devices. To achieve high throughput on hardware and preserve the model accuracy simultaneously, we propose VAQF, a framework that builds inference accelerators on FPGA platforms for quantized ViTs with binary weights and low-precision activations. Given the model structure and the desired frame rate, VAQF will automatically output the required quantization precision for activations as well as the optimized parameter settings of the accelerator that fulfill the hardware requirements. The implementations are developed with Vivado High-Level Synthesis (HLS) on the Xilinx ZCU102 FPGA board, and the evaluation results with the DeiT-base model indicate that a frame rate requirement of 24 frames per second (FPS) is satisfied with 8-bit activation quantization, and a target of 30 FPS is met with 6-bit activation quantization. To the best of our knowledge, this is the first time quantization has been incorporated into ViT acceleration on FPGAs with the help of a fully automatic framework to guide the quantization strategy on the software side and the accelerator implementations on the hardware side given the target frame rate. Very small compilation time cost is incurred compared with quantization training, and the generated accelerators show the capability of achieving real-time execution for state-of-the-art ViT models on FPGAs.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
kevin发布了新的文献求助10
刚刚
刚刚
刚刚
天天快乐的应助被END采纳,获得10
1秒前
zzcres发布了新的文献求助10
2秒前
2秒前
2秒前
南草北树完成签到,获得积分10
2秒前
Orange的应助被科研通管家采纳,获得10
2秒前
上官若男的应助被科研通管家采纳,获得10
2秒前
Smooth发布了新的文献求助10
2秒前
Ava的应助被科研通管家采纳,获得30
2秒前
无极微光的应助被科研通管家采纳,获得20
3秒前
3秒前
深情安青的应助被科研通管家采纳,获得10
3秒前
3秒前
李爱国的应助被科研通管家采纳,获得10
3秒前
kukuda发布了新的文献求助10
3秒前
彭于晏的应助被科研通管家采纳,获得10
3秒前
CipherSage的应助被科研通管家采纳,获得10
3秒前
Lucas的应助被科研通管家采纳,获得10
3秒前
Criminology34的应助被科研通管家采纳,获得10
3秒前
笨笨东蒽完成签到 ,获得积分10
3秒前
烟花的应助被科研通管家采纳,获得10
4秒前
桐桐的应助被科研通管家采纳,获得10
4秒前
JamesPei的应助被科研通管家采纳,获得10
4秒前
慕青的应助被科研通管家采纳,获得10
4秒前
CipherSage的应助被科研通管家采纳,获得10
4秒前
4秒前
华仔的应助被科研通管家采纳,获得20
4秒前
5秒前
5秒前
5秒前
5秒前
英俊qiang发布了新的文献求助10
7秒前
YM完成签到,获得积分10
7秒前
丘比特的应助被鳗鱼世倌采纳,获得10
7秒前
8秒前
慕青的应助被跳跃的访琴采纳,获得10
8秒前
重要的背包完成签到,获得积分10
8秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
IRTSD: Open-Source Data and Toolset for Electromagnetic Transient Analysis of Disturbances and IBR Control Malfunctions in Transmission Systems 1000
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
A Consideration on Use of Material Grades for Hull Structural Members Based on Fracture Toughness(Second Report) 500
AI Disclosure in Annual Reports: Evolution, Determinants, and Capital Market Participants’ Perceptions 500
5th World Conference on Detergents: Reinventing the Industry : Opportunities and Challenges 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 工程类 有机化学 化学工程 生物化学 物理 复合材料 内科学 催化作用 光电子学 人工智能 细胞生物学 无机化学 物理化学 数学
热门帖子
关注 科研通微信公众号,转发送积分 8106826
求助须知:如何正确求助?哪些是违规求助? 9515215
关于积分的说明 21496610
捐赠科研通 7683052
什么是DOI,文献DOI怎么找? 3410167
关于科研通互助平台的介绍 2537618
邀请新用户注册赠送积分活动 2450068