Learning Partial Correlation based Deep Visual Representation for Image Classification

Saimunur Rahman, Piotr Koniusz, Lei Wang, Luping Zhou, Peyman Moghadam, Changming Sun

Abstract

Covariance pooling is a widely used technique for capturing second-order statistics in deep neural networks. However, standard covariance is susceptible to confounding effects where indirect relationships between feature channels are misinterpreted as direct correlations. We introduce iSICE (Iterative Sparse Inverse Covariance Estimation), a novel differentiable layer that estimates the precision matrix to extract partial correlations. By utilizing a GPU-optimized iterative solver with sparsity priors, iSICE effectively "regresses out" confounding variables, leading to more robust visual signatures. Our method demonstrates superior performance across multiple benchmarks, including fine-grained visual categorization and scene classification.

Introduction: The Confounding Effect in Covariance Pooling

In modern computer vision, covariance pooling is a popular technique for capturing second-order statistics—essentially how different feature channels correlate with one another. However, standard covariance has a major flaw: the confounding effect.

Imagine two feature channels, $A$ and $B$, that both happen to be strongly influenced by a third channel, $C$. A standard covariance matrix will show $A$ and $B$ are highly correlated, even if they have no direct relationship. In statistics, this is addressed using partial correlation, which measures the relationship between two variables while controlling for the influence of others. The mathematical equivalent of finding partial correlations is calculating the inverse covariance (precision) matrix.

Conceptual overview of partial correlation and the confounding effect, illustrating how the precision matrix isolates direct relationships.

Methodology: The iSICE Layer

While calculating the precision matrix is conceptually simple, doing so inside a deep neural network is computationally difficult. Traditional Sparse Inverse Covariance Estimation (SICE) optimization is slow and non-differentiable. The authors propose iSICE (Iterative Sparse Inverse Covariance Estimation), a structured layer that integrates the SICE optimization directly into the CNN's computation graph.

The iSICE pipeline: feature maps are reshaped to compute covariance, followed by iterative precision matrix estimation and final classification.

Key Components of iSICE

  1. Iterative Optimization: The layer uses a fast, GPU-friendly iterative method based on Newton-Schulz iterations for matrix inversion and Projected Gradient Descent (PGD) to handle sparsity constraints.
  2. Differentiability: Composed of standard matrix operations, the layer is fully differentiable, allowing the backbone CNN to learn features optimized specifically for partial correlation analysis.
  3. Sparsity Prior: iSICE imposes an $\ell_1$ penalty to encourage a sparse precision matrix. This acts as a regularizer, preventing overfitting in "small sample" scenarios where channel counts are high relative to spatial resolution.
  4. Adaptive Modulator: A small sub-network learns to adjust the sparsity penalty ($\lambda$) and learning rate ($\eta$) dynamically, ensuring stable optimization across different images.

Experimental Results

The authors evaluated iSICE across a wide range of benchmarks, including MIT Indoor (scenes), Stanford Cars, CUB-200-2011 (birds), and the large-scale iNaturalist dataset.

  • Superior Accuracy: iSICE consistently outperformed standard covariance methods. For instance, on Stanford Cars, iSICE achieved 94.0% accuracy, compared to 91.2% for the iSQRT-COV baseline.
  • Efficiency: Despite solving an optimization problem per image, iSICE is roughly 3x faster than traditional SICE solvers (like ADMM) and is computationally feasible for modern training pipelines.
  • Robustness: The method showed significant gains on the iNaturalist dataset, which is characterized by extreme class imbalance and fine-grained categories.
  • Attention-like Behavior: Visualizations indicate that iSICE acts as a form of implicit attention, focusing more tightly on discriminative object parts (e.g., wheels or grills) compared to standard pooling.

Conclusion

By shifting from covariance to partial correlation, iSICE provides a more precise visual representation that focuses on direct feature relationships. The end-to-end differentiability allows the backbone network to adapt its feature extraction for precision-based pooling, resulting in state-of-the-art accuracy across diverse visual recognition tasks. Future work may explore scaling these methods to massive channel counts seen in contemporary transformer architectures.

Summary updated

BibTeX
@inproceedings{rahman2023learning,
  author = {Saimunur Rahman and Piotr Koniusz and Lei Wang and Luping Zhou and Peyman Moghadam and Changming Sun},
  title = {{Learning Partial Correlation based Deep Visual Representation for Image Classification}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure