arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.10631cs.CL
收藏

BitDistiller:通过自蒸馏释放低于4比特LLM的潜力

BitDistiller: Unleashing the Potential of Sub-4-Bit LLMs via Self-Distillation

The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));Shanghai Jiao Tong University(上海交通大学);Microsoft Research Asia(微软研究院亚洲研究院)

Dayou Du, Yijia Zhang, Shijie Cao, Jiaqi Guo, Ting Cao, Xiaowen Chu, Ningyi Xu

AI总结:

本文提出BitDistiller框架,结合量化感知训练与知识蒸馏,通过定制非对称量化与置信度感知KL散度自蒸馏,显著提升低于4比特LLM性能并降低成本。

摘要:

大型语言模型(LLMs)的规模扩大在自然语言处理领域取得了令人瞩目的进展,但也带来了重大的部署挑战。权重量化已成为一种被广泛接受的解决方案,用于减少内存和计算需求。本文介绍了BitDistiller,这是一个将量化感知训练(QAT)与知识蒸馏(KD)协同的框架,旨在提升LLMs在超低精度(低于4比特)下的性能。具体而言,BitDistiller首先采用定制的非对称量化和截断技术,以最大程度地保持量化权重的保真度,随后提出了一种新颖的置信度感知Kullback-Leibler散度(CAKLD)目标,该目标以自蒸馏方式应用,以实现更快的收敛和更优的模型性能。实证评估表明,在通用语言理解和复杂推理基准上,BitDistiller在3比特和2比特配置下均显著超越了现有方法。值得注意的是,BitDistiller更具成本效益,所需的数据和训练资源更少。代码可在https://github.com/DD-DuDa/BitDistiller获取。

英文摘要:

The upscaling of Large Language Models (LLMs) has yielded impressive advances in natural language processing, yet it also poses significant deployment challenges. Weight quantization has emerged as a widely embraced solution to reduce memory and computational demands. This paper introduces BitDistiller, a framework that synergizes Quantization-Aware Training (QAT) with Knowledge Distillation (KD) to boost the performance of LLMs at ultra-low precisions (sub-4-bit). Specifically, BitDistiller first incorporates a tailored asymmetric quantization and clipping technique to maximally preserve the fidelity of quantized weights, and then proposes a novel Confidence-Aware Kullback-Leibler Divergence (CAKLD) objective, which is employed in a self-distillation manner to enable faster convergence and superior model performance. Empirical evaluations demonstrate that BitDistiller significantly surpasses existing methods in both 3-bit and 2-bit configurations on general language understanding and complex reasoning benchmarks. Notably, BitDistiller is shown to be more cost-effective, demanding fewer data and training resources. The code is available at https://github.com/DD-DuDa/BitDistiller.

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

↑