Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Self-calibration for Language Model Quantization and Pruning

About

Quantization and pruning are fundamental approaches for model compression, enabling efficient inference for language models. In a post-training setting, state-of-the-art quantization and pruning methods require calibration data, a small set of unlabeled examples. Conventionally, this is randomly sampled web text, aiming to reflect the model training data. However, this poses two key problems: (1) unrepresentative calibration examples can harm model performance, and (2) organizations increasingly avoid releasing model training data. In this paper, we propose self-calibration as a solution. Our approach requires no external data, instead leveraging the model itself to generate synthetic calibration data, with a view to better approximating the pre-training data distribution. We extensively compare the performance of self-calibration with several baselines, across a variety of models, compression methods, and tasks. Our approach proves consistently competitive in maximizing downstream task performance, frequently outperforming even using real data.

Miles Williams, George Chrysostomou, Nikolaos Aletras• 2024

Related benchmarks

TaskDatasetResultRank
Total RetentionLLaMA-3.1-8B Capability Evaluation Suite
Total Retention (S_m^total)94.5
52
Large Language Model Pruning CalibrationOIT-PC Evaluation Suite
Generation Score (SGen)91.5
31
Coding CapabilityCapability Evaluation Suite Code Pool
S_Code Score78.9
4
General CapabilityCapability Evaluation Suite General Pool
S_Gen Score91.5
4
Overall CapabilityCapability Evaluation Suite Aggregate
Overall Capability Score83.18
4
Mathematical ReasoningCapability Evaluation Suite Math Pool
S_Math Score66.2
4
Commonsense ReasoningCapability Evaluation Suite Commonsense Pool
S_Com Score96.1
4
Showing 7 of 7 rows

Other info

Follow for update