12-in-1: Multi-Task Vision and Language Representation Learning

Jiasen Lu, Vedanuj Goswami, Marcus Rohrbach, Devi Parikh, Stefan Lee

Abstract

Much of vision-and-language research focuses on a small but diverse set of independent tasks and supporting datasets often studied in isolation; however, the visually-grounded language understanding skills required for success at these tasks overlap significantly. In this work, we investigate these relationships between vision-and-language tasks by developing a large-scale, multi-task model. Our approach culminates in a single model on 12 datasets from four broad categories of task including visual question answering, caption-based image retrieval, grounding referring expressions, and multimodal verification. Compared to independently trained single-task models, this represents a reduction from approximately 3 billion parameters to 270 million while simultaneously improving performance by 2.05 points on average across tasks. We use our multi-task framework to perform in-depth analysis of the effect of joint training diverse tasks. Further, we show that finetuning task-specific models from our single multi-task model can lead to further improvements, achieving performance at or above the state-of-the-art.

Introduction

The field of Vision-and-Language (V&L) has traditionally been characterized by a "patchwork" of specialized models. Researchers often develop state-of-the-art architectures for specific tasks—such as Visual Question Answering (VQA) or Image Retrieval—that lack the versatility to perform outside their narrow domain. This fragmentation is both inefficient and intellectually limiting; a model that truly understands a visual concept should be able to identify it, describe it, and answer questions about it interchangeably.

Overview of the 12-in-1 multi-task approach.

To address this, we present a unified "12-in-1" model. By training a single architecture across twelve diverse datasets, we demonstrate that pooling supervision from multiple sources not only reduces the total parameter count from 3 billion to 270 million but also improves average performance across all tasks.

Methods

Our model is built upon ViLBERT, a dual-stream transformer architecture designed for processing visual and textual inputs in parallel. To enable effective multi-task learning, we introduced three primary innovations:

  1. Task-Specific Heads: We utilize a shared "trunk" of ViLBERT layers that branch into specialized heads for different task types, such as classification for VQA or ranking for retrieval.
  2. Task Tokens: A unique TASK token is added to the input sequence, signaling the model which task it is currently executing and allowing shared layers to modulate internal representations.
  3. Dynamic Stop-and-Go (DSG) Scheduler: To manage datasets of varying sizes and difficulties, the DSG scheduler monitors validation scores. Tasks that plateau enter a "stop" mode to prevent overfitting, while those showing performance dips are reactivated.
Training dynamics and DSG scheduler impact.

Datasets and the "Clean" Setup

We evaluated our approach on 12 popular V&L datasets across four categories: Vocab-based VQA (VQAv2, GQA, VG QA), Image Retrieval (COCO, Flickr30k), Referring Expressions (RefCOCO, RefCOCO+, RefCOCOg, Visual7W, GuessWhat), and Multi-modal Verification (NLVR$^2$, SNLI-VE).

A critical contribution is our "Clean" V&L Multi-Task setup. Since many datasets share underlying images (e.g., from COCO), we meticulously removed overlapping instances to prevent "data leakage," ensuring that the model's performance on a test set is not inflated by having seen the same image during training for a different task.

Key Results and Insights

The 12-in-1 model achieves a significant reduction in complexity, using only ~270 million parameters compared to the ~3 billion required for 12 separate models. Despite this efficiency, it improved performance by an average of 2.05 points over single-task baselines.

Our analysis revealed several key insights:

  • Multi-tasking as a Regularizer: Joint training prevents early overfitting. Tasks like SNLI-VE, which typically plateau quickly, continued to improve when trained alongside others.
  • Grounding Consistency: The unified model shows higher consistency; if it can answer a question about an object, it is more likely to correctly locate that object compared to isolated models.
  • Task Interference: We observed interference from NLVR$^2$. Its unique logic (comparing two images to one statement) occasionally conflicted with the single-image logic of the other 11 tasks, suggesting a complex taxonomy of task relationships.

Conclusion

The 12-in-1 model represents a major step toward general-purpose V&L agents. By serving as a robust foundation, fine-tuning task-specific models from this multi-task "trunk" allowed us to set new state-of-the-art records on 7 of the 12 datasets. Future work will explore even more unified interfaces, such as natural language generation, to move beyond task-specific heads.

Summary updated

BibTeX
@inproceedings{lu2020multi,
  author = {Jiasen Lu and Vedanuj Goswami and Marcus Rohrbach and Devi Parikh and Stefan Lee},
  title = {{12-in-1: Multi-Task Vision and Language Representation Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  url = {https://openreview.net/forum?id=h-Vqrg91GT},
}
Figure