Skip to main content
QUICK REVIEW

[Paper Review] Rich Semantics Improve Few-shot Learning

Mohamed Afham, Salman Khan|arXiv (Cornell University)|Apr 26, 2021
Domain Adaptation and Few-Shot LearningComputer Science12 citations
TL;DR

This paper proposes RS-FSL, a few-shot learning framework that improves generalization by using class-level natural language descriptions as an auxiliary training signal. By training a bidirectional Transformer to generate descriptions from hybrid visual-semantic prototypes, the model learns more disentangled, human-interpretable representations that act as a regularizer, boosting accuracy by up to 5.97% over baselines on standard few-shot benchmarks.

ABSTRACT

Human learning benefits from multi-modal inputs that often appear as rich semantics (e.g., description of an object's attributes while learning about it). This enables us to learn generalizable concepts from very limited visual examples. However, current few-shot learning (FSL) methods use numerical class labels to denote object classes which do not provide rich semantic meanings about the learned concepts. In this work, we show that by using 'class-level' language descriptions, that can be acquired with minimal annotation cost, we can improve the FSL performance. Given a support set and queries, our main idea is to create a bottleneck visual feature (hybrid prototype) which is then used to generate language descriptions of the classes as an auxiliary task during training. We develop a Transformer based forward and backward encoding mechanism to relate visual and semantic tokens that can encode intricate relationships between the two modalities. Forcing the prototypes to retain semantic information about class description acts as a regularizer on the visual features, improving their generalization to novel classes at inference. Furthermore, this strategy imposes a human prior on the learned representations, ensuring that the model is faithfully relating visual and semantic concepts, thereby improving model interpretability. Our experiments on four datasets and ablation studies show the benefit of effectively modeling rich semantics for FSL.

Motivation & Objective

  • To address the semantic gap in few-shot learning caused by using only numerical class labels instead of rich semantic descriptions.
  • To improve generalization to novel classes by incorporating low-cost, human-readable class-level descriptions during training.
  • To enforce consistency in visual feature learning by making the model predict natural language descriptions of support set prototypes.
  • To enhance model interpretability by enabling analysis of which attributes are misclassified through generated descriptions.
  • To provide a plug-and-play module that boosts performance across multiple FSL baselines without architectural overhaul.

Proposed method

  • Construct a hybrid visual-semantic prototype by fusing support and query image features using a learnable aggregation mechanism.
  • Train a bidirectional Transformer decoder to generate natural language descriptions from the hybrid prototype, modeling long-range dependencies between visual and semantic tokens.
  • Use the language description generation as an auxiliary task during training to regularize visual feature learning and improve generalization.
  • Implement a two-way attention mechanism in the Transformer to enable bidirectional interaction between visual features and language tokens.
  • Train the model end-to-end with a cross-entropy loss on the language generation task, while maintaining the primary classification objective.
  • Discard the language decoder at inference, but retain it for interpretability and error analysis of model predictions.

Experimental results

Research questions

  • RQ1Can modeling rich semantic attributes through natural language descriptions improve few-shot generalization?
  • RQ2How does using class-level descriptions as an auxiliary task affect the discriminative power and transferability of visual features?
  • RQ3What is the impact of bidirectional versus unidirectional language decoding on few-shot performance?
  • RQ4How does the number of class-level descriptions affect model accuracy and saturation?
  • RQ5Can the proposed method be effectively integrated into existing FSL baselines without architectural changes?

Key findings

  • The proposed RS-FSL method achieves a 63.86% average 5-way 1-shot accuracy on the CUB dataset, representing a 5.97% improvement over the baseline ProtoNet without semantics.
  • Using bidirectional Transformer decoding improves performance by 1.83% compared to unidirectional decoding, demonstrating the benefit of two-way interaction between visual and language tokens.
  • Performance peaks at 20 class-level descriptions, after which gains saturate, indicating diminishing returns beyond a moderate number of descriptions.
  • The model with two Transformer decoder layers achieves the highest accuracy (63.86%), while deeper models (3–5 layers) underperform due to overfitting on small datasets.
  • The method outperforms other auxiliary self-supervision techniques, including rotation prediction, word embeddings, and GRU-based language modeling, by margins of 4.6%, 3.61%, and 2.62% respectively.
  • Despite a 1-hour training overhead (5 hours vs. 4 hours for baseline), the method delivers a 2% performance gain on miniImageNet, demonstrating a favorable cost-benefit trade-off.

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.