Quantized Can Still Be Calibrated: A Unified Framework to Calibration in Quantized Large Language Models
Although weight quantization helps large language models (LLMs) in resource-constrained environments, its influence on the uncertainty calibration remains unexplored.To bridge this gap, we present a comprehensive investigation of uncertainty calibration for quantized LLMs in this work.Specifically, we propose an analytic method to estimate the upper bound of calibration error (UBCE) for LLMs.Our method separately discusses the calibration error of the model's correct and incorrect predictions, indicating a theoretical improvement of calibration error caused by weight quantization.Our study demonstrates that quantized models consistently exhibit worse calibration performance than full-precision models, supported by consistent analysis across multiple LLMs and datasets.To address the calibration issues of quantized models, we propose a novel post-calibration method to recover the calibration performance of quantized models through soft-prompt tuning.Specifically, we inject soft tokens into quantized models after the embedding layers and optimize these tokens to recover the calibration error caused by weight quantization.Experimental results on multiple datasets demonstrate its effectiveness in improving the uncertainty calibration of quantized LLMs, facilitating more reliable weight quantization in resource-constrained environments.
Authors
- Yu-Neng Chuang (ORCID: https://orcid.org/0000-0002-7492-0817)
- Guanchu Wang
- Na Zou (ORCID: https://orcid.org/0000-0003-1984-795X)
- M. Zhong (ORCID: https://orcid.org/0009-0004-2968-6357)
Publication Details
- Published
- 2025-01-01
- DOI
- https://doi.org/10.18653/v1/2025.acl-long.1473
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Science Foundation