Lune

CVPR2024Top-tier venue

Leveraging Cross-Modal Neighbor Representation for Improved CLIP Classification

Chao Yi, Lu Ren, De-Chuan Zhan, Han-Jia Ye

Abstract

CLIP showcases exceptional cross-modal matching ca-pabilities due to its training on image-text contrastive learning tasks. However, without specific optimization for uni-modal scenarios, its performance in single-modality feature extraction might be suboptimal. Despite this, some studies have directly used CLIP's image encoder for tasks like few-shot classification, introducing a misalignment between its pretraining objectives and feature extraction methods. This inconsistency can diminish the quality of the image's feature representation, adversely affecting CLIP's effectiveness in target tasks. In this paper, we view text features as precise neighbors of image features in CLIP's space and present a novel CrOss-moDal nEighbor Representation (CODER) based on the distance structure between images and their neighbor texts. This feature extraction method aligns better with CLIP's pretraining objectives, thereby fully lever-aging CLIP's robust cross-modal capabilities. The key to construct a high-quality CODER lies in how to create a vast amount of high-quality and diverse texts to match with images. We introduce the Auto Text Generator (ATG) to automatically generate the required texts in a data-free and training-free manner. We apply CODER to CLIP's zero-shot and few-shot image classification tasks. Exper-iment results across various datasets and models confirm CODER's effectiveness. Code is available at: https://github.com/YCaigogogo/CVPR24-CODER.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

7 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Conditional Prompt Learning for Vision-Language Models cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Conditional Prompt Learning for Vision-Language Models cites Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision
  • Conditional Prompt Learning for Vision-Language Models cites Learning Transferable Visual Models From Natural Language Supervision
  • Mind the Gap: Preserving and Compensating for the Modality Gap in CLIP-Based Continual Learning cites Learning Transferable Visual Models From Natural Language Supervision
  • Bridge the Modality and Capability Gaps in Vision-Language Model Selection cites Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision
  • Bridge the Modality and Capability Gaps in Vision-Language Model Selection cites Learning Transferable Visual Models From Natural Language Supervision
  • Bridge the Modality and Capability Gaps in Vision-Language Model Selection cites Training language models to follow instructions with human feedback
  • Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision cites Learning Transferable Visual Models From Natural Language Supervision
  • IsoCLIP: Decomposing CLIP Projectors for Efficient Intra-modal Alignment cites Conditional Prompt Learning for Vision-Language Models
  • IsoCLIP: Decomposing CLIP Projectors for Efficient Intra-modal Alignment cites Learning Transferable Visual Models From Natural Language Supervision
  • Learning Transferable Visual Models From Natural Language Supervision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Reevaluating the Intra-Modal Misalignment Hypothesis in CLIP cites Conditional Prompt Learning for Vision-Language Models
  • Reevaluating the Intra-Modal Misalignment Hypothesis in CLIP cites Learning Transferable Visual Models From Natural Language Supervision
  • External Knowledge Injection for CLIP-Based Class-Incremental Learning cites Conditional Prompt Learning for Vision-Language Models
  • External Knowledge Injection for CLIP-Based Class-Incremental Learning cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • External Knowledge Injection for CLIP-Based Class-Incremental Learning cites Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision
  • External Knowledge Injection for CLIP-Based Class-Incremental Learning cites Learning Transferable Visual Models From Natural Language Supervision
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. Bridge the Modality and Capability Gaps in Vision-Language Model SelectionChao Yi, Yuhang He, De-Chuan Zhan, Han-Jia YeNeurIPS 2024 · 32 citations
  2. External Knowledge Injection for CLIP-Based Class-Incremental LearningDa-Wei Zhou, Kai-Wen Li, Jingyi Ning, Han-Jia Ye et al.ICCV 2025 · 13 citations
  3. Mind the Gap: Preserving and Compensating for the Modality Gap in CLIP-Based Continual LearningLinlan Huang, Xusheng Cao, Haori Lu, Yifan Meng et al.ICCV 2025 · 12 citations
  4. IsoCLIP: Decomposing CLIP Projectors for Efficient Intra-modal AlignmentSimone Magistri, Dipam Goswami, Marco Mistretta, Bartlomiej Twardowski et al.CVPR 2026 · 4 citations
  5. Reevaluating the Intra-Modal Misalignment Hypothesis in CLIPJonas Herzog, Yue WangCVPR 2026 · 1 citation

Builds on23

  1. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  2. Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
  3. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  4. Scaling Up Visual and Vision-Language Representation Learning With Noisy Text SupervisionChao Jia, Yinfei Yang, Ye Xia, Yi-Ting Chen et al.ICML 2021 · 5,401 citations
  5. Conditional Prompt Learning for Vision-Language ModelsKaiyang Zhou, Jingkang Yang, Chen Change Loy, Ziwei LiuCVPR 2022 · 1,438 citations

Related papers

  1. CLIP Behaves like a Bag-of-Words Model Cross-modally but not Uni-modallyDarina Koishigarina, Arnas Uselis, Seong Joon OhICLR 2026 · 33 citations
  2. CALIP: Zero-Shot Enhancement of CLIP with Parameter-Free AttentionZiyu Guo, Renrui Zhang, Longtian Qiu, Xianzheng Ma et al.AAAI 2023 · 182 citations
  3. GrowCLIP: Data-aware Automatic Model Growing for Large-scale Contrastive Language-Image Pre-trainingXinchi Deng, Han Shi, Runhui Huang, Changlin Li et al.ICCV 2023 · 3 citations
  4. Understanding Transferable Representation Learning and Zero-shot Transfer in CLIPZixiang Chen, Yihe Deng, Yuanzhi Li, Quanquan GuICLR 2024 · 21 citations
  5. Rethinking Prior Information Generation with CLIP for Few-Shot SegmentationJin Wang, Bingfeng Zhang, Jian Pang, Honglong Chen et al.CVPR 2024 · 27 citations
Dusk over the sea between two cliffs drawn in fine vertical lines