Skip to main content
QUICK REVIEW

[Paper Review] Compositional Few-Shot Recognition with Primitive Discovery and Enhancing

Yixiong Zou, Shanghang Zhang|arXiv (Cornell University)|May 12, 2020
Domain Adaptation and Few-Shot LearningComputer Science64 references5 citations
TL;DR

This paper proposes a compositional few-shot learning framework that discovers visual primitives from known classes via self-supervised object split order prediction and enhances important primitives through a soft composition mechanism. By jointly training primitive discovery and enhancing, the method achieves state-of-the-art performance on few-shot image and video recognition benchmarks with improved interpretability through sparsity and feature visualization.

ABSTRACT

Few-shot learning (FSL) aims at recognizing novel classes given only few training samples, which still remains a great challenge for deep learning. However, humans can easily recognize novel classes with only few samples. A key component of such ability is the compositional recognition that human can perform, which has been well studied in cognitive science but is not well explored in FSL. Inspired by such capability of humans, to imitate humans' ability of learning visual primitives and composing primitives to recognize novel classes, we propose an approach to FSL to learn a feature representation composed of important primitives, which is jointly trained with two parts, i.e. primitive discovery and primitive enhancing. In primitive discovery, we focus on learning primitives related to object parts by self-supervision from the order of image splits, avoiding extra laborious annotations and alleviating the effect of semantic gaps. In primitive enhancing, inspired by current studies on the interpretability of deep networks, we provide our composition view for the FSL baseline model. To modify this model for effective composition, inspired by both mathematical deduction and biological studies (the Hebbian Learning rule and the Winner-Take-All mechanism), we propose a soft composition mechanism by enlarging the activation of important primitives while reducing that of others, so as to enhance the influence of important primitives and better utilize these primitives to compose novel classes. Extensive experiments on public benchmarks are conducted on both the few-shot image classification and video recognition tasks. Our method achieves the state-of-the-art performance on all these datasets and shows better interpretability.

Motivation & Objective

  • To address the challenge of few-shot visual recognition where models must generalize to novel classes with only a few samples.
  • To imitate human-like compositional recognition by learning reusable visual primitives from known classes.
  • To reduce reliance on costly annotations and mitigate semantic gaps between known and novel classes.
  • To improve model interpretability by identifying and enhancing the most influential primitives in feature representation.
  • To achieve superior few-shot recognition performance through joint optimization of primitive discovery and enhancement.

Proposed method

  • Primitive discovery is achieved via self-supervision from image split order prediction: images are split horizontally and vertically, and the model predicts the permutation of splits, encouraging recognition of object parts as primitives.
  • The model learns part-related primitives without explicit annotations by leveraging structural supervision from split order, reducing semantic gap effects.
  • A soft composition mechanism is introduced to enhance important primitives by increasing their activation and suppressing less relevant ones, inspired by Hebbian learning and winner-take-all dynamics.
  • The method uses a learnable weight matrix W to measure primitive importance, with a sparsity loss to promote selective activation of key primitives.
  • An entropy regularization (ER) loss is applied to amplify the influence of high-activation primitives, improving their contribution to classification.
  • The framework is jointly trained with a cosine classifier and end-to-end optimization, enabling effective composition of novel classes from learned primitives.

Experimental results

Research questions

  • RQ1Can self-supervised learning from image split orders effectively discover part-related visual primitives without human annotations?
  • RQ2How can important visual primitives be dynamically enhanced during feature composition to improve few-shot recognition?
  • RQ3To what extent does the proposed soft composition mechanism improve generalization to novel classes compared to standard FSL baselines?
  • RQ4Can the learned primitives be meaningfully interpreted and shared across known and novel classes?
  • RQ5Does the joint training of primitive discovery and enhancement lead to better performance and interpretability in few-shot image and video recognition?

Key findings

  • The proposed method achieves state-of-the-art performance on all evaluated few-shot image and video recognition benchmarks, outperforming existing FSL methods.
  • The ablation study confirms that each component—primitive discovery, sparsity loss, and ER loss—contributes positively to model performance.
  • Only 15 feature channels are needed to recover 95% of the novel-class classification accuracy, demonstrating the sparsity and efficiency of the learned primitives.
  • The top 5 channels in the weight matrix W account for the majority of known-class classification performance, validating W as a reliable measure of primitive importance.
  • Visualization shows that shared primitives across known and novel classes correspond to interpretable object parts (e.g., legs, necks, chests), confirming compositional generalization.
  • The method exhibits improved interpretability, as salient primitives align with human-understandable object components, such as a dog-like chest or a fishing rod-like neck in novel classes.

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.