Reconstructive Sparse Code Transfer for Contour Detection and Semantic Labeling

Michael Maire, Stella X. Yu, Pietro Perona

Abstract

This paper presents a novel approach to semantic labeling, such as contour detection and part segmentation, by framing it as a sparse reconstruction problem. By leveraging an unsupervised, multi-layer sparse representation of image patches combined with a task-specific learned transfer function, the proposed method achieves state-of-the-art performance on contour detection without relying on hand-designed features or filters.

Introduction

Traditional computer vision tasks, particularly contour detection, have long depended on "hand-crafted" features—manually designed mathematical recipes for detecting gradients, textures, or shapes. While deep learning has shifted the focus toward learned representations, a common assumption persists that meaningful semantic information is only accessible in the deepest layers of a network.

This research addresses two primary challenges:

  1. Eliminating Human Bias: Developing a high-performance system that learns entirely from raw pixels, bypassing the need for manual feature engineering.
  2. Probing Deep Representations: Investigating the semantic information embedded in intermediate layers and determining if these layers can be "tapped" for precise local predictions.

Methods

The proposed framework consists of two main stages: unsupervised feature learning and supervised reconstructive transfer.

Unsupervised Feature Learning

The system employs Multipath Sparse Coding to learn "dictionaries"—sets of fundamental visual patterns—at multiple scales and patch sizes. This stage is entirely unsupervised, focused on representing image appearance efficiently. By stacking these layers, the model generates a high-dimensional (36,000-D) sparse vector for each pixel, where only a small fraction of entries are active at any given time.

Supervised Reconstructive Transfer

The core innovation lies in the "reconstructive transfer" step. In standard image processing, sparse codes are used to reconstruct original pixels (e.g., for denoising). Here, the authors replace the standard pixel dictionary with a "transfer dictionary" composed of logistic classifiers. Instead of reconstructing the original image, the system "reconstructs" a semantic label map, such as a binary edge map.

Overview of the reconstructive sparse code transfer pipeline, showing the transition from raw image to sparse codes and finally to either image reconstruction or contour detection.

To maintain computational efficiency, the authors utilize Batch Orthogonal Matching Pursuit (BOMP) for encoding and an adaptive Gaussian kernel to aggregate overlapping patch predictions, significantly reducing redundant calculations.

Key Insights

  • Texture Suppression: A single layer of sparse coding often captures edges but is easily confounded by texture (e.g., animal fur). The addition of a second layer allows the network to represent these textures as distinct patterns, enabling it to learn to suppress them—effectively acting as a noise filter for semantic tasks.
  • Task-Agnostic Representations: Since the underlying features are learned without supervision, the same multi-layer network can be applied to diverse tasks. For instance, a network trained on natural landscapes for contour detection can be repurposed for facial part segmentation simply by swapping the final transfer layer.
  • Local Context: The authors demonstrate that a "vertical slice" of the network's layers at a specific pixel provides sufficient context to predict labels for the entire surrounding patch.

Experimental Results

The model was evaluated on the BSDS500 (Berkeley Segmentation Dataset) for contour detection and the LFW (Labeled Faces in the Wild) dataset for facial part segmentation (skin, hair, background).

  • BSDS500 Performance: The model achieved an ODS F-measure of 0.71, matching the performance of the then-gold-standard "global Pb" (gPb) detector. Notably, this was achieved without any hand-designed features, unlike competing methods such as Structured Edges or SCG.
  • LFW Segmentation: The model successfully segmented faces into skin and hair, demonstrating robustness by correctly identifying these features even on secondary subjects in the background.

Conclusion and Future Work

While the reconstructive transfer approach is highly effective locally, the authors suggest that incorporating a "globalization" step (e.g., spectral clustering) could further enhance performance by providing broader image context. Additionally, while the current high-dimensional sparse representations are powerful, they are computationally demanding. Future work may explore more efficient training strategies or scaling the method to complex scene parsing with a larger number of object categories.

Summary updated

BibTeX
@inproceedings{maire2014reconstructive,
  author = {Michael Maire and Stella X. Yu and Pietro Perona},
  title = {{Reconstructive Sparse Code Transfer for Contour Detection and Semantic Labeling}},
  booktitle = {ACCV},
  year = {2014},
  doi = {10.1007/978-3-319-16817-3\_18},
}
Figure