Skip to main content
QUICK REVIEW

[Paper Review] Backpropagation-Friendly Eigendecomposition

Wei Wang, Zheng Dang|arXiv (Cornell University)|Jun 21, 2019
Algorithms and Data CompressionComputer Science21 references16 citations
TL;DR

This paper proposes a numerically stable, differentiable eigendecomposition method for deep learning that combines SVD in the forward pass with Power Iteration for gradient computation in the backward pass. It enables robust ZCA whitening and introduces PCA denoising as a novel normalization layer, outperforming batch normalization and standard eigendecomposition in stability and accuracy on CIFAR-10.

ABSTRACT

Eigendecomposition (ED) is widely used in deep networks. However, the backpropagation of its results tends to be numerically unstable, whether using ED directly or approximating it with the Power Iteration method, particularly when dealing with large matrices. While this can be mitigated by partitioning the data in small and arbitrary groups, doing so has no theoretical basis and makes its impossible to exploit the power of ED to the full. In this paper, we introduce a numerically stable and differentiable approach to leveraging eigenvectors in deep networks. It can handle large matrices without requiring to split them. We demonstrate the better robustness of our approach over standard ED and PI for ZCA whitening, an alternative to batch normalization, and for PCA denoising, which we introduce as a new normalization strategy for deep networks, aiming to further denoise the network's features.

Motivation & Objective

  • Address the numerical instability of backpropagating through eigendecomposition in deep networks, especially when eigenvalues are close or matrices are large.
  • Overcome the limitations of standard SVD and Power Iteration methods, which suffer from gradient explosion or sensitivity to initialization and iteration count.
  • Enable the use of full-rank eigendecomposition without arbitrary channel partitioning, preserving model capacity and theoretical consistency.
  • Introduce PCA denoising as a new normalization strategy to remove irrelevant feature noise and improve classification performance.
  • Demonstrate that the proposed hybrid method achieves better training stability and lower error rates than standard SVD, Power Iteration, or batch normalization.

Proposed method

  • Use SVD during the forward pass to compute accurate eigenvectors and eigenvalues, ensuring numerical stability in the forward computation.
  • Leverage the SVD results as initialization for Power Iteration during the backward pass to compute gradients.
  • Compute gradients via Power Iteration instead of analytical SVD derivatives to avoid instability when eigenvalues are close.
  • Bound the gradient magnitude by the number of Power Iteration steps, preventing explosion even with near-degenerate eigenvalues.
  • Implement the backward pass in PyTorch using Python-based autograd, with the forward pass relying on stable SVD decomposition.
  • Dynamically adjust the number of retained eigenvectors based on preserved variance or fixed count, enabling flexible PCA denoising.

Experimental results

Research questions

  • RQ1Can a hybrid eigendecomposition method combining SVD and Power Iteration achieve stable backpropagation in deep networks despite near-degenerate eigenvalues?
  • RQ2Does the proposed method outperform standard SVD and Power Iteration in terms of training stability and convergence for eigendecomposition-based layers?
  • RQ3Can PCA denoising, enabled by the new eigendecomposition method, serve as an effective alternative to batch normalization in deep networks?
  • RQ4How does the number of Power Iteration steps affect the accuracy and stability of the gradient computation in the proposed framework?
  • RQ5What is the impact of preserving different percentages of variance on the performance of the PCA denoising layer in classification tasks?

Key findings

  • The proposed method achieved a mean test error of 4.63% ± 0.11 on CIFAR-10 using PCA denoising, outperforming batch normalization (4.81% ± 0.19).
  • Preserving 99% of the variance in the PCA denoising layer yielded the best performance, with an error rate of 4.63% ± 0.11.
  • Using only 2 Power Iterations during backpropagation achieved near-optimal performance (4.63% error), closely matching results from 29 iterations.
  • The method demonstrated superior training stability, with smooth loss curves, while standard Power Iteration showed significant instability and higher final error.
  • Standard SVD-based backpropagation failed in 5 out of 5 trials due to gradient explosion, resulting in NaN values, whereas the proposed method remained stable.
  • The PCA denoising layer maintained consistent performance across different numbers of retained eigenvectors (8 to 32), with optimal performance at 16 eigenvectors (preserving ~99.9% variance).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.