Will Multi-modal Data Improves Few-shot Learning?

Zilun Zhang, Shihao Ma, Yichun ZhangarXiv 2021

Introduction

Few-shot learning (FSL) represents a significant challenge in artificial intelligence: the ability of a model to generalize and recognize new categories after seeing only a few examples. Traditionally, FSL models rely on a single modality, typically images. However, human cognition often leverages multi-modal context, such as textual descriptions, to aid categorization. This paper investigates whether providing models with fine-grained text descriptions alongside images can bridge the performance gap in data-scarce environments.

Methodology

The researchers propose a framework that encodes images and text separately before merging them through a specialized Fusion Module.

System Architecture

As shown in the architectural overview, the system utilizes distinct encoders for each data type. For images, standard backbones like ConvNet and ResNet12 are employed, while a pre-trained distil-BERT model serves as the text encoder.

Figure 2: The proposed multi-modal framework illustrating the flow from separate encoders through a fusion method to the few-shot learning model.

Fusion Strategies and Training

Four fusion methods were compared to determine the most effective way to integrate pixels and words:

  • Mean Fusing: Averaging image and text feature vectors.
  • FC Fusing: Concatenating vectors and processing them via a Fully-Connected layer.
  • Attention Fusing: Utilizing a single-head attention mechanism to correlate visual features with textual descriptions.
  • Attention-Residue Fusing: Adding a residual connection to the attention output to maintain visual integrity.

To align these modalities, the model employs a dual-loss objective: a standard Cross-Entropy Loss for classification and a Matching Loss (based on cosine similarity) to ensure corresponding image-text pairs are mapped to the same region in the latent space.

Key Results and Insights

The study utilized the CUB-200-2011 (birds) and Oxford Flowers 102 datasets, both of which provide fine-grained textual descriptions for each image.

Performance Gains

The addition of textual data resulted in dramatic improvements. On the CUB-200-2011 dataset using ProtoNet, classification accuracy rose from a baseline of 46.99% (image-only) to 78.40% with Attention Fusion—a nearly 31% absolute increase. Even the simplest Mean Fusion method provided a significant boost to 75.52%, suggesting that textual information provides a highly discriminative signal.

Latent Space Separability

Visual analysis using UMAP embeddings confirms that multi-modal features create much tighter and more distinct clusters compared to the overlapping clusters produced by single-modality models. This enhanced separability is a primary driver of the observed accuracy gains.

Figure 6: UMAP visualizations comparing (a) single-modality embeddings with (b) dual-modality embeddings, demonstrating significantly improved class clustering.

Algorithm Compatibility

While metric-based approaches like ProtoNet thrived with multi-modal data, optimization-based methods like MAML struggled. Specifically, attention-based fusion caused MAML to fail to converge, likely due to the increased parameter count and the sensitivity of the gradient-based meta-learning process.

Conclusion

Integrating fine-grained text descriptions into few-shot learning pipelines can improve accuracy by over 30%. Attention-based fusion is the most effective strategy for merging these modalities into a discriminative feature space. Future work will explore stabilizing these techniques for gradient-based models and investigating unified multi-modal transformer architectures.

Summary updated

BibTeX
@misc{zhang2021will,
  author = {Zilun Zhang and Shihao Ma and Yichun Zhang},
  title = {{Will Multi-modal Data Improves Few-shot Learning?}},
  year = {2021},
  eprint = {2107.11853},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.11853},
}
Figure