Hessian matrix–aware comprehensive post-training quantization for vision transformers

计算机科学 人工智能 黑森矩阵 计算机视觉 量化(信号处理) 数学 应用数学
作者
Weixing Zhang,Zhuang Tian,Nan Lin,Cong Yang,Yongxia Chen
出处
期刊:Journal of Electronic Imaging [SPIE]
卷期号:34 (01)
标识
DOI:10.1117/1.jei.34.1.013009
摘要

In recent years, vision transformers (ViTs) have made significant breakthroughs in computer vision and have demonstrated great potential in large-scale models. However, the quantization methods for convolutional neural network models do not perform well on ViTs models, leading to a significant decrease in accuracy when applied to ViTs models. We extend the quantization parameter optimization method based on the Hessian matrix and apply it to the quantization of the LayerNorm module in ViT models. This approach reduces the impact of quantization on task accuracy for the LayerNorm module and enables more comprehensive quantization of ViT models. To achieve fast quantization of ViTs models, we propose a quantization framework specifically designed for ViTs models: Hessian matrix–aware post-training quantization for vision transformers (HAPTQ). The experimental results on various models and datasets demonstrate that our HAPTQ method, after quantizing the LayerNorm module of various ViT models, can achieve lossless quantization (with an accuracy drop of less than 1%) in ImageNet classification tasks. Specifically, the HAPTQ method achieves 85.81% top-1 accuracy on the ViT-L model.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
栗栗栗知应助科研通管家采纳,获得10
刚刚
烟花应助科研通管家采纳,获得10
刚刚
刚刚
Hello应助科研通管家采纳,获得10
刚刚
刚刚
酷波er应助科研通管家采纳,获得10
刚刚
hfhyf发布了新的文献求助10
1秒前
5秒前
5秒前
Doria完成签到 ,获得积分10
6秒前
6秒前
7秒前
8秒前
朱浩强发布了新的文献求助10
12秒前
12秒前
葱葱完成签到,获得积分10
13秒前
JamesPei应助端庄梦桃采纳,获得10
13秒前
温暖静柏发布了新的文献求助10
13秒前
liang发布了新的文献求助10
15秒前
15秒前
发飙的牛发布了新的文献求助10
19秒前
20秒前
23秒前
坦率的跳跳糖完成签到 ,获得积分10
23秒前
xc发布了新的文献求助10
23秒前
24秒前
liang完成签到,获得积分10
25秒前
27秒前
Arueliano完成签到,获得积分20
32秒前
32秒前
ss应助土豆采纳,获得10
34秒前
Tao完成签到,获得积分10
35秒前
39秒前
发飙的牛完成签到,获得积分20
40秒前
科研通AI5应助朱浩强采纳,获得10
40秒前
端庄梦桃发布了新的文献求助10
43秒前
土豪的紫荷完成签到 ,获得积分10
45秒前
46秒前
47秒前
大大小完成签到,获得积分10
48秒前
高分求助中
【此为提示信息,请勿应助】请按要求发布求助,避免被关 20000
Continuum Thermodynamics and Material Modelling 2000
Encyclopedia of Geology (2nd Edition) 2000
105th Edition CRC Handbook of Chemistry and Physics 1600
Maneuvering of a Damaged Navy Combatant 650
Периодизация спортивной тренировки. Общая теория и её практическое применение 310
Mixing the elements of mass customisation 300
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 物理 生物化学 纳米技术 计算机科学 化学工程 内科学 复合材料 物理化学 电极 遗传学 量子力学 基因 冶金 催化作用
热门帖子
关注 科研通微信公众号,转发送积分 3778743
求助须知:如何正确求助?哪些是违规求助? 3324286
关于积分的说明 10217819
捐赠科研通 3039427
什么是DOI,文献DOI怎么找? 1668081
邀请新用户注册赠送积分活动 798533
科研通“疑难数据库(出版商)”最低求助积分说明 758401