arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.07692cs.CV
收藏

掩码自动解码器:有效的多任务视觉通才

Masked AutoDecoder is Effective Multi-Task Vision Generalist

S-Lab, Nanyang Technological University(南洋理工大学S-Lab);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Sensetime Research(商汤科技研究院);College of Computer Science and Technology, Zhejiang University of Technology(浙江工业大学计算机科学与技术学院)

Han Qiu, Jiaxing Huang, Peng Gao, Lewei Lu, Xiaoqin Zhang, Shijian Lu

AI总结:

针对自回归Transformer在视觉任务序列预测中的不足,提出掩码自动解码器(MAD),采用并行解码与掩码序列建模统一多视觉任务,性能优于自回归方法且与任务特定模型相当。

摘要:

受自然语言处理中通用模型成功的启发,近期研究尝试以相同的序列格式统一不同的视觉任务,并采用自回归Transformer进行序列预测。这些模型应用单向注意力来捕获序列依赖关系,并递归生成任务序列。然而,此类自回归Transformer可能并不适合视觉任务,因为视觉任务序列通常缺乏自然语言中常见的序列依赖关系。在本工作中,我们设计了掩码自动解码器(Masked AutoDecoder,MAD),一个有效的多任务视觉通才。MAD包含两个核心设计。首先,我们开发了一个并行解码框架,引入双向注意力以全面捕获上下文依赖关系,并并行解码视觉任务序列。其次,我们设计了一种掩码序列建模方法,通过掩码和重建任务序列来学习丰富的任务上下文。通过这种方式,MAD通过单一网络分支和简单的交叉熵损失处理所有任务,且仅需极少任务特定设计。大量实验证明了MAD作为统一各种视觉任务新范式的巨大潜力。与自回归对应方法相比,MAD在性能和推理效率上均表现优越,同时获得与任务特定模型相当的准确率。代码将发布。

英文摘要:

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 multi-task 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