Robust Differentiable SVD

Wei Wang, Zheng Dang, Yinlin Hu, Pascal Fua, Mathieu Salzmann
4/8/2021
44 citations
cs.CV

Official code: WeiWangTrento/Robust-Differentiable-SVD (79 stars, Python, last commit 2021-04-20).

Abstract

Eigendecomposition of symmetric matrices is at the heart of many computer vision algorithms. However, the derivatives of the eigenvectors tend to be numerically unstable, whether using the SVD to compute them analytically or using the Power Iteration (PI) method to approximate them.

Show full abstract

This instability arises in the presence of eigenvalues that are close to each other. This makes integrating eigendecomposition into deep networks difficult and often results in poor convergence, particularly when dealing with large matrices. While this can be mitigated by partitioning the data into small arbitrary groups, doing so has no theoretical basis and makes it impossible to exploit the full power of eigendecomposition. In previous work, we mitigated this using SVD during the forward pass and PI to compute the gradients during the backward pass. However, the iterative deflation procedure required to compute multiple eigenvectors using PI tends to accumulate errors and yield inaccurate gradients. Here, we show that the Taylor expansion of the SVD gradient is theoretically equivalent to the gradient obtained using PI without relying in practice on an iterative process and thus yields more accurate gradients. We demonstrate the benefits of this increased accuracy for image classification and style transfer.

View on arXivView PDF

Code Implementations(1)

797PythonMar 22, 20215 years ago

Similar Papers

Cite this paper

@article{wang2021robust,
  title  = {Robust Differentiable SVD},
  author = {Wei Wang and Zheng Dang and Yinlin Hu and Pascal Fua and Mathieu Salzmann},
  year   = {2021},
  eprint = {2104.03821},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.03821}
}

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

Discussion