Fully Connected Deep Structured Networks.

Alexander G. Schwing, Raquel UrtasunarXiv 2015

Abstract

Convolutional neural networks (CNNs) with many layers have recently achieved excellent results on high-level tasks such as image classification, object detection, and semantic segmentation. For the latter, a two-stage procedure is often employed: CNNs provide local pixel-wise features, which are then refined by a global graphical model. This work unifies this two-stage process into a single joint training algorithm. We demonstrate our method on the semantic image segmentation task and show encouraging results on the challenging PASCAL VOC 2012 dataset.

Introduction

In semantic image segmentation, the objective is to assign a categorical label to every pixel in an image. Historically, this has been approached as a two-step process. First, a CNN acts as a "unary potential" provider, analyzing local patches to predict object categories. Second, a graphical model—typically a Markov Random Field (MRF) or Conditional Random Field (CRF)—serves as a refinement step, ensuring label consistency among neighboring pixels and aligning boundaries with image edges.

The primary drawback of this traditional approach is that the components are trained in a "piece-wise" fashion. The CNN is trained first, its weights are frozen, and then the CRF parameters are tuned. This is sub-optimal because the CNN never learns to produce features specifically optimized for the CRF's smoothing behavior, and the CRF cannot influence the underlying feature extraction. This paper introduces a "Deep Structured Network" framework that breaks this wall, enabling end-to-end optimization of the entire system.

Methods

The proposed framework integrates deep learning and probabilistic graphical models through several innovative design choices:

  1. The Unary Network: The model utilizes a 16-layer VGG-style architecture. To maintain high spatial resolution necessary for pixel-level tasks, the authors skip the final downsampling layers and employ the 'a trous' (dilated) convolution algorithm. This allows for a large receptive field without losing the fine detail required for accurate segmentation.
  2. The Fully Connected CRF: Unlike standard CRFs that only connect immediate neighbors, this model uses a "fully connected" CRF where every pixel is connected to every other pixel. This architecture is crucial for capturing long-range dependencies across the image.
  3. Differentiable Inference: To make the CRF trainable via back-propagation, the authors utilize a mean-field approximation. By viewing the iterations of the mean-field algorithm as layers in a neural network, the inference process becomes a differentiable component of the larger architecture.
  4. Joint Training: During the backward pass, the gradient of the loss function is "back-tracked" through the mean-field iterations. This allows the model to update both the CNN weights and the CRF's compatibility and smoothness parameters simultaneously using stochastic gradient descent.
The joint training algorithm for learning deep structured models, integrating forward/backward passes with belief propagation.

To manage the computational complexity of a fully connected model ($O(N^2)$), the authors restrict the pairwise potentials to be mixtures of Gaussian kernels. This allows the use of efficient filtering techniques to reduce complexity to $O(N)$, making joint training feasible on modern hardware.

Results

The model was evaluated on the PASCAL VOC 2012 challenge dataset, a standard benchmark for semantic segmentation featuring 21 object classes. Performance was measured using the Mean Intersection-over-Union (mIoU) metric.

Quantitative Performance

The joint training approach yielded significant improvements over the piece-wise baseline:

  • Unary-only baseline: 61.48% mIoU.
  • Jointly trained model: 64.06% mIoU.

This result slightly outperformed contemporary state-of-the-art baselines that utilized similar architectures but lacked the joint training component. This confirms the core insight of the research: when the CNN "knows" a CRF will follow, it learns more effective features for the final smoothing step.

Qualitative Analysis

Qualitatively, the joint model produced much cleaner segmentations that respected object boundaries better than the raw CNN output. The integration of the CRF allows the network to smooth out local errors while maintaining sharp edges corresponding to actual image features.

Qualitative segmentation results on PASCAL VOC 2012, demonstrating the model's ability to respect object boundaries through the original image, ground truth, and prediction.

Discussion and Future Work

Despite its successes, the model faces certain challenges. The authors noted that the learned parameters occasionally lead to over-smoothing, which can blur fine boundary details or cause the model to miss very small objects. The model also struggles in highly cluttered scenes with high intra-class variation.

Future work will focus on scaling the approach to even larger datasets and exploring weakly labeled data. Training with image-level tags or bounding boxes instead of pixel-perfect masks would significantly improve the scalability of the framework for real-world applications where dense annotations are expensive to obtain.

Summary updated

BibTeX
@misc{schwing2015fully,
  author = {Alexander G. Schwing and Raquel Urtasun},
  title = {{Fully Connected Deep Structured Networks.}},
  year = {2015},
  eprint = {1503.02351},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1503.02351},
}
Figure