[Paper Review] Transformer is All You Need: Multimodal Multitask Learning with a Unified Transformer
UniT proposes a unified transformer architecture that jointly learns seven diverse tasks—spanning vision, language, and multimodal reasoning—using a single shared encoder-decoder structure with task-specific heads. By end-to-end training across eight datasets, UniT achieves performance comparable to task-specific models while using a compact, parameter-efficient architecture.
We propose UniT, a Unified Transformer model to simultaneously learn the most prominent tasks across different domains, ranging from object detection to 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. 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 to 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 comparable performance to well-established prior work on each domain under the same supervision with a compact set of model parameters. Code will be released in MMF at https://mmf.sh.
Motivation & Objective
- To develop a unified deep learning model that can jointly learn multiple diverse tasks across different domains using a single architecture.
- To eliminate the need for task-specific model fine-tuning by sharing all model parameters across all tasks.
- To enable end-to-end training of a single model on heterogeneous tasks with different input modalities and output formats.
- To achieve competitive performance on each individual task while maintaining model compactness and parameter efficiency.
- To demonstrate the feasibility and effectiveness of unified multitask learning in multimodal and cross-domain settings.
Proposed method
- The model uses a shared transformer encoder to process inputs from any modality (e.g., images, text) into unified contextual representations.
- A shared decoder attends to the encoded representations and generates predictions for each task using task-specific output heads.
- All tasks are trained jointly with their respective loss functions, enabling end-to-end optimization of the entire model.
- The architecture supports multimodal inputs by encoding each modality separately before fusion in the shared encoder-decoder pathway.
- The model is trained on multiple datasets spanning vision, language, and vision-language tasks, with each task's supervision used during joint optimization.
- Parameter sharing across tasks ensures a compact model with minimal redundancy, improving efficiency and generalization.
Experimental results
Research questions
- RQ1Can a single transformer model effectively learn diverse tasks across vision, language, and multimodal reasoning domains?
- RQ2How does parameter sharing across tasks affect performance compared to task-specific fine-tuning?
- RQ3To what extent can a unified architecture maintain competitive performance on individual tasks while handling multiple modalities?
- RQ4What is the impact of joint training on model generalization and parameter efficiency?
- RQ5Can a unified model achieve strong performance across heterogeneous datasets and task types without architectural specialization?
Key findings
- UniT achieves performance on par with well-established, task-specific models on each of the seven evaluated tasks.
- The model maintains strong performance across eight diverse datasets spanning image classification, object detection, visual question answering, and language understanding.
- Parameter sharing enables a compact model architecture that avoids the redundancy of training separate models per task.
- Joint end-to-end training across tasks leads to effective knowledge transfer and robust generalization across domains.
- The unified architecture demonstrates feasibility and scalability for multitask learning in multimodal and cross-modal settings.
- The codebase is released via MMF, enabling reproducibility and further research in unified multitask learning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.