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

Deep Quantization: Encoding Convolutional Activations with Deep Generative Model

Zhaofan Qiu, Ting Yao, Tao Mei

Abstract

Deep convolutional neural networks (CNNs) have proven highly effective for visual recognition, where learning a universal representation from activations of convolutional layers plays a fundamental problem. In this paper, we present Fisher Vector encoding with Variational Auto-Encoder (FV-VAE), a novel deep architecture that quantizes the local activations of convolutional layers in a deep generative model by training them in an end-to-end manner. To incorporate FV encoding strategy into deep generative models, we introduce a Variational Auto-Encoder model, which steers variational inference and learning in a neural network that can be straightforwardly optimized using standard stochastic gradient methods. Different from the FV characterized by conventional generative models (e.g., Gaussian Mixture Models) which parsimoniously fit a discrete mixture model to data distribution, the proposed FV-VAE is more flexible to represent the natural property of data for better generalization. Extensive experiments conducted on UCF101, ActivityNet, and CUB-200-2011 demonstrate superior results, with our proposed FV-VAE achieving a state-of-the-art accuracy of 94.2% on UCF101.

Introduction: The Challenge of Visual Representation

When utilizing Deep Convolutional Neural Networks (CNNs) for visual recognition, researchers typically rely on two types of representations. The first is Global Activations, which utilize the output of a fully-connected layer to provide a holistic view of the image. The second involves Convolutional Activations, which encode a set of local regional features from convolutional layers into a single vector using "quantization" strategies.

While the latter approach is often more robust to translation and rotation, it traditionally suffers from a significant flaw: the quantization step—usually Fisher Vector (FV) encoding based on a Gaussian Mixture Model (GMM)—is a separate, "hand-crafted" process. This means local descriptors are not optimized for the encoding process, and the GMM itself is often too rigid to capture the complex distributions of real-world data. FV-VAE aims to bridge this gap by making the process end-to-end and significantly more flexible.

Comparison of encoding strategies: Global Activations, traditional FV Encoding with GMM, and the proposed FV-VAE Encoding.

Methodology: Fisher Vector with Variational Auto-Encoder (FV-VAE)

The core innovation of this work is the FV-VAE. By replacing the rigid GMM with a Variational Auto-Encoder, the model can leverage neural networks to learn underlying data distributions more effectively.

End-to-End Learning and Loss Functions

The entire pipeline, from convolutional layers to VAE-based quantization, is trained together. The VAE is optimized using a three-part loss function:

  1. Reconstruction Loss: Ensures the VAE can accurately recreate the input descriptors.
  2. Regularization Loss: Keeps the latent space well-behaved via KL divergence.
  3. Classification Loss: A supervised component that ensures the learned representations preserve semantic information relevant to the final task.

FV Extraction via Backpropagation

In a clever theoretical twist, the authors demonstrate that the Fisher Vector of the input descriptors can be computed directly by accumulating the gradient of the VAE's reconstruction loss through standard backpropagation. This allows the "directions" (gradients) that model parameters must move to better fit data to serve as highly descriptive features. To maintain efficiency, the authors shared covariance parameters across descriptors, significantly reducing the parameter count compared to standard implementations.

The FV-VAE framework: (a) Training phase with reconstruction, regularization, and classification losses; (b) Extraction phase showing gradient-based Fisher Vector accumulation.

Experimental Results

The authors evaluated FV-VAE across three major benchmarks, demonstrating its ability to model complex, non-linear manifolds better than traditional methods:

  • UCF101 (Video Action Recognition): The FV-VAE achieved a record-breaking 94.2% accuracy, significantly outperforming standard Fisher Vectors (78.85%) and Bilinear Pooling (81.39%).
  • ActivityNet (Human Activity Understanding): FV-VAE showed a nearly 10% improvement in mean Average Precision (mAP) over standard global activations from VGG-19 and ResNet-152.
  • CUB-200-2011 (Fine-grained Bird Classification): Even without fine-tuning the base CNN, FV-VAE outperformed previous state-of-the-art methods that relied on complex co-segmentation or part-based alignments.

Conclusion and Future Work

FV-VAE represents a significant step forward in deep quantization, proving that deep generative models can replace traditional statistical models for more robust feature encoding. While highly effective, future research may explore deeper auto-encoder architectures, the integration of attention mechanisms to weight informative local descriptors, or the use of alternative generative models like Generative Adversarial Networks (GANs) to further refine the Fisher Vector encoding process.

Summary updated

BibTeX
@inproceedings{qiu2017deep,
  author = {Zhaofan Qiu and Ting Yao and Tao Mei},
  title = {{Deep Quantization: Encoding Convolutional Activations with Deep Generative Model}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  url = {https://openreview.net/forum?id=HyxlcJzuWr},
}
Figure