Source-linked AI summary

Unsupervised Discovery of Mid-Level Discriminative Patches

Saurabh Singh, Abhinav Gupta, Alexei A. Efros

arXiv:1205.3137v2cs.CVcs.AIcs.LG

TL;DR

The paper asks how to obtain visual primitives that are frequent enough to represent the world yet discriminative enough to distinguish it without semantic labels. It discovers mid-level patches through unsupervised discriminative clustering with iterative classifier training and cross-validation. The resulting representation shows improved purity and performance over visual-word features, including 49.4% on MIT Indoor-67 when combined with another method.

  • Problem

    The paper seeks visual primitives that are representative and discriminative without requiring the substantial semantic labels used by high-level detectors.

  • Method

    The method alternates clustering image patches with training linear SVMs, using cross-validation at each step to prevent overfitting.

  • Results

    The approach improves purity and performance over visual-word features and reaches 49.4% on MIT Indoor-67 when combined with the best-performing comparison approach.

  • Takeaways & Limitations

    Discriminative patches can serve as an unsupervised mid-level representation and as visual words for supervised image classification.

  • Takeaways & Limitations

    Evaluation is difficult because the discovered patches are not intended to correspond directly to semantic objects, making object-class annotations an imperfect metric.

Abstract

from arXiv · show

The goal of this paper is to discover a set of discriminative patches which can serve as a fully unsupervised mid-level visual representation. The desired patches need to satisfy two requirements: 1) to be representative, they need to occur frequently enough in the visual world; 2) to be discriminative, they need to be different enough from the rest of the visual world. The patches could correspond to parts, objects, "visual phrases", etc. but are not restricted to be any one of them. We pose this as an unsupervised discriminative clustering problem on a huge dataset of image patches. We use an iterative procedure which alternates between clustering and training discriminative classifiers, while applying careful cross-validation at each step to prevent overfitting. The paper experimentally demonstrates the effectiveness of discriminative patches as an unsupervised mid-level visual representation, suggesting that it could be used in place of visual words for many tasks. Furthermore, discriminative patches can also be used in a supervised regime, such as scene classification, where they demonstrate state-of-the-art performance on the MIT Indoor-67 dataset.

1 Introduction

The paper argues that image patches are a useful intermediate visual primitive and introduces fully unsupervised mid-level discriminative patches to improve upon low-level visual words and label-dependent semantic features.

  • Motivation: Image patches occupy a practical middle ground between uninformative pixels and data-hungry whole-image primitives.Pixels generally fire too often, while whole-image representations require training data for many spatial object configurations.
  • Motivation: High-level semantic detectors require substantial labels and may still be visually nondiscriminative, as illustrated by plain walls.The paper cites object, part, attribute, visual-phrase, and stuff detectors as examples of such top-down features.
  • Contribution: The proposed patches adapt to real-world appearance distributions without requiring semantic grounding and may represent parts, objects, or visual phrases.They are defined by representative and discriminative behavior rather than by a fixed semantic category.
  • Contribution: The method discovers patches from unlabeled images by alternating clustering with linear-SVM training and cross-validation to prevent overfitting.This formulates discovery as unsupervised discriminative clustering over a large dataset of image patches.
  • Prior Work: Unlike many visual words, which often encode simple bars and corners, discriminative patches aim to capture more meaningful common visual units.The visual-word approach clusters SIFT key-point detections, but the paper reports that many resulting units are closer to visual phonemes or letters.
  • Prior Work: The approach is motivated by representative yet discriminative regions and differs from poselets because it requires no supervision.Poselets use image-, bounding-box-, and part-level labels, making direct comparison inappropriate according to the paper.

2 Discovering Discriminative Patches

