Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
41 tokens/sec
GPT-4o
60 tokens/sec
Gemini 2.5 Pro Pro
44 tokens/sec
o3 Pro
8 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

DuQuant: Distributing Outliers via Dual Transformation Makes Stronger Quantized LLMs (2406.01721v3)

Published 3 Jun 2024 in cs.CL

Abstract: Quantization of LLMs faces significant challenges, particularly due to the presence of outlier activations that impede efficient low-bit representation. Traditional approaches predominantly address Normal Outliers, which are activations across all tokens with relatively large magnitudes. However, these methods struggle with smoothing Massive Outliers that display significantly larger values, which leads to significant performance degradation in low-bit quantization. In this paper, we introduce DuQuant, a novel approach that utilizes rotation and permutation transformations to more effectively mitigate both massive and normal outliers. First, DuQuant starts by constructing the rotation matrix, using specific outlier dimensions as prior knowledge, to redistribute outliers to adjacent channels by block-wise rotation. Second, We further employ a zigzag permutation to balance the distribution of outliers across blocks, thereby reducing block-wise variance. A subsequent rotation further smooths the activation landscape, enhancing model performance. DuQuant simplifies the quantization process and excels in managing outliers, outperforming the state-of-the-art baselines across various sizes and types of LLMs on multiple tasks, even with 4-bit weight-activation quantization. Our code is available at https://github.com/Hsu1023/DuQuant.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (9)
  1. Haokun Lin (15 papers)
  2. Haobo Xu (4 papers)
  3. Yichen Wu (32 papers)
  4. Jingzhi Cui (1 paper)
  5. Yingtao Zhang (19 papers)
  6. Linzhan Mou (8 papers)
  7. Linqi Song (93 papers)
  8. Zhenan Sun (80 papers)
  9. Ying Wei (80 papers)
Citations (8)
Github Logo Streamline Icon: https://streamlinehq.com

GitHub

X Twitter Logo Streamline Icon: https://streamlinehq.com