On the Eigenvalues of Global Covariance Pooling for Fine-grained Visual Recognition

Yue Song, Nicu Sebe, Wei Wang
5/26/2022
cs.CVcs.LG

Official code: KingJamesSong/DifferentiableSVD (82 stars, Python, Apache-2.0, PyTorch, last commit 2023-10-20).

Abstract

The Fine-Grained Visual Categorization (FGVC) is challenging because the subtle inter-class variations are difficult to be captured. One notable research line uses the Global Covariance Pooling (GCP) layer to learn powerful representations with second-order statistics, which can effectively model inter-class differences.

Show full abstract

In our previous conference paper, we show that truncating small eigenvalues of the GCP covariance can attain smoother gradient and improve the performance on large-scale benchmarks. However, on fine-grained datasets, truncating the small eigenvalues would make the model fail to converge. This observation contradicts the common assumption that the small eigenvalues merely correspond to the noisy and unimportant information. Consequently, ignoring them should have little influence on the performance. To diagnose this peculiar behavior, we propose two attribution methods whose visualizations demonstrate that the seemingly unimportant small eigenvalues are crucial as they are in charge of extracting the discriminative class-specific features. Inspired by this observation, we propose a network branch dedicated to magnifying the importance of small eigenvalues. Without introducing any additional parameters, this branch simply amplifies the small eigenvalues and achieves state-of-the-art performances of GCP methods on three fine-grained benchmarks. Furthermore, the performance is also competitive against other FGVC approaches on larger datasets. Code is available at \href{https://github.com/KingJamesSong/DifferentiableSVD}{https://github.com/KingJamesSong/DifferentiableSVD}.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

A collection of differentiable SVD methods and ICCV21 "Why Approximate Matrix Square Root Outperforms Accurate SVD in Global Covariance Pooling?"

824Python, ShellJul 23, 20213 years agoApache-2.0
deep-learningdifferentiable-svdend-to-end-svdfine-grained-classificationfine-grained-visual-categorization+8 more

Similar Papers

Cite this paper

@article{song2022eigenvalues,
  title  = {On the Eigenvalues of Global Covariance Pooling for Fine-grained Visual Recognition},
  author = {Yue Song and Nicu Sebe and Wei Wang},
  year   = {2022},
  eprint = {2205.13282},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.13282}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.13282.svg)](https://codeofpaper.com/paper/2205.13282)

Discussion