Object Boundary Detection and Classification with Image-Level Labels

Jing Yu Koh, Wojciech Samek, Klaus-Robert Müller, Alexander Binder

TL;DR

This paper demonstrates that we can perform Semantic Boundary Detection (SBD)—identifying and labeling the edges of objects—without ever showing a model a single pixel-level edge label during training. By applying advanced visualization and explainability techniques like Layer-wise Relevance Propagation (LRP) to standard image classifiers, the authors achieve results that outperform previous baselines that actually had access to fine-grained training data.

What Problem Does This Paper Address?

Semantic Boundary Detection (SBD) is a dual challenge: you have to find the exact pixels that form an object's edge and correctly classify what that object is (e.g., "this is the edge of a bicycle").

The primary bottleneck in this field is data. Labeling every edge pixel in thousands of images is an incredibly tedious and expensive task for humans. Consequently, there are very few high-quality SBD datasets. Most state-of-the-art models rely on "end-to-end" training, meaning they require these rare, fine-grained labels to learn. The authors ask a provocative question: Can a neural network solve a problem harder than the one it was trained for? Specifically, can a model trained only to recognize objects in a bounding box "zero-shot" its way into detecting their exact boundaries?

Methods

The authors propose a two-step strategy that occurs entirely at test time:

  1. Classification: They take a standard neural network trained for image classification (using only image-level or bounding box labels) and run it on a test image to predict the classes present.
  2. Pixel-wise Attribution: To find the boundaries, they use visualization algorithms to "look under the hood" of the classifier. They want to see which specific pixels contributed most to the classification decision. They compare three main techniques:
  3. Gradients: Calculating the partial derivative of the output with respect to the input pixels.
  4. Deconvolution: A technique that maps high-level features back down to the pixel space.
  5. Layer-wise Relevance Propagation (LRP): A more principled approach that redistributes the final prediction score back through the network layers until it reaches the input pixels, ensuring a "conservation of relevance."

The core idea is that the pixels most relevant to a classifier are often located on or near the semantic boundaries of the object.

Datasets

  • SBD Dataset: Based on the Pascal VOC dataset, this was used for evaluation.
  • Pascal VOC Multilabel Classifier: The authors used a pre-trained model from the Caffe model zoo, which was trained using bounding box crops from the Pascal VOC dataset.
  • GoogleNet: Used as a secondary model to demonstrate that their findings weren't specific to one architecture.

Key Insights and Ideas

  • Explainability as a Tool, Not Just a Visual: Usually, heatmaps from LRP or Gradients are used just to "sanity check" a model. This paper treats these heatmaps as functional, quantitative predictions for a different task (boundary detection).
  • The "Discriminative" Bias: A fascinating insight is why these methods sometimes miss boundaries. Classifiers are trained to be efficient; they look for the most "discriminative" parts. For a cat, the model might focus heavily on the face and ears, ignoring the boundary of the tail because the tail isn't "cat-like" enough to help with classification.
  • Sign Matters: The authors found that for Gradient and Deconvolution methods, removing negative scores (pixels that "distracted" the model) significantly improved boundary detection quality.
  • Surprising Efficiency: The "weakly supervised" LRP method actually outperformed InverseDetectors, a previous baseline that was specifically trained on pixel-level labels. This suggests that a well-trained classifier "knows" more about geometry than we give it credit for.

Key Results

The authors evaluated their methods using Average Precision (AP) and maximal F-scores (MF):

  • LRP ($\epsilon=1$): Achieved the best performance among the zero-shot methods with an AP of 31.4.
  • Comparison to Baselines: It significantly beat the InverseDetectors baseline (AP 19.9), despite the latter using superior (pixel-level) training labels.
  • The Gap: Unsurprisingly, it did not beat the current state-of-the-art HFL model (AP 54.6), which is purpose-built for the task and trained on full pixel-level ground truth.
  • Perturbation Analysis: Through a "perturbation" experiment (randomly changing pixels and seeing how much the classifier's confidence dropped), they proved that the pixels identified by LRP and Deconvolution are indeed more "important" to the model than the actual ground-truth boundary pixels.

Limitations and Future Work

The main limitation is sparsity. Because classifiers only care about parts of an object that help identify it, the resulting boundary maps can be "patchy." For example, the top of a car might be ignored if the windows and wheels are enough to identify it as a "car."

The authors suggest that these methods are best suited for "practitioner cases" where fine-grained data is too expensive to produce. Future work could involve combining these class-specific heatmaps with unsupervised edge detectors (which find all edges but don't know what they are) to create more complete and accurate semantic boundaries.

Summary updated

BibTeX
@inproceedings{koh2017object,
  author = {Jing Yu Koh and Wojciech Samek and Klaus-Robert Müller and Alexander Binder},
  title = {{Object Boundary Detection and Classification with Image-Level Labels}},
  booktitle = {GCPR},
  year = {2017},
  url = {https://openreview.net/forum?id=7hV4PrlYOd3},
}
Figure