亲爱的研友该休息了!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!身体可是革命的本钱,早点休息,好梦!

Hardware-efficient Softmax Approximation for Self-Attention Networks

Softmax函数 计算机科学 数据路径 瓶颈 延迟(音频) 变压器 语言模型 现场可编程门阵列 并行计算 人工智能 人工神经网络 计算机硬件 嵌入式系统 电信 物理 量子力学 电压
作者
Nazim Altar Koca,Anh Tuan,Chip-Hong Chang
标识
DOI:10.1109/iscas46773.2023.10181465
摘要

Self-attention networks such as Transformer have become state-of-the-art models for natural language processing (NLP) problems. Softmax function, which serves as a normalizer to produce attention scores, turns out to be a severe throughput and latency bottleneck of a Transformer network. Softmax datapath consists of data-dependent sequential nonlinear exponentiation and division operations, which are not amenable to pipelining and parallelism, nor can they be directly linearized for pretrained models without substantial accuracy drop. In this paper, we proposed a hardware efficient Softmax approximation which can be used as a direct plug-in substitution into pretrained transformer network to accelerate NLP tasks without compromising its accuracy. Experiment results on FPGA implementation show that our design outperforms vanilla Softmax designed using Xilinx IPs with 15x less LUTs, 55x less registers and 23x lower latency at similar clock frequency and less than 1% accuracy drop on main language benchmark tasks. We also propose a pruning method to reduce the input entropy of Softmax for NLP problems with high number of inputs. It was validated on CoLA task to achieve a further 25% reduction of latency.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
1秒前
三岁完成签到 ,获得积分10
4秒前
4秒前
light111发布了新的文献求助10
5秒前
传统的丹雪完成签到,获得积分10
5秒前
6秒前
7秒前
SIKI发布了新的文献求助10
9秒前
小羊要努力完成签到,获得积分10
10秒前
李同学发布了新的文献求助30
11秒前
22秒前
英俊的铭应助科研通管家采纳,获得10
22秒前
23秒前
李爱国应助科研通管家采纳,获得10
23秒前
充电宝应助科研通管家采纳,获得10
23秒前
24秒前
无私的寄灵完成签到 ,获得积分10
24秒前
29秒前
Rita发布了新的文献求助10
30秒前
Lh发布了新的文献求助10
30秒前
乐乐应助超级野狼采纳,获得10
30秒前
大力的图图完成签到,获得积分10
32秒前
危笑完成签到,获得积分10
35秒前
39秒前
yjx完成签到 ,获得积分10
41秒前
孤标傲世完成签到 ,获得积分10
41秒前
冷静新烟完成签到,获得积分10
41秒前
梦璃完成签到 ,获得积分10
42秒前
44秒前
45秒前
Yuki发布了新的文献求助10
46秒前
49秒前
超级野狼发布了新的文献求助10
50秒前
Uluru发布了新的文献求助200
50秒前
Maisie发布了新的文献求助30
50秒前
Yuki完成签到,获得积分10
54秒前
绾妤完成签到 ,获得积分0
54秒前
55秒前
Orange应助李同学采纳,获得10
56秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Introduction to strong mixing conditions volume 1-3 5000
Agyptische Geschichte der 21.30. Dynastie 3000
Les Mantodea de guyane 2000
„Semitische Wissenschaften“? 1510
从k到英国情人 1500
Cummings Otolaryngology Head and Neck Surgery 8th Edition 800
热门求助领域 (近24小时)
化学 材料科学 生物 医学 工程类 计算机科学 有机化学 物理 生物化学 纳米技术 复合材料 内科学 化学工程 人工智能 催化作用 遗传学 数学 基因 量子力学 物理化学
热门帖子
关注 科研通微信公众号,转发送积分 5754644
求助须知:如何正确求助?哪些是违规求助? 5488236
关于积分的说明 15380380
捐赠科研通 4893172
什么是DOI,文献DOI怎么找? 2631766
邀请新用户注册赠送积分活动 1579709
关于科研通互助平台的介绍 1535463