Task-Driven Feature Pooling for Image Classification

Guo-Sen Xie, Xu-Yao Zhang, Xiangbo Shu, Shuicheng Yan, Cheng-Lin Liu

Introduction

In the standard computer vision pipeline—whether using traditional Bag-of-Words (BoW) or modern Convolutional Neural Networks (CNNs)—pooling is a critical step. It aggregates local descriptors into a single global vector to provide spatial invariance. However, most common pooling strategies are "blind" to the actual task. Average pooling treats all regions as equally important, while max pooling only cares about the strongest signal. Neither considers the image labels during the pooling process.

This paper introduces Task-Driven Pooling (TDP), a novel approach that moves away from heuristic, unsupervised pooling methods in favor of a discriminative model. By jointly optimizing the pooled representation and the classifier, TDP learns to extract features specifically tuned to maximize classification accuracy.

The Need for Task-Aware Pooling

Heuristic pooling often results in representations that fail to distinguish between visually similar but semantically different classes, such as a Llama versus a Leopard. The authors aim to "bridge the gap" by making pooling a supervised, task-aware operation.

Comparison of pooling strategies: (a) raw data, (b) average pooling, (c) max pooling, and (d) TDP pooling, which achieves better class separation.

As illustrated in the figure above, while average and max pooling may cluster different classes closely in the feature space, TDP pooling effectively separates them by leveraging task-specific information during the aggregation process.

Methodology: Task-Driven Pooling (TDP)

The core contribution is the TDP model, formulated as a joint optimization problem that integrates feature extraction and classification.

The Task-Driven Pooling (TDP) pipeline integrates feature extraction and classification into a joint optimization framework.

Key Components of TDP

  1. Discriminative Learning: Instead of a fixed function, TDP learns a representation that minimizes a Least Square Regression (LSR) classification error.
  2. Similarity Equalization: A regularization term forces the learned representation to have a consistent similarity with all local descriptors in the image, ensuring the pooled vector summarizes the diverse information present in the feature map.
  3. Alternating Optimization: The authors utilize closed-form solutions for both representation learning and classifier training, iterating between the two until convergence (typically within 10 iterations).
  4. Self-Training for Inference: For test images without labels, a self-training mechanism generates an initial prediction as a "pseudo-label" to refine the pooling representation and boost final accuracy.
  5. Multi-Task Extension (mTDP): To handle features from different scales, the model can share information across scales while learning scale-specific classifiers.

Experimental Evaluation

The model was evaluated on three diverse benchmarks:

  • Flower-17: A fine-grained dataset where TDP achieved 94.80% accuracy using VGG-19 features.
  • MIT Indoor-67: A scene recognition dataset where global layout is paramount. TDP reached 75.61% accuracy, with its 512-dimension representation sometimes outperforming 4096-dimension standard features.
  • Caltech-101: A classic object recognition dataset where TDP achieved 93.68% accuracy.

Key Insights

  • Discriminative Focus: Visualization shows that TDP automatically focuses on discriminative regions (like flower petals) while ignoring background noise.
  • Global vs. Local: TDP is particularly effective for scene and fine-grained recognition where "global layout" matters more than isolated object parts.
  • Efficiency: Despite being an iterative process, the closed-form solutions allow for rapid training and testing, taking less than 10 minutes on large datasets like Indoor-67.

Conclusion

TDP represents a significant shift from unsupervised heuristics to task-driven feature aggregation. While the current implementation focuses on CNN feature maps and adds some complexity to inference via self-training, it consistently outperforms standard average, max, and generalized max pooling across various image classification tasks.

Summary updated

BibTeX
@inproceedings{xie2015task,
  author = {Guo-Sen Xie and Xu-Yao Zhang and Xiangbo Shu and Shuicheng Yan and Cheng-Lin Liu},
  title = {{Task-Driven Feature Pooling for Image Classification}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2015},
  doi = {10.1109/iccv.2015.140},
}
Figure