LightningRMS: A High-Throughput Mixed-Precision RMSNorm Accelerator for Transformer Inference

数据路径 计算机科学 平方根 计算机硬件 数字信号处理 现场可编程门阵列 管道运输 吞吐量 嵌入式系统 变压器 管道(软件) 软件 试验台 数字信号处理器 规范化(社会学) 查阅表格 硬件加速 乘法逆 计算机工程 核(代数) 并行计算 算法 硬件体系结构 均方误差 布斯乘法算法
作者
Yusuf Sur,Özcan Öztürk
出处
期刊: 卷期号:: 961-966
标识
DOI:10.1145/3787109.3815212
摘要

Root mean square layer normalization (RMSNorm) has become the dominant normalization operation in modern transformer architectures such as LLaMA, Mistral, and Gemma, yet dedicated hardware accelerators for this operation remain scarce. Although RMSNorm is computationally simple, its low arithmetic intensity makes it memory-bound, and existing implementations either rely on HLS-generated pipelines with limited throughput or target algorithmic approximation without complete system integration. We present LightningRMS, the first pure RTL RMSNorm accelerator with complete AXI4 system integration. The design employs a dual finite state machine (FSM) ping-pong architecture that decouples input accumulation from output normalization, enabling back-to-back vector processing without pipeline stalls. A custom pipelined floating-point library replaces the costly square root and reciprocal with a fast inverse square root approximation, while the mixed-precision datapath supports configurable INT32/INT8/BF16 input, FP32 internal accumulation, and BF16/INT8 output. Implemented on a Kintex UltraScale+ FPGA at 385 MHz, LightningRMS delivers a sustained throughput of 13.8 elements per cycle, achieving 2.7 × higher throughput than the leading FPGA-based RMSNorm kernel and 67 × over a Jetson Orin Nano GPU baseline, while occupying only 13.95% of LUTs and 5.59% of DSP slices with an energy cost of 0.48 nJ per element. Hardware outputs maintain ≤ 1 ULP BF16 agreement with an FP32 software reference across all tested dimensions up to N = 12288, confirming suitability for transformer inference.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
sehnhsu发布了新的文献求助10
1秒前
袁志阳发布了新的文献求助10
1秒前
shixinran完成签到,获得积分10
1秒前
zcccc完成签到,获得积分10
2秒前
shurong完成签到,获得积分10
2秒前
阿飞发布了新的文献求助10
2秒前
2秒前
交大市长完成签到,获得积分10
2秒前
DW的应助被迪迪张采纳,获得10
2秒前
轻松博超完成签到,获得积分10
3秒前
xxxxxx完成签到,获得积分10
4秒前
4秒前
我是老大的应助被Eric采纳,获得10
4秒前
苗子完成签到,获得积分10
4秒前
4秒前
JINCHANG完成签到,获得积分10
4秒前
4秒前
4秒前
Young离子完成签到 ,获得积分10
5秒前
不吃西瓜发布了新的文献求助10
5秒前
5秒前
充电宝的应助被可妍昇采纳,获得10
5秒前
汉堡包的应助被aaa采纳,获得10
5秒前
沉静的弼发布了新的文献求助10
5秒前
5秒前
5秒前
aaron完成签到,获得积分10
6秒前
请我吃葡萄完成签到 ,获得积分10
6秒前
小刺猬发布了新的文献求助10
6秒前
Elaborate完成签到,获得积分10
6秒前
GAPING完成签到 ,获得积分10
6秒前
6秒前
今后的应助被MM采纳,获得10
6秒前
6秒前
7秒前
7秒前
Akim的应助被WYL采纳,获得10
7秒前
宫野珏完成签到,获得积分10
7秒前
7秒前
SciGPT的应助被mjy123采纳,获得10
8秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
拉伸高分子熔体中缠结行为的模拟和小角中子散射研究 1700
The World Atlas of Wine 9th edition 1000
奈特基础组织学:配套组织病理学(第4版)(Netter's Essential Histology With Correlated Histopathology) 800
John McDowells Bildungstheorie 800
Social Psychology in the Real World 600
八旗制度の研究 600
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 工程类 有机化学 化学工程 生物化学 物理 复合材料 内科学 催化作用 光电子学 人工智能 细胞生物学 无机化学 物理化学 数学
热门帖子
关注 科研通微信公众号,转发送积分 8180617
求助须知:如何正确求助?哪些是违规求助? 9570702
关于积分的说明 21813868
捐赠科研通 7776860
什么是DOI,文献DOI怎么找? 3433294
关于科研通互助平台的介绍 2557571
邀请新用户注册赠送积分活动 2479253