CoChat

SwiftTron: An Efficient Hardware Accelerator for Quantized Transformers

Open access
Marchisio, Alberto, Dura, Davide, Capra, Maurizio, Martina, Maurizio, Masera, Guido, Shafique, Muhammad · 2023 · 2023 International Joint Conference on Neural Networks (IJCNN)

The DOI matches its Crossref record; 40 of the 42 references it cites were found in a registry or an index.

Abstract

Transformers' compute- intensive operations pose enormous challenges for their deployment in resource- constrained EdgeAI / tiny ML devices. As an established neural network compression technique, quantization reduces the hardware computational and memory resources. In particular, fixed-point quantization is desirable to ease the computations using lightweight blocks, like adders and multipliers, of the underlying hardware. However, deploying fully-quantized Transformers on existing general-purpose hardware, generic AI accelerators, or specialized architectures for Transformers with floating-point units might be infeasible and/or inefficient. Towards this, we propose SwiftTron, an efficient specialized hardware accelerator designed for Quantized Transformers. SwiftTron supports the execution of different types of Transformers' operations (like Attention, Softmax, GELU, and Layer Normalization) and accounts for diverse scaling factors to perform correct computations. We synthesize the complete SwiftTron architecture in a 65 nm CMOS technology with the ASIC design flow. Our Accelerator executes the RoBERTa-base model in 1.83 ns, while consuming 33.64 mW power, and occupying an area of 273 mm2• To ease the reproducibility, the RTL of our SwiftTron architecture is released at https://github.com/albertomarchisio/SwiftTron.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1109/ijcnn54540.2023.10191521

Cites

40 of 40 references verified0 citation errors · 0 not checkable

Statistics

Figures

Fig. 1 Simplified diagrams showing the computation flows for (a) the Quantization-Dequantization scheme of [8], and (b) the quantization-based scheme adopted in this work that employs Requantization blocks.
Fig. 1 Simplified diagrams showing the computation flows for (a) the Quantization-Dequantization scheme of [8], and (b) the quantization-based scheme adopted in this work that employs Requantization blocks.CC-BY · From the PDF
Fig. 2 Latency, power, and area overhead of a single adder and a single multiplier implemented in FP32 arithmetic, compared to their respective INT8 implementations.
Fig. 2 Latency, power, and area overhead of a single adder and a single multiplier implemented in FP32 arithmetic, compared to their respective INT8 implementations.CC-BY · From the PDF
Fig. 3 Overview of our novel contributions in this work.
Fig. 3 Overview of our novel contributions in this work.CC-BY · From the PDF
Fig. 4 Architectural model of the Transformer [12], where inputs and outputs are taken after the positional encoding operations.
Fig. 4 Architectural model of the Transformer [12], where inputs and outputs are taken after the positional encoding operations.CC-BY · From the PDF
Fig. 5 Top-level overview of our SwiftTron architecture.
Fig. 5 Top-level overview of our SwiftTron architecture.CC-BY · From the PDF
Fig. 6 Architectural view of a 4 × 4 MatMul block with bias.
Fig. 6 Architectural view of a 4 × 4 MatMul block with bias.CC-BY · From the PDF
Fig. 7 Architecture details of the Requantization (Req) unit.
Fig. 7 Architecture details of the Requantization (Req) unit.CC-BY · From the PDF
Fig. 8 Architecture details of a single head in the MHSA, composed of three MatMul blocks, performing computations on Query ( Q ), Key ( K ), and Value ( V ) matrices, and one Attention block.
Fig. 8 Architecture details of a single head in the MHSA, composed of three MatMul blocks, performing computations on Query ( Q ), Key ( K ), and Value ( V ) matrices, and one Attention block.CC-BY · From the PDF
Fig. 9 Architecture details of the complete MHSA unit with multiple heads. The example in the figure contains 4 heads and another MatMul block that generates the outputs.
Fig. 9 Architecture details of the complete MHSA unit with multiple heads. The example in the figure contains 4 heads and another MatMul block that generates the outputs.CC-BY · From the PDF
Fig. 10 Attention architecture, composed of MatMul, Scale, Softmax, and Requantization operators.
Fig. 10 Attention architecture, composed of MatMul, Scale, Softmax, and Requantization operators.CC-BY · From the PDF
Fig. 11 Architecture of the Softmax operator. According to [11], q 1 = ⌊ b/S pe ⌋ , q 2 = ⌊ c/aS 2 pe ⌋ , q 3 = ⌊ ln 2 /S e ⌋ , and q 4 = ⌊-1 /q 3 ⌋ , where S e is the scaling factor of the exponential computation input (relative to q e ), S pe is the scaling factor of the polynomial approximation input (relative to q pe ) and a, b, c are the coefficient of the second-order polynomial that approximates the function, i.e., a ( x + b ) 2 + c . Therefore, q 1 , 2 , 3 , 4 can be computed at design time and provided as constant values to the SwiftTron architecture.
Fig. 11 Architecture of the Softmax operator. According to [11], q 1 = ⌊ b/S pe ⌋ , q 2 = ⌊ c/aS 2 pe ⌋ , q 3 = ⌊ ln 2 /S e ⌋ , and q 4 = ⌊-1 /q 3 ⌋ , where S e is the scaling factor of the exponential computation input (relative to q e ), S pe is the scaling factor of the polynomial approximation input (relative to q pe ) and a, b, c are the coefficient of the second-order polynomial that approximates the function, i.e., a ( x + b ) 2 + c . Therefore, q 1 , 2 , 3 , 4 can be computed at design time and provided as constant values to the SwiftTron architecture.CC-BY · From the PDF
Fig. 12 Approach used for manipulating the Softmax operator to allow a second-order polynomial approximation of the exponential function in a restricted range of values.
Fig. 12 Approach used for manipulating the Softmax operator to allow a second-order polynomial approximation of the exponential function in a restricted range of values.CC-BY · From the PDF
Fig. 13 Architecture of the Feed-Forward Network unit, composed of MatMul, GELU, and Requantization operators.
Fig. 13 Architecture of the Feed-Forward Network unit, composed of MatMul, GELU, and Requantization operators.CC-BY · From the PDF
Fig. 14 Architecture of the GELU operator. According to [11], q 5 = -b/S , q 6 = ⌊ b/S ⌋ q 7 = ⌊ c/aS 2 ⌋ , and q 8 = ⌊ 1 /S erf ⌋ , where S is the scaling factor of the GELU input (relative to q ), S erf is the scaling factor of the error function output (relative to q erf ) and a, b, c are the coefficient of the second-order polynomial that approximates the function, i.e., a ( x + b ) 2 + c . Therefore, q 5 , 6 , 7 , 8 can be computed at design time and provided as constant values to the SwiftTron architecture.
Fig. 14 Architecture of the GELU operator. According to [11], q 5 = -b/S , q 6 = ⌊ b/S ⌋ q 7 = ⌊ c/aS 2 ⌋ , and q 8 = ⌊ 1 /S erf ⌋ , where S is the scaling factor of the GELU input (relative to q ), S erf is the scaling factor of the error function output (relative to q erf ) and a, b, c are the coefficient of the second-order polynomial that approximates the function, i.e., a ( x + b ) 2 + c . Therefore, q 5 , 6 , 7 , 8 can be computed at design time and provided as constant values to the SwiftTron architecture.CC-BY · From the PDF
Fig. 15 Layer Normalization architecture, where the Square Root unit implements a recursive algorithm. The V alid and z signals are flags for assisting the control unit with the correct timing.
Fig. 15 Layer Normalization architecture, where the Square Root unit implements a recursive algorithm. The V alid and z signals are flags for assisting the control unit with the correct timing.CC-BY · From the PDF
Fig. 16 Functionality of the control unit in our SwiftTron architecture, composed of dedicated Finite State Machines for MHSA, LayerNorm, and FFN operations.
Fig. 16 Functionality of the control unit in our SwiftTron architecture, composed of dedicated Finite State Machines for MHSA, LayerNorm, and FFN operations.CC-BY · From the PDF
Fig. 17 Experimental setup and tool flow for conducting the experiments.
Fig. 17 Experimental setup and tool flow for conducting the experiments.CC-BY · From the PDF
Fig. 18 (a) Area and (b) power breakdown of our SwiftTron architecture.
Fig. 18 (a) Area and (b) power breakdown of our SwiftTron architecture.CC-BY · From the PDF

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Show all 40 references

