DRDF: Determining the Importance of Different Multimodal Information with Dual-Router Dynamic Framework

Haiwen Hong, Xuan Jin, Yin Zhang, Yunqing Hu, Jingfeng Zhang, Yuan He, Hui Xue

TL;DR

This paper introduces the Dual-Router Dynamic Framework (DRDF), a novel approach for multimodal learning that dynamically determines the importance of text and image information for each input. By using a "Dual-Router" to assess modality importance and a "Modal Weight Fusion Layer" to generate dynamic weights, DRDF guides a mixture of experts to achieve superior performance across various multimodal and unimodal tasks.

What Problem Does This Paper Address?

Multimodal learning aims to leverage information from multiple sources (like text and images) to improve task performance. However, existing methods often treat all modalities equally, failing to recognize that the importance of each modality can vary significantly depending on the specific input. For instance, in a meme, the text might convey the primary meaning, while the image provides context, or vice-versa. Current models typically use a fixed architecture, making it difficult to adapt to these dynamic importance shifts. Furthermore, the field often focuses on developing monolithic models, hindering the integration of diverse, specialized backbones. This paper addresses the need for a flexible and dynamic framework that can adapt to varying modality importance and seamlessly integrate existing models as "experts."

Methods

The core of DRDF is its Dual-Router Dynamic Framework. It comprises:

  • Dual-Router: This component consists of a text router and an image router. Each router takes its respective modality as input and outputs a set of weights. These weights are not for direct classification but serve as a preliminary assessment of the modality's potential importance for the given input. The routers are typically simple neural networks (e.g., LSTM for text, VGG16 for images).
  • Modal Weight Fusion Layer (MWF-Layer): This novel layer takes the weights from the Dual-Router and determines the importance of each modality. It uses the standard deviation of the router weights to gauge modality importance and then fuses these into a set of "fused weights." These fused weights are crucial for guiding the subsequent expert fusion.
  • Experts: These are pre-existing model backbones (e.g., Visual BERT, MMBT) that are capable of processing multimodal or unimodal inputs. DRDF is designed to be modular, allowing any suitable backbone to serve as an expert.
  • Expert Fusion Unit: This unit takes the outputs from the experts and combines them using the fused weights generated by the MWF-Layer to produce the final prediction.

The framework operates in two data streams: one through the Dual-Router and MWF-Layer to generate dynamic weights, and another directly through the experts. The fused weights then instruct the experts on how to combine their outputs. For unimodal tasks, only one router is activated, making the framework adaptable.

Datasets

The paper evaluates DRDF on several datasets:

  • Hateful memes: A multimodal dataset for detecting hate speech in memes. This dataset is used extensively for evaluating multimodal performance.
  • CIFAR10, CIFAR100, TinyImagenet: Standard image classification datasets used to demonstrate DRDF's generality and effectiveness in unimodal (computer vision) tasks.
  • Hateful memes (text modality): Used to test DRDF's performance on unimodal (NLP) tasks by extending a text-only model.

Key Insights and Ideas

  • Modality Importance is Dynamic: The central idea is that the contribution of text vs. image information isn't fixed. DRDF's dynamic weighting mechanism directly addresses this, leading to better performance than static fusion methods.
  • Modularity is Key: DRDF is designed to be highly modular, allowing existing state-of-the-art models to be plugged in as "experts." This orthogonal approach means DRDF enhances rather than replaces existing work.
  • Routers as Importance Assessors: The Dual-Router's role is not to perform fine-grained classification but to provide a coarse, explainable assessment of modality importance, which is then refined by the MWF-Layer.
  • Sigmoid Activation for Routers: The authors found Sigmoid activation to be superior for the routers, as it allows for multiple high weights to coexist, promoting diverse expert contributions, unlike Softmax or ReLU which can lead to more exclusive or lost information.
  • Continuous Fusion is Superior: DRDF's continuous fusion approach (using Sigmoid outputs) is shown to be more effective than discrete gating mechanisms, allowing for finer-grained adaptation to specific input cases.

Key Results

  • Significant Performance Gains: DRDF consistently improved the performance of various backbones across multimodal and unimodal tasks. For example, on the Hateful memes dataset, DRDF extensions showed AUROC improvements of up to 1.87% (Concat BERT) and accuracy improvements of up to 3.47% (Late Fusion).
  • Generality Demonstrated: DRDF was tested with 12 different backbones and showed improvements across the board, highlighting its broad applicability.
  • Unimodal Effectiveness: DRDF also demonstrated strong performance on unimodal tasks, with accuracy improvements on image classification datasets like CIFAR10 (up to 0.18% on WideResnet28*10) and text classification tasks.
  • Ablation Studies Confirm Design Choices: Experiments validated the effectiveness of the Dual-Router, the Sigmoid activation function, and the MWF-Layer, showing that each component contributes to the overall performance improvement.

Limitations and Future Work

  • Expert Performance Degradation: The paper notes that individual experts within DRDF might perform slightly worse than their standalone counterparts. This is attributed to the experts being trained to contribute to a dynamic fusion rather than optimizing for a single task in isolation.
  • Optimal Number of Experts: While more experts generally lead to better performance, there's a point of diminishing returns, and too many experts could lead to overfitting, especially on smaller datasets. The authors settled on 4 experts for their experiments.
  • Future Work: The authors plan to continue optimizing the importance determination mechanism of DRDF and explore its application in a wider range of domains.

Summary updated

BibTeX
@inproceedings{hong2021drdf,
  author = {Haiwen Hong and Xuan Jin and Yin Zhang and Yunqing Hu and Jingfeng Zhang and Yuan He and Hui Xue},
  title = {{DRDF: Determining the Importance of Different Multimodal Information with Dual-Router Dynamic Framework}},
  booktitle = {ACM Multimedia},
  year = {2021},
  doi = {10.1145/3474085.3475702},
}

Loading related content...

Figure