Skip to main content
QUICK REVIEW

[Paper Review] Rotated Binary Neural Network

Mingbao Lin, Rongrong Ji|arXiv (Cornell University)|Sep 28, 2020
Advanced Neural Network ApplicationsComputer Science46 references68 citations
TL;DR

RBNN reduces angular bias between full-precision weights and their binarized versions by applying epoch-wise weight rotations via a bi-rotation scheme, improving binary network accuracy on CIFAR-10 and ImageNet.

ABSTRACT

Binary Neural Network (BNN) shows its predominance in reducing the complexity of deep neural networks. However, it suffers severe performance degradation. One of the major impediments is the large quantization error between the full-precision weight vector and its binary vector. Previous works focus on compensating for the norm gap while leaving the angular bias hardly touched. In this paper, for the first time, we explore the influence of angular bias on the quantization error and then introduce a Rotated Binary Neural Network (RBNN), which considers the angle alignment between the full-precision weight vector and its binarized version. At the beginning of each training epoch, we propose to rotate the full-precision weight vector to its binary vector to reduce the angular bias. To avoid the high complexity of learning a large rotation matrix, we further introduce a bi-rotation formulation that learns two smaller rotation matrices. In the training stage, we devise an adjustable rotated weight vector for binarization to escape the potential local optimum. Our rotation leads to around 50% weight flips which maximize the information gain. Finally, we propose a training-aware approximation of the sign function for the gradient backward. Experiments on CIFAR-10 and ImageNet demonstrate the superiorities of RBNN over many state-of-the-arts. Our source code, experimental settings, training logs and binary models are available at https://github.com/lmbxmu/RBNN.

Motivation & Objective

  • Motivate reduction of quantization error in Binary Neural Networks (BNNs) by addressing angular bias between full-precision weights and their binarized counterparts.
  • Propose a rotation-based framework to align weights with binary vertices to minimize angular discrepancy.
  • Introduce a computationally efficient bi-rotation scheme to realize large rotations through two smaller rotation matrices.
  • Develop a training-aware gradient approximation to enable effective backpropagation through binarization.

Proposed method

  • Apply a rotation matrix R i to the full-precision weight vector w i at the start of each training epoch to minimize the angle between R i^T w i and sign(R i^T w i).
  • Use a bi-rotation construction R i = R1 i ⊗ R2 i with R1 i ∈ R^{n1×n1}, R2 i ∈ R^{n2×n2} and n i = n1 i · n2 i to reduce complexity.
  • Optimize B W′ i, R1 i, R2 i in an alternating fashion to maximize tr(B W′ i (R2 i)^T (W i)^T R1 i) under orthogonality constraints, leading to B W′ i = sign((R1 i)^T W i R2 i) and R1 i, R2 i updated via SVD-based polar decompositions.
  • Introduce an adjustable rotated weight vector: w̃ i = w i + ((R i)^T w i − w i) · α i to dynamically steer binarization and avoid local optima, with α i ∈ [0,1].
  • Provide a training-aware gradient approximation F(x) for backpropagation through binarization, with derivative F′(x) tailored to training progress (e ∕ E).
  • Compute gradients for w i, α i, and auxiliary quantities to enable end-to-end training of the RBNN.

Experimental results

Research questions

  • RQ1Can angular bias between full-precision weights and their binarized versions be reduced by rotating weights to align with binary vertices at each training epoch?
  • RQ2Does a bi-rotation approach (two small rotation matrices) efficiently and effectively approximate a large rotation for weight alignment in BNNs?
  • RQ3Does training-aware binarization and adjustable rotated weights improve accuracy compared with existing BNN methods on CIFAR-10 and ImageNet?

Key findings

  • RBNN consistently outperforms several state-of-the-art BNNs on CIFAR-10 across ResNet-18, ResNet-20, and VGG-small in comparable bit settings.
  • On ImageNet, RBNN achieves top-1 and top-5 improvements over IR-Net in ResNet-18 and ResNet-34, respectively.
  • The bi-rotation scheme enables efficient approximation of large rotations with reduced memory and computation.
  • The training-aware gradient approximation enhances backpropagation through binarization compared to STE, PPF, and EDE.
  • Weight rotation increases weight flips to around 50% per layer, maximizing information gain during training.

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.