UnIVAL: Unified Model for Image, Video, Audio and Language Tasks

Mustafa Shukor, Corentin Dancette, Alexandre Rame, Matthieu Cord

TL;DR

UnIVAL is a compact, 0.25-billion parameter unified model that handles image, video, audio, and language tasks within a single sequence-to-sequence framework. By employing multimodal curriculum learning and task balancing, it achieves state-of-the-art performance on several benchmarks while remaining efficient enough to run on consumer-grade hardware.

What Problem Does This Paper Address?

The quest for "generalist agents"—AI models that can perceive and act across various environments—is a major goal in machine learning. However, most current unified models are either massive (billions of parameters) or restricted to just two modalities, typically image-text or video-text.

Building a model that handles all major modalities (text, images, video, and audio) usually requires enormous datasets and immense computational power. The authors of UnIVAL ask: Is it possible to build a truly multimodal unified model efficiently, without needing billions of parameters or "fancy" proprietary datasets?

Methods

UnIVAL (Unified Model for Image, Video, Audio and Language) achieves unification across four main axes:

  1. Unified Architecture: It uses an encoder-decoder Transformer (initialized from BART-base). To keep it efficient, it uses lightweight, modality-specific CNN encoders (ResNet for images, 3D ResNext for video, and PANN for audio) to project different inputs into a shared token space.
  2. Unified Input/Output: All inputs (images, video frames, audio snippets, text) and outputs are converted into sequences of discrete tokens.
  3. Unified Tasks: Every task is framed as a sequence-to-sequence problem guided by a textual prompt (e.g., "What does the audio describe?").
  4. Unified Objective: The model is trained solely on next-token prediction using a standard cross-entropy loss.
Figure 1: UnIVAL model. Our sequence-to-sequence model unifies the architecture, tasks, input/output format, and training objective (next token prediction). UnIVAL is pretrained on image and video-text tasks and can be finetuned to tackle new modalities (audio-text) and tasks (text-to-image generation) that were not used during pretraining.

Two key training strategies make UnIVAL efficient:

  • Multimodal Curriculum Learning (MCL): Instead of training on everything at once, the model starts with image-text tasks and gradually introduces video-text. This "warm-up" provides a better initialization and reduces memory usage by 25%.
  • Multimodal Task Balancing: The authors found that simply mixing datasets leads to models biased toward the largest (and often noisiest) datasets. By balancing the number of examples per task in each batch, they significantly improved performance.

Datasets

UnIVAL was pretrained on a collection of relatively small, high-quality public datasets:

  • Image-Text: COCO, Visual Genome, SBU, CC3M, and CC12M.
  • Video-Text: WebVid2M and WebVidQA.
  • Evaluation: The model was tested on standard benchmarks like VQAv2, SNLI-VE, RefCOCO (Visual Grounding), MSR-VTT (Video Captioning), and Audiocaps (Audio Captioning).

Key Insights and Ideas

  • Cross-Modality Synergy: The researchers found that training on multiple modalities isn't just about adding features; it creates synergy. For example, training on video tasks actually improved the model's performance on image-based tasks.
  • Zero-Shot Modality Transfer: Remarkably, even though UnIVAL was not pretrained on audio, the feature representations it learned from image and video were so robust that it achieved competitive performance on audio-text tasks after just a brief finetuning phase.
  • Weight Interpolation (Model Merging): The paper introduces a novel study on merging multimodal models. By taking two UnIVAL models finetuned on different tasks (e.g., one for VQA and one for Captioning) and literally averaging their weights, they created a "multi-skilled" model. This merged model often outperformed the individual specialists and showed better generalization to out-of-distribution data.

Key Results

Despite its modest size (~0.25B parameters), UnIVAL punches well above its weight class:

  • Visual Grounding: It achieved new state-of-the-art results for its size on RefCOCO, RefCOCO+, and RefCOCOg benchmarks.
  • Audio Captioning: On the Audiocaps dataset, it outperformed specialized audio models by +3.4 CIDEr points.
  • Efficiency: The curriculum learning approach was 18% faster than standard one-stage training.
Comparison of UnIVAL against other foundation models across different modalities and unification axes.

Limitations and Future Work

While powerful, UnIVAL is not without flaws. The authors note that it can still hallucinate (describing objects not present in an image), though it does so less frequently than larger models like Flamingo. It also struggles with complex instructions, such as identifying very small objects or following intricate multi-step reasoning.

Future work involves scaling the model further, incorporating even more modalities (like depth or thermal imaging), and exploring its use in embodied agents for robotics, where handling multiple sensory inputs simultaneously is critical.

Summary updated

Abstract

Large Language Models (LLMs) have made the ambitious quest for generalist agents significantly far from being a fantasy. A key hurdle for building such general models is the diversity and heterogeneity of tasks and modalities. A promising solution is unification, allowing the support of a myriad of tasks and modalities within one unified framework. While few large models (e.g., Flamingo (Alayrac et al., 2022), trained on massive datasets, can support more than two modalities, current small to mid-scale unified models are still limited to 2 modalities, usually image-text or video-text. The question that we ask is: is it possible to build efficiently a unified model that can support all modalities? To answer this, we propose UnIVAL, a step further towards this ambitious goal. Without relying on fancy datasets sizes or models with billions of parameters, the ~ 0.25B parameter UnIVAL model goes beyond two modalities and unifies text, images, video, and audio into a single model. Our model is efficiently pretrained on many tasks, based on task balancing and multimodal curriculum learning. UnIVAL shows competitive performance to existing state-of-the-art approaches, across image and video-text tasks. The feature representations learned from image and video-text modalities, allows the model to achieve competitive performance when finetuned on audio-text tasks, despite not being pretrained on audio. Thanks to the unified model, we propose a novel study on multimodal model merging via weight interpolation of models trained on different multimodal tasks, showing their benefits in particular for out-of-distribution generalization. Finally, we motivate unification by showing the synergy between tasks. The model weights and code are released here: https://github.com/mshukor/UnIVAL.
BibTeX
@article{shukor2023unival,
  author = {Mustafa Shukor and Corentin Dancette and Alexandre Rame and Matthieu Cord},
  title = {{UnIVAL: Unified Model for Image, Video, Audio and Language Tasks}},
  journal = {Accepted by TMLR},
  year = {2023},
  url = {https://openreview.net/forum?id=4uflhObpcp},
}
Figure