SOLE: Hardware-Software Co-design of Softmax and LayerNorm for Efficient Transformer Inference

Softmax函数 计算机科学 加速 推论 规范化(社会学) 变压器 高效能源利用 计算 量化(信号处理) 计算机工程 软件 算法 并行计算 人工智能 计算机硬件 工程类 深度学习 电压 社会学 人类学 电气工程 程序设计语言
作者
Wenxun Wang,Shuchang Zhou,Wenyu Sun,Peiqin Sun,Yongpan Liu
标识
DOI:10.1109/iccad57390.2023.10323725
摘要

Transformers have shown remarkable performance in both natural language processing (NLP) and computer vision (CV) tasks. However, their real-time inference speed and efficiency are limited due to the inefficiency in Softmax and Layer Normalization (LayerNorm). Previous works based on function approximation suffer from inefficient implementation as they place emphasis on computation while disregarding memory overhead concerns. Moreover, such methods rely on retraining to compensate for approximation error which can be costly and inconvenient. In this paper, we present SOLE, a hardware-software co-design for Softmax and LayerNorm which is composed of E2Softmax and AILayerNorm. E2Softmax utilizes log2 quantization of exponent function and log-based division to approximate Softmax while AILayerNorm adopts low-precision statistic calculation. Compared with state-of-the-art designs, we achieve both low-precision calculation and low bit-width storage on Softmax and LayerNorm. Experiments show that SOLE maintains inference accuracy without retraining while offering orders of magnitude speedup and energy savings over GPU, achieving 3.04×, 3.86× energy-efficiency improvements and 2.82×, 3.32× area-efficiency improvements over prior state-of-the-art custom hardware for Softmax and LayerNorm, respectively.
最长约 10秒,即可获得该文献文件

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

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
小马甲应助666采纳,获得50
1秒前
善学以致用应助33采纳,获得10
2秒前
bkagyin应助猪猪hero采纳,获得10
3秒前
自由的雪一完成签到,获得积分10
4秒前
Lucas应助wwe采纳,获得10
6秒前
6秒前
七七完成签到,获得积分10
7秒前
denny完成签到,获得积分10
8秒前
9秒前
正直尔曼完成签到,获得积分10
9秒前
量子星尘发布了新的文献求助50
10秒前
11秒前
11秒前
14秒前
33发布了新的文献求助10
14秒前
圆圆发布了新的文献求助10
15秒前
zz发布了新的文献求助20
15秒前
wwe发布了新的文献求助10
17秒前
陈花蕾发布了新的文献求助10
19秒前
19秒前
路脚下完成签到 ,获得积分10
21秒前
震动的化蛹完成签到,获得积分20
22秒前
22秒前
hhr完成签到 ,获得积分10
22秒前
wwe完成签到,获得积分10
23秒前
如你所liao完成签到,获得积分10
24秒前
CodeCraft应助圆圆采纳,获得10
25秒前
科研通AI2S应助hh采纳,获得10
26秒前
27秒前
27秒前
30秒前
Ava应助zz采纳,获得10
30秒前
quzhenzxxx完成签到 ,获得积分10
31秒前
31秒前
和谐的白玉完成签到,获得积分10
31秒前
南边的海发布了新的文献求助10
31秒前
奋斗忆灵完成签到,获得积分10
31秒前
Hello应助wodetaiyangLLL采纳,获得10
31秒前
31秒前
wonhui发布了新的文献求助10
33秒前
高分求助中
The Mother of All Tableaux Order, Equivalence, and Geometry in the Large-scale Structure of Optimality Theory 2400
Ophthalmic Equipment Market by Devices(surgical: vitreorentinal,IOLs,OVDs,contact lens,RGP lens,backflush,diagnostic&monitoring:OCT,actorefractor,keratometer,tonometer,ophthalmoscpe,OVD), End User,Buying Criteria-Global Forecast to2029 2000
Optimal Transport: A Comprehensive Introduction to Modeling, Analysis, Simulation, Applications 800
Official Methods of Analysis of AOAC INTERNATIONAL 600
ACSM’s Guidelines for Exercise Testing and Prescription, 12th edition 588
A new approach to the extrapolation of accelerated life test data 500
T/CIET 1202-2025 可吸收再生氧化纤维素止血材料 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 生物化学 物理 内科学 纳米技术 计算机科学 化学工程 复合材料 遗传学 基因 物理化学 催化作用 冶金 细胞生物学 免疫学
热门帖子
关注 科研通微信公众号,转发送积分 3954395
求助须知:如何正确求助?哪些是违规求助? 3500338
关于积分的说明 11099177
捐赠科研通 3230855
什么是DOI,文献DOI怎么找? 1786171
邀请新用户注册赠送积分活动 869840
科研通“疑难数据库(出版商)”最低求助积分说明 801673