A Flexible Template for Edge Generative AI With High-Accuracy Accelerated Softmax and GELU

Transformer-based generative Artificial Intelligence (GenAI) models achieve remarkable results in a wide range of fields, including natural language processing, computer vision, and audio processing. However, this comes at the cost of increased complexity and the need of sophisticated non-linearities such as softmax and GELU. Even if Transformers are computationally dominated by matrix multiplications (MatMul), these non-linearities can become a performance bottleneck, especially if dedicated hardware is used to accelerate MatMul operators. In this work, we introduce a GenAI BFloat16 Transformer acceleration template based on a heterogeneous tightly-coupled cluster containing 256KiB of shared SRAM, 8 general-purpose RISC-V cores, a 24×8 systolic array MatMul accelerator, and a novel accelerator for Transformer softmax, GELU and SiLU nonlinearities: SoftEx. SoftEx introduces an approximate exponentiation algorithm balancing efficiency (121× speedup over glibc’s implementation) with accuracy (mean relative error of 0.14%). In 12 nm technology, SoftEx occupies 0.039 mm2, only 3.22% of the cluster, which achieves an operating frequency of 1.12 GHz. Compared to optimized software running on the RISC-V cores, SoftEx achieves significant improvements, accelerating softmax and GELU computations by up to 10.8× and 5.11×, respectively, while reducing their energy consumption by up to 10.8× and 5.29×. These enhancements translate into a 1.58× increase in throughput (310 GOPS at 0.8 V) and a 1.42× improvement in energy efficiency (1.34 TOPS/W at 0.55 V) on end-to-end ViT inference workloads.

Authors

Institutions

Publication Details

Journal
IEEE Journal on Emerging and Selected Topics in Circuits and Systems
Published
2025-04-21
DOI
https://doi.org/10.1109/jetcas.2025.3562734
Citations
6
Primary Topic
Neural Networks and Applications
Type
article
Field-Weighted Citation Impact
14.89
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Flexible Template for Edge Generative AI With High-Accuracy Accelerated Softmax and GELU

Yvan Tortorella, Davide Rossi, Francesco Conti, Luca Benini et al.
6 citations
IEEE Journal on Emerging and Selected Topics in Circuits and Systems
Neural Networks and Applications
14.89
article

A Flexible Template for Edge Generative AI With High-Accuracy Accelerated Softmax and GELU

Yvan Tortorella, Davide Rossi, Francesco Conti, Luca Benini, Angelo Garofalo, Andrea Belano
article en
6 citations

Abstract

Transformer-based generative Artificial Intelligence (GenAI) models achieve remarkable results in a wide range of fields, including natural language processing, computer vision, and audio processing. However, this comes at the cost of increased complexity and the need of sophisticated non-linearities such as softmax and GELU. Even if Transformers are computationally dominated by matrix multiplications (MatMul), these non-linearities can become a performance bottleneck, especially if dedicated hardware is used to accelerate MatMul operators. In this work, we introduce a GenAI BFloat16 Transformer acceleration template based on a heterogeneous tightly-coupled cluster containing 256KiB of shared SRAM, 8 general-purpose RISC-V cores, a 24×8 systolic array MatMul accelerator, and a novel accelerator for Transformer softmax, GELU and SiLU nonlinearities: SoftEx. SoftEx introduces an approximate exponentiation algorithm balancing efficiency (121× speedup over glibc’s implementation) with accuracy (mean relative error of 0.14%). In 12 nm technology, SoftEx occupies 0.039 mm2, only 3.22% of the cluster, which achieves an operating frequency of 1.12 GHz. Compared to optimized software running on the RISC-V cores, SoftEx achieves significant improvements, accelerating softmax and GELU computations by up to 10.8× and 5.11×, respectively, while reducing their energy consumption by up to 10.8× and 5.29×. These enhancements translate into a 1.58× increase in throughput (310 GOPS at 0.8 V) and a 1.42× improvement in energy efficiency (1.34 TOPS/W at 0.55 V) on end-to-end ViT inference workloads.

IEEE Journal on Emerging and Selected Topics in Circuits and SystemsVol. 15(2)
National Center for Oncological Hadrontherapy (IT), University of Bologna (IT)
Affordable and clean energy
Openalex Percentile: Top 1%
Neural Networks and Applications
14.89
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.