Skip to main content
QUICK REVIEW

[Paper Review] Few-Shot Image Recognition by Predicting Parameters from Activations

Siyuan Qiao, Chenxi Liu|arXiv (Cornell University)|Jun 12, 2017
Domain Adaptation and Few-Shot LearningComputer Science23 references18 citations
TL;DR

This paper proposes a few-shot image recognition method that predicts classification layer parameters directly from feature activations, enabling zero-shot adaptation to novel categories with a single forward pass. It achieves state-of-the-art accuracy on both ImageNet and MiniImageNet by leveraging the structural similarity between activations and learned parameters in a pre-trained network.

ABSTRACT

In this paper, we are interested in the few-shot learning problem. In particular, we focus on a challenging scenario where the number of categories is large and the number of examples per novel category is very limited, e.g. 1, 2, or 3. Motivated by the close relationship between the parameters and the activations in a neural network associated with the same category, we propose a novel method that can adapt a pre-trained neural network to novel categories by directly predicting the parameters from the activations. Zero training is required in adaptation to novel categories, and fast inference is realized by a single forward pass. We evaluate our method by doing few-shot image recognition on the ImageNet dataset, which achieves the state-of-the-art classification accuracy on novel categories by a significant margin while keeping comparable performance on the large-scale categories. We also test our method on the MiniImageNet dataset and it strongly outperforms the previous state-of-the-art methods.

Motivation & Objective

  • Address the challenge of few-shot image recognition where only 1–3 examples per novel category are available.
  • Develop a method that adapts to novel categories without fine-tuning, preserving performance on large-scale categories.
  • Enable fast inference via a single forward pass by predicting parameters directly from activations.
  • Leverage the structural similarity between activation statistics and classification layer parameters to generalize across categories.
  • Create a unified framework effective for both few-shot and large-scale classification tasks.

Proposed method

  • Predict the parameters of the final fully connected layer for novel categories using their activation statistics, specifically the mean activation per category.
  • Train a parameter predictor network to map mean activations to corresponding category parameters, using the pre-trained network's weights as supervision.
  • Use a contrastive loss to align predicted parameters with the original pre-trained parameters, ensuring semantic consistency.
  • Apply a temperature-scaled cosine similarity to improve generalization and robustness of the parameter prediction.
  • Utilize t-SNE visualization to validate the structural similarity between activation means and learned parameters in the embedding space.
  • Implement the method with two backbone architectures: a simple CNN and WRN-28-10 for ablation and performance comparison.

Experimental results

Research questions

  • RQ1Can the structural similarity between activation means and classification parameters be exploited to predict new category parameters without fine-tuning?
  • RQ2Does predicting parameters from activations outperform existing few-shot learning methods on large-scale datasets like ImageNet?
  • RQ3Can the method generalize to arbitrary numbers of few-shot categories and reference images, unlike prior methods with fixed task settings?
  • RQ4How well does the predicted parameter distribution align with the original pre-trained parameters in terms of semantic structure?
  • RQ5Does the method maintain strong performance on large-scale categories while achieving state-of-the-art few-shot accuracy?

Key findings

  • On the full ImageNet dataset, the method achieves state-of-the-art few-shot classification accuracy with a significant margin, while maintaining comparable performance on the original 1000 classes.
  • On MiniImageNet, the method achieves 59.60% accuracy in the 5-way 1-shot setting and 73.74% in the 5-way 5-shot setting, outperforming prior SOTA methods.
  • The Ours-WRN implementation achieves 73.74% accuracy in the 5-shot setting, surpassing MAML (63.11%) and Meta-Learner LSTM (60.60%) by over 10 percentage points.
  • Visualization using t-SNE confirms high structural similarity between activation means and classification parameters, supporting the method's core assumption.
  • The parameter predictor generalizes well across diverse few-shot settings, with no constraints on the number of classes or reference images per class.
  • The method achieves fast inference with zero training on novel categories, relying solely on a single forward pass after pre-training.

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.