已入深夜,您辛苦了!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!祝你早点完成任务,早点休息,好梦!

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
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
Absolute完成签到 ,获得积分10
4秒前
张辰熙完成签到 ,获得积分10
4秒前
北辰之影完成签到,获得积分10
6秒前
科研通AI6.4应助灿的采纳,获得10
7秒前
大个应助Shelly采纳,获得30
8秒前
莫德里奇完成签到 ,获得积分10
11秒前
RYY完成签到 ,获得积分10
15秒前
Ara完成签到,获得积分10
16秒前
结实寒风完成签到,获得积分10
16秒前
小朱完成签到,获得积分10
17秒前
许孤风完成签到,获得积分10
17秒前
Akim应助coco采纳,获得10
19秒前
腼腆的雪珊完成签到,获得积分10
21秒前
安详从蕾应助Cdragon采纳,获得10
22秒前
体贴的小鸽子完成签到 ,获得积分10
22秒前
AaronW完成签到,获得积分10
23秒前
体贴雪萍完成签到,获得积分10
25秒前
钮一一发布了新的文献求助10
25秒前
小林太郎完成签到,获得积分0
25秒前
26秒前
hy完成签到 ,获得积分10
26秒前
29秒前
Cdragon完成签到,获得积分10
31秒前
缥缈的剑鬼完成签到 ,获得积分10
33秒前
Hello应助韩丙宇采纳,获得10
33秒前
zoey发布了新的文献求助10
33秒前
喵喵完成签到 ,获得积分10
34秒前
35秒前
35秒前
36秒前
36秒前
37秒前
37秒前
38秒前
38秒前
38秒前
39秒前
39秒前
YRT完成签到 ,获得积分10
39秒前
39秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Principles of town planning: translating concepts to applications 1000
Management and the Arts 510
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
核安全综合知识2024版 500
Photothermal Science and Techniques 500
Digital Displacement Hydrostatic Transmission for Rotorcraft and Distributed Propulsion 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7705628
求助须知:如何正确求助?哪些是违规求助? 9263302
关于积分的说明 20042346
捐赠科研通 7281284
什么是DOI,文献DOI怎么找? 3295339
关于科研通互助平台的介绍 2450386
邀请新用户注册赠送积分活动 2302218