Discriminative Training of Deep Fully-connected Continuous CRF with Task-specific Loss

Fayao Liu, Guosheng Lin, Chunhua Shen

Introduction

Pixel-level computer vision tasks, such as semantic segmentation and depth estimation, necessitate a balance between local accuracy and global structural consistency. While Conditional Random Fields (CRFs) are the standard tool for structured prediction, traditional discrete CRFs are computationally intensive and often rely on approximate inference methods like mean-field iteration. Furthermore, standard Maximum Likelihood Estimation (MLE) training often fails to align with task-specific performance metrics. This paper introduces a fully-connected deep continuous CRF framework that addresses these limitations through end-to-end learning and task-specific loss functions.

Methodology

The proposed architecture utilizes deep Convolutional Neural Networks (CNNs) to learn both unary and pairwise potentials. By formulating the CRF in a continuous space, the Maximum a Posteriori (MAP) inference process is simplified into a closed-form solution: $\hat{y} = A^{-1}z$. This approach eliminates the need for iterative inference, facilitating seamless integration into deep learning pipelines.

The prediction framework for semantic labeling, illustrating the integration of unary and pairwise networks for final prediction.

A critical component of this methodology is the shift from MLE to task-specific loss functions. For discrete tasks like semantic labeling, the authors employ a softmax classification loss. For continuous tasks like depth estimation, they utilize Turkey’s biweight loss, which provides robustness against outliers and sensor noise.

Experiments and Results

The model was evaluated on several benchmarks, including NYU v2 (semantic labeling and depth), MSRC-21, and KITTI.

Semantic Labeling Performance

On the NYU v2 4-class task, the model achieved a pixel accuracy of 82.5%, surpassing methods that utilize auxiliary information like surface normals. A key finding is the efficacy of the task-specific loss. As shown in the comparison between softmax-loss and traditional log-loss, the performance gap widens as the number of classes increases, demonstrating that direct optimization for the target metric is superior to general probability distribution fitting.

Comparison of Softmax-loss vs. Log-loss performance across different class counts, showing the advantage of task-specific optimization.

Depth Estimation

In depth estimation tasks on the KITTI dataset, the framework achieved a root mean square (RMS) error of 6.427. The use of robust loss functions proved essential in handling the noisy ground-truth data typical of outdoor autonomous driving environments.

Discussion and Conclusion

This work demonstrates that continuous CRFs, when paired with discriminative training and task-specific losses, are highly effective for both regression and classification tasks. The closed-form inference provides a significant speed advantage over discrete models. While the current implementation relies on specific Gaussian kernel structures for pairwise similarities, the framework opens new avenues for applying structured prediction to diverse vision problems such as optical flow and pose estimation.

Summary updated

BibTeX
@article{liu2017discriminative,
  author = {Fayao Liu and Guosheng Lin and Chunhua Shen},
  title = {{Discriminative Training of Deep Fully-connected Continuous CRF with Task-specific Loss}},
  journal = {IEEE Trans. Image Process.},
  year = {2017},
  doi = {10.1109/tip.2017.2675166},
}
Figure