paper-with-me

Papers

OAC: Output-adaptive Calibration for Accurate Post-training Quantization

2024-05-23 · Ali Edalati, Alireza Ghaffari, Mahsa Ghazvini Nejad, Lu Hou, Boxing Chen, Masoud Asgharian, Vahid Partovi Nia

Deployment of Large Language Models (LLMs) has major computational costs, due to their rapidly expanding size. Compression of LLMs reduces the memory footprint, latency, and energy required for their inference. Post-training Quantization (PTQ) techniques have been developed to compress LLMs while avoiding expensive re-training. Most PTQ approaches formulate the quantization error based on a layer-wise Euclidean loss, ignoring the model output. Then, each layer is calibrated using its layer-wise Hessian to update the weights towards minimizing the quantization error. The Hessian is also used for detecting the most salient weights to quantization. Such PTQ approaches are prone to accuracy drop in low-precision quantization. We propose Output-adaptive Calibration (OAC) to incorporate the model output in the calibration process. We formulate the quantization error based on the distortion of the output cross-entropy loss. OAC approximates the output-adaptive Hessian for each layer under reasonable assumptions to reduce the computational complexity. The output-adaptive Hessians are used to update the weight matrices and detect the salient weights towards maintaining the model output. Our proposed method outperforms the state-of-the-art baselines such as SpQR and BiLLM, especially, at extreme low-precision (2-bit and binary) quantization.

📄 PDF Abstract BibTeX arXiv:2405.15025

Code (0)

등록된 구현이 없습니다.

Tasks

Quantization

Similar Papers 제목 키워드 기반

Calibrating Language Models with Adaptive Temperature Scaling

2024-09-29 · Johnathan Xie, Annie S. Chen, Yoonho Lee, Eric Mitchell 외

The effectiveness of large language models (LLMs) is not only measured by their ability to generate accurate outputs but also by their calibration-how well their confidence scores reflect the probability of their outputs…

Unsupervised Pre-training

Rethinking Calibration of Deep Neural Networks: Do Not Be Afraid of Overconfidence

2021-12-01 · NeurIPS 2021 12 · Deng-Bao Wang, Lei Feng, Min-Ling Zhang

Capturing accurate uncertainty quantification of the prediction from deep neural networks is important in many real-world decision-making applications. A reliable predictor is expected to be accurate when it is confident…

Decision MakingUncertainty Quantification

Posterior Probability Matters: Doubly-Adaptive Calibration for Neural Predictions in Online Advertising

2022-05-15 · Penghui Wei, Weimin Zhang, Ruijie Hou, Jinquan Liu 외

Predicting user response probabilities is vital for ad ranking and bidding. We hope that predictive models can produce accurate probabilistic predictions that reflect true likelihoods. Calibration techniques aim to post-…

Meta-Cal: Well-controlled Post-hoc Calibration by Ranking

2021-05-10 · Xingchen Ma, Matthew B. Blaschko

In many applications, it is desirable that a classifier not only makes accurate predictions, but also outputs calibrated posterior probabilities. However, many existing classifiers, especially deep neural network classif…

Multi-class Classification

Confidence-Aware Multi-Field Model Calibration

2024-02-27 · Yuang Zhao, Chuhan Wu, Qinglin Jia, Hong Zhu 외

Accurately predicting the probabilities of user feedback, such as clicks and conversions, is critical for advertisement ranking and bidding. However, there often exist unwanted mismatches between predicted probabilities …

model