Batch-efficient EigenDecomposition for Small and Medium Matrices

07/09/2022
by   Yue Song, et al.
0

EigenDecomposition (ED) is at the heart of many computer vision algorithms and applications. One crucial bottleneck limiting its usage is the expensive computation cost, particularly for a mini-batch of matrices in the deep neural networks. In this paper, we propose a QR-based ED method dedicated to the application scenarios of computer vision. Our proposed method performs the ED entirely by batched matrix/vector multiplication, which processes all the matrices simultaneously and thus fully utilizes the power of GPUs. Our technique is based on the explicit QR iterations by Givens rotation with double Wilkinson shifts. With several acceleration techniques, the time complexity of QR iterations is reduced from O(n^5) to O(n^3). The numerical test shows that for small and medium batched matrices (e.g., dim<32) our method can be much faster than the Pytorch SVD function. Experimental results on visual recognition and image generation demonstrate that our methods also achieve competitive performances.

READ FULL TEXT

page 13

page 14

research
06/25/2020

An Analysis of SVD for Deep Rotation Estimation

Symmetric orthogonalization via SVD, and closely related procedures, are...
research
02/13/2020

Cross-Iteration Batch Normalization

A well-known issue of Batch Normalization is its significantly reduced e...
research
06/01/2023

A Mini-Batch Method for Solving Nonlinear PDEs with Gaussian Processes

Gaussian processes (GPs) based methods for solving partial differential ...
research
05/09/2019

Deep Learning Acceleration Techniques for Real Time Mobile Vision Applications

Deep Learning (DL) has become a crucial technology for Artificial Intell...
research
09/05/2021

Efficient computation of matrix-vector products with full observation weighting matrices in data assimilation

Recent studies have demonstrated improved skill in numerical weather pre...
research
04/08/2021

Robust Differentiable SVD

Eigendecomposition of symmetric matrices is at the heart of many compute...

Please sign up or login with your details

Forgot password? Click here to reset