[Paper Review] Regularized Binary Network Training
This paper proposes a regularized binary network training method that improves convergence and accuracy by introducing a novel SignSwish activation for better gradient approximation, a learnable regularization function encouraging weights near ±1, and trainable scaling factors per layer. The approach achieves state-of-the-art performance on ImageNet, outperforming XNOR-Net and BinaryNet with top-1 accuracies of 46.1% on AlexNet and 53.0% on ResNet-18.
There is a significant performance gap between Binary Neural Networks (BNNs) and floating point Deep Neural Networks (DNNs). We propose to improve the binary training method, by introducing a new regularization function that encourages training weights around binary values. In addition, we add trainable scaling factors to our regularization functions. Additionally, an improved approximation of the derivative of the sign activation function in the backward computation. These modifications are based on linear operations that are easily implementable into the binary training framework. Experimental results on ImageNet shows our method outperforms the traditional BNN method and XNOR-net.
Motivation & Objective
- To close the performance gap between binary neural networks (BNNs) and full-precision DNNs on resource-constrained devices.
- To address the instability and poor convergence in BNN training caused by gradient saturation near ±1 during backpropagation.
- To improve generalization and robustness in binary networks by encouraging weights to converge to ±1 through a new regularization function.
- To mitigate accuracy degradation from hard binarization by introducing learnable scaling factors per layer or filter.
Proposed method
- Introduces SignSwish (SSwish), a differentiable, bounded activation function derived from Swish, with learnable scale β to improve gradient flow near ±1.
- Proposes a novel regularization function R₁(w) = |α − |w|| (Manhattan) and R₂(w) = (α − |w|)² (Euclidean), where α is a learnable scale per layer, to encourage weights to converge to ±1.
- Integrates the regularization terms into the total loss function as J(W,b) = L(W,b) + λₜ∑ₕ R(Wₕ,αₕ), enabling joint optimization of weights and scaling factors.
- Uses the median or mean of |W| as initialization for α* in R₁ and R₂ respectively, ensuring initialization aligns with the regularization objective.
- Employs batch normalization before activations and retains first and last layers in full precision to preserve accuracy, consistent with prior BNN methods.
- Uses a fixed β value in ablation studies, with β tuned to control gradient saturation points, improving training stability.
Experimental results
Research questions
- RQ1Can a learnable, bounded activation function improve gradient approximation in binary neural networks compared to the standard straight-through estimator?
- RQ2Does a regularization function that penalizes deviation from ±1 improve convergence and accuracy in binary network training?
- RQ3Can learnable scaling factors per layer or filter mitigate accuracy loss due to hard binarization in BNNs?
- RQ4How does the combination of improved gradient approximation, regularization, and scaling factors affect performance on ImageNet compared to existing BNN methods?
Key findings
- The proposed method achieves a top-1 accuracy of 46.1% on ImageNet using AlexNet, surpassing XNOR-Net (44.2%) and BinaryNet (41.2%).
- On ResNet-18, the method achieves 53.0% top-1 accuracy, outperforming XNOR-Net (51.2%) and BinaryNet (42.2%).
- The use of SignSwish with β=10 achieves the best performance, demonstrating improved gradient flow near ±1 compared to the standard STE.
- The combination of R₁ regularization and SignSwish (β=10) yields the highest accuracy across both architectures, indicating effective weight clustering at ±1.
- The ablation study confirms that all three components—SignSwish, regularization, and scaling factors—contribute synergistically to performance gains.
- The method maintains high performance even with first and last layers in full precision, aligning with prior BNN practices and confirming stability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.