the inputnn3RGB image, and low-level conv1_1and
conv1_2layers. The feature maps corresponding to these
layers arennin width and height but they have a different number of channels ( 3;64;and64respectively). Let k
be the total number of afﬁnity learning parameters (in our
casek= 3 + 64 + 64 = 131 ). Then, let Fbe a sparse
n2n2kmatrix that stores L1distances between each
pixel and all of its neighbors within a radius R, according
to each channel. Note that the distances are notsummed
up across the kchannels, but instead they are computed and
stored separately for each channel. The resulting matrix F
is then used as an input to the afﬁnity branch, as shown in
Figure 2.
The afﬁnity branch consists of a 11kconvolutional
layer and an exponential layer. The output of the exponential layer is then attached to the Euclidean loss layer and is
optimized to predict the ground truth pixel afﬁnities, which
are obtained from the original semantic segmentation anInput
 DeepLab_v2
 RWN_v2
Figure 3: A ﬁgure illustrating the segmentation results of
Most current semantic segmentation methods rely on fully convolutional
networks (FCNs). However, their use of large receptive fields and many pooling
layers cause low spatial resolution inside the deep layers. This leads to
predictions with poor localization around the boundaries. Prior work has
attempted to address this issue by post-processing predictions with CRFs or
MRFs. But such models often fail to capture semantic relationships between
objects, which causes spatially disjoint predictions. To overcome these
problems, recent methods integrated CRFs or MRFs into an FCN framework. The
downside of these new models is that they have much higher complexity than
traditional FCNs, which renders training and testing more challenging.
  In this work we introduce a simple, yet effective Convolutional Random Walk
Network (RWN) that addresses the issues of poor boundary localization and
spatially fragmented predictions with very little increase in model complexity.
Our proposed RWN jointly optimizes the objectives of pixelwise affinity and
semantic segmentation. It combines these two objectives via a novel random walk
layer that enforces consistent spatial grouping in the deep layers of the
network. Our RWN is implemented using standard convolution and matrix
multiplication. This allows an easy integration into existing FCN frameworks
and it enables end-to-end training of the whole network via standard
back-propagation. Our implementation of RWN requires just $131$ additional
parameters compared to the traditional FCNs, and yet it consistently produces
an improvement over the FCNs on semantic segmentation and scene labeling.
Gedas Bertasius Lorenzo Torresani Stella X. Yu Jianbo Shi