Abstract
The state-of-the-art in semantic segmentation is currently represented by fully convolutional networks (FCNs). However, FCNs use large receptive fields and many pooling layers, both of which cause blurring and low spatial resolution in the deep layers. As a result FCNs tend to produce segmentations that are poorly localized around object boundaries. Prior work has attempted to address this issue in post-processing steps, for example using a color-based CRF on top of the FCN predictions. However, these approaches require additional parameters and low-level features that are difficult to tune and integrate into the original network architecture. Additionally, most CRFs use color-based pixel affinities, which are not well suited for semantic segmentation and lead to spatially disjoint predictions. To overcome these problems, we introduce a Boundary Neural Field (BNF), which is a global energy model integrating FCN predictions with boundary cues. The boundary information is used to enhance semantic segment coherence and to improve object localization. Specifically, we first show that the convolutional filters of semantic FCNs provide good features for boundary detection. We then employ the predicted boundaries to define pairwise potentials in our energy. Finally, we show that our energy decomposes semantic segmentation into multiple binary problems, which can be relaxed for efficient global optimization. We report extensive experiments demonstrating that minimization of our global boundary-based energy yields results superior to prior globalization methods, both quantitatively as well as qualitatively.
Introduction
Fully Convolutional Networks (FCNs) have significantly advanced the field of semantic segmentation. However, they suffer from a fundamental "blurry" problem. Due to the use of multiple pooling layers and large receptive fields designed to capture high-level context, the spatial resolution in deep layers is significantly reduced. This leads to segmentation maps that appear as "blobs" and fail to align accurately with object boundaries.
Traditional solutions involve using Conditional Random Fields (CRFs) as a post-processing step. These typically rely on low-level color affinities, assuming that similar colors imply the same object class. This assumption often breaks down in complex scenes with high color variance or shared colors between different objects. Moreover, CRFs introduce complex, hard-to-tune parameters that are difficult to integrate into end-to-end deep learning architectures.
Methodology: Boundary Neural Fields
To address these limitations, we propose the Boundary Neural Field (BNF). The BNF framework integrates FCN predictions with semantic boundary cues within a global energy model.
The BNF approach consists of three primary stages:
- Semantic Boundary Prediction: We demonstrate that the internal convolutional filters of a standard FCN are excellent features for boundary detection. By learning a linear combination of these feature maps, we can predict "semantic boundaries"—edges indicating a change in object class rather than mere changes in lighting or texture.
- Boundary-Based Pairwise Potentials: These predicted boundaries define pixel affinities. High boundary strength between pixels results in low affinity, while a "clear" path indicates high affinity, ensuring the global optimization respects object geometry.
- Global Inference: We formulate a global energy function balancing FCN class predictions (unaries) with boundary-based affinities (pairwise). By relaxing the integrality constraint and decomposing the multi-class problem into binary ones, we achieve a global optimum via a closed-form solution or efficient solvers like the preconditioned conjugate gradient method.
Experimental Results
The BNF was evaluated on the BSDS500 benchmark for boundary detection and the Semantic Boundaries Dataset (SBD) for segmentation.
Quantitative Performance
In boundary detection, BNF achieved an ODS F-score of 0.788 on BSDS500, surpassing previous state-of-the-art models like HED (0.782). For segmentation on the SBD dataset, BNF outperformed standard FCNs and Dense-CRF models, particularly in PI-IOU (per-image intersection-over-union), which highlights its superior ability to capture fine details and small objects.
Qualitative Improvements
Visually, BNF produces significantly sharper results compared to standard FCNs. While FCNs may allow a segment to "leak" into the background, BNF effectively snaps the segment to the object's actual silhouette.
Conclusion
Boundary Neural Fields provide a robust mechanism for improving the spatial localization of semantic segmentation. By leveraging the "hidden" boundary detection capabilities of FCNs and employing a continuous global energy formulation, BNF achieves state-of-the-art results that are both accurate and visually coherent. Future work will focus on integrating BNF directly into the FCN training process for end-to-end learning.
Summary updated