Skip to main content
QUICK REVIEW

[Paper Review] Efficient Multimodal Fusion via Interactive Prompting

Yaowei Li, Ruijie Quan|arXiv (Cornell University)|Apr 13, 2023
Multimodal Machine Learning ApplicationsComputer Science5 citations
TL;DR

This paper proposes PMF, a memory-efficient multimodal fusion method that uses interactive prompts in deep layers of unimodal transformers to enable flexible, two-way cross-modal interaction. By disentangling prompts into query, context, and fusion types and training only these deep-layer vectors, PMF achieves comparable performance to full fine-tuning with under 3% trainable parameters and up to 66% lower training memory usage.

ABSTRACT

Large-scale pre-training has brought unimodal fields such as computer vision and natural language processing to a new era. Following this trend, the size of multi-modal learning models constantly increases, leading to an urgent need to reduce the massive computational cost of finetuning these models for downstream tasks. In this paper, we propose an efficient and flexible multimodal fusion method, namely PMF, tailored for fusing unimodally pre-trained transformers. Specifically, we first present a modular multimodal fusion framework that exhibits high flexibility and facilitates mutual interactions among different modalities. In addition, we disentangle vanilla prompts into three types in order to learn different optimizing objectives for multimodal learning. It is also worth noting that we propose to add prompt vectors only on the deep layers of the unimodal transformers, thus significantly reducing the training memory usage. Experiment results show that our proposed method achieves comparable performance to several other multimodal finetuning methods with less than 3% trainable parameters and up to 66% saving of training memory usage.

Motivation & Objective

  • To address the high computational and memory cost of fine-tuning large multimodal models for downstream tasks.
  • To overcome the limitations of existing prompt-tuning methods, which reduce parameter updates but not memory usage significantly due to gradient calculations on full model depths.
  • To enable two-way, flexible cross-modal interaction between vision and language encoders without requiring paired multimodal data.
  • To reduce memory consumption during training by restricting prompt updates to only the deep layers of unimodal transformers.
  • To develop a modular framework that supports easy replacement of unimodal encoders and extensibility to additional modalities.

Proposed method

  • Proposes a two-stream, parallel modular fusion framework where vision and language encoders operate independently and interact via cross-attention-like mechanisms.
  • Introduces three types of interactive prompts: query prompts, query context prompts, and fusion context prompts, each serving distinct roles in cross-modal information exchange.
  • Employs non-linear mapping functions to translate 'answers' from one modality to another, enabling dynamic, context-aware interaction between modalities.
  • Restricts prompt vectors to only the deep layers (e.g., L-2) of unimodal transformers, reducing backward pass depth and thus minimizing gradient memory usage.
  • Uses a modular design that allows plug-and-play replacement of unimodal encoders (e.g., BERT, T5, ViT) and supports integration of new modalities.
  • Applies neural architecture search (NAS) to automatically identify optimal fusion layer and prompt length for improved performance with minimal hyperparameter tuning.

Experimental results

Research questions

  • RQ1Can a prompt-based method achieve comparable performance to full fine-tuning while drastically reducing training memory usage?
  • RQ2How does restricting prompt updates to deep layers of unimodal transformers affect memory efficiency and model performance?
  • RQ3Can a two-way, interactive prompting mechanism improve cross-modal understanding beyond one-way alignment in multimodal models?
  • RQ4To what extent can the modular design of PMF support flexible model replacement and multi-modal extension?
  • RQ5Does automatic hyperparameter search (e.g., NAS) improve the performance of PMF across diverse vision-language benchmarks?

Key findings

  • PMF reduces training memory usage by up to 66% compared to full fine-tuning baselines and by 55% compared to prompt-based methods, while using less than 3% of the parameters as trainable.
  • On three benchmark datasets—MM-IMDB, SNLI-VE, and UPMC-Food101—PMF achieves competitive performance, with F1-Macro scores of 61.66 on MM-IMDB and accuracy of 59.67% on SNLI-VE.
  • The method maintains high performance even when using larger unimodal encoders (e.g., BERT-large and ViT-large), with only a marginal increase in memory usage (from 12.84GB to 18.44GB).
  • Prompt length ablation shows optimal performance at M=16; longer prompts (M=32) degrade performance, though memory cost increases only slightly (≈1GB) from M=1 to M=16.
  • NAS-optimized PMF (PMF-NAS) achieves better performance than standard PMF on all three datasets, demonstrating the value of automated structure search for hyperparameter configuration.
  • The fusion layer location (e.g., L-2) is the primary factor influencing memory usage, not prompt length, confirming the effectiveness of deep-layer prompting for memory reduction.

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.