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

kMaX-DeepLab:k-means 掩码 Transformer

kMaX-DeepLab: k-means Mask Transformer

Johns Hopkins University(约翰斯·霍普金斯大学);Google Research(谷歌研究院)

Qihang Yu, Huiyu Wang, Siyuan Qiao, Maxwell Collins, Yukun Zhu, Hartwig Adam, Alan Yuille, Liang-Chieh Chen

AI总结:

本文提出 kMaX-DeepLab,将 Transformer 中的交叉注意力重新表述为 k-means 聚类过程,以简洁设计在多个分割基准上取得新的最优性能。

摘要:

Transformer 在视觉任务中的兴起不仅推动了网络主干设计的进步,也开启了实现端到端图像识别(例如目标检测和全景分割)的全新篇章。源自自然语言处理(NLP)的 Transformer 架构由自注意力和交叉注意力组成,能够有效学习序列中元素之间的长程交互。然而,我们观察到,大多数现有的基于 Transformer 的视觉模型只是简单借鉴了 NLP 的思想,忽视了语言与图像之间的关键差异,尤其是空间展平像素特征的序列长度极其庞大。这一问题随后阻碍了像素特征与目标查询之间交叉注意力的学习。在本文中,我们重新思考了像素与目标查询之间的关系,并提出将交叉注意力学习重新表述为一个聚类过程。受传统 k-means 聚类算法的启发,我们开发了一种用于分割任务的 k-means 掩码 Xformer(kMaX-DeepLab),它不仅提升了当前最优性能,还具有简洁优雅的设计。因此,我们的 kMaX-DeepLab 在没有使用测试时增强或外部数据集的情况下,在 COCO 验证集上取得了 58.0% PQ 的新最优性能,在 Cityscapes 验证集上取得了 68.4% PQ、44.0% AP 和 83.5% mIoU,在 ADE20K 验证集上取得了 50.9% PQ 和 55.2% mIoU。我们希望我们的工作能为设计针对视觉任务量身定制的 Transformer 提供一些启示。TensorFlow 代码和模型可在 https://github.com/google-research/deeplab2 获取。PyTorch 重新实现也可在 https://github.com/bytedance/kmax-deeplab 获取。

英文摘要:

The rise of transformers in vision tasks not only advances network backbone designs, but also starts a brand-new page to achieve end-to-end image recognition (e.g., object detection and panoptic segmentation). Originated from Natural Language Processing (NLP), transformer architectures, consisting of self-attention and cross-attention, effectively learn long-range interactions between elements in a sequence. However, we observe that most existing transformer-based vision models simply borrow the idea from NLP, neglecting the crucial difference between languages and images, particularly the extremely large sequence length of spatially flattened pixel features. This subsequently impedes the learning in cross-attention between pixel features and object queries. In this paper, we rethink the relationship between pixels and object queries and propose to reformulate the cross-attention learning as a clustering process. Inspired by the traditional k-means clustering algorithm, we develop a k-means Mask Xformer (kMaX-DeepLab) for segmentation tasks, which not only improves the state-of-the-art, but also enjoys a simple and elegant design. As a result, our kMaX-DeepLab achieves a new state-of-the-art performance on COCO val set with 58.0% PQ, Cityscapes val set with 68.4% PQ, 44.0% AP, and 83.5% mIoU, and ADE20K val set with 50.9% PQ and 55.2% mIoU without test-time augmentation or external dataset. We hope our work can shed some light on designing transformers tailored for vision tasks. TensorFlow code and models are available at https://github.com/google-research/deeplab2 A PyTorch re-implementation is also available at https://github.com/bytedance/kmax-deeplab

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

↑