Vision transformers inference acceleration based on adaptive layer normalization

规范化(社会学) 计算机科学 推论 变压器 人工智能 人工神经网络 机器学习 统计推断 模式识别(心理学) 数据挖掘 电压 数学 社会学 人类学 统计 物理 量子力学
作者
Fekhr Eddine Keddous,Arcadi Llanza,Nadiya Shvai,Amir Nakib
出处
期刊:Neurocomputing [Elsevier]
卷期号:610: 128524-128524
标识
DOI:10.1016/j.neucom.2024.128524
摘要

Over the past decade, deep neural networks (DNNs) have been widely used due to their remarkable accuracy in real-world applications. However, this increase in accuracy often results in computationally expensive models and high memory usage, leading to longer prediction latencies and exorbitant release costs. In this paper, we propose a new adaptive layer normalization (ALN) algorithm for transformer models, which tackles the computational, and memory problems encountered by traditional layer normalization (LN) techniques. The proposed method computes and stores statistical moments during the training and uses them directly during the inference phase, allowing the normalization layer to be merged with the nearest linear layer. The result is a significant acceleration in inference time, by up to 29%. In classification tasks, our evaluations on the ImageNet dataset show an improvement in accuracy of 0.1%, while maintaining comparable accuracy in object detection tasks on the COCO reference dataset. The proposed ALN algorithm is a simple and effective solution for improving the inference time of pre-trained transformer models, making it a valuable tool for natural language processing and computer vision tasks.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
PDF的下载单位、IP信息已删除 (2025-6-4)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
王蕊发布了新的文献求助10
刚刚
xing完成签到,获得积分10
刚刚
天真的大船完成签到 ,获得积分10
1秒前
zasideler完成签到,获得积分10
2秒前
经纬完成签到,获得积分10
2秒前
2秒前
852应助xin采纳,获得10
2秒前
JamesPei应助夏侯初采纳,获得10
3秒前
jojo完成签到,获得积分20
3秒前
3秒前
xu完成签到,获得积分10
3秒前
大Doctor陈完成签到,获得积分10
3秒前
zyb完成签到,获得积分10
3秒前
啾啾尼泊尔完成签到,获得积分10
3秒前
土豪的沅发布了新的文献求助10
4秒前
Judy完成签到,获得积分10
4秒前
4秒前
王怡晓完成签到,获得积分20
4秒前
spacetime发布了新的文献求助10
4秒前
orixero应助小王采纳,获得10
4秒前
基金中中中完成签到,获得积分10
5秒前
文剑武书生完成签到,获得积分10
5秒前
澎湃发布了新的文献求助10
5秒前
愤怒的夜绿完成签到,获得积分10
5秒前
kks569完成签到,获得积分10
5秒前
movoandy发布了新的文献求助10
6秒前
E1gb完成签到,获得积分10
6秒前
华仔应助WLX采纳,获得10
6秒前
大Doctor陈发布了新的文献求助10
7秒前
wow完成签到 ,获得积分10
7秒前
想飞的猪完成签到,获得积分10
7秒前
左右完成签到,获得积分10
7秒前
研友_VZG7GZ应助乖宝采纳,获得30
7秒前
火山暴涨球技完成签到,获得积分10
8秒前
酷波er应助jojo采纳,获得10
8秒前
anonym11完成签到,获得积分10
8秒前
8秒前
koly完成签到 ,获得积分10
8秒前
9秒前
科研通AI2S应助平常的雁凡采纳,获得10
9秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
The Social Work Ethics Casebook: Cases and Commentary (revised 2nd ed.). Frederic G. Reamer 800
Holistic Discourse Analysis 600
Vertébrés continentaux du Crétacé supérieur de Provence (Sud-Est de la France) 600
A complete Carnosaur Skeleton From Zigong, Sichuan- Yangchuanosaurus Hepingensis 四川自贡一完整肉食龙化石-和平永川龙 600
Vertebrate Palaeontology, 5th Edition 500
Fiction e non fiction: storia, teorie e forme 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 生物化学 物理 纳米技术 计算机科学 内科学 化学工程 复合材料 物理化学 基因 遗传学 催化作用 冶金 量子力学 光电子学
热门帖子
关注 科研通微信公众号,转发送积分 5326171
求助须知:如何正确求助?哪些是违规求助? 4466411
关于积分的说明 13896710
捐赠科研通 4358767
什么是DOI,文献DOI怎么找? 2394253
邀请新用户注册赠送积分活动 1387723
关于科研通互助平台的介绍 1358660