Recent development of Deep Neural Networks (DNNs) has driven the remarkable improvements in semantic segmentation [22, 3, 19, 32, 39, 25, 2, 4]. Despite the great success of DNNs, however, we still have a far way to go in achieving semantic segmentation in an uncontrolled and realistic environment. One of the main obstacles is lack of training data. Due to the prohibitively expensive annotation cost of pixel-level segmentation labels, existing datasets often suffer from lack of annotated examples and class diversity. This makes the conventional approaches limited to a small range of object categories predefined in the datasets.
Weakly supervised approaches have been studied to resolve the above issue and allow semantic segmentation models more scalable. Their common motivation is to utilize annotations like bounding boxes [6, 28, 12] and scribbles [18, 36] that are weaker than pixel-level labels but readily available in a large amount of visual data or easily obtainable thanks to their low annotation costs. Among various types of weak annotations for semantic segmentation, image-level class labels have been widely used [17, 11, 30, 26, 29, 14, 37] since they are already given in existing large-scale image datasets (e.g.
) or automatically annotated for image retrieval results by search keywords. However, learning semantic segmentation with the image-level label supervision is a significantly ill-posed problem since such supervision indicates only the existence of a certain object class, and does not inform object location and shape that are essential for learning segmentation.
Approaches in this line of research have incorporated additional evidences to simulate the location and shape information absent in the supervision. A popular choice for the localization cue is the Class Activation Map (CAM) , which highlights local discriminative parts of target object by investigating the contribution of hidden units to the output of a classification DNN. The discriminative areas highlighted by CAMs are in turn used as seeds that will be propagated to cover the entire object area. To recover the object area accurately from the seeds, previous approaches have utilized image segmentation [17, 30], motions in video , or both 
, all of which are useful to estimate object shape. For the same purpose, a class-agnostic salient region is estimated and incorporated with the seeds in. However, they demand extra data (i.e., videos) [11, 35], additional supervision (i.e., object bounding box) , or off-the-shelf techniques (i.e., image segmentation) that cannot take advantage of representation learning in DNNs [11, 17, 30].
In this paper, we present a simple yet effective approach to compensate the missing information for object shape with no external data or additional supervision. The key component of our framework is AffinityNet, which is a DNN that takes an image as input and predicts semantic affinities of pairs of adjacent image coordinates. Given an image and its CAMs, we first build a neighborhood graph where each pixel is connected to its neighbors within a certain radius, and estimate semantic affinities of pairs connected in the graph through AffinityNet. Sparse activations in CAMs are then diffused by random walk  on the graph, for each class: The affinities on edges in the graph encourage random walk to propagate the activations to nearby and semantically identical areas, and penalize propagation to areas of the other classes. This semantic diffusion revises CAMs significantly so that fine object shapes are recovered. We apply this process to training images for synthesizing their segmentation labels by taking the class label associated to the maximum activation of the revised CAMs at each pixel. The generated segmentation labels are used to train a segmentation model for testing.
The remaining issue is how to learn AffinityNet without extra data or additional supervision. To this end, the initial CAMs of training images are utilized as sources of supervision. Because CAMs often miss some object parts and exhibit false alarms, they are incomplete as a supervision for learning semantic segmentation whose goal is to predict the entire object masks accurately. However, we found that they are often locally correct and provide evidences to identify semantic affinities within a small image area, which are the objective of AffinityNet. To generate reliable labels of the local semantic affinities, we disregard areas with relatively low activation scores on the CAMs so that only confident object and background areas remain. A training example is then obtained by sampling a pair of adjacent image coordinates on the confident areas, and its binary label is 1 if its coordinates belong to the same class and 0 otherwise.
The overall pipeline of the proposed approach is illustrated in Figure 1
. First, CAMs of training images are computed and utilized to generate semantic affinity labels, which are used as supervision to train AffinityNet. We then apply the trained AffinityNet to each training image to compute the semantic affinity matrix of its neighborhood graph, which is employed in random walk to revise its CAMs and obtain synthesized segmentation labels. Finally, the generated segmentation labels are used to train a semantic segmentation DNN, which is the only network that will be used at test time. Our contribution is three-fold:
We propose a novel DNN named AffinityNet that predicts high-level semantic affinities in a pixel-level, but is trained with image-level class labels only.
Unlike most previous weakly supervised methods, our approach does not rely heavily on off-the-shelf techniques, and takes advantage of representation learning through end-to-end training of AffinityNet.
On the PASCAL VOC 2012 , ours achieves state-of-the-art performance among models trained under the same level of supervision, and is competitive with those relying on stronger supervision or external data. Surprisingly, it even outperforms FCN , the well-known fully supervised model in the early days.
The rest of this paper is organized as follows. Section 2 reviews previous approaches closely related to ours, and Section 3 describes each step of our framework in details. Then we empirically evaluate the proposed framework on the public benchmark in Section 5, and conclude in Section 6 with brief remarks.
2 Related Work
Various types of weak supervision: Weakly supervised approaches have been extensively studied for semantic segmentation to address the data deficiency problem. Successful examples of weak supervision for semantic segmentation include bounding box [6, 28, 12], scribble [18, 36], point , and so on. However, these types of weak supervision still require a certain amount of human intervention during annotation procedure, so it is costly to annotate these weak labels for a large number of visual data.
Image-level labels as weak supervision: Image-level class labels have been widely used as weak supervision for semantic segmentation since they demand minimum or no human intervention to be annotated. Early approaches have tried to train a segmentation model directly from image-level labels [28, 29], but their performance is not satisfactory since the labels are too coarse to teach segmentation. To address this issue, some of previous arts incorporate segmentation seeds given by discriminative localization techniques [40, 27] with additional evidences like superpixels [17, 11, 30], segmentation proposals , and motions in video [35, 11], which are useful to estimate object shapes and obtained by off-the-shelf unsupervised techniques.
Our framework based on AffinityNet has a clear advantage over the above approaches. AffinityNet learns from data how to propagate local activations to entire object area, while the previous methods cannot take such an advantage. Like ours, a few methods improve segmentation quality without off-the-shelf preprocessing. Wei et al.  propose to progressively expand segmentation results by searching for new and complementary object regions sequentially. On the other hand, Kolesnikov and Lampert  learn a segmentation model to approximate the output of dense Conditional Random Field (dCRF)  applied to the segmentation seeds given by CAMs.
Learning pixel-level affinities: Our work is also closely related to the approaches that learn to predict affinity matrices in pixel-level [2, 36, 5]. Specifically, a pixel-centric affinity matrix of an image is estimated by a DNN trained with segmentation labels in [2, 5]. Bertasius et al.  incorporate the affinity matrix with random walk, whose role is to refine the output of a segmentation model like dCRF. Cheng et al.  design a deconvolution network, in which unpooling layers leverage the affinity matrix to recover sharp boundaries during upsampling. Both of the above methods aim to refine outputs of fully supervised segmentation models in a pixel-level. On the contrary, our goal is to recover object shape from coarse and noisy responses of object parts with a high-level semantic affinity matrix, and AffinityNet has a totally different architecture accordingly. Vernaza and Chandraker  employ scribbles as weak supervision, and propose to learn a segmentation network and the random walk affinity matrix simultaneously so that the output of the network and that of random walk propagation of the scribbles become identical. Our approach is different from this work in the following three aspects. First, our framework is trained with image-level labels, which are significantly weaker than the scribbles employed in . Second, in our approach random walk can jump to any other positions within a certain radius, but in  it is allowed to move only to four nearest neighbors. Third, AffinityNet learns pairwise semantic affinity explicitly, but the model in  learns it implicitly.
Learning with synthetic labels: We adopt the disjoint pipeline that first generates synthetic labels and train a segmentation model with the labels in a fully supervised manner. Such a pipeline has been studied for object detection  as well as semantic segmentation [6, 12, 26, 35, 17, 11] in weakly supervised settings. A unique feature of our approach is the AffinityNet, an end-to-end trainable DNN improving the quality of synthetic labels significantly, when compared to previous methods that adopt existing optimization techniques (e.g., GraphCut, GrabCut, and dCRF) and/or off-the-shelf preprocessing steps aforementioned.
3 Our Framework
Our approach to weakly supervised semantic segmentation is roughly divided into two parts: (1) Synthesizing pixel-level segmentation labels of training images given their image-level class labels, and (2) Learning a DNN for semantic segmentation with the generated segmentation labels. The entire framework is based on three DNNs: A network computing CAMs, AffinityNet, and a segmentation model. The first two are used to generate segmentation labels of training images, and the last one is the DNN that performs actual semantic segmentation and is trained with the synthesized segmentation annotations. The remainder of this section describes characteristics of the three networks and training schemes for them in details.
3.1 Computing CAMs
CAMs play an important role in our framework. As in many other weakly supervised approaches, they are considered as segmentation seeds, which typically highlight local salient parts of object and later propagate to cover the entire object area. Furthermore, in our framework they are employed as sources of supervision for training AffinityNet.
We follow the approach of  to compute CAMs of training images. The architecture is a typical classification network with global average pooling (GAP) followed by a fully connected layer, and is trained by a classification criteria with image-level labels. Given the trained network, the CAM of a groundtruth class , which is denoted by , is computed by
where is the classification weights associated to the class and
indicates the feature vector located aton the feature map before the GAP. is further normalized so that the maximum activation equals 1: . For any class irrelevant to the groundtruths, we disregard by making its activation scores zero. We also estimate a background activation map, which is given by
where is the set of object classes and denotes a hyper-parameter that adjusts the background confidence scores. Qualitative examples of CAMs obtained by our approach are visualized in Figure 2.
3.2 Learning AffinityNet
AffinityNet aims to predict class-agnostic semantic affinity between a pair of adjacent coordinates on a training image. The predicted affinities are used in random walk as transition probabilities so that random walk propagates activation scores of CAMs to nearby areas of the same semantic entity, which improves the quality of CAMs significantly.
For computational efficiency, AffinityNet is designed to predict a convolutional feature map where the semantic affinity between a pair of feature vectors is defined in terms of their distance. Specifically, the semantic affinity between features and is denoted by and defined as
where indicates the coordinate of the feature on the feature map . In this way, a large number of semantic affinities in a given image can be computed efficiently by a single forward pass of the network. Figure 3 illustrates the AffinityNet architecture and the way it computes . Training this architecture requires semantic affinity labels for pairs of feature map coordinates, i.e., labels for in Eq. (3). However, such labels are not directly available in our setting where only image-level labels are given. In the remaining part of this section, we present how to generate the affinity labels and train AffinityNet with them.
3.2.1 Generating Semantic Affinity Labels
To train AffinityNet with image-level labels, we exploit CAMs of training images as incomplete sources of supervision. Although CAMs are often inaccurate as shown in Figure 2, we found that by carefully manipulating them, reliable supervision for semantic affinity can be obtained.
Our basic idea is to identify confident areas of objects and background from the CAMs, and sample training examples only from these areas. By doing so, the semantic equivalence between a pair of sampled coordinates can be determined reliably. To estimate confident areas of objects, we first amplify by decreasing in Eq. (2) so that background scores dominate insignificant activation scores of objects in the CAMs. After applying dCRF to the CAMs for their refinement, we identify confident areas for each object class by collecting coordinates whose scores for the target class are greater than those of any other classes including the amplified background. Also, in the opposite setting (i.e., increasing to weaken ), confident background areas can be identified in the same manner. Remaining areas in the image are then considered as neutral. A result of this procedure is visualized in Figure 4(a).
Now a binary affinity label can be assigned to every pair of coordinates according to their class labels determined by the confident areas. For two coordinates and that are not neutral, their affinity label is 1 if their classes are the same, and 0 otherwise. Also, if at least one of the coordinates is neutral, we simply ignore the pair during training. This scheme, which is illustrated in Figure 4(b), enables us to collect a fairly large number of pairwise affinity labels which are also reliable enough.
3.2.2 AffinityNet Training
AffinityNet is trained by approximating the binary affinity labels with the predicted semantic affinities of Eq. (3) in a gradient descent fashion. Especially, affinities of only sufficiently adjacent coordinates are considered during training due to the following two reasons. First, it is difficult to predict semantic affinity between two coordinates too far from each other due to the lack of context. Second, by addressing pairs of adjacent coordinates only, we can reduce computational cost significantly. Thus the set of coordinate pairs used in training, denoted by , is given by
where is the Euclidean distance and is a search radius that limits the distance between a selected pair.
However, learning AffinityNet directly from is not desirable due to the class imbalance issue. We observed that in the class distribution is significantly biased to positive ones since negative pairs are sampled only around object boundaries. Also in the subset of positive pairs, the number of background pairs is notably larger than that of object pairs as background is larger than object areas in many photos. To address this issue, we divide into three subsets, and aggregate losses obtained from individual subsets. Specifically, we first divide into two subsets of positive and negative pairs:
and further break into and for objects and background, respectively. Then the cross-entropy loss is computed per subset as follows:
Finally, the loss for training the AffinityNet is defined as
Note that the loss in Eq. (10) is class-agnostic. Thus the trained AffinityNet decides the class consistency between two adjacent coordinates while not aware of their classes explicitly. This class-agnostic scheme allows AffinityNet to learn a more general representation that can be shared among multiple object classes and background, and enlarges the set of training samples per class significantly.
3.3 Revising CAMs Using AffinityNet
The trained AffinityNet is used to revise CAMs of training images. Local semantic affinities predicted by AffinityNet are converted to a transition probability matrix, which enables random walk to be aware of semantic boundaries in image, and encourages it to diffuse activation scores within those boundaries. We empirically found that random walk with the semantic transition matrix significantly improves the quality of CAMs and allows us to generate accurate segmentation labels consequently.
For an input image, AffinityNet generates a convolutional feature map, and semantic affinities between features on the map are computed according to Eq. (3). Note that, as in training of AffinityNet, the affinities are computed between features within local circles of radius . The computed affinities form an affinity matrix , whose diagonal elements are 1. The transition probability matrix of random walk is derived from the affinity matrix as follows:
In the above equation, the hyper-parameter has a value greater than 1 so that , the Hadamard power of the original affinity matrix, ignores immaterial affinities in . Thus using instead of makes our random walk propagation more conservative. The diagonal matrix is computed for row-wise normalization of .
Through random walk with , a single operation of the semantic propagation is implemented by multiplying to the CAMs. We perform this propagation iteratively until the predefined number of iterations is reached. Then , the revised CAM of class is given by
where means vectorization of a matrix, and is the number of iterations. Note that the value of is set to a power of 2 so that Eq. (12) performs matrix multiplication only times.
3.4 Learning a Semantic Segmentation Network
The revised CAMs of training images are then used to generate segmentation labels of the images. Since CAMs are smaller than their input image in size, we upsample them to the resolution of the image by bilinear interpolation, and refine them with dCRF. A segmentation label of a training image is then obtained simply by selecting the class label associated with the maximum activation score at every pixel in the revised and upsampled CAMs. Note that thebackground class can be also selected since we compute CAMs for background as well as object classes.
The segmentation labels obtained by the above procedure are used as supervision to train a segmentation network. Any fully supervised semantic segmentation model can be employed in our approach as we provide segmentation labels of training images.
4 Network Architectures
In this section, we present details of DNN architectures adopted in our framework. Note that our approach can be implemented with any existing DNNs serving the same purposes, although we carefully design the following models to enhance segmentation performance.
4.1 Backbone Network
The three DNNs in our framework are all built upon the same backbone network. The backbone is a modified version of Model A1 , which is also known as ResNet38 and has 38 convolution layers with wide channels. To obtain the backbone network, the ultimate GAP and fully connected layer of the original model are first removed. Then the convolution layers of the last three levels111A level is a group of residual units that share the same output stride.
are replaced by atrous convolutions with a common input stride of 1, and their dilation rates are adjusted so that the backbone network will return a feature map of stride 8. The atrous convolution has been known to enhance segmentation quality by enlarging receptive field without sacrificing feature map resolution. We empirically observed that it works also in our weakly supervised models, CAM and AffinityNet, as it enables the models to recover fine shapes of objects.
4.2 Details of DNNs in Our Framework
Network computing CAMs: We obtain this model by adding the following three layers on the top of the backbone network in the order: a 33 convolution layer with 512 channels for a better adaptation to the target task, a global average pooling layer for feature map aggregation, and a fully connected layer for classification.
AffinityNet: This network is designed to aggregate multi-level feature maps of the backbone network in order to leverage semantic information acquired at various field-of-views when computing affinities. For the purpose, the feature maps output from the last three levels of the backbone network are selected. Before aggregation, their channel dimensionalities are reduced to 128, 256, and 512, for the first, second, and third feature maps, respectively, by individual 11 convolution layers. Then the feature maps are concatenated to be a single feature map with 896 channels. We finally add one more 11 convolution layer with 896 channels on the top for adaptation.
Segmentation model: We strictly follow  to build our segmentation network. Specifically, we put two more atrous convolution layers on the top of the backbone. They have the same dilation rate of 12, while the numbers of channels are 512 for the first one and 21 for the second. The resulting network is called “Ours-ResNet38” in the next section.
|Kwak et al. ||Ours|
|TransferNet ||MS-COCO ||52.1||51.2|
|Saliency ||MSRA , BSDS ||55.7||56.7|
|MCNN ||YouTube-Object ||38.1||39.8|
|CrawlSeg ||YouTube Videos||58.1||58.7|
|SDI ||BSDS ||65.7||67.5|
This section demonstrates the effectiveness of our approach with comparisons to current state of the art in weakly supervised semantic segmentation on the PASCAL VOC 2012 segmentation benchmark . For a performance metric, we adopt Intersection-over-Union (IoU) between groundtruth and predicted segmentation.
5.1 Implementation Details
Dataset: All DNNs in our framework are trained and evaluated on the PASCAL VOC 2012 segmentation benchmark, for a fair comparison to previous approaches. Following the common practice, we enlarge the set of training images by adopting segmentation annotations presented in . Consequently 10,582 images in total are used as training examples and 1,449 images are kept for validation.
Network parameter optimization: The backbone network of our DNNs is pretrained on the ImageNet . The entire network parameters are then finetuned on the PASCAL VOC 2012 by Adam . The following data augmentation techniques are commonly used when training all the three DNNs: horizontal flip, random cropping, and color jittering . Also, for the networks except AffinityNet, we randomly scale input images during training, which is useful to impose scale invariance on the networks.
5.2 Analysis of Synthesized Segmentation Labels
The performance of our label synthesis method is measured in mIoU between groundtruth and generated segmentation labels as summarized in Table 1. For ablation study, our method is divided into three parts: CAM, RW (random walk with AffinityNet), and dCRF. To demonstrate the advantage of the proposed method, we also report the score of Superpixel Pooling Net (SPN)  that incorporates CAM with superpixels as additional clues to generate segmentation labels with image-level label supervision. As shown in Table 1, even our CAM outperforms SPN in terms of the quality of generated segmentation labels without using off-the-shelf techniques like superpixel. We believe this is because of the various data augmentation techniques and the more powerful backbone network with atrous convolution layers. Moreover, through random walk with the learned semantic affinity, the quality of segmentation annotations is improved remarkably, which demonstrates the effectiveness of AffinityNet. Finally, dCRF further improves the label quality slightly, and we employ this last version as the supervision for learning the segmentation network.
Examples of the synthesized segmentation labels are shown in Figure 5, where one can see that random walk with AffinityNet handles false positives and missing areas in CAMs effectively. To illustrate the role of AffinityNet in this process, we also visualized predicted semantic affinities of the images by detecting edges on the feature map , and observed that AffinityNet has capability to detect semantic boundaries although it is trained with image-level labels. As such boundaries penalize random walk propagation between semantically different objects, the synthesized segmentation labels can recover accurate shapes of objects.
5.3 Comparisons to Previous Work
We first quantitatively compare our approach with previous methods based only on image-level class labels. The results on the PASCAL VOC 2012 are summarized in Table 2 and 3. Note that we also evaluate DeepLab  trained with our synthetic labels, called “Ours-DeepLab”, for fair comparisons to other models whose backbones are VGG16 . Both of our models outperform the current state of the art  by large margins in terms of mean accuracy on both val and test sets of the benchmark, while Ours-ResNet38 is slightly better than Ours-DeepLab thanks to the more powerful representation of ResNet38. Our models are also compared to the approaches based on extra training data or stronger supervision in Table 4. They substantially outperform the approaches based on the same level of supervision but with extra data and annotations like segmentation labels in MS-COCO , class-agnostic bounding boxes in MSRA Saliency , and YouTube videos . They are also competitive with previous arts relying on stronger supervision like scribble and bounding box. Surprisingly, Ours-ResNet38 outperforms even FCN , the well-known early work on fully supervised semantic segmentation. These results show that segmentation labels generated by our method are sufficiently strong, and can substitute for extra data or stronger supervision. We finally compare our models with their fully supervised versions, DeepLab  and ResNet38 , which are the upper bounds we can achieve. Specifically, Ours-DeepLab recovers 86% of its bound, and Ours-ResNet38 achieves 77%.
Figure 6 presents qualitative results of Ours-ResNet38 and compares them to those of CrawlSeg , which is the current state of the art using image-level supervision. Our method relying only on image-level label supervision tends to produce more accurate results even though CrawlSeg exploits extra video data to synthesize segmentation labels.
To alleviate the lack of annotated data issue in semantic segmentation, we have proposed a novel framework based on AffinityNet to generate accurate segmentation labels of training images given their image-level class labels only. The effectiveness of our approach has been demonstrated on the PASCAL VOC 2012 benchmark, where DNNs trained with the labels generated by our method substantially outperform the previous state of the art relying on the same level of supervision, and is competitive with those demanding stronger supervision or extra data.
This work was supported by Kakao, Korea Creative Content Agency (KOCCA), and Ministry of Culture, Sports, and Tourism (MCST) of Korea.
A. Bearman, O. Russakovsky, V. Ferrari, and L. Fei-Fei.
What’s the Point: Semantic Segmentation with Point Supervision.
Proceedings of the European Conference on Computer Vision (ECCV), pages 549–565, 2016.
G. Bertasius, L. Torresani, S. X. Yu, and J. Shi.
Convolutional random walk networks for semantic image segmentation.
Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017.
-  L.-C. Chen, G. Papandreou, I. Kokkinos, K. Murphy, and A. L. Yuille. Semantic image segmentation with deep convolutional nets and fully connected CRFs. In Proceedings of the International Conference on Learning Representations (ICLR), 2015.
-  L. C. Chen, G. Papandreou, I. Kokkinos, K. Murphy, and A. L. Yuille. Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), PP(99):1–1, 2017.
-  Y. Cheng, R. Cai, Z. Li, X. Zhao, and K. Huang. Locality-sensitive deconvolution networks with gated fusion for rgb-d indoor semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017.
-  J. Dai, K. He, and J. Sun. BoxSup: Exploiting bounding boxes to supervise convolutional networks for semantic segmentation. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 1635–1643, 2015.
-  J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. ImageNet: a large-scale hierarchical image database. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 248–255, 2009.
-  M. Everingham, L. Van Gool, C. K. Williams, J. Winn, and A. Zisserman. The Pascal Visual Object Classes (VOC) Challenge. International Journal of Computer Vision (IJCV), 88(2):303–338, 2010.
-  B. Hariharan, P. Arbeláez, L. Bourdev, S. Maji, and J. Malik. Semantic contours from inverse detectors. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 991–998, 2011.
S. Hong, J. Oh, B. Han, and H. Lee.
Learning transferrable knowledge for semantic segmentation with deep convolutional neural network.In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3204 – 3212, 2016.
-  S. Hong, D. Yeo, S. Kwak, H. Lee, and B. Han. Weakly supervised semantic segmentation using web-crawled videos. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 7322–7330, 2017.
-  A. Khoreva, R. Benenson, J. Hosang, M. Hein, and B. Schiele. Simple does it: Weakly supervised instance and semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 876–885, 2017.
-  D. P. Kingma and J. Ba. Adam: A method for stochastic optimization. In Proceedings of the International Conference on Learning Representations (ICLR), 2015.
-  A. Kolesnikov and C. H. Lampert. Seed, expand and constrain: Three principles for weakly-supervised image segmentation. In Proceedings of the European Conference on Computer Vision (ECCV), pages 695–711, 2016.
-  P. Krähenbühl and V. Koltun. Efficient inference in fully connected crfs with gaussian edge potentials. In Proceedings of the Neural Information Processing Systems (NIPS), pages 109–117. 2011.
-  A. Krizhevsky, I. Sutskever, and G. E. Hinton. ImageNet classification with deep convolutional neural networks. In Proceedings of the Neural Information Processing Systems (NIPS), 2012.
S. Kwak, S. Hong, and B. Han.
Weakly supervised semantic segmentation using superpixel pooling
Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), pages 4111–4117, 2017.
-  D. Lin, J. Dai, J. Jia, K. He, and J. Sun. Scribblesup: Scribble-supervised convolutional networks for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3159–3167, 2016.
-  G. Lin, C. Shen, A. van dan Hengel, and I. Reid. Efficient piecewise training of deep structured models for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3194 – 3203, 2016.
-  T.-Y. Lin, M. Maire, S. Belongie, J. Hays, P. Perona, D. Ramanan, P. Dollár, and C. L. Zitnick. Microsoft COCO: common objects in context. In Proceedings of the European Conference on Computer Vision (ECCV), pages 740–755, 2014.
-  T. Liu, J. Sun, N. N. Zheng, X. Tang, and H. Y. Shum. Learning to detect a salient object. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1–8, June 2007.
-  J. Long, E. Shelhamer, and T. Darrell. Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3431 – 3440, 2015.
-  L. Lovász. Random walks on graphs: A survey, 1993.
-  D. Martin, C. Fowlkes, D. Tal, and J. Malik. A database of human segmented natural images and its application to evaluating segmentation algorithms and measuring ecological statistics. In Proc. 8th Int’l Conf. Computer Vision, volume 2, pages 416–423, July 2001.
-  H. Noh, S. Hong, and B. Han. Learning deconvolution network for semantic segmentation. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 1520 – 1528, 2015.
-  S. J. Oh, R. Benenson, A. Khoreva, Z. Akata, M. Fritz, and B. Schiele. Exploiting saliency for object segmentation from image level labels. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4410–4419, 2017.
-  M. Oquab, L. Bottou, I. Laptev, and J. Sivic. Learning and transferring mid-level image representations using convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2014.
G. Papandreou, L.-C. Chen, K. Murphy, and A. L. Yuille.
Weakly-and semi-supervised learning of a DCNN for semantic image segmentation.In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 1742 – 1750, 2015.
-  D. Pathak, P. Krähenbühl, and T. Darrell. Constrained convolutional neural networks for weakly supervised segmentation. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 1742 – 1750, 2015.
-  P. O. Pinheiro and R. Collobert. From image-level to pixel-level labeling with convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1713 – 1721, 2015.
-  A. Prest, C. Leistner, J. Civera, C. Schmid, and V. Ferrari. Learning object class detectors from weakly annotated video. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3282 – 3289, 2012.
-  G.-J. Qi. Hierarchically gated deep networks for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2016.
-  K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. In Proceedings of the International Conference on Learning Representations (ICLR), 2015.
P. Tang, X. Wang, X. Bai, and W. Liu.
Multiple instance detection network with online instance classifier refinement.In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3059–3067, July 2017.
-  P. Tokmakov, K. Alahari, and C. Schmid. Weakly-supervised semantic segmentation using motion cues. In Proceedings of the European Conference on Computer Vision (ECCV), pages 388–404, 2016.
-  P. Vernaza and M. Chandraker. Learning random-walk label propagation for weakly-supervised semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017.
-  Y. Wei, J. Feng, X. Liang, M.-M. Cheng, Y. Zhao, and S. Yan. Object region mining with adversarial erasing: A simple classification to semantic segmentation approach. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017.
-  Z. Wu, C. Shen, and A. van den Hengel. Wider or deeper: Revisiting the resnet model for visual recognition. arXiv preprint arXiv:1611.10080, 2016.
S. Zheng, S. Jayasumana, B. Romera-Paredes, V. Vineet, Z. Su, D. Du, C. Huang,
and P. Torr.
Conditional random fields as recurrent neural networks.In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 1529 – 1537, 2015.
B. Zhou, A. Khosla, A. Lapedriza, A. Oliva, and A. Torralba.
Learning deep features for discriminative localization.In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2921 – 2929, 2016.
Appendix A Appendix
This appendix provides contents omitted in the regular sections for the sake of brevity. Section A.1 and A.2 present technical details of the proposed framework. Also, in-depth analyses on the quantitative results of our framework are provided in Section A.3 and A.4. Finally, more qualitative results are given in Section A.5. We conclude the appendix with brief remarks about future work.
a.1 Architecture Details of Our Networks
This section describes architecture details of the networks in our framework. First, the backbone network is based on ResNet38 proposed in  (Figure 7(a)), and as illustrated in Figure 7(b), its last three levels of convolution layers (L4, L5, and L6) are converted to atrous convolutions. Note that by doubling and quadrupling the dilation rates of L5 and L6, respectively, the output stride of the last convolution feature map of the backbone becomes 8, which is 4 times smaller than that of ResNet38 and enhances the performance of our networks relying on the feature map.
Figure 7(c) visualizes the architecture of the network computing CAMs, which is obtained by adding the following three layers on the top of the backbone network: A 3x3 convolution layer for adaptation, a global average pooling (GAP) layer for abstracting the last feature map into a single vector, and a fully connected (FC) layer for learning the entire network with a single classification criterion. Note that the notations in Figure 7(c) are set identical to those in Section 3.1 for a clear understanding. Also, the segmentation model of our approach is illustrated in Figure 7(d). To obtain this model, we add on the top of the backbone two 3x3 atrous convolution layers with dilation rates of 12, which enable to keep the resolution of the feature maps. In the last stage, a bilinear interpolation is applied to enlarge the resolution of the activation map up to that of the input image. For the architecture of AffinityNet, please refer to Figure 3.
a.2 Practical Details for Inference
In this section, we introduce some practical details used to enhance the performance of our segmentation model. Since the segmentation model is trained with randomly flipped and scaled images, we applied the same jittering techniques to images during testing too. Specifically, each test image is horizontally flipped, and rescaled by 5 predefined ratios: 1/2, 3/4, 1, 5/4, and 3/2. As a result, we obtain 10 different versions of a test image, and feed them to the segmentation model to obtain 10 score maps per class accordingly. The score maps are then aggregated by pixel-wise average-pooling to obtain a single map per class, and the final segmentation output is obtained by selecting the class label associated with the maximum score at every pixel. This technique improved the segmentation performance of our model slightly (less than 2% in mIoU) on the PASCAL VOC 2012 benchmark val set.
a.3 Analysis on Effects of the Hyper-parameters
We analyzed effects of the hyper-parameters on the quality of synthetic segmentation labels, and the results summarized in Figure 8 demonstrate that our label synthesis method is fairly insensitive to the hyper-parameters. As shown in Figure 8(a), the quality of synthetic labels fluctuates within only 1.0 mIoU when . In Figure 8(b), we found that the accuracy is saturated when is greater than 16. Thanks to this robustness, we believe that little effort will be required to tune the hyper-parameters for other datasets.
Note that the parameter values given in the paper are not optimal. For example, was 16 in the paper, but it turns out that 32 is better (Figure 8(b)). This happens because hyper-parameter analyses like Figure 8 are prohibited in our setting where no ground-truth segmentation label is given. Thus for tuning , , and , we sampled a small subset of training images and evaluated their effects qualitatively on the subset. For the same reason, we used the default values given in the original code for the dCRF parameters.
a.4 Justification of Learning the Fully Supervised Segmentation Network
To empirically demonstrate the advantage of learning a fully supervised segmentation network with synthetic segmentation labels, we compare the accuracy of synthetic segmentation labels and that of our final model on the VOC 2012 val set.
As shown in Table 5, our synthetic segmentation labels, denoted by CAM+RW+dCRF, achieves 58.7 mIoU while the final segmentation network attains 61.7. The gap between them justifies our strategy of learning a segmentation model. Note that, in the above comparison, CAM+RW+dCRF gets an unfair advantage over the segmentation model since it utilizes ground-truth image-level labels to filter out CAMs of irrelevant classes (Section 3.1). Without such labels, the score of CAM+RW+dCRF will be even further degraded.
a.5 More Qualitative Results of Our Approach
a.6 Future Work
Next on our agenda is to utilize AffinityNet in a transfer learning setting where source domain provides groundtruth segmentation labels for exclusive object classes. By leveraging such external data for training AffinityNet, our framework could generate more accurate segmentation labels in target domain as AffinityNet learns and predicts class-agnotic affinities that can be generally applicable. Another direction for further exploration is weakly supervised semantic boundary detection using AffinityNet, which already shows its potential in the experimental results.