Skip to main content
QUICK REVIEW

[Paper Review] Neural Priming for Sample-Efficient Adaptation

Matthew Wallingford, Vivek Ramanujan|arXiv (Cornell University)|Jun 16, 2023
Domain Adaptation and Few-Shot LearningComputer Science3 citations
TL;DR

This paper proposes neural priming to improve sample-efficient adaptation in few-shot learning by constructing high-quality, semantically filtered visual priming pools using CLIP embeddings. By filtering out ambiguous or semantically similar distractors (e.g., 'guinea pig' from 'pig' class), the method reduces label confusion and improves zero-shot generalization, achieving state-of-the-art performance with minimal labeled examples.

ABSTRACT

We propose Neural Priming, a technique for adapting large pretrained models to distribution shifts and downstream tasks given few or no labeled examples. Presented with class names or unlabeled test samples, Neural Priming enables the model to recall and conditions its parameters on relevant data seen throughout pretraining, thereby priming it for the test distribution. Neural Priming can be performed at test time, even for pretraining datasets as large as LAION-2B. Performing lightweight updates on the recalled data significantly improves accuracy across a variety of distribution shift and transfer learning benchmarks. Concretely, in the zero-shot setting, we see a 2.45% improvement in accuracy on ImageNet and 3.81% accuracy improvement on average across standard transfer learning benchmarks. Further, using Neural Priming at inference to adapt to distribution shift, we see a 1.41% accuracy improvement on ImageNetV2. These results demonstrate the effectiveness of Neural Priming in addressing the challenge of limited labeled data and changing distributions. Code is available at github.com/RAIVNLab/neural-priming.

Motivation & Objective

  • To address label confusion in few-shot learning caused by semantically similar but distinct classes (e.g., 'pig' and 'guinea pig').
  • To improve sample efficiency in adaptation by constructing high-quality priming pools from large-scale web data.
  • To reduce reliance on manual curation by automating priming pool construction using CLIP embeddings and text retrieval.
  • To demonstrate that semantic filtering of retrieved images significantly improves zero-shot generalization on ImageNet.

Proposed method

  • Construct an initial priming pool using text-based retrieval from LAION-2b using class names as queries.
  • Filter retrieved images using CLIP's vision-text contrastive embeddings to ensure semantic consistency with the target class.
  • Apply a similarity threshold to exclude images that are semantically distant from the target class (e.g., remove 'guinea pig' from 'pig' pool).
  • Use the filtered priming pool to initialize model adaptation, enabling efficient fine-tuning with few labeled examples.
  • Leverage CLIP's zero-shot capabilities to evaluate and validate the semantic coherence of the final priming pool.
Figure 1: (left) Examples from the “pig” priming pool used for our ImageNet experiments after text retrieval and CLIP similarity filtering (process described in Section 3.1.1). (right) Examples of ‘guinea pigs” which were filtered from the pig pool using CLIP semantic embeddings. We see that it is c
Figure 1: (left) Examples from the “pig” priming pool used for our ImageNet experiments after text retrieval and CLIP similarity filtering (process described in Section 3.1.1). (right) Examples of ‘guinea pigs” which were filtered from the pig pool using CLIP semantic embeddings. We see that it is c

Experimental results

Research questions

  • RQ1Can automated, text-based retrieval from large-scale datasets like LAION-2b produce effective priming pools for few-shot adaptation?
  • RQ2How does semantic filtering using CLIP embeddings affect label confusion in class-ambiguous cases?
  • RQ3To what extent does neural priming improve few-shot generalization compared to random or unfiltered pools?
  • RQ4What is the impact of query rarity on the efficiency of priming pool construction?
  • RQ5Can CLIP-based filtering consistently improve zero-shot performance across diverse ImageNet classes?

Key findings

  • Semantic filtering using CLIP embeddings effectively removes semantically similar but incorrect examples (e.g., 'guinea pig' from the 'pig' class), reducing label confusion.
  • The method constructs priming pools in under one second per class on average, demonstrating high efficiency.
  • Filtered priming pools lead to improved zero-shot generalization, especially in class-ambiguous scenarios.
  • Rare class queries are processed faster due to the nature of full-text search over LAION-2b.
  • The approach enables state-of-the-art few-shot adaptation performance with minimal labeled data.
Figure 2: (reproduced from appendix) Wall-clock times by query for construction of the initial priming pool. The queries used here are the ones used for the construction of the ImageNet pool. Due to the nature of full text search, rare queries are very fast, with most classes taking less than 1 seco
Figure 2: (reproduced from appendix) Wall-clock times by query for construction of the initial priming pool. The queries used here are the ones used for the construction of the ImageNet pool. Due to the nature of full text search, rare queries are very fast, with most classes taking less than 1 seco

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.