UniT: Multimodal Multitask Learning with a Unified Transformer

Ronghang Hu, Amanpreet Singh
2/22/2021
cs.CVcs.CL
transformer-attention

Official code: facebookresearch/mmf (5,634 stars, Python, PyTorch, last commit 2026-10-06).

Abstract

We propose UniT, a Unified Transformer model to simultaneously learn the most prominent tasks across different domains, ranging from object detection to natural language understanding and multimodal reasoning. Based on the transformer encoder-decoder architecture, our UniT model encodes each input modality with an encoder and makes predictions on each task with a shared decoder over the encoded input representations, followed by task-specific output heads.

Show full abstract

The entire model is jointly trained end-to-end with losses from each task. Compared to previous efforts on multi-task learning with transformers, we share the same model parameters across all tasks instead of separately fine-tuning task-specific models and handle a much higher variety of tasks across different domains. In our experiments, we learn 7 tasks jointly over 8 datasets, achieving strong performance on each task with significantly fewer parameters. Our code is available in MMF at https://mmf.sh.

View on arXivView PDF

Code Implementations(1)

PyTorch

A modular framework for vision & language multimodal research from Facebook AI Research (FAIR)

5,634941Python, JavaScriptJun 27, 20181 months agoNOASSERTION
captioningdeep-learningdialoghateful-memesmulti-tasking+5 more

Similar Papers

Cite this paper

@article{hu2021unit,
  title  = {UniT: Multimodal Multitask Learning with a Unified Transformer},
  author = {Ronghang Hu and Amanpreet Singh},
  year   = {2021},
  eprint = {2102.10772},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.10772}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2102.10772.svg)](https://codeofpaper.com/paper/2102.10772)

Discussion