Ye Huang, Di Kang, Wenjing Jia, Xiangjian He, Liu Liu
Spatial and channel attentions, modelling the semantic interdependencies in spatial and channel dimensions respectively, have recently been widely used for semantic segmentation. However, computing spatial and channel attentions separately sometimes causes errors, especially for those difficult cases. In this paper, we propose Channelized Axial Attention (CAA) to seamlessly integrate channel attention and spatial attention into a single operation with negligible computation overhead. Specifically, we break down the dot-product operation of the spatial attention into two parts and insert channel relation in between, allowing for independently optimized channel attention on each spatial location. We further develop grouped vectorization, which allows our model to run with very little memory consumption without slowing down the running speed. Comparative experiments conducted on multiple benchmark datasets, including Cityscapes, PASCAL Context, and COCO-Stuff, demonstrate that our CAA outperforms many state-of-the-art segmentation models (including dual attention) on all tested datasets.
| Task | Dataset | Metric | Value | Model |
|---|---|---|---|---|
| Semantic Segmentation | PASCAL Context | mIoU | 60.5 | CAA + Simple decoder (Efficientnet-B7) |
| Semantic Segmentation | PASCAL Context | mIoU | 60.1 | CAA (Efficientnet-B7) |
| Semantic Segmentation | PASCAL Context | mIoU | 55 | CAA (ResNet-101) |
| 10-shot image generation | PASCAL Context | mIoU | 60.5 | CAA + Simple decoder (Efficientnet-B7) |
| 10-shot image generation | PASCAL Context | mIoU | 60.1 | CAA (Efficientnet-B7) |
| 10-shot image generation | PASCAL Context | mIoU | 55 | CAA (ResNet-101) |