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

量化提示用于视觉-语言模型的高效泛化

Quantized Prompt for Efficient Generalization of Vision-Language Models

School of Software, Tsinghua University(清华大学软件学院);BNRist(北京国家信息科学与技术研究院);Bytedance(字节跳动)

Tianxiang Hao, Xiaohan Ding, Juexiao Feng, Yuhong Yang, Hui Chen, Guiguang Ding

AI总结:

本文提出量化提示方法,利用量化误差作为正则化噪声,抑制过拟合和灾难性遗忘,以轻量高效方式提升视觉-语言模型在下游任务中的泛化能力,并可与现有方法集成。

摘要:

在过去几年中,像CLIP这样的大规模预训练视觉-语言模型在各个领域取得了巨大成功。自然,如何将这种庞大预训练模型中的丰富知识迁移到下游任务和数据集成为一个热门话题。在下游适应过程中,最具挑战性的问题是过拟合和灾难性遗忘,这可能导致模型过度关注当前数据而丢失更关键的领域通用知识。现有工作使用经典正则化技术来解决这些问题。随着解决方案变得越来越复杂,不断增长的存储和推理成本也是一个迫切需要解决的重大问题。而在本文中,我们从一个观察出发,即适当的随机噪声可以抑制过拟合和灾难性遗忘。然后我们将量化误差视为一种噪声,并探索量化用于正则化视觉-语言模型,这既高效又有效。此外,为了以最小成本提高模型的泛化能力同时保持其专门化能力,我们深入分析了提示中权重分布的特征,总结出量化模块设计的若干原则,并遵循这些原则创建了几个有竞争力的基线。所提出的方法由于其固有的轻量级特性而显著高效,使其能够在资源极其有限的设备上进行适应。我们的方法可以有效地集成到许多现有方法中,如MaPLe,在提高精度的同时减少存储开销,使其更强大且更通用。在11个数据集上的大量实验充分展示了我们方法的优越性。代码可在https://github.com/beyondhtx/QPrompt获取。

英文摘要:

In the past few years, large-scale pre-trained vision-language models like CLIP have achieved tremendous success in various fields. Naturally, how to transfer the rich knowledge in such huge pre-trained models to downstream tasks and datasets becomes a hot topic. During downstream adaptation, the most challenging problems are overfitting and catastrophic forgetting, which can cause the model to overly focus on the current data and lose more crucial domain-general knowledge. Existing works use classic regularization techniques to solve the problems. As solutions become increasingly complex, the ever-growing storage and inference costs are also a significant problem that urgently needs to be addressed. While in this paper, we start from an observation that proper random noise can suppress overfitting and catastrophic forgetting. Then we regard quantization error as a kind of noise, and explore quantization for regularizing vision-language model, which is quite efficiency and effective. Furthermore, to improve the model's generalization capability while maintaining its specialization capacity at minimal cost, we deeply analyze the characteristics of the weight distribution in prompts, conclude several principles for quantization module design and follow such principles to create several competitive baselines. The proposed method is significantly efficient due to its inherent lightweight nature, making it possible to adapt on extremely resource-limited devices. Our method can be fruitfully integrated into many existing approaches like MaPLe, enhancing accuracy while reducing storage overhead, making it more powerful yet versatile. Extensive experiments on 11 datasets shows great superiority of our method sufficiently. Code is available at https://github.com/beyondhtx/QPrompt.

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

↑