paper-with-me

홈 › Papers

IterL2Norm: Fast Iterative L2-Normalization

2024-12-06 · ChangMin Ye, Yonguk Sim, Youngchae Kim, SeongMin Jin, Doo Seok Jeong

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 \leq d \leq 1024$, with a latency of 116-227 cycles at 100MHz/1.05V.

📄 PDF Abstract BibTeX arXiv:2412.04778

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
OPT OPT is a suite of decoder-only pre-trained transformers ranging from 125M to 175B parameters. The model uses an AdamW optimizer and weight decay of 0.1. It follows a linear…
Multi-Head Attention 설명 없음

Similar Papers 제목 키워드 기반

IterLara: A Turing Complete Algebra for Big Data, AI, Scientific Computing, and Database

2023-07-17 · Hongxiao Li, Wanling Gao, Lei Wang, Jianfeng Zhan

\textsc{Lara} is a key-value algebra that aims at unifying linear and relational algebra with three types of operation abstraction. The study of \textsc{Lara}'s expressive ability reports that it can represent relational…

Unsupervised Domain Adaptation of Black-Box Source Models

2021-01-08 · Haojian Zhang, Yabin Zhang, Kui Jia, Lei Zhang

Unsupervised domain adaptation (UDA) aims to learn models for a target domain of unlabeled data by transferring knowledge from a labeled source domain. In the traditional UDA setting, labeled source data are assumed to b…

Domain AdaptationLearning with noisy labelsUnsupervised Domain Adaptation

Phraselette: A Poet's Procedural Palette

2025-03-08 · Alex Calderwood, John Joon Young Chung, Yuqian Sun, Melissa Roemmele 외

According to the recently introduced theory of artistic support tools, creativity support tools exert normative influences over artistic production, instantiating a normative ground that shapes both the process and produ…

Language ModelingLanguage Modelling

Towards Faster Training of Global Covariance Pooling Networks by Iterative Matrix Square Root Normalization

2017-12-04 · CVPR 2018 6 · Peihua Li, Jiangtao Xie, Qilong Wang, Zilin Gao

Global covariance pooling in convolutional neural networks has achieved impressive improvement over the classical first-order pooling. Recent works have shown matrix square root normalization plays a central role in achi…

Fine-Grained Image ClassificationFine-Grained Image RecognitionGPUImage Classification

Equi-normalization of Neural Networks

2019-02-27 · ICLR 2019 5 · Pierre Stock, Benjamin Graham, Rémi Gribonval, Hervé Jégou

Modern neural networks are over-parametrized. In particular, each rectified linear hidden unit can be modified by a multiplicative factor by adjusting input and output weights, without changing the rest of the network. I…