Why Approximate Matrix Square Root Outperforms Accurate SVD in Global Covariance Pooling?

Yue Song, Nicu Sebe, Wei Wang
5/6/2021
cs.CVcs.LG

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

Abstract

Global covariance pooling (GCP) aims at exploiting the second-order statistics of the convolutional feature. Its effectiveness has been demonstrated in boosting the classification performance of Convolutional Neural Networks (CNNs).

Show full abstract

Singular Value Decomposition (SVD) is used in GCP to compute the matrix square root. However, the approximate matrix square root calculated using Newton-Schulz iteration \cite{li2018towards} outperforms the accurate one computed via SVD \cite{li2017second}. We empirically analyze the reason behind the performance gap from the perspectives of data precision and gradient smoothness. Various remedies for computing smooth SVD gradients are investigated. Based on our observation and analyses, a hybrid training protocol is proposed for SVD-based GCP meta-layers such that competitive performances can be achieved against Newton-Schulz iteration. Moreover, we propose a new GCP meta-layer that uses SVD in the forward pass, and Padé Approximants in the backward propagation to compute the gradients. The proposed meta-layer has been integrated into different CNN models and achieves state-of-the-art performances on both large-scale and fine-grained datasets.

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{song2021approximate,
  title  = {Why Approximate Matrix Square Root Outperforms Accurate SVD in Global Covariance Pooling?},
  author = {Yue Song and Nicu Sebe and Wei Wang},
  year   = {2021},
  eprint = {2105.02498},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.02498}
}

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/2105.02498.svg)](https://codeofpaper.com/paper/2105.02498)

Discussion