Multi-Head Attention Hardware Implementation and Side-Channel Security Analysis for Transformer

This paper proposes an innovative hardware implementation of the complete multi-head attention mechanism, reducing resource consumption and boosting speed while addressing the Transformer model's computational complexity. Experimental results show that the total utilization of logic lookup tables (LUT) is 28,218, accounting for 60% of the total resources, while registers (regs) used are 16,648, accounting for 16% of the total resources. The model with a dimension of 48 was verified on an FPGA development board with the model number xc7k160tfbg676-1. The data of the model was quantized to 16-bit fixed-point, and the final results showed an average error of 0.0069 compared to the software calculations. The execution time was 1.3871 ms, which is 30.26% faster than the 1.9891 ms required by the software. Additionally, by reproducing the typical systolic array structure in matrix operations and implementing side-channel attacks based on its power consumption characteristics, the model structure and parameters were inferred using simple power analysis (SPA) methods.

Authors

Institutions

Publication Details

Published
2024-10-25
DOI
https://doi.org/10.1109/icicm63644.2024.10814141
Primary Topic
Physical Unclonable Functions (PUFs) and Hardware Security
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Multi-Head Attention Hardware Implementation and Side-Channel Security Analysis for Transformer

Liji Wu, Xiangmin Zhang, Zhixin Ba, Wu Le et al.
Physical Unclonable Functions (PUFs) and Hardware Security
article

Multi-Head Attention Hardware Implementation and Side-Channel Security Analysis for Transformer

Liji Wu, Xiangmin Zhang, Zhixin Ba, Wu Le, Jing Hu
article en

Abstract

This paper proposes an innovative hardware implementation of the complete multi-head attention mechanism, reducing resource consumption and boosting speed while addressing the Transformer model's computational complexity. Experimental results show that the total utilization of logic lookup tables (LUT) is 28,218, accounting for 60% of the total resources, while registers (regs) used are 16,648, accounting for 16% of the total resources. The model with a dimension of 48 was verified on an FPGA development board with the model number xc7k160tfbg676-1. The data of the model was quantized to 16-bit fixed-point, and the final results showed an average error of 0.0069 compared to the software calculations. The execution time was 1.3871 ms, which is 30.26% faster than the 1.9891 ms required by the software. Additionally, by reproducing the typical systolic array structure in matrix operations and implementing side-channel attacks based on its power consumption characteristics, the model structure and parameters were inferred using simple power analysis (SPA) methods.

Heilongjiang University (CN), Tsinghua University (CN)
Openalex Percentile: Top 74%
Physical Unclonable Functions (PUFs) and Hardware Security
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.

Multi-Head Attention Hardware Implementation and Side-Channel Security Analysis for Transformer — Liji Wu, Xiangmin Zhang, et al. · (2024) | TGRS Research Map | TGRS