Controllable Orthogonalization in Training DNNs

Lei Huang, Li Liu, Fan Zhu, Diwen Wan, Zehuan Yuan, Bo Li, Ling Shao

Abstract

This paper introduces Orthogonalization by Newton’s Iteration (ONI), a computationally efficient and numerically stable method to ensure neural network weights remain orthogonal during training. By using an iterative approach rather than expensive matrix decompositions, ONI allows researchers to precisely control the "degree" of orthogonality, balancing training stability with the model's ability to learn complex representations. Our results across standard benchmarks like ImageNet and GAN training demonstrate that ONI improves performance while adding negligible computational overhead.

Introduction

Training very deep neural networks is notoriously difficult due to vanishing and exploding gradients. One elegant solution is orthogonality: if a weight matrix is orthogonal, it preserves the norm of activations and gradients, theoretically allowing for much deeper architectures and faster convergence through a property known as dynamical isometry.

However, implementing orthogonality in practice is challenging. Existing methods typically rely on soft constraints (penalty terms) which lack guarantees, or hard constraints (Riemannian optimization/Eigen-decomposition) which are computationally expensive and numerically unstable on GPUs. The authors propose ONI to provide a stable, fast, and adjustable alternative.

Methodology: Orthogonalization by Newton’s Iteration (ONI)

The core of the paper is the ONI algorithm. Instead of solving for an orthogonal matrix in a single step, ONI uses Newton's method to iteratively "stretch" the singular values of a weight matrix toward 1. This iterative nature introduces a critical hyperparameter, $T$, which controls the number of iterations.

Technical Innovations

To make ONI practical for large-scale training, the authors introduced several key enhancements:

  • Controllable Iterations ($T$): A low $T$ provides "soft" orthogonality, while a high $T$ leads to a nearly perfect orthogonal matrix.
  • Centering: Centering the proxy weight matrix improves its conditioning, accelerating convergence.
  • Compact Spectral Bounding (CSB): This initialization technique places starting singular values closer to 1, further reducing the required iterations.
Impact of Centering and Compact Spectral Bounding (CSB) on ONI convergence speed.

Key Insights and Results

The authors validated ONI across standard benchmarks including Fashion-MNIST, CIFAR-10, ImageNet-2012, and unsupervised image generation (GANs).

The "Goldilocks" Zone of Orthogonality

A surprising finding is that perfect orthogonality is not always the goal. For architectures like standard ResNets, a small number of iterations ($T=2$) often performed better than high $T$. This suggests that a degree of "non-orthogonality" allows the model more flexibility to fit complex data distributions while still benefiting from the stability of near-orthogonality.

Convergence of ONI and its effect on the eigenvalue spectrum across iterations T.

Performance Benchmarks

  • Classification: On ImageNet with VGG-16, ONI reduced Top-1 error from 27.47% to 26.31%.
  • GAN Stability: In DCGAN training, ONI achieved a Fréchet Inception Distance (FID) of 20.75, significantly outperforming the widely used Spectral Normalization (FID 23.31) by constraining the entire singular value spectrum.
  • Efficiency: ONI is highly optimized for GPUs, adding only about 7% to total training time per epoch on ImageNet.

Conclusion

ONI provides a robust, unified framework for implementing weight orthogonality across various layer types. By avoiding unstable matrix decompositions and offering a tunable parameter for the degree of orthogonality, it enables more stable training for deep architectures without sacrificing representational capacity. Future work may explore ONI's utility in adversarial defense and generalization theory.

Summary updated

BibTeX
@inproceedings{huang2020controllable,
  author = {Lei Huang and Li Liu and Fan Zhu and Diwen Wan and Zehuan Yuan and Bo Li and Ling Shao},
  title = {{Controllable Orthogonalization in Training DNNs}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.00646},
}
Figure