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
1秒前
2秒前
年轻的安萱完成签到,获得积分10
2秒前
寻道图强应助殷勤的香魔采纳,获得30
2秒前
小萝卜发布了新的文献求助10
3秒前
寻道图强应助风清扬采纳,获得30
3秒前
李爱国应助sc采纳,获得10
4秒前
momo完成签到,获得积分10
5秒前
上官若男应助虚心半莲采纳,获得10
5秒前
6秒前
6秒前
寒战完成签到,获得积分10
6秒前
马伊猫发布了新的文献求助10
8秒前
量子星尘发布了新的文献求助10
9秒前
吖嘿吖嘿发布了新的文献求助10
11秒前
12秒前
脑洞疼应助吴建文采纳,获得10
12秒前
EMMA发布了新的文献求助10
12秒前
寻道图强应助justinshi采纳,获得30
12秒前
13秒前
14秒前
zzznznnn发布了新的文献求助10
15秒前
开心最重要完成签到,获得积分20
17秒前
18秒前
18秒前
ztf完成签到,获得积分20
18秒前
18秒前
EMMA完成签到,获得积分10
18秒前
panpan发布了新的文献求助10
19秒前
小胡完成签到,获得积分10
19秒前
1825822526发布了新的文献求助10
20秒前
科研通AI2S应助Pan采纳,获得10
20秒前
Eleanor完成签到,获得积分10
21秒前
vv完成签到,获得积分10
21秒前
22秒前
李园园完成签到 ,获得积分10
22秒前
lulu1234完成签到,获得积分10
23秒前
23秒前
Yut完成签到,获得积分10
23秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Introduction to Early Childhood Education 1000
List of 1,091 Public Pension Profiles by Region 921
Aerospace Standards Index - 2025 800
Identifying dimensions of interest to support learning in disengaged students: the MINE project 800
流动的新传统主义与新生代农民工的劳动力再生产模式变迁 500
Historical Dictionary of British Intelligence (2014 / 2nd EDITION!) 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 生物化学 物理 纳米技术 计算机科学 内科学 化学工程 复合材料 物理化学 基因 遗传学 催化作用 冶金 量子力学 光电子学
热门帖子
关注 科研通微信公众号,转发送积分 5434405
求助须知:如何正确求助?哪些是违规求助? 4546699
关于积分的说明 14203825
捐赠科研通 4466675
什么是DOI,文献DOI怎么找? 2448251
邀请新用户注册赠送积分活动 1439079
关于科研通互助平台的介绍 1415956