GaugeQuant: Online Learning of Quantization-Optimal Bases from LLM Symmetries

· Source: cs.CL updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning · Depth: Expert, long

Summary

GaugeQuant is an in-training quantization method designed to reduce performance degradation in Large Language Models by exploiting their internal continuous symmetries. It introduces a LogSumExp term into the training loss, which explicitly breaks these symmetries to learn a quantization-optimal basis that minimizes activation outliers. A stop-gradient operator ensures that only rotation matrices are updated, preserving the language modeling objective. This approach requires no calibration data or quantization simulation and adds minimal training overhead. Empirical results show significant perplexity reductions: on LLaMA-2 7B, W4A4 quantization (group size 128) improved from 8.22 to 6.73, and W4A16 improved from 11.16 to 5.45. For Qwen-2.5 0.5B, W4A4 g128 perplexity dropped from 187.8 to 61.2, and W4A16 from 25.62 to 16.76.

Key takeaway

For Machine Learning Engineers deploying Large Language Models, GaugeQuant provides a compelling in-training solution to improve quantized model performance. You can integrate this method into your training pipelines to learn quantization-optimal bases, significantly reducing perplexity degradation without needing calibration data or complex post-training simulations. This approach yields models inherently more robust to quantization, allowing you to achieve efficient inference with lower memory footprints. Consider adopting GaugeQuant to produce more deployment-ready LLMs directly from your training runs.

Key insights

In-training symmetry breaking via a LogSumExp loss term optimizes quantization bases for LLMs.

Principles

Method

Integrate a LogSumExp loss term with a stop-gradient operator into the language modeling objective to update rotation matrices via the Cayley transform, using block-diagonal rotations for MLPs.

In practice

Topics

Code references

Best for: AI Engineer, Research Scientist, AI Scientist, Machine Learning Engineer, NLP Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.CL updates on arXiv.org.