亲爱的研友该休息了!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人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
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
5秒前
47秒前
嘻嘻哈哈应助科研通管家采纳,获得10
47秒前
英俊的铭应助科研通管家采纳,获得10
48秒前
嘻嘻哈哈应助科研通管家采纳,获得10
48秒前
嘻嘻哈哈应助科研通管家采纳,获得10
48秒前
科研通AI6.3应助ambacs采纳,获得10
50秒前
NattyPoe发布了新的文献求助10
58秒前
1分钟前
ambacs完成签到,获得积分20
1分钟前
ambacs发布了新的文献求助10
1分钟前
烨枫晨曦完成签到,获得积分10
1分钟前
闪闪的晓丝完成签到 ,获得积分10
1分钟前
Akim应助bai采纳,获得10
1分钟前
2分钟前
2分钟前
bai发布了新的文献求助10
2分钟前
霹雳侠发布了新的文献求助10
2分钟前
2分钟前
科研通AI2S应助科研通管家采纳,获得10
2分钟前
2分钟前
学生信的大叔完成签到,获得积分10
3分钟前
3分钟前
3分钟前
yiyimx完成签到,获得积分10
4分钟前
嘻嘻哈哈应助科研通管家采纳,获得10
4分钟前
嘻嘻哈哈应助科研通管家采纳,获得10
4分钟前
4分钟前
5分钟前
傻傻的哈密瓜完成签到,获得积分10
5分钟前
Freddy完成签到 ,获得积分10
5分钟前
NattyPoe发布了新的文献求助10
5分钟前
5分钟前
5分钟前
lf发布了新的文献求助10
6分钟前
6分钟前
嘻嘻哈哈应助科研通管家采纳,获得10
6分钟前
嘻嘻哈哈应助科研通管家采纳,获得10
6分钟前
酷波er应助搞科研的五零采纳,获得10
7分钟前
7分钟前
高分求助中
The Wiley Blackwell Companion to Diachronic and Historical Linguistics 3000
Standards for Molecular Testing for Red Cell, Platelet, and Neutrophil Antigens, 7th edition 1000
HANDBOOK OF CHEMISTRY AND PHYSICS 106th edition 1000
ASPEN Adult Nutrition Support Core Curriculum, Fourth Edition 1000
Signals, Systems, and Signal Processing 610
脑电大模型与情感脑机接口研究--郑伟龙 500
GMP in Practice: Regulatory Expectations for the Pharmaceutical Industry 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6291863
求助须知:如何正确求助?哪些是违规求助? 8109812
关于积分的说明 16967108
捐赠科研通 5355391
什么是DOI,文献DOI怎么找? 2845667
邀请新用户注册赠送积分活动 1823020
关于科研通互助平台的介绍 1678576