The method discovers mid-level patches by combining frequent clustering with discrimination against a large natural-world patch set. Iterative cross-validated detection refines clusters, ranks them by purity and discriminativeness, and yields visually consistent patches spanning parts, objects, and object regions.

  • Challenge: The enormous multiscale patch space makes selecting a relatively small set of representative patches difficult.A single image can generate tens of thousands of HOG patches.
  • Challenge: K-means supplies frequent initial groups, but low-level similarity alone produces poor mid-level clusters.The paper identifies this failure in its initial clustering results.
  • Iterative discovery: Each cluster becomes a linear-SVM detector trained against patches from the natural-world dataset N, enforcing discrimination beyond the discovery dataset.This reframes discriminative clustering as detection against a broad visual-world background.
  • Iterative discovery: Cross-validation splits D and N into disjoint halves, alternates classifier training with reassignment of top detections, and prunes clusters smaller than three patches.Initialization uses multiscale HOG features, random patch sampling, and k-means before iterative updates.
  • Ranking: Discriminativeness is the ratio of firings on D to firings on D ∪ N, while cluster-member classifier confidence approximates purity; their weighted sum ranks clusters.The ranking favors patches that occur in the discovery set but rarely in the natural world.
  • Ranking: Top-ranked clusters show strong visual consistency and can represent object parts, whole objects, or discriminative object portions.Novel-image visualization uses high-scoring detector responses averaged with score weighting.

3 Discovering “Doublets”

Doublets use spatial co-occurrence between discriminative patches to clean heterogeneous clusters and form more discriminative mid-level features. They are discovered from high-quality root patches, ranked by spatial consistency on validation images, and can capture intuitive relationships.

  • Motivation: Low-purity clusters can contain multiple concepts because one classifier generalizes to both simultaneously.Such clusters may fail to reach the top ranking despite containing promising patches.
  • Cluster cleanup: Doublets clean these clusters by coupling a heterogeneous patch with a high-quality patch whose firing pattern distinguishes the concepts.The paper uses second-order spatial co-occurrence relationships for this cleanup.
  • Discovery and ranking: For each high-quality root, candidate patch pairs are selected by correlated relative spatial configurations and ranked on an unlabeled validation set.A doublet ranks highly when joint detections preserve training-set spatial consistency.
  • Discovery and ranking: The resulting highly ranked doublets exhibit intuitive spatial relationships and can themselves serve as discriminative mid-level features.The paper notes that the construction could be generalized to grouplets.

4 Quantitative Evaluation

The evaluation compares discriminative patches with established and intermediate baselines using purity, coverage, visual purity, and supervised classification. Results show improved clustering purity with limited coverage loss and strong MIT Indoor-67 performance, although the unsupervised evaluation uses semantic labels as a proxy for visual similarity.

  • Unsupervised discovery evaluation: Evaluation uses PASCAL VOC 2007 annotations to measure purity and coverage, while acknowledging that semantic labels are only a surrogate for visual similarity.Purity is based on majority semantic-category membership; coverage counts images on which a cluster fires.
  • Unsupervised discovery evaluation: Our approach substantially increases purity without sacrificing much coverage relative to Visual Words, Russell et al., and intermediate baselines.Figure 7 reports cumulative purity and coverage as clusters are added in decreasing purity order, using area-under-the-curve values.
  • Unsupervised discovery evaluation: Each algorithmic step improves purity, with cross-validation producing a substantial gain over standard training.The comparison includes HOG K-Means, Initial Clustering, and No Cross-Validation variants.
  • Unsupervised discovery evaluation: Human evaluation of the top 30 clusters finds 73% average visual purity across their top ten validation-set firings.This perceptual measure addresses the mismatch between semantic equivalence and visual similarity.
  • Supervised image classification: On supervised image classification, discriminative patches reach 0.65 AP versus 0.54 AP for standard visual words, rising slightly to 0.66 AP with top-ranked doublets.The metric is Average Precision.
  • Supervised scene classification: On MIT Indoor-67, top 210 category-specific patches are spatially pooled; the method alone outperforms tested alternatives, and combination with reaches 49.4%.The paper identifies 49.4% as, to its knowledge, the best performance on this dataset.
Loading 1205.3137v2…