NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Compositional Model Based Fisher Vector Coding for Image Classification

Lingqiao Liu, Peng Wang, Chunhua Shen, Lei Wang, Anton van den Hengel, Chao Wang, Heng Tao Shen

TL;DR

This paper introduces a novel "compositional" approach to Fisher Vector Coding (FVC) for image classification, moving beyond traditional Gaussian Mixture Models (GMMs). By modeling local features as a combination of multiple components, their proposed methods, SCFVC and HSCFVC, significantly improve representation power and achieve state-of-the-art results, especially for high-dimensional features from deep neural networks.

What Problem Does This Paper Address?

The standard Fisher Vector Coding (FVC) method for image classification relies on Gaussian Mixture Models (GMMs) to represent local image features. However, GMMs have limitations: they assume a fixed, small number of "prototypes" (Gaussian means) to characterize features. This becomes problematic with high-dimensional features, such as those extracted from modern deep neural networks (e.g., CNNs), where a few prototypes are insufficient to capture the rich feature distribution. Increasing the number of GMM components to compensate leads to an explosion in the dimensionality of the final image representation, making it computationally intractable. This paper addresses this by proposing a more flexible compositional generative model for local features that can better handle high-dimensional data and enhance representational power.

Methods

The core innovation is a compositional generative model for local features. Instead of assuming a feature is drawn from one of a few fixed prototypes (like in GMMs), this model assumes the feature's mean vector is a linear combination of multiple "key components" or bases. The weights for this combination are latent variables. This allows for a much richer and more adaptive representation.

Two specific approaches are proposed:

  1. Sparse Coding-based Fisher Vector Coding (SCFVC): This approach models the combination weights as sparse, drawing from a Laplace distribution. This aligns with the idea that visual features can often be represented by sparse combinations of bases. The generative process is $x \sim \mathcal{N}(B u, \Sigma)$, where $u$ is drawn from a Laplace distribution and $B$ is a matrix of bases.
  2. Hybrid Sparse Coding-based Fisher Vector Coding (HSCFVC): This method extends SCFVC by further decomposing a local feature into a discriminative part and a residual part ($x = x_d + x_r$). The discriminative part is guided by a pre-trained supervised coding method (e.g., CNN activations), aiming to capture class-specific information. The residual part captures remaining information. This decomposition is achieved by using separate bases for each part ($B_d$ and $B_r$) and specific distributions for their combination weights ($u_d$ and $u_r$). The generative process is $x \sim \mathcal{N}(B_d u_d + B_r u_r, \Sigma)$, with $u_d$ influenced by a supervised code $c$ and $u_r$ drawn from a Laplace distribution.

Both methods derive their Fisher vectors by calculating the gradient of the log-likelihood of these compositional models with respect to the model parameters. Efficient inference and learning are achieved using approximations related to sparse coding, particularly a matching pursuit algorithm.

Datasets

The paper evaluates their methods on three standard image classification benchmarks:

  • Caltech-UCSD Birds-200-2011 (Birds-200): A fine-grained image classification dataset.
  • MIT indoor scene-67 (MIT-67): A scene classification dataset.
  • Pascal VOC 2007 (Pascal-07): An object recognition dataset.

No new datasets were introduced.

Key Insights and Ideas

  • Compositionality is Key for High-Dimensional Features: The core insight is that high-dimensional features (like CNN activations) are not well-modeled by simple prototypes. Instead, they represent complex patterns that are better understood as compositions of simpler elements.
  • Sparse Coding as a Foundation: The SCFVC approach leverages the success of sparse coding in representing signals as linear combinations of bases, showing its applicability within the FVC framework.
  • Discriminative vs. Residual Parts: The HSCFVC's decomposition into discriminative and residual parts is a powerful idea. It allows the model to explicitly focus on class-distinguishing features while still retaining general information, leading to improved robustness and accuracy.
  • Supervised Guidance for Unsupervised Methods: Using a pre-trained supervised method (like CNN features) to guide the decomposition in HSCFVC bridges the gap between supervised and unsupervised learning, enhancing the performance of the FVC framework.
  • Flexibility in Basis Learning: The compositional approach allows for learning a richer set of "prototypes" (through combinations of bases) than fixed GMM means, leading to better modeling of complex feature distributions.

Key Results

  • Superiority over GMM-FVC: Both SCFVC and HSCFVC consistently outperform traditional GMM-based FVC across all tested datasets, often by a significant margin (e.g., ~10% on Birds-200).
  • State-of-the-Art Performance: HSCFVC achieves state-of-the-art or competitive results on the evaluated datasets, demonstrating its effectiveness. For instance, on Birds-200, HSCFVC achieves 80.8% accuracy, outperforming GMM-FVC (70.1%) and even its guiding supervised coding method (SupC, 69.5%).
  • Handling High-Dimensional Features: The paper shows that SCFVC is particularly well-suited for high-dimensional local features, where GMM-FVC performance degrades or plateaus.
  • Benefit of Decomposition: HSCFVC consistently outperforms SCFVC, highlighting the advantage of the discriminative-residual part decomposition.
  • Robustness to Hyperparameters: The performance of the proposed methods is shown to be relatively robust to the number of bases used.

Limitations and Future Work

  • Approximation: The paper acknowledges that the approximations made for computational tractability mean the resulting descriptors are "Fisher vector-like" rather than exact Fisher kernels.
  • Computational Cost: While efficient approximations are used, the methods can still be computationally intensive, especially for very large datasets or high-dimensional features. The paper mentions using matching pursuit for optimization.
  • Hyperparameter Tuning: While robust, the methods still involve hyperparameters (e.g., $\lambda$ for trade-off, sparsity parameters $k_1, k_2$) that require careful tuning, often via cross-validation.
  • Future Work: The authors suggest that their methods can be readily improved by incorporating techniques like fine-tuning the pre-trained CNN model, which they did not do in their experiments but note has been used by other state-of-the-art methods. They also mention that the framework can accommodate other supervised coding methods.

Summary updated

BibTeX
@article{liu2017compositional,
  author = {Lingqiao Liu and Peng Wang and Chunhua Shen and Lei Wang and Anton van den Hengel and Chao Wang and Heng Tao Shen},
  title = {{Compositional Model Based Fisher Vector Coding for Image Classification}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2017},
  doi = {10.1109/tpami.2017.2651061},
}
Figure