Optimizing Artificial Neural Networks to Minimize Arithmetic Errors in Stochastic Computing Implementations

被引:0
|
作者
Frasser, Christiam F. [1 ]
Moran, Alejandro [1 ]
Canals, Vincent [2 ]
Font, Joan [1 ]
Isern, Eugeni [1 ,3 ]
Roca, Miquel [1 ,3 ,4 ]
Rossello, Josep L. [1 ,3 ,4 ]
机构
[1] Univ Balearic Isl, Ind Engn & Construction Dept, Elect Engn Grp, Palma De Mallorca 07122, Spain
[2] Univ Balearic Isl, Ind Engn & Construct Dept, Energy Engn Grp, Palma De Mallorca 07122, Spain
[3] Son Espases Univ Hosp, Balearic Isl Hlth Res Inst IdISBa, Palma De Mallorca 07120, Spain
[4] Univ Illes Balears, Artificial Intelligence Res Inst IAIB, Palma De Mallorca 07122, Spain
关键词
stochastic computing; edge computing; convolutional neural networks; LFSR seed; quantization (signal);
D O I
10.3390/electronics13142846
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Deploying modern neural networks on resource-constrained edge devices necessitates a series of optimizations to ready them for production. These optimizations typically involve pruning, quantization, and fixed-point conversion to compress the model size and enhance energy efficiency. While these optimizations are generally adequate for most edge devices, there exists potential for further improving the energy efficiency by leveraging special-purpose hardware and unconventional computing paradigms. In this study, we explore stochastic computing neural networks and their impact on quantization and overall performance concerning weight distributions. When arithmetic operations such as addition and multiplication are executed by stochastic computing hardware, the arithmetic error may significantly increase, leading to a diminished overall accuracy. To bridge the accuracy gap between a fixed-point model and its stochastic computing implementation, we propose a novel approximate arithmetic-aware training method. We validate the efficacy of our approach by implementing the LeNet-5 convolutional neural network on an FPGA. Our experimental results reveal a negligible accuracy degradation of merely 0.01% compared with the floating-point counterpart, while achieving a substantial 27x speedup and 33x enhancement in energy efficiency compared with other FPGA implementations. Additionally, the proposed method enhances the likelihood of selecting optimal LFSR seeds for stochastic computing systems.
引用
收藏
页数:14
相关论文
共 50 条
  • [1] Approximate arithmetic aware training for stochastic computing neural networks
    Frasser, Christiam F.
    Moran, Alejandro
    Canals, Vincent
    Font, Joan
    Isern, Eugeni
    Roca, Miquel
    Rossello, Josep L.
    2023 38TH CONFERENCE ON DESIGN OF CIRCUITS AND INTEGRATED SYSTEMS, DCIS, 2023,
  • [2] On the Impact of Hardware Timing Errors on Stochastic Computing based Neural Networks
    Neugebauer, Florian
    Holst, Stefan
    Polian, Ilia
    2022 IEEE EUROPEAN TEST SYMPOSIUM (ETS 2022), 2022,
  • [3] Optimizing Stochastic Computing for Low Latency Inference of Convolutional Neural Networks
    Chen, Zhiyuan
    Ma, Yufei
    Wang, Zhongfeng
    2020 IEEE/ACM INTERNATIONAL CONFERENCE ON COMPUTER AIDED-DESIGN (ICCAD), 2020,
  • [4] IMPLEMENTATIONS OF ARTIFICIAL NEURAL NETWORKS ON THE CONNECTION MACHINE
    SINGER, A
    PARALLEL COMPUTING, 1990, 14 (03) : 305 - 315
  • [5] ANALOG HARDWARE IMPLEMENTATIONS OF ARTIFICIAL NEURAL NETWORKS
    Nedjah, Nadia
    Da Silva, Rodrigo Martins
    Mourelle, Luiza De Macedo
    JOURNAL OF CIRCUITS SYSTEMS AND COMPUTERS, 2011, 20 (03) : 349 - 373
  • [6] ARTIFICIAL NEURAL NETWORKS FOR COMPUTING
    JACKEL, LD
    HOWARD, RE
    GRAF, HP
    STRAUGHN, B
    DENKER, JS
    JOURNAL OF VACUUM SCIENCE & TECHNOLOGY B, 1986, 4 (01): : 61 - 63
  • [7] DISTRIBUTED ARITHMETIC IMPLEMENTATION OF ARTIFICIAL NEURAL NETWORKS
    BOCHEV, V
    IEEE TRANSACTIONS ON SIGNAL PROCESSING, 1993, 41 (05) : 2010 - 2013
  • [8] Printed Stochastic Computing Neural Networks
    Weller, Dennis D.
    Bleier, Nathaniel
    Hefenbrock, Michael
    Aghassi-Hagmann, Jasmin
    Beigl, Michael
    Kumar, Rakesh
    Tahoori, Mehdi B.
    PROCEEDINGS OF THE 2021 DESIGN, AUTOMATION & TEST IN EUROPE CONFERENCE & EXHIBITION (DATE 2021), 2021, : 914 - 919
  • [9] STOCHASTIC COMPUTING AND REINFORCEMENT NEURAL NETWORKS
    LEAVER, RA
    MARS, P
    FIRST IEE INTERNATIONAL CONFERENCE ON ARTIFICIAL NEURAL NETWORKS, 1989, : 163 - 170
  • [10] Arithmetic formats for implementing artificial neural networks on FPGAs
    Li, XG
    Moussa, M
    Areibi, S
    CANADIAN JOURNAL OF ELECTRICAL AND COMPUTER ENGINEERING-REVUE CANADIENNE DE GENIE ELECTRIQUE ET INFORMATIQUE, 2006, 31 (01): : 31 - 40