Research works printed but not linked: 2

  1. H. Wang et al., Efficient algorithms and hardware for natural language processing. PhD thesis, Massachusetts Institute of Technology, 2020.
  2. "Nvidia h100 tensor core gpu architecture whitepaper," https://resources.nvidia.com/en-us-tensor-core/gtc22-whitepaper- hopper.

Cited by

See all 60

Metadata

Authors
Marchisio, A., Dura, D., Capra, M., Martina, M., Masera, G., & Shafique, M.
Affiliations
  • TU Wien (AT)
  • Politecnico di Torino (IT)
  • New York University Abu Dhabi (AE)
Venue
2023 International Joint Conference on Neural Networks (IJCNN)
Publisher
IEEE
Published
2023-06-18
Pages
1-9
ISSN
2161-4407 (ISSN-L)
OpenAlex
W4385488484
Cited by
39
References
42
Citations by year
2026: 6 · 2025: 22 · 2024: 9 · 2023: 2
FWCI
4.17
Type
conference paper
Language
en
Open access
Locations
  • International Joint Conference on Neural Networks (IJCNN) (publishedVersion)
  • arXiv (Cornell University) (submittedVersion, cc-by)
  • PORTO@Iris (submittedVersion, other-oa)
  • arXiv (Cornell University) (cc-by)
Funders
  • New York University Abu Dhabi (CG010)
  • Technische Universität Wien
  • Tamkeen (CG010)
Topics
  • Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Advanced Neural Network Applications
  • Physical Sciences › Engineering › Electrical and Electronic Engineering › Low-power high-performance VLSI design
  • Physical Sciences › Engineering › Electrical and Electronic Engineering › Advanced Memory and Neural Computing
Keywords
hardware accelerators, fixed-point quantization, edge AI, neural network compression, attention mechanism, GELU, layer normalization, softmax, RoBERTa, ASIC design, low-power electronics, RTL design

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

How to cite

Cite CoChat for the checks on this page, and the paper for its own findings.

This page
CoChat. (2026). Citation check: SwiftTron: An Efficient Hardware Accelerator for Quantized Transformers. https://app.cochat.ai/papers/10.1109/ijcnn54540.2023.10191521
The paper
Marchisio, A., Dura, D., Capra, M., Martina, M., Masera, G., & Shafique, M. (2023). SwiftTron: An Efficient Hardware Accelerator for Quantized Transformers. 2023 International Joint Conference on Neural Networks (IJCNN). https://doi.org/10.1109/ijcnn54540.2023.10191521

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.