In the mid-2010s, Deep Convolutional Neural Networks (DCNNs) were already the undisputed kings of image classification. However, they struggled with a more granular task: semantic image segmentation, or assigning a class label to every single pixel in an image. The very features that made DCNNs great at recognizing objects—their ability to ignore small spatial shifts and focus on high-level patterns—made them terrible at pinpointing exact object boundaries.
This 2015 ICLR paper introduces DeepLab, a system that combines the high-level "understanding" of DCNNs with the low-level "precision" of probabilistic graphical models.
TL;DR
DeepLab overcomes the poor localization of DCNNs by combining them with a fully connected Conditional Random Field (CRF). By using "atrous" (dilated) convolutions to maintain spatial resolution and a CRF to sharpen boundaries, the authors achieved state-of-the-art results on the PASCAL VOC 2012 benchmark.
What Problem Does This Paper Address?
The authors identify two main hurdles when applying DCNNs to pixel-level labeling:
- Signal Downsampling: Standard DCNNs use repeated max-pooling and striding to reduce computational load and build abstraction. By the final layer, the original image resolution is often reduced by a factor of 32. This results in "blobby" predictions that lose fine details.
- Spatial Invariance: To recognize an object regardless of its position, DCNNs are designed to be spatially invariant. While great for saying "there is a dog in this image," this invariance makes it difficult to determine exactly where the dog ends and the background begins.
Methods
The DeepLab system consists of two main stages designed to tackle the aforementioned problems:
1. The "Atrous" DCNN
The authors re-purpose the VGG-16 network, converting its fully connected layers into convolutional ones. To combat the resolution loss, they employ the "atrous" (with holes) algorithm (now commonly known as dilated convolution).
- How it works: Instead of standard filters, they use filters with "holes" between weights. This allows the network to increase its receptive field (the area it "sees") without increasing the number of parameters or the amount of computation.
- The Result: They produce a dense feature map at 1/8th the original resolution (instead of 1/32nd), which is then upsampled using simple bilinear interpolation.
2. Fully Connected Conditional Random Field (CRF)
To fix the "fuzzy" boundaries produced by the DCNN, the authors apply a CRF as a post-processing step.
- Standard vs. Fully Connected: Traditional CRFs only look at immediate neighboring pixels, which can lead to over-smoothing. This paper uses a fully connected CRF where every pixel is connected to every other pixel.
- Bilateral Filtering: The CRF uses a Gaussian potential that considers both spatial proximity and color similarity. If two pixels are close together and have similar colors, they are highly likely to share the same label. This allows the model to "snap" the DCNN's rough predictions to the actual edges of objects in the image.
Datasets
The model was evaluated on the PASCAL VOC 2012 semantic segmentation benchmark, which contains 20 foreground object classes and one background class. The authors used the standard training set augmented with extra annotations from the "Semantic Boundaries Dataset" (Hariharan et al.), totaling 10,582 training images.
Key Insights and Ideas
- The Invariance Trade-off: The authors explicitly acknowledge that the invariance properties required for high-level vision tasks are fundamentally at odds with the localization required for low-level tasks like segmentation.
- CRF as a Refiner: The DCNN provides the "unary" terms (the raw probability of a pixel being a certain class), while the CRF provides the "pairwise" terms (the logic of how pixels should relate to their neighbors).
- Efficiency via Wavelets: The "atrous" algorithm, borrowed from the wavelet community, is the key to getting dense predictions without the massive computational overhead of "deconvolutional" layers or shift-and-stitch methods used in earlier research.
Key Results
- Accuracy: DeepLab reached 71.6% Mean IOU (Intersection Over Union) on the PASCAL VOC 2012 test set, setting a new state-of-the-art at the time.
- The CRF Boost: Adding the fully connected CRF provided a significant performance jump—roughly 4% mIOU over the DCNN alone.
- Speed: The DCNN component operates at 8 frames per second on a modern GPU (at the time), while the CRF inference takes about 0.5 seconds per image.
- Qualitative Improvement: Visual results show that while the DCNN alone produces rounded, imprecise shapes, the CRF-refined version captures intricate details like bicycle spokes and thin animal limbs.
Limitations and Future Work
- Piecewise Training: In this version of DeepLab, the DCNN and the CRF are trained separately. The authors noted that an end-to-end trainable system (where the CRF is integrated into the network) would be a logical next step.
- Thin Structures: While much better than previous methods, the system still occasionally struggles with extremely fine or complex structures.
- Multi-scale Limitations: The authors experimented with multi-scale features (attaching MLPs to early layers), but found the gains were less dramatic than those provided by the CRF.
This paper laid the groundwork for the "DeepLab" family of models (v2, v3, and v3+), which remain some of the most influential architectures in computer vision today.
Summary updated