arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.00923cs.CVcs.AI
收藏

回收残差知识:一种低比特量化的新范式

Reclaiming Residual Knowledge: A Novel Paradigm to Low-Bit Quantization

Tobii Corporation(托比公司)

Róisín Luo, Alexandru Drimbarean, James McDermott, Colm O'Riordan

AI总结:

该研究提出低比特量化新范式CoRa,将量化建模为卷积神经网络架构搜索问题,通过搜索低秩适配器回收量化残差知识,在ImageNet上以极少迭代和参数成本实现了与最优基线相当的性能,大幅提升了优化效率。

摘要:

本文探索了低比特(即4比特或更低)量化领域的一种新范式,与现有最优方法不同,该范式将最优量化建模为卷积神经网络(ConvNets)内的架构搜索问题。我们的框架名为CoRa(最优量化残差卷积算子低秩适配,Optimal Quantization Residual Convolutional Operator Low-Rank Adaptation),其设计受两个关键方面驱动。首先,量化残差知识,即浮点权重与量化权重之间损失的信息,长期以来被研究界忽视。以极小的额外参数成本回收关键的残差知识,无需训练即可逆转性能下降。其次,现有最优量化框架通过搜索最优量化权重来解决性能下降问题,但权重优化的巨大搜索空间给大模型的高效优化带来了挑战。例如,现有最优方法BRECQ需要2×10^4次迭代才能完成模型量化。与现有方法存在本质区别的是,CoRa在比权重空间小多个数量级的搜索空间内,搜索低秩适配器的最优架构,以回收关键的量化残差知识。这些低秩适配器用于近似此前方法中被丢弃的量化残差权重。我们在ImageNet数据集上的多个预训练ConvNets上评估了所提方法。在4比特和3比特量化任务中,CoRa仅在含1600张图像的小型校准集上使用不到250次迭代,就取得了与现有最优量化感知训练和训练后量化基线相当的性能。因此,CoRa在低比特量化的优化效率方面树立了新的最优水平。

英文摘要:

This paper explores a novel paradigm in low-bit (i.e. 4-bits or lower) quantization, differing from existing state-of-the-art methods, by framing optimal quantization as an architecture search problem within convolutional neural networks (ConvNets). Our framework, dubbed \textbf{CoRa} (Optimal Quantization Residual \textbf{Co}nvolutional Operator Low-\textbf{Ra}nk Adaptation), is motivated by two key aspects. Firstly, quantization residual knowledge, i.e. the lost information between floating-point weights and quantized weights, has long been neglected by the research community. Reclaiming the critical residual knowledge, with an infinitesimal extra parameter cost, can reverse performance degradation without training. Secondly, state-of-the-art quantization frameworks search for optimal quantized weights to address the performance degradation. Yet, the vast search spaces in weight optimization pose a challenge for the efficient optimization in large models. For example, state-of-the-art BRECQ necessitates $2 \times 10^4$ iterations to quantize models. Fundamentally differing from existing methods, \textbf{CoRa} searches for the optimal architectures of low-rank adapters, reclaiming critical quantization residual knowledge, within the search spaces smaller compared to the weight spaces, by many orders of magnitude. The low-rank adapters approximate the quantization residual weights, discarded in previous methods. We evaluate our approach over multiple pre-trained ConvNets on ImageNet. \textbf{CoRa} achieves comparable performance against both state-of-the-art quantization-aware training and post-training quantization baselines, in $4$-bit and $3$-bit quantization, by using less than $250$ iterations on a small calibration set with $1600$ images. Thus, \textbf{CoRa} establishes a new state-of-the-art in terms of the optimization efficiency in low-bit quantization.

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

↑