When Quantization Affects Confidence of Large Language Models?

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Proskurina, Irina, Brun, Luc, Metzler, Guillaume, Velcin, Julien
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866916230716194816
author Proskurina, Irina
Brun, Luc
Metzler, Guillaume
Velcin, Julien
author_facet Proskurina, Irina
Brun, Luc
Metzler, Guillaume
Velcin, Julien
contents Recent studies introduced effective compression techniques for Large Language Models (LLMs) via post-training quantization or low-bit weight representation. Although quantized weights offer storage efficiency and allow for faster inference, existing works have indicated that quantization might compromise performance and exacerbate biases in LLMs. This study investigates the confidence and calibration of quantized models, considering factors such as language model type and scale as contributors to quantization loss. Firstly, we reveal that quantization with GPTQ to 4-bit results in a decrease in confidence regarding true labels, with varying impacts observed among different language models. Secondly, we observe fluctuations in the impact on confidence across different scales. Finally, we propose an explanation for quantization loss based on confidence levels, indicating that quantization disproportionately affects samples where the full model exhibited low confidence levels in the first place.
format Preprint
id arxiv_https___arxiv_org_abs_2405_00632
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle When Quantization Affects Confidence of Large Language Models?
Proskurina, Irina
Brun, Luc
Metzler, Guillaume
Velcin, Julien
Computation and Language
Artificial Intelligence
Recent studies introduced effective compression techniques for Large Language Models (LLMs) via post-training quantization or low-bit weight representation. Although quantized weights offer storage efficiency and allow for faster inference, existing works have indicated that quantization might compromise performance and exacerbate biases in LLMs. This study investigates the confidence and calibration of quantized models, considering factors such as language model type and scale as contributors to quantization loss. Firstly, we reveal that quantization with GPTQ to 4-bit results in a decrease in confidence regarding true labels, with varying impacts observed among different language models. Secondly, we observe fluctuations in the impact on confidence across different scales. Finally, we propose an explanation for quantization loss based on confidence levels, indicating that quantization disproportionately affects samples where the full model exhibited low confidence levels in the first place.
title When Quantization Affects Confidence of Large Language Models?
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2405.00632