Exploring Approximation and Dataflow Co-Optimization for Scalable Transformer Inference Architecture on the Edge

Transformer-based neural networks (NNs) prevail in today’s artificial intelligence applications, including autonomous driving, natural language processing and generative modeling, showing superior accuracy and generalization over traditional deep-learning models. However, the quadratic scaling computation and complex dataflow in the self-attention set challenges to the efficient deployment of Transformer-based NNs on edge and edge-server devices, where the latency of single-batch inference is a critical concern. The lack of data parallelism necessitates exploring more dimensions in tensor parallelism, more specifically, sequence parallelism in transformer inference for strong scaling in domain-specific accelerator (DSA) design, which is non-trivial due to the temporal dependency of the max-finding in softmax operators. This work formulates these challenges into an on-chip buffering problem, and then puts forward a hardware-software co-design approach exploiting max-findingfree approximation for softmax operators, which removes the blocking of the inference pipeline and thus alleviates the onchip buffering pressure. An example architecture design shows up to $2.83 \times$ and $28.02 \times$ speedup, over the baseline DSA designs respectively, with negligible algorithmic performance loss.

Authors

Institutions

Publication Details

Published
2024-09-16
DOI
https://doi.org/10.1109/socc62300.2024.10737793
Citations
1
Primary Topic
Neural Networks and Applications
Type
article
Field-Weighted Citation Impact
0.35
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Exploring Approximation and Dataflow Co-Optimization for Scalable Transformer Inference Architecture on the Edge

Luchang Lei, Huazhong Yang, Shupei Fan, Yongpan Liu et al.
1 citations
Neural Networks and Applications
0.35
article

Exploring Approximation and Dataflow Co-Optimization for Scalable Transformer Inference Architecture on the Edge

Luchang Lei, Huazhong Yang, Shupei Fan, Yongpan Liu, Hongyang Jia, He Liu, Shuyuan Zhang, Yujin Wang, Chen Tang, Zongle Huang
article en
1 citations

Abstract

Transformer-based neural networks (NNs) prevail in today’s artificial intelligence applications, including autonomous driving, natural language processing and generative modeling, showing superior accuracy and generalization over traditional deep-learning models. However, the quadratic scaling computation and complex dataflow in the self-attention set challenges to the efficient deployment of Transformer-based NNs on edge and edge-server devices, where the latency of single-batch inference is a critical concern. The lack of data parallelism necessitates exploring more dimensions in tensor parallelism, more specifically, sequence parallelism in transformer inference for strong scaling in domain-specific accelerator (DSA) design, which is non-trivial due to the temporal dependency of the max-finding in softmax operators. This work formulates these challenges into an on-chip buffering problem, and then puts forward a hardware-software co-design approach exploiting max-findingfree approximation for softmax operators, which removes the blocking of the inference pipeline and thus alleviates the onchip buffering pressure. An example architecture design shows up to $2.83 \times$ and $28.02 \times$ speedup, over the baseline DSA designs respectively, with negligible algorithmic performance loss.

Tsinghua University (CN)
Openalex Percentile: Top 32%
Neural Networks and Applications
0.35
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.