Masked AutoDecoder is Effective Multi-Task Vision Generalist

Han Qiu, Jiaxing Huang, Peng Gao, Lewei Lu, Xiaoqin Zhang +1 more
3/1/2024

No official code found. Best implementation: hanqiu-hq/MAD (14 stars, last commit 2024-09-09).

Abstract

Inspired by the success of general-purpose models in NLP, recent studies attempt to unify different vision tasks in the same sequence format and employ autoregressive Transformers for sequence prediction. They apply uni-directional attention to capture sequential dependencies and generate task sequences recursively. However, such autoregressive Transformers may not fit vision tasks well, as vision task sequences usually lack the sequential dependencies typically observed in natural languages. In this work, we design Masked AutoDecoder (MAD), an effective multitask vision generalist. MAD consists of two core designs. First, we develop a parallel decoding framework that introduces bi-directional attention to capture contextual dependencies comprehensively and decode vision task sequences in parallel. Second, we design a masked sequence modeling approach that learns rich task contexts by masking and reconstructing task sequences. In this way, MAD handles all the tasks by a single network branch and a simple cross-entropy loss with minimal task-specific designs. Extensive experiments demonstrate the great potential of MAD as a new paradigm for unifying various vision tasks. MAD achieves superior performance and inference efficiency compared to autoregressive counterparts while obtaining competitive accuracy with task-specific models. Code will be released at https://github.com/hanqiu-hq/MAD.

View on arXivView PDF

Code Implementations(1)

hanqiu-hq/MADCommunity100%
140C++, CudaMar 10, 20242 years agoNOASSERTION

Similar Papers

Cite this paper

@article{qiu2024masked,
  title  = {Masked AutoDecoder is Effective Multi-Task Vision Generalist},
  author = {Han Qiu and Jiaxing Huang and Peng Gao and Lewei Lu and Xiaoqin Zhang and Shijian Lu},
  year   = {2024},
  eprint = {2403.07692},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2403.07692},
  journal = {CVPR 2024 2024}
}

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/2403.07692.svg)](https://codeofpaper.com/paper/2403.07692)

Discussion