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

MetaAug:用于训练后量化的元数据增强

MetaAug: Meta-Data Augmentation for Post-Training Quantization

Monash University(莫纳什大学);University of Surrey(萨里大学);VinAI

Cuong Pham, Hoang Anh Dung, Cuong C. Nguyen, Trung Le, Dinh Phung, Gustavo Carneiro, Thanh-Toan Do

AI总结:

提出基于元学习的MetaAug方法,通过双层优化联合训练转换网络与量化模型,利用修改后的校准数据缓解PTQ过拟合问题,在ImageNet上优于现有方法。

摘要:

训练后量化(Post-Training Quantization, PTQ)受到了广泛关注,因为它只需要一小组校准数据即可对全精度模型进行量化,这在无法完全访问大型训练集的现实应用中更为实用。然而,这通常会导致在小校准数据集上过拟合。已有几种方法被提出以解决此问题,但它们仍然仅依赖校准集进行量化,并且由于缺乏验证集,它们不对量化模型进行验证。在这项工作中,我们提出了一种新颖的基于元学习的方法来提升训练后量化的性能。具体而言,为了缓解过拟合问题,与以往PTQ工作在学习过程中仅使用原始校准集训练量化模型且不进行任何验证不同,在我们的方法中,我们使用两组不同的图像来同时训练和验证量化模型。特别地,我们提出了一种基于元学习的方法,通过双层优化联合优化一个转换网络和一个量化模型。转换网络修改原始校准数据,修改后的数据将作为训练集来学习量化模型,其目标是使量化模型在原始校准数据上取得良好的性能。在广泛使用的ImageNet数据集上,使用不同神经网络架构进行的大量实验表明,我们的方法优于最先进的PTQ方法。

英文摘要:

Post-Training Quantization (PTQ) has received significant attention because it requires only a small set of calibration data to quantize a full-precision model, which is more practical in real-world applications in which full access to a large training set is not available. However, it often leads to overfitting on the small calibration dataset. Several methods have been proposed to address this issue, yet they still rely on only the calibration set for the quantization and they do not validate the quantized model due to the lack of a validation set. In this work, we propose a novel meta-learning based approach to enhance the performance of post-training quantization. Specifically, to mitigate the overfitting problem, instead of only training the quantized model using the original calibration set without any validation during the learning process as in previous PTQ works, in our approach, we both train and validate the quantized model using two different sets of images. In particular, we propose a meta-learning based approach to jointly optimize a transformation network and a quantized model through bi-level optimization. The transformation network modifies the original calibration data and the modified data will be used as the training set to learn the quantized model with the objective that the quantized model achieves a good performance on the original calibration data. Extensive experiments on the widely used ImageNet dataset with different neural network architectures demonstrate that our approach outperforms the state-of-the-art PTQ methods.

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

↑