Efficient and Long-Tailed Generalization for Pre-trained Vision-Language Model

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Shi, Jiang-Xin, Zhang, Chi, Wei, Tong, Li, Yu-Feng
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914838987407360
author Shi, Jiang-Xin
Zhang, Chi
Wei, Tong
Li, Yu-Feng
author_facet Shi, Jiang-Xin
Zhang, Chi
Wei, Tong
Li, Yu-Feng
contents Pre-trained vision-language models like CLIP have shown powerful zero-shot inference ability via image-text matching and prove to be strong few-shot learners in various downstream tasks. However, in real-world scenarios, adapting CLIP to downstream tasks may encounter the following challenges: 1) data may exhibit long-tailed data distributions and might not have abundant samples for all the classes; 2) There might be emerging tasks with new classes that contain no samples at all. To overcome them, we propose a novel framework to achieve efficient and long-tailed generalization, which can be termed as Candle. During the training process, we propose compensating logit-adjusted loss to encourage large margins of prototypes and alleviate imbalance both within the base classes and between the base and new classes. For efficient adaptation, we treat the CLIP model as a black box and leverage the extracted features to obtain visual and textual prototypes for prediction. To make full use of multi-modal information, we also propose cross-modal attention to enrich the features from both modalities. For effective generalization, we introduce virtual prototypes for new classes to make up for their lack of training images. Candle achieves state-of-the-art performance over extensive experiments on 11 diverse datasets while substantially reducing the training time, demonstrating the superiority of our approach. The source code is available at https://github.com/shijxcs/Candle.
format Preprint
id arxiv_https___arxiv_org_abs_2406_12638
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Efficient and Long-Tailed Generalization for Pre-trained Vision-Language Model
Shi, Jiang-Xin
Zhang, Chi
Wei, Tong
Li, Yu-Feng
Computer Vision and Pattern Recognition
Machine Learning
Pre-trained vision-language models like CLIP have shown powerful zero-shot inference ability via image-text matching and prove to be strong few-shot learners in various downstream tasks. However, in real-world scenarios, adapting CLIP to downstream tasks may encounter the following challenges: 1) data may exhibit long-tailed data distributions and might not have abundant samples for all the classes; 2) There might be emerging tasks with new classes that contain no samples at all. To overcome them, we propose a novel framework to achieve efficient and long-tailed generalization, which can be termed as Candle. During the training process, we propose compensating logit-adjusted loss to encourage large margins of prototypes and alleviate imbalance both within the base classes and between the base and new classes. For efficient adaptation, we treat the CLIP model as a black box and leverage the extracted features to obtain visual and textual prototypes for prediction. To make full use of multi-modal information, we also propose cross-modal attention to enrich the features from both modalities. For effective generalization, we introduce virtual prototypes for new classes to make up for their lack of training images. Candle achieves state-of-the-art performance over extensive experiments on 11 diverse datasets while substantially reducing the training time, demonstrating the superiority of our approach. The source code is available at https://github.com/shijxcs/Candle.
title Efficient and Long-Tailed Generalization for Pre-trained Vision-Language Model
topic Computer Vision and Pattern Recognition
Machine Learning
url https://arxiv.org/abs/2406.12638