Turning LLM Activations Quantization-Friendly

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Czakó, Patrik, Kertész, Gábor, Szénási, Sándor
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910982193807360
author Czakó, Patrik
Kertész, Gábor
Szénási, Sándor
author_facet Czakó, Patrik
Kertész, Gábor
Szénási, Sándor
contents Quantization effectively reduces the serving costs of Large Language Models (LLMs) by speeding up data movement through compressed parameters and enabling faster operations via integer arithmetic. However, activating integer arithmetic requires quantizing both weights and activations, which poses challenges due to the significant outliers in LLMs that increase quantization error. In this work, we investigate these outliers with an emphasis on their effect on layer-wise quantization error, then examine how smoothing and rotation transform the observed values. Our primary contributions include introducing a new metric to measure and visualize quantization difficulty based on channel magnitudes, as well as proposing a hybrid approach that applies channel-wise scaling before rotation, supported by a mathematical formulation of its benefits.
format Preprint
id arxiv_https___arxiv_org_abs_2506_01967
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Turning LLM Activations Quantization-Friendly
Czakó, Patrik
Kertész, Gábor
Szénási, Sándor
Machine Learning
Artificial Intelligence
Computation and Language
Quantization effectively reduces the serving costs of Large Language Models (LLMs) by speeding up data movement through compressed parameters and enabling faster operations via integer arithmetic. However, activating integer arithmetic requires quantizing both weights and activations, which poses challenges due to the significant outliers in LLMs that increase quantization error. In this work, we investigate these outliers with an emphasis on their effect on layer-wise quantization error, then examine how smoothing and rotation transform the observed values. Our primary contributions include introducing a new metric to measure and visualize quantization difficulty based on channel magnitudes, as well as proposing a hybrid approach that applies channel-wise scaling before rotation, supported by a mathematical formulation of its benefits.
title Turning LLM Activations Quantization-Friendly
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2506.01967