Block Walsh-Hadamard Transform-based Binary Layers in Deep Neural Networks

被引:7
|
作者
Pan, Hongyi [1 ]
Badawi, Diaa [1 ]
Cetin, Ahmet Enis [1 ]
机构
[1] Univ Illinois, Dept Elect & Comp Engn, 1200 W Harrison St, Chicago, IL 60607 USA
基金
美国国家科学基金会;
关键词
Fast Walsh-Hadamard transform; block division; smooth-thresholding; image classification; RECOGNITION;
D O I
10.1145/3510026
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Convolution has been the core operation of modern deep neural networks. It is well known that convolutions can be implemented in the Fourier Transform domain. In this article, we propose to use binary block Walsh-Hadamard transform (WHT) instead of the Fourier transform. We use WHT-based binary layers to replace some of the regular convolution layers in deep neural networks. We utilize both one-dimensional (1D) and 2D binary WHTs in this article. In both 1D and 2D layers, we compute the binary WHT of the input feature map and denoise the WHT domain coefficients using a nonlinearity that is obtained by combining soft-thresholding with the tanh function. After denoising, we compute the inverse WHT. We use 1D-WHT to replace the 1 x 1 convolutional layers, and 2D-WHT layers can replace the 3 x 3 convolution layers and Squeeze-and-Excite layers. 2D-WHT layers with trainable weights can be also inserted before the Global Average Pooling layers to assist the dense layers. In this way, we can reduce the number of trainable parameters significantly with a slight decrease in trainable parameters. In this article, we implement the WHT layers into MobileNet-V2, MobileNet-V3-Large, and ResNet to reduce the number of parameters significantly with negligible accuracy loss. Moreover, according to our speed test, the 2D-FWHT layer runs about 24 times as fast as the regular 3 x 3 convolution with 19.51% less RAM usage in an NVIDIA Jetson Nano experiment.
引用
收藏
页数:25
相关论文
共 50 条
  • [1] Fast Walsh-Hadamard Transform and Smooth-Thresholding Based Binary Layers in Deep Neural Networks
    Pan, Hongyi
    Badawi, Diaa
    Cetin, Ahmet Enis
    [J]. 2021 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION WORKSHOPS, CVPRW 2021, 2021, : 4645 - 4654
  • [2] Robust Walsh-Hadamard transform-based spatial modulation
    Irfan, Mohammad
    Shin, Soo Young
    [J]. DIGITAL SIGNAL PROCESSING, 2017, 64 : 1 - 7
  • [3] Butterfly interconnection networks and their applications in Walsh-Hadamard transform-based information processing and optical computing
    HE Liming(Electronic Engineering Department
    WANG Naxin (Chongcbon Institute of Optics and Fine Mechanics Academia Sinica State Key Laboratory of Applied Optics P. O. Box 1024
    [J]. Chinese Journal of Lasers, 1994, (03) : 275 - 282
  • [4] Voltage Based Electronic Control Unit (ECU) Identification with Convolutional Neural Networks and Walsh-Hadamard Transform
    Baldini, Gianmarco
    [J]. ELECTRONICS, 2023, 12 (01)
  • [5] Deep Neural Network with Walsh-Hadamard Transform Layer For Ember Detection during a Wildfire
    Pan, Hongyi
    Badawi, Diaa
    Chen, Chang
    Watts, Adam
    Koyuncu, Erdem
    Cetin, Ahmet Enis
    [J]. 2022 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION WORKSHOPS, CVPRW 2022, 2022, : 256 - 265
  • [6] Cache conscious Walsh-Hadamard Transform
    Park, N
    Prasanna, VK
    [J]. 2001 IEEE INTERNATIONAL CONFERENCE ON ACOUSTICS, SPEECH, AND SIGNAL PROCESSING, VOLS I-VI, PROCEEDINGS: VOL I: SPEECH PROCESSING 1; VOL II: SPEECH PROCESSING 2 IND TECHNOL TRACK DESIGN & IMPLEMENTATION OF SIGNAL PROCESSING SYSTEMS NEURALNETWORKS FOR SIGNAL PROCESSING; VOL III: IMAGE & MULTIDIMENSIONAL SIGNAL PROCESSING MULTIMEDIA SIGNAL PROCESSING, 2001, : 1205 - 1208
  • [7] Fast slant transform algorithm based on the Walsh-Hadamard transform
    Glushkov Inst of Cybernetics, Kiev, Ukraine
    [J]. J Autom Inform Sci, 2 (1-11):
  • [8] COMPUTATIONAL STRUCTURE FOR THE WALSH-HADAMARD TRANSFORM
    CHAIKIN, GM
    [J]. PROCEEDINGS OF THE SOCIETY OF PHOTO-OPTICAL INSTRUMENTATION ENGINEERS, 1982, 360 : 100 - 104
  • [9] Improvement and Application of Walsh-Hadamard Transform
    Wang, Sanfu
    Gao, Zhongshe
    [J]. PROCEEDINGS OF THE THIRD INTERNATIONAL WORKSHOP ON MATRIX ANALYSIS AND APPLICATIONS, VOL 2, 2009, : 363 - 366
  • [10] SPECTRAL MODES OF WALSH-HADAMARD TRANSFORM
    OHNSORG, FR
    [J]. IEEE TRANSACTIONS ON ELECTROMAGNETIC COMPATIBILITY, 1971, EM13 (03) : 55 - &