Logits DeConfusion with CLIP for Few-Shot Learning
Shuo Li, Fang Liu, Zehua Hao, Xinyi Wang, Lingling Li, Xu Liu, Puhua Chen, Wenping Ma
TL;DR
This work tackles inter-class confusion in CLIP-based few-shot learning by introducing Logits DeConfusion (LDC). It combines a Multi-level Adapter Fusion (MAF) that fuses multi-level image features with an Inter-Class Deconfusion (ICD) module that learns and subtracts confusion patterns from zero-shot logits, plus an Adaptive Logits Fusion (ALF) to combine corrected and refined logits. The approach is trained with multiple cross-entropy and similarity losses to prevent over-deconfusion, and it demonstrates strong improvements across 11 classification benchmarks and robustness to out-of-distribution data, while revealing ablation-driven insights into module contributions. The results indicate that leveraging learned inter-class confusion patterns and multi-level feature fusion significantly enhances CLIP-based few-shot performance, offering a practical path to more reliable cross-domain visual understanding.
Abstract
With its powerful visual-language alignment capability, CLIP performs well in zero-shot and few-shot learning tasks. However, we found in experiments that CLIP's logits suffer from serious inter-class confusion problems in downstream tasks, and the ambiguity between categories seriously affects the accuracy. To address this challenge, we propose a novel method called Logits DeConfusion, which effectively learns and eliminates inter-class confusion in logits by combining our Multi-level Adapter Fusion (MAF) module with our Inter-Class Deconfusion (ICD) module. Our MAF extracts features from different levels and fuses them uniformly to enhance feature representation. Our ICD learnably eliminates inter-class confusion in logits with a residual structure. Experimental results show that our method can significantly improve the classification performance and alleviate the inter-class confusion problem. The code is available at https://github.com/LiShuo1001/LDC.
