arXiv(opens in a new tab)Computer ScienceFeb 2015Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:1502.03240

Conditional Random Fields as Recurrent Neural Networks

Shuai Zheng, Sadeep Jayasumana, B. Romera-Paredes, Vibhav Vineet, Zhizhong Su, Dalong Du, Chang Huang, Philip H. S. Torr

Abstract

Pixel-level labelling tasks, such as semantic segmentation, play a central role in image understanding. Recent approaches have attempted to harness the capabilities of deep learning techniques for image recognition to tackle pixel-level labelling tasks. One central issue in this methodology is the limited capacity of deep learning techniques to delineate visual objects. To solve this problem, we introduce a new form of convolutional neural network that combines the strengths of Convolutional Neural Networks (CNNs) and Conditional Random Fields (CRFs)-based probabilistic graphical modelling. To this end, we formulate mean-field approximate inference for the Conditional Random Fields with Gaussian pairwise potentials as Recurrent Neural Networks. This network, called CRF-RNN, is then plugged in as a part of a CNN to obtain a deep network that has desirable properties of both CNNs and CRFs. Importantly, our system fully integrates CRF modelling with CNNs, making it possible to train the whole deep network end-to-end with the usual back-propagation algorithm, avoiding offline post-processing methods for object delineation.

We apply the proposed method to the problem of semantic image segmentation, obtaining top results on the challenging Pascal VOC 2012 segmentation benchmark.

1. Introduction

Low-level computer vision problems such as semantic image segmentation or depth estimation often involve assigning a label to each pixel in an image. While the feature representation used to classify individual pixels plays an important role in this task, it is similarly important to consider factors such as image edges, appearance consistency and spatial consistency while assigning labels in order to obtain accurate and precise results.

Designing a strong feature representation is a key challenge in pixel-level labelling problems. Work on this topic includes: TextonBoost [52], TextonForest [51], and Random Forest-based classifiers [50]. Recently, supervised deep learning approaches such as large-scale deep Convolutional Neural Networks (CNNs) have been immensely successful in many high-level computer vision tasks such as image recognition [31] and object detection [20]. This motivates exploring the use of CNNs for pixel-level labelling problems. The key insight is to learn a strong feature representation end-to-end for the pixel-level labelling task instead of hand-crafting features with heuristic parameter tuning. In fact, a number of recent approaches including the particularly interesting works FCN [37] and DeepLab [10] have shown a significant accuracy boost by adapting state-of-the-art CNN based image classifiers to the semantic segmentation problem.

However, there are significant challenges in adapting CNNs designed for high level computer vision tasks such as object recognition to pixel-level labelling tasks. Firstly, traditional CNNs have convolutional filters with large receptive fields and hence produce coarse outputs when restructured to produce pixel-level labels [37]. Presence of max-pooling layers in CNNs further reduces the chance of getting a fine segmentation output [10]. This, for instance, can result in non-sharp boundaries and blob-like shapes in semantic segmentation tasks. Secondly, CNNs lack smoothness constraints that encourage label agreement between similar pixels, and spatial and appearance consistency of the labelling output. Lack of such smoothness constraints can result in poor object delineation and small spurious regions in the segmentation output [59, 58, 32, 39].

On a separate track to the progress of deep learning techniques, probabilistic graphical models have been developed as effective methods to enhance the accuracy of pixel-level labelling tasks. In particular, Markov Random Fields (MRFs) and its variant Conditional Random Fields (CRFs) have observed widespread success in this area [32, 29] and have become one of the most successful graphical models used in computer vision. The key idea of CRF inference for semantic labelling is to formulate the label assignment

∗^{*}Authors contributed equally.

†^{\dagger}Work conducted while authors at the University of Oxford.

problem as a probabilistic inference problem that incorporates assumptions such as the label agreement between similar pixels. CRF inference is able to refine weak and coarse pixel-level label predictions to produce sharp boundaries and fine-grained segmentations. Therefore, intuitively, CRFs can be used to overcome the drawbacks in utilizing CNNs for pixel-level labelling tasks.

