Semantic Image Segmentation via Deep Parsing Network

Ziwei Liu, Xiaoxiao Li, Ping Luo, Chen Change Loy, Xiaoou Tang

Abstract

Semantic image segmentation requires both robust local feature representation and global spatial consistency. This paper presents the Deep Parsing Network (DPN), which bridges the gap between high-level feature learning in Convolutional Neural Networks (CNNs) and structured spatial reasoning in Markov Random Fields (MRFs). By formulating MRF inference as a sequence of deterministic CNN layers, DPN enables end-to-end learning of complex spatial relations and label contexts. DPN achieves state-of-the-art results on the PASCAL VOC 2012 benchmark while significantly reducing the computational overhead associated with traditional iterative MRF inference.

Introduction

The task of semantic segmentation involves assigning a categorical label to every pixel in an image. While standard CNNs excel at local classification, they often struggle with global spatial consistency, leading to "blobby" segmentations that ignore fine boundaries or produce semantically impossible spatial arrangements. Historically, Markov Random Fields (MRFs) or Conditional Random Fields (CRFs) have been employed as post-processing steps to enforce smoothness. However, these hybrid approaches often suffer from two major limitations: high computational cost due to iterative inference (e.g., Mean Field algorithms) and limited modeling power, typically restricted to simple pairwise smoothness terms.

Methodology

The Deep Parsing Network (DPN) addresses these challenges by integrating MRF modeling directly into a VGG-16 backbone as a series of differentiable layers.

Unary Term Modeling

DPN utilizes a modified VGG-16 architecture to preserve spatial resolution. By removing the final max-pooling layers and employing dilated convolutions (atrous convolutions), the network maintains a 64x64 feature map, preventing the loss of critical spatial information found in standard 7x7 maps.

Pairwise Term Modeling (Deep Parsing Layers)

The core innovation of DPN is the approximation of Mean Field (MF) inference through standard CNN operations, structured as a Directed Acyclic Graph (DAG).

Graphical representation of spatial modeling in DPN, including triple penalty and label context layers.
  1. Triple Penalty (Layer b12): This layer models the relationship between a pixel, its neighbor, and the neighbor’s neighborhood. It is implemented as a locally convolutional layer where filters vary spatially to capture diverse distance metrics.
  2. Mixture of Label Contexts (Layers b13-b14): These layers capture semantic relationships between different object classes (e.g., "sky" appearing above "water"). This is achieved through convolutions that penalize unlikely label co-occurrences, followed by block min pooling to select the most probable contextual patterns.

Key Insights

A pivotal finding of this work is that joint learning of pairwise potentials and features allows a single iteration of Mean Field inference to achieve high accuracy. This contrasts with previous methods requiring 5–10 iterations.

Performance comparison showing the benefits of joint learning and the sufficiency of a single Mean Field iteration.

Furthermore, by representing the MRF as a DAG of convolutions and poolings, the inference process becomes highly parallelizable on modern GPUs, leading to substantial efficiency gains.

Experimental Results

DPN was evaluated on the PASCAL VOC 2012 dataset, using MS-COCO for pre-training to improve performance.

  • Accuracy: DPN achieved a mean Intersection-over-Union (mIoU) of 77.5% on the PASCAL VOC 2012 test set, establishing a new state-of-the-art at the time of publication.
  • Efficiency: The MRF component of DPN adds only 75ms of latency on a GPU, making it approximately 10x faster than optimized CPU-based iterative Mean Field implementations.
  • Qualitative Impact: The inclusion of label contexts significantly improved boundary identification and reduced false positives in complex scenes by leveraging typical relative object positions.

Conclusion

The Deep Parsing Network successfully unifies CNN-based feature learning with MRF-based spatial reasoning in an efficient, end-to-end trainable framework. While the locally convolutional layers introduce significant computational complexity, the overall system provides a powerful and fast solution for semantic segmentation. Future research may explore low-rank decompositions to further optimize these layers and extend the model to datasets with larger label sets.

Summary updated

BibTeX
@inproceedings{liu2015semantic,
  author = {Ziwei Liu and Xiaoxiao Li and Ping Luo and Chen Change Loy and Xiaoou Tang},
  title = {{Semantic Image Segmentation via Deep Parsing Network}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2015},
  doi = {10.1109/iccv.2015.162},
}
Figure