Multi-Modal Fusion by Meta-Initialization

Matthew Thomas Jackson, Shreshth A. Malik, Michael T. Matthews, Yousuf Mohamed-Ahmed

Abstract

When experience is scarce, models may have insufficient information to adapt to a new task. In this case, auxiliary information - such as a textual description of the task - can enable improved task inference and adaptation. In this work, we propose an extension to the Model-Agnostic Meta-Learning algorithm (MAML), which allows the model to adapt using auxiliary information as well as task experience. Our method, Fusion by Meta-Initialization (FuMI), conditions the model initialization on auxiliary information using a hypernetwork, rather than learning a single, task-agnostic initialization. Furthermore, motivated by the shortcomings of existing multi-modal few-shot learning benchmarks, we constructed iNat-Anim - a large-scale image classification dataset with succinct and visually pertinent textual class descriptions. On iNat-Anim, FuMI significantly outperforms uni-modal baselines such as MAML in the few-shot regime.

Introduction

Few-shot learning (FSL) aims to train models that can recognize new concepts from just a handful of examples. A human can often identify a rare bird after seeing one photo and reading a brief description. However, standard gradient-based FSL methods like Model-Agnostic Meta-Learning (MAML) are "blind" to such auxiliary information. MAML finds a global parameter initialization that is quickly fine-tuned for any task, but it starts from the same point regardless of the task's nature (e.g., birds vs. cars).

While auxiliary data like text descriptions can provide vital discriminative features missing from a single image, existing integration methods often rely on noisy sources or non-scalable hand-crafted attributes. This paper addresses the need for a mechanism that uses high-quality language data to guide the model's initialization process.

Methods: Fusion by Meta-Initialization (FuMI)

FuMI replaces MAML’s single, task-agnostic initialization with a task-specific initialization generated by a hypernetwork. The model architecture is split into a "Body" (feature extractor) and a "Head" (classification layer).

Instead of learning fixed weights for the Head, FuMI employs a hypernetwork $g_\phi$. This network takes a textual description of a class—embedded via a pre-trained model like BERT—and outputs the initial weights for that class's portion of the Head.

The meta-learning process follows a nested loop structure:

  1. Inner Loop: The model starts with the text-generated Head and a shared Body initialization. It performs standard gradient descent updates using the few available images in the support set.
  2. Outer Loop: Performance is evaluated on a query set. The system then updates both the shared Body initialization and the hypernetwork’s parameters.

By conditioning the initialization on text, the model learns to translate linguistic descriptions into a useful starting state in the loss landscape.

The iNat-Anim Dataset

To evaluate FuMI, the authors introduced iNat-Anim, a large-scale multi-modal benchmark designed to overcome the "noisy data" issues of previous datasets like CUB or AWA.

Multi-modal few-shot learning setup in the iNat-Anim dataset, featuring image support sets and textual descriptions.

iNat-Anim utilizes a subset of the iNaturalist 2021 challenge, encompassing 195,605 images across 673 animal species. Crucially, it includes curated, succinct, and visually pertinent descriptions from Animalia.bio. Unlike Wikipedia-based datasets, iNat-Anim provides clean natural language focused on visual traits, such as "pale grey chest and belly."

Key Results and Insights

On 5-way classification tasks within iNat-Anim, FuMI demonstrates significant gains:

  • 1-Shot Performance: FuMI achieved 78.9% accuracy, outperforming standard MAML (72%).
  • Diminishing Returns of Text: As the number of shots increases to 10, the accuracy gap between FuMI and MAML closes (both ~87%). This confirms that text is most valuable when visual data is scarcest.
  • Information Gain: Auxiliary information is critical in 1-shot scenarios where a single image might miss key features (e.g., a bird's beak color if photographed from behind) that the text explicitly mentions.

While FuMI outperforms MAML, metric-based multi-modal methods like AM3 (80.8% at 1-shot) remain competitive, suggesting that gradient-based fusion still has optimization potential.

Discussion and Limitations

FuMI's reliance on initialization can lead to "catastrophic forgetting" during the inner loop fine-tuning, where the model might lose the initial linguistic guidance. Future work could incorporate continual learning techniques to mitigate this. Additionally, while currently focused on Image + Text, the FuMI framework could extend to other modalities like audio or instructions in reinforcement learning. Finally, like MAML, FuMI can be sensitive to hyperparameter tuning compared to simpler metric-based approaches.

Summary updated

BibTeX
@misc{jackson2022multi,
  author = {Matthew Thomas Jackson and Shreshth A. Malik and Michael T. Matthews and Yousuf Mohamed-Ahmed},
  title = {{Multi-Modal Fusion by Meta-Initialization}},
  year = {2022},
  eprint = {2210.04843},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.04843},
}
Figure