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

使用 CLIP 的在线零样本分类

Online Zero-Shot Classification with CLIP

Alibaba Group(阿里巴巴集团);School of Engineering and Technology, University of Washington(华盛顿大学工程与技术学院)

Qi Qian, Juhua Hu

AI总结:

研究CLIP在线零样本分类场景,提出结合在线标签学习与在线代理学习的OnZeta框架,利用到达图像统计信息优化目标分布并缓解模态差距,在ImageNet上达78.94%准确率且13个任务平均提升超3%。

摘要:

诸如 CLIP 的视觉-语言预训练能够实现零样本迁移,即根据候选类名对图像进行分类。尽管 CLIP 在各种下游任务中展现出令人印象深刻的零样本性能,但目标数据的分布尚未得到充分利用。在本研究中,我们探索了一种新颖的在线零样本迁移场景:每张图像以随机顺序到达进行分类,且仅被访问一次以立即获得预测结果,而不存储其表示。与普通的零样本分类相比,所提出的框架在保持在线服务灵活性的同时,将已到达图像的统计信息作为辅助信息,以捕捉目标数据的分布,这有助于提升实际应用的性能。为了应对有效在线优化的挑战,我们首先开发了在线标签学习来对目标数据分布进行建模。接着,利用所提出的在线代理学习方法进一步优化视觉空间中每个类的代理,以缓解图像与文本之间的模态差距。这两种在线策略的收敛性在理论上均可得到保证。通过结合在线标签学习和代理学习的预测标签,我们的在线零样本迁移方法在无需访问整个数据集的情况下,在 ImageNet 上实现了 $78.94\%$ 的准确率。此外,在使用不同视觉编码器的其他 13 个下游任务上的大量实验表明,平均性能提升了 $3\%$ 以上,这证明了我们方法的有效性。代码可在 \url{https://github.com/idstcv/OnZeta} 获取。

英文摘要:

Vision-language pre-training such as CLIP enables zero-shot transfer that can classify images according to the candidate class names. While CLIP demonstrates an impressive zero-shot performance on diverse downstream tasks, the distribution from the target data has not been leveraged sufficiently. In this work, we study a novel online zero-shot transfer scenario, where each image arrives in a random order for classification and is visited only once to obtain prediction immediately without storing its representation. Compared with the vanilla zero-shot classification, the proposed framework preserves its flexibility for online service while considering the statistics of the arrived images as the side information to capture the distribution of target data, which can help improve the performance of real-world applications. To tackle the challenge of effective online optimization, we first develop online label learning to model the target data distribution. Then, the proxy of each class in the vision space is further optimized with the proposed online proxy learning method to mitigate the modality gap between images and text. The convergence of both online strategies can be theoretically guaranteed. By combining the predicted label from the online label learning and proxy learning, our online zero-shot transfer method (OnZeta) achieves $78.94\%$ accuracy on ImageNet without accessing the entire data set. Moreover, extensive experiments on other 13 downstream tasks with different vision encoders show a more than $3\%$ improvement on average, which demonstrates the effectiveness of our proposal. Code is available at \url{https://github.com/idstcv/OnZeta}.

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

↑