arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.17170cs.CL
收藏

语言模型量化与剪枝的自校准

Self-calibration for Language Model Quantization and Pruning

University of Sheffield(谢菲尔德大学);AstraZeneca(阿斯利康)

Miles Williams, George Chrysostomou, Nikolaos Aletras

AI总结:

针对模型压缩校准数据不具代表性及训练数据不公开的问题,提出无需外部数据的自校准方法,利用模型自身生成合成校准数据以近似预训练分布,在多种模型和任务中表现出色甚至优于真实数据。

摘要:

量化和剪枝是模型压缩的基础方法,能够实现语言模型的高效推理。在训练后设置中,最先进的量化和剪枝方法需要校准数据,即一小部分无标签样本。通常,这是随机采样的网络文本,旨在反映模型训练数据。然而,这带来了两个关键问题:(1) 不具代表性的校准样本会损害模型性能,(2) 各组织日益避免发布模型训练数据。在本文中,我们提出自校准作为解决方案。我们的方法无需外部数据,而是利用模型自身生成合成校准数据,以期更好地近似预训练数据分布。我们在多种模型、压缩方法和任务上,将自校准的性能与几个基线进行了广泛比较。我们的方法在最大化下游任务性能方面始终具有竞争力,甚至经常优于使用真实数据。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