Unified Model for Image, Video, Audio and Language Tasks

Mustafa Shukor, Corentin Dancette, Alexandre Ramé, Matthieu Cord · OpenReview

Abstract

Large Language Models (LLMs) have brought the goal of generalist agents closer to reality, yet the diversity and heterogeneity of modalities remain a significant hurdle. Current unified models are often either massive in scale or limited to two modalities, such as image-text or video-text. We present UnIVAL, a 0.25B-parameter model that unifies text, images, video, and audio into a single sequence-to-sequence framework. By employing multimodal curriculum learning and task balancing, UnIVAL achieves competitive performance across a wide range of tasks without the need for billions of parameters or massive datasets. Furthermore, we demonstrate the benefits of weight interpolation for out-of-distribution generalization and highlight the synergy between modalities, showing that image and video pretraining significantly enhances performance on audio-text tasks.

Introduction: The Unification Gap

The quest for generalist agents requires models capable of perceiving and reasoning across diverse sensory inputs. While LLMs have mastered language, integrating vision and audio typically results in models that are either computationally prohibitive or restricted in scope. This "unification gap" suggests that current small-to-mid-scale models are often siloed into specific modality pairs. UnIVAL addresses this by proving that a compact, efficient architecture can effectively bridge four major modalities—image, video, audio, and language—using a unified training objective and format.

The UnIVAL Framework

1. Unified Architecture and Format

UnIVAL is built upon a Transformer encoder-decoder backbone (specifically BART-base). To handle diverse inputs, it utilizes lightweight, modality-specific CNN encoders that project features into a shared representation space:

  • Images: ResNet-101
  • Video: 3D ResNext-101
  • Audio: PANN (Pretrained Audio Neural Networks)

All inputs and outputs are treated as sequences of tokens. This includes standard text tokens, location tokens for bounding box coordinates (visual grounding), and discrete image tokens. This "everything-as-a-sequence" approach allows the model to use a single objective: conditional next-token prediction via cross-entropy loss.

2. Multimodal Curriculum Learning (MCL)

To optimize training efficiency, UnIVAL employs Multimodal Curriculum Learning. Rather than training on all modalities simultaneously, the model gradually introduces them (e.g., starting with image-text before incorporating video-text). This strategy resulted in an 18% increase in training speed and a 25% reduction in GPU memory usage compared to standard one-stage training.

3. Weight Interpolation

A novel aspect of UnIVAL is the exploration of weight interpolation. By linearly interpolating the weights of models finetuned on different tasks—such as merging a Visual Question Answering (VQA) expert with an Image Captioning expert—the authors created robust multitask models. This technique, often referred to as "model souping," improves out-of-distribution (OOD) generalization without increasing inference latency.

Experimental Results and Synergy

Performance Benchmarks

Despite its modest parameter count (0.25B), UnIVAL achieves state-of-the-art (SoTA) results on several benchmarks:

  • Visual Grounding: New SoTA results on RefCOCO, RefCOCO+, and RefCOCOg, outperforming larger models like OFA-Base.
  • Audio Captioning: A +3.4 CIDEr improvement on the Audiocaps dataset compared to previous specialized models.
  • Efficiency: Finetuning for one epoch on COCO takes only 3.1 GPU-hours, nearly twice as fast as comparable unified models like OFA.

Cross-Modal Synergy

One of the paper's key insights is the "synergy" between tasks. The researchers found that pretraining on image and video data made the model a significantly better learner for audio tasks. Even though UnIVAL was not pretrained on audio, the multimodal alignment learned from visual data allowed it to achieve competitive results on audio-text tasks after finetuning. This suggests that the temporal and structural representations learned from video are highly transferable to the audio domain.

Discussion and Future Directions

While UnIVAL demonstrates remarkable efficiency, it is not without limitations. Like many generative models, it can occasionally hallucinate details not present in the source media. It also faces challenges with highly complex instructions or multi-step reasoning in crowded visual scenes.

Future work involves scaling the model size and expanding the training set to include even more diverse modalities, such as 3D or tactile data. Additionally, the compact nature of UnIVAL makes it a prime candidate for Embodied AI applications, where real-time processing of simultaneous audio, video, and text streams is essential for robotics and navigation.

Conclusion

UnIVAL represents a significant step toward efficient generalist agents. By unifying four modalities within a compact 0.25B-parameter model, it challenges the necessity of extreme scale for multimodal competence. Through innovative training strategies like curriculum learning and weight interpolation, UnIVAL provides a versatile and robust foundation for the next generation of multimodal AI.

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{shukor2023unified,
  author = {Mustafa Shukor and Corentin Dancette and Alexandre Ramé and Matthieu Cord},
  title = {{Unified Model for Image, Video, Audio and Language Tasks}},
  journal = {Accepted by TMLR},
  year = {2023},
  url = {https://openreview.net/forum?id=4uflhObpcp},
}
Figure