Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Chang, Ting-Yun, Zhang, Muru, Thomason, Jesse, Jia, Robin
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2506.12044
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866916966390824960
author Chang, Ting-Yun
Zhang, Muru
Thomason, Jesse
Jia, Robin
author_facet Chang, Ting-Yun
Zhang, Muru
Thomason, Jesse
Jia, Robin
contents Low-bit weight-only quantization significantly reduces the memory footprint of large language models (LLMs), but disproportionately affects certain examples. We analyze diverse 3-4 bit methods on LLMs ranging from 7B-70B in size and find that the quantization errors of 50 pairs of methods are strongly correlated (avg. 0.82) on FineWeb examples. Moreover, the residual stream magnitudes of full-precision models are indicative of future quantization errors. We further establish a hypothesis that relates the residual stream magnitudes to error amplification and accumulation over layers. Using LLM localization techniques, early exiting, and activation patching, we show that examples with large errors rely on precise residual activations in the late layers, and that the outputs of MLP gates play a crucial role in maintaining the perplexity. Our work reveals why certain examples result in large quantization errors and which model components are most critical for performance preservation.
format Preprint
id arxiv_https___arxiv_org_abs_2506_12044
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Why Do Some Inputs Break Low-Bit LLM Quantization?
Chang, Ting-Yun
Zhang, Muru
Thomason, Jesse
Jia, Robin
Machine Learning
Artificial Intelligence
Low-bit weight-only quantization significantly reduces the memory footprint of large language models (LLMs), but disproportionately affects certain examples. We analyze diverse 3-4 bit methods on LLMs ranging from 7B-70B in size and find that the quantization errors of 50 pairs of methods are strongly correlated (avg. 0.82) on FineWeb examples. Moreover, the residual stream magnitudes of full-precision models are indicative of future quantization errors. We further establish a hypothesis that relates the residual stream magnitudes to error amplification and accumulation over layers. Using LLM localization techniques, early exiting, and activation patching, we show that examples with large errors rely on precise residual activations in the late layers, and that the outputs of MLP gates play a crucial role in maintaining the perplexity. Our work reveals why certain examples result in large quantization errors and which model components are most critical for performance preservation.
title Why Do Some Inputs Break Low-Bit LLM Quantization?
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2506.12044