Efficient image categorization with sparse Fisher vector

Xiankai Lu, Zheng Fang, Tao Xu, Haiting Zhang, Hongya Tuo

TL;DR

This paper introduces the Sparse Fisher Vector (SFV), a more efficient version of the standard Fisher Vector (FV) representation used in image categorization. By incorporating a "locality strategy"—where only the most relevant visual "words" are considered for each local feature—the authors achieve a 5x speedup in feature encoding while maintaining the high classification accuracy of the original method.

What Problem Does This Paper Address?

In computer vision, the Fisher Vector (FV) is a powerful way to represent images by encoding how local descriptors (like SIFT) deviate from a global probabilistic model (usually a Gaussian Mixture Model, or GMM). While FV is highly accurate, it has two major drawbacks:

  1. Computational Cost: Encoding every local descriptor against every cluster in the GMM is slow.
  2. Density: The resulting vectors are high-dimensional and dense, making them cumbersome for large-scale retrieval or detection tasks.

The authors aim to "sparsify" this process. They want a method that is as discriminative as FV but significantly faster and more efficient by ignoring "unreliable" long-distance relationships between features and visual clusters.

Methods

The core innovation is the Sparse Fisher Vector (SFV), which combines the theoretical framework of Generalized Max Pooling (GMP) with a locality constraint.

  • Locality Strategy: Inspired by techniques like Locality-constrained Linear Coding (LLC), the authors argue that a local descriptor should only be encoded relative to its $k$-nearest clusters (visual words) in the GMM.
  • Mathematical Reformulation: The authors take the standard FV pooling objective and add a regularization term that penalizes contributions from distant clusters. In the limit (as the penalty goes to infinity), this creates an "early cut-off" effect.
  • Dual Formulation: By solving the problem in its "dual" form, they derive an analytical solution where the weights for most clusters become zero. This reduces the complexity of the second encoding step from $O(MD)$ to $O(kD)$, where $M$ is the number of clusters, $D$ is the feature dimension, and $k$ is a small constant (the authors use $k=5$).

Datasets

The authors evaluated their approach on two classic computer vision benchmarks:

  1. PASCAL VOC 2007: Contains nearly 10,000 images across 20 object classes.
  2. Caltech-101: Consists of 9,144 images across 102 diverse categories (animals, flowers, etc.).

Key Insights and Ideas

  • The "Early Cut-off" Effect: Standard FV assumes every local feature has some (even if tiny) relationship with every cluster. SFV proves that ignoring these distant, "unreliable" relationships doesn't just save time—it actually preserves the consistency of representation for similar local features.
  • Linear Similarity Correspondence: One of the most striking findings is that SFV preserves local similarity better than standard FV. When comparing SIFT features, the similarity between their SFV codes shows a clear linear trend, whereas standard FV codes are much noisier.
  • Coding vs. Pooling: The paper provides a theoretical bridge showing that the "coding" step (how we describe a feature) and the "pooling" step (how we aggregate those descriptions) are deeply linked through the lens of Generalized Max Pooling.

Key Results

  • Speed: On the Caltech-101 dataset with 256 GMM clusters, SFV took 1.98 seconds per image compared to 10.69 seconds for standard FV—a speedup of roughly 5.4x.
  • Accuracy: Despite the massive speedup, accuracy remained nearly identical. For example, on PASCAL VOC 2007 with 256 clusters, FV achieved 58.42% accuracy, while SFV achieved 58.25%.
  • Efficiency vs. BoW: SFV significantly outperformed the traditional Bag-of-Words (BoW) model. At the same feature dimension, SFV was nearly 20% more accurate than BoW on PASCAL VOC.

Limitations and Future Work

  • Parameter Sensitivity: While the authors set $k=5$ as a default, the optimal neighborhood size might vary depending on the complexity of the dataset.
  • Integration with Deep Learning: This paper was published in 2014, just as Convolutional Neural Networks (CNNs) were becoming dominant. The authors suggest that the uniqueness-weighting ideas from GMP could be combined with other feature types in future work, which today would likely involve deep features rather than SIFT.
  • Large-Scale Testing: While Caltech-101 and PASCAL VOC were standard at the time, the authors note that the benefits of SFV would be even more critical for "large-scale" tasks, though they didn't test on massive datasets like ImageNet in this specific paper.

Summary updated

BibTeX
@inproceedings{lu2015efficient,
  author = {Xiankai Lu and Zheng Fang and Tao Xu and Haiting Zhang and Hongya Tuo},
  title = {{Efficient image categorization with sparse Fisher vector}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2015},
  doi = {10.1109/icassp.2015.7178220},
}
Figure