Skip to main content
QUICK REVIEW

[Paper Review] MulT: An End-to-End Multitask Learning Transformer

Deblina Bhattacharjee, Tong Zhang|arXiv (Cornell University)|May 17, 2022
Advanced Vision and ImagingComputer Science12 citations
TL;DR

MulT proposes an end-to-end multitask transformer framework that jointly learns six high-level vision tasks—depth estimation, semantic segmentation, reshading, surface normal estimation, 2D keypoint detection, and edge detection—using a shared Swin transformer encoder and task-specific decoder heads with a novel shared attention mechanism across tasks. The model outperforms both single-task transformer models and state-of-the-art multitask CNNs, demonstrating superior performance and generalization to unseen domains.

ABSTRACT

We propose an end-to-end Multitask Learning Transformer framework, named MulT, to simultaneously learn multiple high-level vision tasks, including depth estimation, semantic segmentation, reshading, surface normal estimation, 2D keypoint detection, and edge detection. Based on the Swin transformer model, our framework encodes the input image into a shared representation and makes predictions for each vision task using task-specific transformer-based decoder heads. At the heart of our approach is a shared attention mechanism modeling the dependencies across the tasks. We evaluate our model on several multitask benchmarks, showing that our MulT framework outperforms both the state-of-the art multitask convolutional neural network models and all the respective single task transformer models. Our experiments further highlight the benefits of sharing attention across all the tasks, and demonstrate that our MulT model is robust and generalizes well to new domains. Our project website is at https://ivrl.github.io/MulT/.

Motivation & Objective

  • To develop an end-to-end multitask learning framework using transformers for diverse high-level vision tasks.
  • To explicitly model inter-task dependencies across 2D, 3D, and semantic vision tasks using a shared attention mechanism.
  • To improve performance and generalization over single-task models and existing multitask CNN baselines.
  • To evaluate the robustness and adaptability of the framework to new, out-of-distribution domains.
  • To demonstrate that shared attention across task-specific decoders enhances feature learning and model generalization.

Proposed method

  • The model uses a Swin transformer encoder to extract a shared latent representation from the input image.
  • Each vision task is predicted via a task-specific transformer decoder head that attends to the shared encoder features.
  • A shared cross-attention mechanism is introduced between the decoders of different tasks, enabling inter-task feature communication.
  • The entire model is trained end-to-end with a weighted multi-task loss function combining all task-specific losses.
  • The framework supports joint training and inference on multiple tasks using a single compact model.
  • Domain generalization is evaluated via fine-tuning on out-of-distribution data such as blurred Taskonomy images and the CocoDoom dataset.

Experimental results

Research questions

  • RQ1Can a transformer-based model jointly learn multiple high-level vision tasks with improved performance compared to single-task models?
  • RQ2Can explicit modeling of task inter-dependencies via shared attention enhance performance across all tasks?
  • RQ3Does the proposed multitask transformer generalize better to unseen domains than existing multitask CNN baselines?
  • RQ4How does shared attention affect performance and parameter efficiency in multitask vision learning?
  • RQ5Can the model maintain strong performance across diverse tasks including 2D, 3D, and semantic understanding?

Key findings

  • MulT outperforms all single-task Swin transformer models and the state-of-the-art multitask CNN baseline (Taskgrouping [42]) on standard benchmarks including Taskonomy, Replica, NYU, and CocoDoom.
  • On the Taskonomy dataset with domain shift (Gaussian blur), MulT achieves a 12.6% error (with fine-tuning) and 27.0% error (without fine-tuning) for surface normal prediction, significantly outperforming the Cross-task [54] baseline (17.4% and 46.2%) and Taskgrouping [42] (21.9% and 55.1%).
  • On the CocoDoom dataset, MulT achieves 13.3% error (with fine-tuning) and 39.3% error (without fine-tuning) for reshading, compared to 18.5% and 54.3% for Cross-task [54], and 25.3% and 67.7% for Taskgrouping [42].
  • The ablation study confirms that shared attention significantly improves performance, especially in low-data or out-of-distribution settings.
  • MulT generalizes better to new domains than existing multitask models, even without fine-tuning, demonstrating robustness and domain adaptation capability.
  • The model maintains high performance across six diverse vision tasks using a single shared encoder and task-specific decoders, reducing computational cost compared to training individual models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.