A Streaming Transformer Accelerator with Efficient On-Chip Normalization

Transformer has achieved state-of-the-art results in many fields. However, the extensive and dynamic matrix multiplications and normalization operations (Softmax and Layer Normalization (LN)) result in a significant amount of data movement and computation. In this work, a software-architecture co-design method that can effectively addresses the challenges of Transformer inference is proposed. The architecture part implements a low-cost normalization by introducing a fast square root method to enhance the efficiency of LN. Additionally, a hardware-friendly Softmax has been deployed to further reduce the normalization overhead. Benefiting from the low-cost normalization, a streaming transformer inference dataflow has been designed to reduce memory access. The software part ensures the inference accuracy when implementing the proposed low-cost normalization through a two-step fine-tuning method. The proposed accelerator achieves $8.86 \times$ and $6.24 \times$ energy efficiency improvements compared to state-of-the-art attention accelerators ${\mathrm {A}}^{3}$ and SpAtten.

Authors

Institutions

Publication Details

Published
2024-11-07
DOI
https://doi.org/10.1109/apccas62602.2024.10808505
Primary Topic
Analog and Mixed-Signal Circuit Design
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Streaming Transformer Accelerator with Efficient On-Chip Normalization

Chenjia Xie, Jingjing Lv, Jiayuan Chen, Li Du et al.
Analog and Mixed-Signal Circuit Design
article

A Streaming Transformer Accelerator with Efficient On-Chip Normalization

Chenjia Xie, Jingjing Lv, Jiayuan Chen, Li Du, Yuan Du, Ning Zhao
article en

Abstract

Transformer has achieved state-of-the-art results in many fields. However, the extensive and dynamic matrix multiplications and normalization operations (Softmax and Layer Normalization (LN)) result in a significant amount of data movement and computation. In this work, a software-architecture co-design method that can effectively addresses the challenges of Transformer inference is proposed. The architecture part implements a low-cost normalization by introducing a fast square root method to enhance the efficiency of LN. Additionally, a hardware-friendly Softmax has been deployed to further reduce the normalization overhead. Benefiting from the low-cost normalization, a streaming transformer inference dataflow has been designed to reduce memory access. The software part ensures the inference accuracy when implementing the proposed low-cost normalization through a two-step fine-tuning method. The proposed accelerator achieves $8.86 \times$ and $6.24 \times$ energy efficiency improvements compared to state-of-the-art attention accelerators ${\mathrm {A}}^{3}$ and SpAtten.

China Mobile (China) (CN), Nanjing University (CN)
Nanjing University, National Key Research and Development Program of China
Affordable and clean energy
Openalex Percentile: Top 77%
Analog and Mixed-Signal Circuit Design
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.