Skip to main content
QUICK REVIEW

[Paper Review] CrossTransformers: spatially-aware few-shot transfer

Carl Doersch, Ankush Gupta|arXiv (Cornell University)|Jul 22, 2020
Domain Adaptation and Few-Shot LearningComputer Science100 references58 citations
TL;DR

The paper reveals supervision collapse in neural representations and tackles it with self-supervised SimCLR episodes and a spatially aware CrossTransformer architecture to improve few-shot transfer, achieving state-of-the-art results on Meta-Dataset.

ABSTRACT

Given new tasks with very little data$-$such as new classes in a classification problem or a domain shift in the input$-$performance of modern vision systems degrades remarkably quickly. In this work, we illustrate how the neural network representations which underpin modern vision systems are subject to supervision collapse, whereby they lose any information that is not necessary for performing the training task, including information that may be necessary for transfer to new tasks or domains. We then propose two methods to mitigate this problem. First, we employ self-supervised learning to encourage general-purpose features that transfer better. Second, we propose a novel Transformer based neural network architecture called CrossTransformers, which can take a small number of labeled images and an unlabeled query, find coarse spatial correspondence between the query and the labeled images, and then infer class membership by computing distances between spatially-corresponding features. The result is a classifier that is more robust to task and domain shift, which we demonstrate via state-of-the-art performance on Meta-Dataset, a recent dataset for evaluating transfer from ImageNet to many other vision datasets.

Motivation & Objective

  • Motivate robustness of vision systems to task and domain shifts with limited labeled data.
  • Identify supervision collapse where features lose information needed for transfer.
  • Propose self-supervised learning to preserve general-purpose features.
  • Introduce CrossTransformers to perform local, spatially aligned comparisons for few-shot classification.
  • Evaluate on Meta-Dataset to demonstrate transfer gains across diverse datasets.

Proposed method

  • Use SimCLR-style self-supervision reformulated as MD-episodes to produce transferable embeddings.
  • Adopt Prototypical Nets as a base while removing final spatial pooling to preserve spatial structure.
  • Introduce CrossTransformers that compute query-aligned prototypes via attention-based local correspondences between query and support images.
  • Compute distances between query features and aligned local prototypes to predict class probabilities.
  • Share value-heads between support and query to behave like a distance metric.
  • Optionally augment with a global feature and test-time logistic regression to boost certain datasets.

Experimental results

Research questions

  • RQ1Can self-supervised learning mitigate supervision collapse and improve transfer in few-shot scenarios?
  • RQ2Does a spatially aware architecture like CrossTransformers improve generalization to unseen classes and domains?
  • RQ3How do SimCLR episodes and architectural choices affect Meta-Dataset performance?
  • RQ4What is the impact of incorporating additional augmentations or test-time classifiers on CrossTransformers?
  • RQ5To what extent do local part-based correspondences aid fine-grained and cross-domain recognition?

Key findings

  • Self-supervised SimCLR-style episodes improve few-shot transfer, especially for datasets distant from ImageNet.
  • CrossTransformers provide strong performance and better average ranking than baselines on Meta-Dataset.
  • Combining CrossTransformers with SimCLR episodes and augmentation yields state-of-the-art results on most datasets in Meta-Dataset.
  • Attention visualizations show semantically meaningful, though not one-to-one, locality alignments between query and support images.
  • Global features with test-time logistic regression can boost certain datasets (e.g., DTD) but may hurt others, highlighting a trade-off between global and local representations.
  • Increased network capacity and higher input resolution yield mixed effects across datasets.

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.