M-BiPer: BiPer Binary Neural Networks with Multiple Periodic Activation Functions
Abstract
Binary Neural Networks (BNNs), with their high computational efficiency and low storage requirements, have shown great potential for applications on resource-constrained devices. However, existing BNN methods face challenges during training, including gradient instability and significant quantization error (QE), leading to substantial performance degradation. The BiPer method alleviates the issues of gradient vanishing and instability by introducing periodic activation functions (e.g., sine functions), achieving performance improvement to a certain extent. Nevertheless, the BiPer method solely employs a single sine function as the activation function, failing to systematically explore the impact of different periodic activation functions on network performance, thereby limiting its optimization potential in BNNs. In this paper, we propose a performance research framework for BNNs based on multiple periodic activation functions, building on the BiPer method. Our goal is to comprehensively investigate the effects of various periodic activation functions on BNN performance.Extensive experiments conducted on the CIFAR-10 and ImageNet datasets demonstrate significant performance differences among the various periodic activation functions. Among them, sine functions and sawtooth wave functions exhibit optimal performance in terms of classification accuracy and gradient stability, while square wave functions and arctangent sine functions show certain limitations in gradient propagation. Compared to the original BiPer method, the proposed multi-periodic activation function strategy achieves superior performance and more stable training outcomes in classification tasks. This study provides new insights and theoretical support for the design and optimization of periodic activation functions in BNNs, laying a foundation for further performance enhancement of BBNs.
References
- Qian Y, Fan Y, Hu W, et al. On the training aspects of deep neural network (DNN) for parametric TTS synthesis[C]//2014 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). IEEE, 2014: 3829-3833.
- Haque M F, Lim H Y, Kang D S. Object detection based on VGG with ResNet network[C]//2019 International conference on electronics, information, and communication (ICEIC). IEEE, 2019: 1-3.
- Vargas E, Correa C V, Hinojosa C, et al. BiPer: Binary neural networks using a periodic function[C]//Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 2024: 5684-5693.
- Meronen L, Trapp M, Solin A. Periodic activation functions induce stationarity[J]. Advances in Neural Information Processing Systems, 2021, 34: 1673-1685.
- Shah S R, Qadri S, Bibi H, et al. Comparing inception V3, VGG 16, VGG 19, CNN, and ResNet 50: A case study on early detection of a rice disease[J]. Agronomy, 2023, 13(6): 1633.
- Yin P, Lyu J, Zhang S, et al. Understanding straight-through estimator in training activation quantized neural nets[J]. arXiv preprint arXiv:1903.05662, 2019.
- Martinez B, Yang J, Bulat A, et al. Training binary neural networks with real-to-binary convolutions[J]. arXiv preprint arXiv:2003.11535, 2020.
- RuĆwurm M, Klemmer K, Rolf E, et al. Geographic location encoding with spherical harmonics and sinusoidal representation networks[J]. arXiv preprint arXiv:2310.06743, 2023.
- Li Z, Huang D Z, Liu B, et al. Fourier neural operator with learned deformations for pdes on general geometries[J]. Journal of Machine Learning Research, 2023, 24(388): 1-26.
- Babitsky V I, Krupenin V L. Vibration of strongly nonlinear discontinuous systems[M]. Springer Science & Business Media, 2012.
- Kattenborn T, Leitloff J, Schiefer F, et al. Review on Convolutional Neural Networks (CNN) in vegetation remote sensing[J]. ISPRS journal of photogrammetry and remote sensing, 2021, 173: 24-49.
- Xie Y, Raj A N J, Hu Z, et al. A twofold lookup table architecture for efficient approximation of activation functions[J]. IEEE Transactions on Very Large Scale Integration (VLSI) Systems, 2020, 28(12): 2540-2550.
- Mueller R, Teubner J, Alonso G. Data processing on FPGAs[J]. Proceedings of the VLDB Endowment, 2009, 2(1): 910-921.
- Paszke A, Gross S, Massa F, et al. Pytorch: An imperative style, high-performance deep learning library[J]. Advances in neural information processing systems, 2019, 32.
- Abouelnaga Y, Ali O S, Rady H, et al. Cifar-10: Knn-based ensemble of classifiers[C]//2016 International Conference on Computational Science and Computational Intelligence (CSCI). IEEE, 2016: 1192-1195.
- Wilson F W. Smoothing derivatives of functions and applications[J]. Transactions of the American Mathematical Society, 1969, 139: 413-428.