mlsanityData to 7 Oct 2026

IterL2Norm: Fast Iterative L2-Normalization

arXiv 2412.04778 ↗First posted 6 Dec 2024cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Transformer-based large language models are a memory-bound model whose operation is based on a large amount of data that are marginally reused. Thus, the data movement between a host and accelerator likely dictates the total wall-clock time. Layer normalization is one of the key workloads in the transformer model, following each of multi-head attention and feed-forward network blocks. To reduce data movement, layer normalization needs to be performed on the same chip as the matrix-matrix multiplication engine. To this end, we introduce an iterative L2-normalization method for 1D input (IterL2Norm), ensuring fast convergence to the steady-state solution within five iteration steps and high precision, outperforming the fast inverse square root algorithm in six out of nine cases for FP32 and five out of nine for BFloat16 across the embedding lengths used in the OPT models. Implemented in 32/28nm CMOS, the IterL2Norm macro normalizes d-dimensional vectors, where 64 ≤ d ≤ 1024, with a latency of 116-227 cycles at 100MHz/1.05V.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 9 of its 17 references that are in the map. First posted on arXiv 6 Dec 2024.

Builds on

9 of 17 references.

References · 9

  1. 2017Attention Is All You Needcited by 59,932
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  4. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  5. 2016Pointer Sentinel Mixture Modelscited by 2,992
  6. 2020Can You Put it All Together: Evaluating Conversational Agents' Ability to Blend Skillscited by 130
  7. 2023Full Stack Optimization of Transformer Inference: a Surveycited by 79
  8. 2021NN-LUT: Neural Approximation of Non-Linear Operations for Efficient Transformer Inferencecited by 25
  9. 2023SwiftTron: An Efficient Hardware Accelerator for Quantized Transformerscited by 17

Built on by

Not cited yet.