Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

PromptCAL: Contrastive Affinity Learning via Auxiliary Prompts for Generalized Novel Category Discovery

About

Although existing semi-supervised learning models achieve remarkable success in learning with unannotated in-distribution data, they mostly fail to learn on unlabeled data sampled from novel semantic classes due to their closed-set assumption. In this work, we target a pragmatic but under-explored Generalized Novel Category Discovery (GNCD) setting. The GNCD setting aims to categorize unlabeled training data coming from known and novel classes by leveraging the information of partially labeled known classes. We propose a two-stage Contrastive Affinity Learning method with auxiliary visual Prompts, dubbed PromptCAL, to address this challenging problem. Our approach discovers reliable pairwise sample affinities to learn better semantic clustering of both known and novel classes for the class token and visual prompts. First, we propose a discriminative prompt regularization loss to reinforce semantic discriminativeness of prompt-adapted pre-trained vision transformer for refined affinity relationships.Besides, we propose contrastive affinity learning to calibrate semantic representations based on our iterative semi-supervised affinity graph generation method for semantically-enhanced supervision. Extensive experimental evaluation demonstrates that our PromptCAL method is more effective in discovering novel classes even with limited annotations and surpasses the current state-of-the-art on generic and fine-grained benchmarks (e.g., with nearly 11% gain on CUB-200, and 9% on ImageNet-100) on overall accuracy. Our code is available at https://github.com/sheng-eatamath/PromptCAL.

Sheng Zhang, Salman Khan, Zhiqiang Shen, Muzammal Naseer, Guangyi Chen, Fahad Khan• 2022

Related benchmarks

TaskDatasetResultRank
Generalized Category DiscoveryImageNet-100
All Accuracy83.1
138
Generalized Category DiscoveryCIFAR-100
Accuracy (All)81.6
133
Generalized Category DiscoveryStanford Cars
Accuracy (All)50.2
128
Generalized Category DiscoveryCUB
Accuracy (All)62.9
113
Generalized Category DiscoveryCIFAR-10
All Accuracy97.9
105
Generalized Category DiscoveryFGVC Aircraft
Accuracy (All)53.6
82
Generalized Category DiscoveryCUB-200 (test)
Overall Accuracy62.9
63
Generalized Category DiscoveryHerbarium19
Score (All Categories)37
47
Fine-grained Image ClassificationFGVC Aircraft
Accuracy (All)52.2
39
Fine-grained object category discoveryStanford Cars (test)
Accuracy50.2
38
Showing 10 of 31 rows

Other info

Code

Follow for update