One way to utilize CRFs to improve the semantic labelling results produced by a CNN is to apply CRF inference as a post-processing step disconnected from the training of the CNN [10]. Arguably, this does not fully harness the strength of CRFs since it is not integrated with the deep network. In this setup, the deep network is unaware of the CRF during the training phase.

In this paper, we propose an end-to-end deep learning solution for the pixel-level semantic image segmentation problem. Our formulation combines the strengths of both CNNs and CRF based graphical models in one unified framework. More specifically, we formulate mean-field approximate inference for the dense CRF with Gaussian pairwise potentials as a Recurrent Neural Network (RNN) which can refine coarse outputs from a traditional CNN in the forward pass, while passing error differentials back to the CNN during training. Importantly, with our formulation, the whole deep network, which comprises a traditional CNN and an RNN for CRF inference, can be trained end-to-end utilizing the usual back-propagation algorithm.

Arguably, when properly trained, the proposed network should outperform a system where CRF inference is applied as a post-processing method on independent pixel-level predictions produced by a pre-trained CNN. Our experimental evaluation confirms that this indeed is the case. We evaluate the performance of our network on the popular Pascal VOC 2012 benchmark, achieving a new state-of-the-art accuracy of 74.7%. Our source code and models are publicly available 1^{1}.

References (51)

  • Fast high-dimensional filtering using the permutohedral lattice
  • Semantic segmentation using regions and parts
  • Contour detection and hierarchical image segmentation
  • Material recognition in the wild with the materials in context database
  • Globally trained handwritten word recognizer using spatial representation, convolutional neural networks, and hidden markov models
  • Learning long-term dependencies with gradient descent is difficult
  • Free-form region description with second-order pooling
  • Return of the devil in the details: Delving deep into convolutional nets
  • Boxsup: Exploiting bounding boxes to supervise convolutional networks for semantic segmentation (opens arXiv in a new tab)
  • Convolutional feature masking for joint object and stuff segmentation
  • Towards unified object detection and semantic segmentation
  • Depth map prediction from a single image using a multi-scale deep network
  • The pascal visual object classes challenge: A retrospective
  • Learning hierarchical features for scene labeling
  • Rich feature hierarchies for accurate object detection and semantic segmentation
  • Deformable part models are convolutional neural networks
  • Semantic contours from inverse detectors
  • Simultaneous detection and segmentation
  • Hypercolumns for object segmentation and fine-grained localization
  • Deep structured output learning for unconstrained text recognition
  • Supervised learning of image restoration with convolutional networks
  • Caffe: Convolutional architecture for fast feature embedding
  • Human pose estimation with fields of parts
  • Efficient inference in fully connected crfs with gaussian edge potentials
  • Parameter learning and convergent inference for dense random fields
  • Imagenet classification with deep convolutional neural networks
  • Associative hierarchical crfs for object class image segmentation
  • Conditional random fields: Probabilistic models for segmenting and labeling sequence data
  • Gradient-based learning applied to document recognition
  • Efficient piecewise training of deep structured models for semantic segmentation (opens arXiv in a new tab)
  • Microsoft COCO: Common Objects in Context
  • Fully convolutional networks for semantic segmentation
  • Feedforward semantic segmentation with zoom-out features
  • Chen, K. Murphy, and A. L. Yuille (opens arXiv in a new tab)
  • A fast approximation of the bilateral filter using a signal processing approach
  • On the difficulty of training recurrent neural networks
  • Discriminative re-ranking of diverse segmentations
  • Conditional neural fields
  • Recurrent convolutional neural networks for scene labeling
  • Learning message-passing inference machines for structured prediction
  • Neurocomputing: Foundations of research
  • Fully connected deep structured networks (opens arXiv in a new tab)
  • Real-time human pose recognition in parts from single depth images
  • Semantic texton forests for image categorization and segmentation
  • Textonboost for image understanding: Multi-class object recognition and segmentation by jointly modeling texture, layout, and context
  • Very Deep Convolutional Networks for Large-Scale Image Recognition
  • Empirical risk minimization of graphical model parameters given approximate inference, decoding, and model structure
  • Loopy belief propagation and gibbs measures
  • Bilateral filtering for gray and color images
  • Joint training of a convolutional network and a graphical model for human pose estimation
  • Recurrent conditional random field for language understanding