Huiyu Wang, Yukun Zhu, Bradley Green, Hartwig Adam, Alan Yuille, Liang-Chieh Chen
Convolution exploits locality for efficiency at a cost of missing long range context. Self-attention has been adopted to augment CNNs with non-local interactions. Recent works prove it possible to stack self-attention layers to obtain a fully attentional network by restricting the attention to a local region. In this paper, we attempt to remove this constraint by factorizing 2D self-attention into two 1D self-attentions. This reduces computation complexity and allows performing attention within a larger or even global region. In companion, we also propose a position-sensitive self-attention design. Combining both yields our position-sensitive axial-attention layer, a novel building block that one could stack to form axial-attention models for image classification and dense prediction. We demonstrate the effectiveness of our model on four large-scale datasets. In particular, our model outperforms all existing stand-alone self-attention models on ImageNet. Our Axial-DeepLab improves 2.8% PQ over bottom-up state-of-the-art on COCO test-dev. This previous state-of-the-art is attained by our small variant that is 3.8x parameter-efficient and 27x computation-efficient. Axial-DeepLab also achieves state-of-the-art results on Mapillary Vistas and Cityscapes.
| Task | Dataset | Metric | Value | Model |
|---|---|---|---|---|
| Semantic Segmentation | Cityscapes test | PQ | 66.6 | Axial-DeepLab-XL (Mapillary Vistas, multi-scale) |
| Semantic Segmentation | Cityscapes val | AP | 44.2 | Axial-DeepLab-XL (Mapillary Vistas, multi-scale) |
| Semantic Segmentation | Cityscapes val | PQ | 68.5 | Axial-DeepLab-XL (Mapillary Vistas, multi-scale) |
| Semantic Segmentation | Cityscapes val | mIoU | 84.6 | Axial-DeepLab-XL (Mapillary Vistas, multi-scale) |
| Semantic Segmentation | Mapillary val | PQ | 41.1 | Axial-DeepLab-L (multi-scale) |
| Semantic Segmentation | Mapillary val | PQst | 51.3 | Axial-DeepLab-L (multi-scale) |
| Semantic Segmentation | Mapillary val | PQth | 33.4 | Axial-DeepLab-L (multi-scale) |
| Semantic Segmentation | Mapillary val | mIoU | 58.4 | Axial-DeepLab-L (multi-scale) |
| Semantic Segmentation | COCO test-dev | PQ | 44.2 | Axial-DeepLab-L (multi-scale) |
| Semantic Segmentation | COCO test-dev | PQst | 36.8 | Axial-DeepLab-L (multi-scale) |
| Semantic Segmentation | COCO test-dev | PQth | 49.2 | Axial-DeepLab-L (multi-scale) |
| Semantic Segmentation | COCO test-dev | PQ | 43.6 | Axial-DeepLab-L |
| Semantic Segmentation | COCO test-dev | PQst | 35.6 | Axial-DeepLab-L |
| Semantic Segmentation | COCO test-dev | PQth | 48.9 | Axial-DeepLab-L |
| Semantic Segmentation | COCO minival | PQ | 43.9 | Axial-DeepLab-L (multi-scale) |
| Semantic Segmentation | COCO minival | PQ | 43.4 | Axial-DeepLab-L (single-scale) |
| Semantic Segmentation | COCO minival | PQst | 35.6 | Axial-DeepLab-L (single-scale) |
| Semantic Segmentation | COCO minival | PQth | 48.5 | Axial-DeepLab-L (single-scale) |
| Semantic Segmentation | COCO minival | PQst | 36.8 | Axial-DeepLab-L(multi-scale) |
| Semantic Segmentation | COCO minival | PQth | 48.6 | Axial-DeepLab-L(multi-scale) |
| 10-shot image generation | Cityscapes test | PQ | 66.6 | Axial-DeepLab-XL (Mapillary Vistas, multi-scale) |
| 10-shot image generation | Cityscapes val | AP | 44.2 | Axial-DeepLab-XL (Mapillary Vistas, multi-scale) |
| 10-shot image generation | Cityscapes val | PQ | 68.5 | Axial-DeepLab-XL (Mapillary Vistas, multi-scale) |
| 10-shot image generation | Cityscapes val | mIoU | 84.6 | Axial-DeepLab-XL (Mapillary Vistas, multi-scale) |
| 10-shot image generation | Mapillary val | PQ | 41.1 | Axial-DeepLab-L (multi-scale) |
| 10-shot image generation | Mapillary val | PQst | 51.3 | Axial-DeepLab-L (multi-scale) |
| 10-shot image generation | Mapillary val | PQth | 33.4 | Axial-DeepLab-L (multi-scale) |
| 10-shot image generation | Mapillary val | mIoU | 58.4 | Axial-DeepLab-L (multi-scale) |
| 10-shot image generation | COCO test-dev | PQ | 44.2 | Axial-DeepLab-L (multi-scale) |
| 10-shot image generation | COCO test-dev | PQst | 36.8 | Axial-DeepLab-L (multi-scale) |
| 10-shot image generation | COCO test-dev | PQth | 49.2 | Axial-DeepLab-L (multi-scale) |
| 10-shot image generation | COCO test-dev | PQ | 43.6 | Axial-DeepLab-L |
| 10-shot image generation | COCO test-dev | PQst | 35.6 | Axial-DeepLab-L |
| 10-shot image generation | COCO test-dev | PQth | 48.9 | Axial-DeepLab-L |
| 10-shot image generation | COCO minival | PQ | 43.9 | Axial-DeepLab-L (multi-scale) |
| 10-shot image generation | COCO minival | PQ | 43.4 | Axial-DeepLab-L (single-scale) |
| 10-shot image generation | COCO minival | PQst | 35.6 | Axial-DeepLab-L (single-scale) |
| 10-shot image generation | COCO minival | PQth | 48.5 | Axial-DeepLab-L (single-scale) |
| 10-shot image generation | COCO minival | PQst | 36.8 | Axial-DeepLab-L(multi-scale) |
| 10-shot image generation | COCO minival | PQth | 48.6 | Axial-DeepLab-L(multi-scale) |
| Panoptic Segmentation | Cityscapes test | PQ | 66.6 | Axial-DeepLab-XL (Mapillary Vistas, multi-scale) |
| Panoptic Segmentation | Cityscapes val | AP | 44.2 | Axial-DeepLab-XL (Mapillary Vistas, multi-scale) |
| Panoptic Segmentation | Cityscapes val | PQ | 68.5 | Axial-DeepLab-XL (Mapillary Vistas, multi-scale) |
| Panoptic Segmentation | Cityscapes val | mIoU | 84.6 | Axial-DeepLab-XL (Mapillary Vistas, multi-scale) |
| Panoptic Segmentation | Mapillary val | PQ | 41.1 | Axial-DeepLab-L (multi-scale) |
| Panoptic Segmentation | Mapillary val | PQst | 51.3 | Axial-DeepLab-L (multi-scale) |
| Panoptic Segmentation | Mapillary val | PQth | 33.4 | Axial-DeepLab-L (multi-scale) |
| Panoptic Segmentation | Mapillary val | mIoU | 58.4 | Axial-DeepLab-L (multi-scale) |
| Panoptic Segmentation | COCO test-dev | PQ | 44.2 | Axial-DeepLab-L (multi-scale) |
| Panoptic Segmentation | COCO test-dev | PQst | 36.8 | Axial-DeepLab-L (multi-scale) |
| Panoptic Segmentation | COCO test-dev | PQth | 49.2 | Axial-DeepLab-L (multi-scale) |
| Panoptic Segmentation | COCO test-dev | PQ | 43.6 | Axial-DeepLab-L |
| Panoptic Segmentation | COCO test-dev | PQst | 35.6 | Axial-DeepLab-L |
| Panoptic Segmentation | COCO test-dev | PQth | 48.9 | Axial-DeepLab-L |
| Panoptic Segmentation | COCO minival | PQ | 43.9 | Axial-DeepLab-L (multi-scale) |
| Panoptic Segmentation | COCO minival | PQ | 43.4 | Axial-DeepLab-L (single-scale) |
| Panoptic Segmentation | COCO minival | PQst | 35.6 | Axial-DeepLab-L (single-scale) |
| Panoptic Segmentation | COCO minival | PQth | 48.5 | Axial-DeepLab-L (single-scale) |
| Panoptic Segmentation | COCO minival | PQst | 36.8 | Axial-DeepLab-L(multi-scale) |
| Panoptic Segmentation | COCO minival | PQth | 48.6 | Axial-DeepLab-L(multi-scale) |