i-Code: An Integrative and Composable Multimodal Learning Framework

Ziyi Yang, Yuwei Fang, Chenguang Zhu, Reid Pryzant, Dongdong Chen, Yu Shi, Yichong Xu, Yao Qian, Mei Gao, Yi-Ling Chen, Liyang Lu, Yujia Xie, Robert Gmyr, Noel Codella, Naoyuki Kanda, Bin Xiao, Lu Yuan, Takuya Yoshioka, Michael Zeng, Xuedong Huang

Introduction

Human intelligence is inherently multimodal, seamlessly processing sight, sound, and language to navigate the world. However, artificial intelligence has historically struggled to replicate this "generalist" capability. Most existing models are specialists, limited to one or two modalities. The i-Code framework addresses two primary hurdles in multimodal AI: the scarcity of high-quality "triple-modality" (Vision, Language, Speech) data and the architectural rigidity of models that cannot easily adapt to missing modalities or incorporate new advancements.

Methods

The i-Code framework is built on three pillars: Modularity, Integrative Fusion, and Unified Self-Supervision.

Instead of training from scratch, i-Code utilizes a modular architecture with "off-the-shelf" state-of-the-art encoders: DeBERTa-v3 for language, CoSwin for vision, and WavLM for speech. These encoders feed into a central Transformer-based fusion module. The researchers explored two distinct fusion mechanisms to integrate these signals:

  1. Merge-attention: Concatenating all modality features into a single sequence using unique modality identifiers.
  2. Co-attention: A hierarchical approach where each modality performs self-attention before engaging in cross-modality attention.
The i-Code architecture featuring modular encoders and two fusion mechanisms: (a) Merge-Attention and (b) Co-Attention.

To train the model, i-Code employs unified self-supervised objectives, including Masked Unit Modeling (predicting masked tokens across modalities) and Cross-Modality Contrastive Learning (aligning corresponding signals, such as matching a video of a dog barking to its audio and the text "dog").

Datasets and Training

To overcome data scarcity, i-Code leverages a diverse mix of sources. While it uses the YT-Temporal-180M dataset for triple-modality training, it heavily relies on more abundant dual-modality data. This includes Florence (72.8M image-caption pairs), a 75k-hour speech-transcript dataset, and Spoken Moments in Time (video-audio pairs). This strategy allows the model to align all three senses effectively without requiring an impossible volume of perfect triple-modality data.

Key Insights and Ideas

The "Synergy" Effect

A significant finding of the i-Code research is that multimodal pretraining does not have to come at the expense of single-modality performance. Unlike previous models where multi-sense training often degraded performance on pure text or speech tasks, i-Code improved scores on the GLUE (language) and SUPERB (speech) benchmarks.

Composability and Efficiency

The framework's modularity allows for "hot-swapping" encoders. The authors demonstrated that replacing a DeBERTa encoder with a BERT encoder in a pretrained i-Code model resulted in significantly faster convergence compared to training from scratch. This proves the framework is truly composable and can evolve alongside individual modality research.

Performance comparison between pretraining from scratch versus continuing from a pretrained BERT encoder.

Key Results

i-Code achieved state-of-the-art (SOTA) performance across five major multimodal benchmarks:

  • Humor Detection: Improved performance on the UR-FUNNY dataset by 7.5%.
  • Sentiment & Emotion: On the CMU-MOSEI dataset, the model saw a 3% boost in sentiment correlation and a 4.2% increase in emotion recognition accuracy.
  • Language Benchmarks: i-Code set a new record for multimodal models on the GLUE benchmark, outperforming predecessors by an average of 11%.
  • Scalability: By implementing a Mixture-of-Experts (MoE) fusion layer, the researchers scaled the module to 483 million parameters, enhancing performance with optimized computational costs.

Limitations and Future Work

Despite its successes, challenges remain in temporal alignment, specifically matching fast-moving visual frames with precise audio phonemes in noisy web data. Additionally, pretraining remains resource-intensive, requiring significant GPU power (e.g., 72 A100s). Future research will explore extending i-Code to additional modalities like depth or thermal imaging and applying the framework to generative tasks such as text-to-video synthesis.

Summary updated

BibTeX
@inproceedings{yang2023i,
  author = {Ziyi Yang and Yuwei Fang and Chenguang Zhu and Reid Pryzant and Dongdong Chen and Yu Shi and Yichong Xu and Yao Qian and Mei Gao and Yi-Ling Chen and Liyang Lu and Yujia Xie and Robert Gmyr and Noel Codella and Naoyuki Kanda and Bin Xiao and Lu Yuan and Takuya Yoshioka and Michael Zeng and Xuedong Huang},
  title = {{i-Code: An Integrative and Composable Multimodal Learning Framework}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i9.26290},
}
Figure