Image Classification by Hierarchical Spatial Pooling with Partial Least Squares Analysis

Jun Zhu, Weijia Zou, Xiaokang Yang, Rui Zhang, Quan Zhou, Wenjun ZhangBMVC 2012

TL;DR

This paper introduces a novel hierarchical spatial pooling method (HRD) that captures richer spatial statistics than traditional spatial pyramids for image classification. By leveraging a compositional ROI dictionary and an efficient hierarchical pooling algorithm, combined with Partial Least Squares (PLS) for dimensionality reduction, the method achieves superior classification performance on benchmark datasets.

What Problem Does This Paper Address?

Image classification often relies on representing images by pooling local features over predefined regions of interest (ROIs). The dominant approach, the spatial pyramid, uses a rigid, fixed grid structure. While effective, this rigidity can limit the ability to capture complex spatial relationships and may not adapt well to the diverse spatial configurations of objects across different image categories. This paper addresses the limitation of rigid spatial representations by proposing a more flexible, hierarchical approach that can better exploit the compositional nature of visual scenes.

Methods

The core of this work lies in two main innovations:

  • Hierarchical ROI Dictionary (HRD): Instead of a fixed grid, the authors construct an HRD based on the tangram model. This dictionary is built recursively from primitive shapes (tans) and their compositions, forming a deep hierarchy of ROIs. This allows for more flexible and adaptive spatial layouts, capturing richer spatial statistics by considering a wider variety of shapes, locations, and scales. The HRD is organized using an And-Or graph (AOG), which facilitates an efficient hierarchical pooling algorithm.
  • Partial Least Squares (PLS) for Dimensionality Reduction: The HRD, while rich in information, can lead to a high-dimensional feature representation due to the over-completeness and compositionality of ROIs. To address this, the authors employ PLS analysis. PLS is used to learn a compact and discriminative image-level representation by capturing the statistical relationship between pooled features and class labels. Crucially, PLS is applied independently for each visual word, allowing for class-specific discriminative information to be preserved.

The overall framework involves:

  1. Feature Extraction: Dense SIFT features are extracted from image patches.
  2. Coding: Local features are encoded into code vectors using Locality-Constrained Linear Coding (LLC).
  3. Hierarchical Spatial Pooling: The HRD and its associated AOG are used to efficiently pool the local codes into an image-level representation.
  4. PLS Analysis: PLS is applied to the pooled features for dimensionality reduction and learning a final discriminative representation.

Datasets

The proposed method is evaluated on three standard image classification benchmarks:

  • Caltech-101: A dataset with 102 object categories.
  • Caltech-256: An extension of Caltech-101 with more intra-class variation and wider object location distribution, featuring 257 categories.
  • Scene-15: A dataset for scene classification, comprising 15 outdoor and indoor scene categories.

No new datasets were introduced in this paper.

Key Insights and Ideas

  • Compositionality is Key: The paper highlights that exploiting the compositional nature of ROIs, as enabled by the HRD and AOG, is crucial for building richer spatial representations. This contrasts with the independent treatment of regions in simpler models.
  • Hierarchy Matters: A hierarchical representation of spatial information, as opposed to a flat grid, allows for more nuanced and adaptive spatial modeling, leading to improved classification performance.
  • PLS for Discriminative Reduction: PLS proves effective not only for dimensionality reduction but also for learning discriminative features by explicitly considering class labels, especially when applied per visual word.
  • Efficiency through Recursion: The hierarchical pooling algorithm leverages the AOG structure to propagate pooled features bottom-up, significantly reducing computational cost compared to naive pooling.

Key Results

  • Superior Performance: The proposed HRD method consistently outperforms the baseline spatial pyramid method on all three benchmark datasets (Caltech-101, Caltech-256, and Scene-15).
  • Caltech-101: Achieved 74.2% accuracy with single-scale features and 77.7% with multi-scale features, outperforming the baseline (70.9% and 74.2% respectively). It also showed a 4.3% gain over the LLC paper [20] and a 2.4% gain over [10].
  • Caltech-256: Demonstrated performance improvements of 3.3% and 3.1% for single and multi-scale features, respectively, over the baseline.
  • Scene-15: Showed better performance than the spatial pyramid baseline.
  • Efficiency: The hierarchical pooling algorithm is significantly faster than naive pooling, achieving speedups of at least 10 times and exhibiting slower runtime growth with HRD complexity.
  • Parameter Sensitivity: Performance saturates around 7x7 granularity for HRD and 20 score vectors for PLS, indicating effective learning of discriminative information.

Limitations and Future Work

  • Parameter Tuning: While performance saturates, the optimal granularity of the HRD and the number of PLS components (Q) still require tuning for best results.
  • Computational Cost: Although the hierarchical pooling is efficient, the construction of the HRD itself and the initial feature extraction and coding steps can still be computationally intensive.
  • Future Work: The paper implicitly suggests exploring even more complex HRD structures or different compositional rules. Further investigation into adaptive HRD construction based on image content could also be a promising direction.

Summary updated

BibTeX
@inproceedings{zhu2012image,
  author = {Jun Zhu and Weijia Zou and Xiaokang Yang and Rui Zhang and Quan Zhou and Wenjun Zhang},
  title = {{Image Classification by Hierarchical Spatial Pooling with Partial Least Squares Analysis}},
  booktitle = {BMVC},
  year = {2012},
  doi = {10.5244/c.26.102},
}
Figure