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)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
李h完成签到,获得积分10
2秒前
2秒前
2秒前
2秒前
亻圭发布了新的文献求助10
3秒前
上官若男应助GZB采纳,获得30
3秒前
3秒前
留猪完成签到,获得积分10
3秒前
文静千凡完成签到,获得积分10
4秒前
xiaoyan完成签到,获得积分10
4秒前
小小发布了新的文献求助10
5秒前
Akim应助OSTAL5采纳,获得10
5秒前
cx完成签到,获得积分10
5秒前
5秒前
吃甘薯的小白完成签到,获得积分20
5秒前
xt完成签到,获得积分10
6秒前
英姑应助litianyuan采纳,获得10
6秒前
6秒前
希望天下0贩的0应助txxy采纳,获得10
6秒前
丁叮叮发布了新的文献求助10
7秒前
8秒前
kelly发布了新的文献求助10
11秒前
12秒前
12秒前
枫ye完成签到,获得积分10
13秒前
领导范儿应助ivyjianjie采纳,获得10
13秒前
亻圭完成签到,获得积分10
13秒前
lmd发布了新的文献求助10
14秒前
量子星尘发布了新的文献求助10
14秒前
14秒前
antares发布了新的文献求助10
14秒前
15秒前
D.Heng发布了新的文献求助10
16秒前
烟花应助佳佳采纳,获得10
17秒前
Winston_zhang发布了新的文献求助10
18秒前
科研通AI6应助Hudan采纳,获得10
18秒前
鳗鱼思松发布了新的文献求助10
18秒前
immm发布了新的文献求助10
19秒前
20秒前
隐形曼青应助Liu2025采纳,获得10
20秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Clinical Microbiology Procedures Handbook, Multi-Volume, 5th Edition 临床微生物学程序手册,多卷,第5版 2000
List of 1,091 Public Pension Profiles by Region 1621
Les Mantodea de Guyane: Insecta, Polyneoptera [The Mantids of French Guiana] | NHBS Field Guides & Natural History 1500
The Victim–Offender Overlap During the Global Pandemic: A Comparative Study Across Western and Non-Western Countries 1000
King Tyrant 720
Sport, Social Media, and Digital Technology: Sociological Approaches 650
热门求助领域 (近24小时)
化学 材料科学 生物 医学 工程类 计算机科学 有机化学 物理 生物化学 纳米技术 复合材料 内科学 化学工程 人工智能 催化作用 遗传学 数学 基因 量子力学 物理化学
热门帖子
关注 科研通微信公众号,转发送积分 5593888
求助须知:如何正确求助?哪些是违规求助? 4679724
关于积分的说明 14811268
捐赠科研通 4645341
什么是DOI,文献DOI怎么找? 2534709
邀请新用户注册赠送积分活动 1502747
关于科研通互助平台的介绍 1469450