arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2307.05972cs.CLcs.LG
收藏

自蒸馏量化:在基于 Transformer 的语言模型中实现高压缩率

Self-Distilled Quantization: Achieving High Compression Rates in Transformer-Based Language Models

Huawei Ireland Research Center(华为爱尔兰研究中心)

James O' Neill, Sourav Dutta

AI总结:

针对 Transformer 多语言模型的量化压缩问题,提出自蒸馏量化方法 SDQ,以最小化累积量化误差,在 XLM-R-Base 和 InfoXLM-Base 上实现 32 位到 8 位压缩并保持 XGLUE 性能。

摘要:

我们研究了训练后量化和量化感知训练对 Transformer 语言模型泛化能力的影响。我们提出了一种称为自蒸馏量化(SDQ)的新方法,该方法可最小化累积量化误差,并且表现优于基线方法。我们将 SDQ 应用于多语言模型 XLM-R-Base 和 InfoXLM-Base,并证明这两个模型都可以从 32 位浮点权重压缩为 8 位整数权重,同时在 XGLUE 基准测试上保持高水平性能。我们的结果还凸显了量化多语言模型的挑战,这些模型必须泛化到它们未进行微调的语言。

英文摘要:

We investigate the effects of post-training quantization and quantization-aware training on the generalization of Transformer language models. We present a new method called self-distilled quantization (SDQ) that minimizes accumulative quantization errors and outperforms baselines. We apply SDQ to multilingual models XLM-R-Base and InfoXLM-Base and demonstrate that both models can be reduced from 32-bit floating point weights to 8-bit integer weights while maintaining a high level of performance on the XGLUE benchmark. Our results also highlight the challenges of quantizing multilingual models, which must generalize to languages they were not fine-tuned on.

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

↑