Object Boundary Detection and Classification with Image-level Labels

Jing Yu Koh, Wojciech Samek, Klaus‐Robert Müller, Alexander Binder · DOI

Abstract

Semantic boundary and edge detection aims at simultaneously detecting object edge pixels in images and assigning class labels to them. Systematic training of predictors for this task requires the labeling of edges in images which is a particularly tedious task. We propose a novel strategy for solving this task, when pixel-level annotations are not available, performing it in an almost zero-shot manner by relying on conventional whole image neural net classifiers that were trained using large bounding boxes. Our method performs the following two steps at test time. Firstly it predicts the class labels by applying the trained whole image network to the test images. Secondly, it computes pixel-wise scores from the obtained predictions by applying backprop gradients as well as recent visualization algorithms such as deconvolution and layer-wise relevance propagation. We show that high pixel-wise scores are indicative for the location of semantic boundaries, which suggests that the semantic boundary problem can be approached without using edge labels during the training phase.

Introduction

Semantic Boundary Detection (SBD) is a dual challenge: identifying the exact pixels that form an object's edge and correctly classifying the object. The primary bottleneck in this field is data acquisition; labeling every edge pixel in thousands of images is an incredibly tedious and expensive task. Consequently, high-quality SBD datasets are scarce, and most state-of-the-art models rely on "end-to-end" training with fine-grained labels. This research explores whether a neural network can solve a problem more granular than the one it was trained for—specifically, can a model trained only on bounding boxes "zero-shot" its way into detecting exact boundaries?

Methodology

The proposed strategy occurs entirely at test time and consists of two main steps:

  1. Classification: A standard neural network (e.g., GoogleNet or a Pascal VOC Multilabel Classifier), trained only on image-level or bounding box labels, predicts the classes present in a test image.
  2. Pixel-wise Attribution: Visualization algorithms are used to determine which pixels contributed most to the classification decision. Three techniques are compared: Gradients, Deconvolution, and Layer-wise Relevance Propagation (LRP).
Effect of subpixel aggregation methods on Gradient and Deconvolution performance.

A key finding during the attribution phase was that the method of aggregating subpixel scores matters. For Gradient and Deconvolution methods, specific handling of negative scores—which represent pixels that "distract" the model—significantly improved boundary detection quality compared to simple summation.

Experimental Results

The methods were evaluated on the SBD dataset (based on Pascal VOC) using Average Precision (AP) and maximal F-scores (MF).

Comparison of semantic boundary detection performance (AP and MF) across different training levels and attribution methods.

As shown in the results table, LRP (with parameter $\epsilon=1$) achieved the best performance among the zero-shot methods with an AP of 31.4. Remarkably, this "weakly supervised" approach outperformed the InverseDetectors baseline (AP 19.9), which was specifically trained on pixel-level labels. While it did not surpass the state-of-the-art HFL model (AP 54.6) trained on full pixel-level ground truth, the results demonstrate that well-trained classifiers possess significant implicit geometric knowledge.

Discussion and Conclusion

A notable insight is the "discriminative bias": classifiers are trained for efficiency and focus on the most discriminative parts of an object (e.g., a cat's face) while potentially ignoring less distinctive boundaries (e.g., a tail). This leads to "patchy" boundary maps, which is the primary limitation of the current approach.

Despite this, the study proves that explainability techniques like LRP can be repurposed as functional, quantitative tools for tasks beyond simple model "sanity checks." For practitioners where fine-grained data is prohibitively expensive, these methods offer a viable alternative. Future work may involve combining these class-specific heatmaps with unsupervised edge detectors to produce more complete 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