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

NanoQuant: 大型语言模型高效子1位量化

NanoQuant: Efficient Sub-1-Bit Quantization of Large Language Models

KAIST(韩国科学技术院)

Hyochan Chong, Dongkyu Kim, Changdong Kim, Minseop Choi

AI总结:

本文提出NanoQuant,一种新型后训练量化方法,能够将大型语言模型压缩到二进制和子1位水平,通过低秩二进制分解问题实现高效压缩,并在消费者硬件上实现大规模部署。

摘要:

仅权重量化已成为高效服务大型语言模型(LLMs)的标准方法。然而,现有方法无法高效地将模型压缩到二进制(1位)级别,因为它们要么需要大量数据和计算资源,要么会增加存储需求。在本工作中,我们提出了NanoQuant,这是首个后训练量化(PTQ)方法,能够将LLMs压缩到二进制和子1位级别。NanoQuant将量化问题公式化为低秩二进制分解问题,并将全精度权重压缩为低秩二进制矩阵和尺度。具体而言,它利用高效的交替方向乘子法(ADMM)求解器来精确初始化潜在的二进制矩阵和尺度,然后通过块和模型重建过程调整初始化参数。因此,NanoQuant在低内存后训练量化中建立了新的帕累托前沿,并实现了子1位压缩。NanoQuant使大规模部署在消费者硬件上成为可能。例如,在单个H100上,仅需13小时即可将Llama2-70B压缩25.8倍,使70B模型能够在消费者8GB GPU上运行。

英文摘要:

Weight-only quantization has become a standard approach for efficiently serving large language models (LLMs). However, existing methods fail to efficiently compress models to binary (1-bit) levels, as they either require large amounts of data and compute or incur additional storage. In this work, we propose NanoQuant, the first post-training quantization (PTQ) method to compress LLMs to both binary and sub-1-bit levels. NanoQuant formulates quantization as a low-rank binary factorization problem, and compresses full-precision weights to low-rank binary matrices and scales. Specifically, it utilizes an efficient alternating direction method of multipliers (ADMM) solver to precisely initialize latent binary matrices and scales, and then tunes the initialized parameters through a block and model reconstruction process. Consequently, NanoQuant establishes a new Pareto frontier in low-memory post-training quantization, and enables sub-1-bit compression. NanoQuant makes large-scale deployment feasible on consumer hardware. For example, it compresses Llama2-70B by 25.8$\times$ in just 13 hours on a single H100, enabling a 70B model to operate on a consumer 8 GB GPU. Code is available at https://github.com/SamsungLabs/NanoQuant.

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

↑