Example: bachelor of science

CCNet: Criss-Cross Attention for Semantic Segmentation

CCNet: Criss-Cross Attention for Semantic SegmentationZilong Huang1 , Xinggang Wang1 , Lichao Huang2, Chang Huang2, Yunchao Wei3,4, Wenyu Liu11 School of EIC, Huazhong University of Science and Technology2 Horizon Robotics3 ReLER, UTS4 Beckman Institute, University of Illinois at Urbana-ChampaignAbstractFull-image dependencies provide useful contextual in-formation to benefit visual understanding problems. In thiswork, we propose a Criss-Cross network (CCNet) for ob-taining such contextual information in a more effective andefficient way. Concretely, for each pixel, a novel criss-crossattention module in CCNet harvests the contextual infor-mation of all the pixels on its Criss-Cross path.

Semantic segmentation The last years have seen a renewal of interest on semantic segmentation. FCN [26] is the first approach to adopt fully convolutional network for semantic segmentation. Later, FCN-based methods have made great progress in image semantic segmentation. Chen et al. [4] and Yu et al. [37] removed the last two downsample layers

Tags:

  Network, Segmentation

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of CCNet: Criss-Cross Attention for Semantic Segmentation

1 CCNet: Criss-Cross Attention for Semantic SegmentationZilong Huang1 , Xinggang Wang1 , Lichao Huang2, Chang Huang2, Yunchao Wei3,4, Wenyu Liu11 School of EIC, Huazhong University of Science and Technology2 Horizon Robotics3 ReLER, UTS4 Beckman Institute, University of Illinois at Urbana-ChampaignAbstractFull-image dependencies provide useful contextual in-formation to benefit visual understanding problems. In thiswork, we propose a Criss-Cross network (CCNet) for ob-taining such contextual information in a more effective andefficient way. Concretely, for each pixel, a novel criss-crossattention module in CCNet harvests the contextual infor-mation of all the pixels on its Criss-Cross path.

2 By taking afurther recurrent operation, each pixel can finally capturethe full-image dependencies from all pixels. Overall, CC-Net is with the following merits: 1) GPU memory with the non-local block, the proposed recurrentcriss-cross Attention module requires11 less GPU mem-ory usage. 2) High computational efficiency. The recurrentcriss-cross Attention significantly reduces FLOPs by about85% of the non-local block in computing full-image depen-dencies. 3) The state-of-the-art performance. We conductextensive experiments on popular Semantic segmentationbenchmarks including Cityscapes, ADE20K, and instancesegmentation benchmark COCO.

3 In particular, our CCNetachieves the mIoU score of and on Cityscapestest set and ADE20K validation set, respectively, whichare the new state-of-the-art results. The source code isavailable IntroductionSemantic Segmentation , which is a fundamental problemin the computer vision community, aims at assigning se-mantic class labels to each pixel in the given image. It hasbeen extensively and actively studied in many recent worksand is also critical for various challenging and meaningfulapplications such as autonomous driving [14], augmentedreality [1], and image editing [13]. Specifically, currentstate-of-the-art Semantic Segmentation approaches based on The work was mainly done during an internship at Horizon Robotics Corresponding author.

4 (a) Non-local block(b) Criss-Cross Attention blockH+W-1 Rich contextFew contextH+W-1 HxWFigure 1. Diagrams of two Attention -based context aggregationmethods. (a) For each position ( blue), the Non-local module[31] generates a dense Attention map which hasH Wweights(in green). (b) For each position ( blue), the Criss-Cross at-tention module generates a sparse Attention map which only hasH+W 1weights. After the recurrent operation, each position( red) in the final output feature maps can collect informationfrom all pixels. For clear display, residual connections are fully convolutional network (FCN) [26] have made re-markable progress.

5 However, due to the fixed geomet-ric structures, they are inherently limited to local receptivefields and short-range contextual information. These limita-tions impose a great adverse effect on FCN-based methodsdue to insufficient contextual make up for the above deficiency of FCN, some workshave been proposed to introduce useful contextual infor-mation to benefit the Semantic Segmentation task. Specif-ically, Chenet al. [5] proposed atrous spatial pyramid pool-603ing module with multi-scale dilation convolutions for con-textual information aggregation. Zhaoet al. [41] furtherintroduced PSPNet with pyramid pooling module to cap-ture contextual information.

6 However, the dilated convo-lution based methods [6,5,12] collect information froma few surrounding pixels and can not generate dense con-textual information actually. Meanwhile, the pooling basedmethods [41,39] aggregate contextual information in a non-adaptive manner and the homogeneous contextual informa-tion is adopted by all image pixels, which does not satisfythe requirement that different pixels need different contex-tual generate dense and pixel-wise contextual informa-tion, PSANet [42] learns to aggregate contextual infor-mation for each position via a predicted Attention Networks [31] utilizes a self- Attention mecha-nism [9,29]

7 , which enables a single feature from any po-sition to perceive features of all the other positions, thusharvesting full-image contextual information, see (a).However, these Attention -based methods need to generatehuge Attention maps to measure the relationships for eachpixel-pair, whose complexity in time and space are bothO((H W) (H W)), whereH Wdonates the spatialdimension of input feature maps. Since the input featuremaps are always with high resolution in Semantic segmen-tation task, self- Attention based methods have high compu-tation complexity and occupy a huge number of GPU mem-ory.

8 Thus, is there an alternative solution to achieve such atarget in a more efficient way?To address the above mentioned problem, our motiva-tion is to consecutive sparse Attention to replace the singlelayer dense Attention in the non-local networks. Withoutloss of generality, we use two consecutive Criss-Cross at-tention modules, in which each one only has sparse connec-tions (H+W 1) for each position in the feature maps. Thecriss-cross Attention module aggregates contextual informa-tion in horizontal and vertical directions. By serially stack-ing two Criss-Cross Attention modules, it can collect contex-tual information from all pixels.

9 The above decompositionstrategy greatly reduces the complexity in time and spacefromO((H W) (H W))toO((H W) (H+W 1)).We compare the differences between the non-local mod-ule [31] and our Criss-Cross Attention module in , both non-local module and Criss-Cross attentionmodule feed the input feature maps with spatial sizeH Wto generate Attention maps (upper branch) and adapted fea-ture maps (lower branch), respectively. Then, the weightedsum is adopted to collecting contextual information. Dif-ferent from the dense connections adopted by the non-localmodule, each position ( , blue color) in the feature mapsis sparsely connected with other ones which are in the samerow and the same column in our Criss-Cross Attention mod-ule, leading to the predicted Attention map only hasH+W 1weights rather thanH Win non-local module.

10 To achievethe target of capturing the full-image dependencies, we theninnovatively and simply take a recurrent operation for thecriss-cross Attention module. In particular, the local featuresare firstly passed through one Criss-Cross Attention mod-ule to collect the contextual information in horizontal andvertical directions. Then, by feeding the produced featuremaps from the first Criss-Cross Attention module to the otherone, the additional contextual information obtained fromthe Criss-Cross path is finally enable the full-image depen-dencies to be captured by each pixel. As demonstrated (b), each position ( red color) in the second fea-ture maps finally collects information from all others to aug-ment the pixel-wise representations.


Related search queries