gradients, that are back-propagated to the afﬁnity branch
are computed as@L
@A=@L
@^yfT, wherefTis amn2matrix
that contains transposed activation values from the fc8layer
of the segmentation branch. We note that@L
@Ais asparse
n2n2matrix, which means that the above matrix multiplication only considers the pixel pairs that correspond to
the non-zero entries in the random walk transition matrix A.
4.4. Random Walk Prediction at Testing
In the previous subsection, we mentioned that the prediction in the random walk layer can be done via a simple
matrix multiplication operation ^y=Af, whereAdenotes
the random walk transition matrix, and fdepicts the activation values from the fc8layer. Typically, we want to apply
multiple random walk steps until convergence is reached.
However, we also do not want to deviate too much from our
initial segmentation predictions, in case the random walk
transition matrix is not perfectly accurate, which is a reasonable expectation. Thus, our prediction scheme needs to
balance two effects: (1) propagating the segmentation information across the nodes using a random walk transition
matrix, and (2) not deviating too much from the initial segmentation.
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