Внедрение FFNNs на ПЛИС с ограниченными ресурсами
Ключевые слова:
FPGA, прямые нейронные сети, встроенные системы, сигмовидная функция активации, кусочно-линейная аппроксимацияАннотация
В данной работе представлена реализация реконфигурируемой нейронной сети прямого распространения (Feedforward Neural Network, FFNN) на ПЛИС с ограниченными аппаратными ресурсами. Реализация ориентирована на потенциальное применение в системах компьютерного зрения мобильных роботов, беспилотных летательных аппаратов и других подобных платформ, предъявляющих высокие требования к энергоэффективности и рациональному использованию аппаратных ресурсов. В рамках исследования выполнено сравнение производительности реализации FFNN на ПЛИС с её программной реализацией на языке Python, выполняемой на центральном процессоре (CPU), при классификации изображений рукописных цифр из базы данных MNIST. Обучение сети осуществляется с использованием графического пользовательского интерфейса (GUI), который позволяет разработчику задавать параметры конфигурации сети, проводить обучение и передавать веса и смещения на ПЛИС. Основным вкладом данной работы является разработка специализированной аппаратной архитектуры для реализации функции активации сигмоиды. Предлагаемая архитектура подробно описана на уровне отдельных компонентов, включая этап выбора области определения и аппаратную реализацию каждой линейной аппроксимации, используемой для представления функции. FFNN реализована на ПЛИС Intel Cyclone IV EP4CE6F17C8, работающей на частоте 50 МГц. Для представления данных использовано квантование с фиксированной точкой разрядности 8 и 12 бит. В результате точность классификации 95,78% была достигнута как в реализации на Python, так и на ПЛИС. Время классификации составило 1,3 с для Python и 16 мкс для ПЛИС при использовании всего 27% логических элементов ПЛИС.
Литература
2. Mienye I.D., Swart T.G. A Comprehensive Review of Deep Learning: Architectures, Recent Advances, and Applications // Information. 2024. vol. 15. no. 12. pp. 1–45. DOI: 10.3390/info15120755.
3. Alzubaidi L., Zhang J., Humaidi A.J., et al. Review of deep learning: concepts, CNN architectures, challenges, applications, future directions // Journal of Big Data. 2021. vol. 8. pp. 1–74. DOI: 10.1186/s40537-021-00444-8.
4. Wang C., Luo Z. A Review of the Optimal Design of Neural Networks Based on FPGA // Applied Sciences. 2022. vol. 12. no. 21. pp. 1–44. DOI: 10.3390/app122110771.
5. Shatravin V., Shashev D., Shidlovskiy S. Sigmoid Activation Implementation for Neural Networks Hardware Accelerators Based on Reconfigurable Computing Environments for Low-Power Intelligent Systems // Applied Sciences. 2022. vol. 12. no. 10. pp. 1–16. DOI: 10.3390/app12105216.
6. Kim V.H., Choi K.K. A Reconfigurable CNN-Based Accelerator Design for Fast and Energy-Efficient Object Detection System on Mobile FPGA // IEEE Access. 2023. vol. 11. pp. 59438–59445. DOI: 10.1109/ACCESS.2023.3285279.
7. Namboothiripad M.K., Vadhyan G. Efficient implementation of artificial neural networks on FPGAs using high-level synthesis and parallelism // International Journal of Advanced Technology and Engineering Exploration. 2024. vol. 11. no. 119. pp. 1497–1511.
8. Mariotti M., Bianchini G., Neri I., et al. Extending a Moldable Computer Architecture to Accelerate DL Inference on FPGA // Electronics. 2025. vol. 14. no. 17. pp. 1–19. DOI: 10.3390/electronics14173518.
9. Guo K., Zeng S., Yu J., et al. A Survey of FPGA-based Neural Network Inference Accelerators // ACM Transactions on Reconfigurable Technology and Systems. 2019. vol. 12. no. 1. pp. 1–26. DOI: 10.1145/3289185.
10. Novickis R., Justs D.J., Ozols K., Greitans M. An Approach of Feed-Forward Neural Network Throughput-Optimized Implementation in FPGA // Electronics. 2020. vol. 9. no. 12. pp. 1–16. DOI: 10.3390/electronics9122193.
11. LeCun Y., Bottou L., Bengio Y., Haffner P. Gradient-Based Learning Applied to Document Recognition // Proceedings of the IEEE. 1998. vol. 86. no. 11. pp. 2278–2324. DOI: 10.1109/5.726791.
12. Medus L.D., Iakymchuk T., Frances-Villora J.V., et al. A Novel Systolic Parallel Hardware Architecture for the FPGA Acceleration of Feedforward Neural Networks // IEEE Access. 2019. vol. 7. pp. 76084–76103. DOI: 10.1109/ACCESS.2019.2920885.
13. Dondon P., Carvalho J., Gardere R., et al. Implementation of a feed-forward Artificial Neural Network in VHDL on FPGA // Proceedings of the 12th Symposium on Neural Network Applications in Electrical Engineering (NEUREL). 2014. pp. 37–40. DOI: 10.1109/NEUREL.2014.7011454.
14. Parra D., Camargo C. A Systematic Literature Review of Hardware Neural Networks // Proceedings of the IEEE 1st Colombian Conference on Applications in Computational Intelligence (ColCACI). 2018. pp. 1–6. DOI: 10.1109/ColCACI.2018.8484858.
15. Dhavlle A., Pudukotai Dinakarrao S.M. A Comprehensive Review of ML-based Time-Series and Signal Processing Techniques and their Hardware Implementations // Proceedings of the 11th International Green and Sustainable Computing Workshops (IGSC). 2020. pp. 1–8. DOI: 10.1109/IGSC51522.2020.9291173.
16. Himavathi S., Anitha D., Muthuramalingam A. Feedforward Neural Network Implementation in FPGA Using Layer Multiplexing for Effective Resource Utilization // IEEE Transactions on Neural Networks. 2007. vol. 18. no. 3. pp. 880–888. DOI: 10.1109/TNN.2007.891626.
17. Zhang Z., Wang G., Wang K., et al. Efficient On-Chip Learning of Multi-Layer Perceptron Based on Neuron Multiplexing Method // Electronics. 2023. vol. 12. no. 17. pp. 1–27. DOI: 10.3390/electronics12173607.
18. Zaman K.S., Reaz M.B.I., Md Ali S.H., et al. Custom Hardware Architectures for Deep Learning on Portable Devices: A Review // IEEE Transactions on Neural Networks and Learning Systems. 2022. vol. 33. no. 11. pp. 6068–6088. DOI: 10.1109/TNNLS.2021.3082304.
19. Zheng Y., Yang H., Shu Y., et al. Optimizing Off-Chip Memory Access for Deep Neural Network Accelerator // IEEE Transactions on Circuits and Systems II: Express Briefs. 2022. vol. 69. no. 4. pp. 2316–2320. DOI: 10.1109/TCSII.2022.3150030.
20. Shao Z., Chen X., Du L., et al. Memory-Efficient CNN Accelerator Based on Interlayer Feature Map Compression // IEEE Transactions on Circuits and Systems I: Regular Papers. 2022. vol. 69. no. 2. pp. 668–681. DOI: 10.1109/TCSI.2021.3120312.
21. Nguyen D.T., Je H., Nguyen T.N., et al. ShortcutFusion: From TensorFlow to FPGA-Based Accelerator With Reuse-Aware Memory Allocation for Shortcut Data // IEEE Transactions on Circuits and Systems I: Regular Papers. 2022. vol. 69. no. 6. pp. 2477–2489. DOI: 10.1109/TCSI.2022.3153288.
22. Jokic P., Emery S., Benini L. Improving Memory Utilization in Convolutional Neural Network Accelerators // IEEE Embedded Systems Letters. 2021. vol. 13. no. 3. pp. 77–80. DOI: 10.1109/LES.2020.3009924.
23. Savich A.W., Moussa M., Areibi S. The Impact of Arithmetic Representation on Implementing MLP-BP on FPGAs: A Study // IEEE Transactions on Neural Networks. 2007. vol. 18. no. 1. pp. 240–252. DOI: 10.1109/TNN.2006.883002.
24. Tsmots I., Skorokhoda O., Rabyk V. Hardware Implementation of Sigmoid Activation Functions using FPGA // Proceedings of the IEEE 15th International Conference on the Experience of Designing and Application of CAD Systems (CADSM). 2019. pp. 34–38. DOI: 10.1109/CADSM.2019.8779253.
25. Pan Z., Gu Z., Jiang X., et al. A Modular Approximation Methodology for Efficient Fixed-Point Hardware Implementation of the Sigmoid Function // IEEE Transactions on Industrial Electronics. 2022. vol. 69. no. 10. pp. 10694–10703. DOI: 10.1109/TIE.2022.3146573.
Implementation of FFNNs on Resource-Constrained FPGAs
Abstract
This paper presents the implementation of a reconfigurable Feedforward Neural Network (FFNN) on FPGAs with limited hardware resources. The implementation targets potential applications in the computer vision systems of mobile robots, unmanned aerial vehicles, and similar platforms requiring energy and resource efficiency. As part of the study, the performance of the FFNN implementation on FPGAs was compared with its Python software implementation running on a central processing unit (CPU) when classifying images of handwritten digits from the MNIST database. Network training is performed using a graphical user interface (GUI), which allows the developer to set network configuration parameters, perform training, and transfer weights and biases to the FPGA. The main contribution of this work is the development of a specialized hardware architecture for implementing the sigmoid activation function. The proposed architecture is described in detail at the level of individual components, including the region-selection stage and the hardware implementation of each line-segment approximation used to represent the function. The FFNN is implemented on an Intel Cyclone IV EP4CE6F17C8 FPGA operating at a frequency of 50 MHz. Fixed-point quantization of 8 and 12 bits is used to represent the data. As a result, a classification accuracy of 95.78% was achieved in both the Python and FPGA implementations. The classification time was 1.3 seconds for Python and 16 microseconds for FPGAs while using only 27% of the FPGA logic elements.
Опубликован
Как цитировать
Раздел
Copyright (c) Ребека Муньос, Хесус Саваж, Сауль Де Ла Роса, Пабло Перес

Это произведение доступно по лицензии Creative Commons «Attribution» («Атрибуция») 4.0 Всемирная.
Авторы, которые публикуются в данном журнале, соглашаются со следующими условиями: Авторы сохраняют за собой авторские права на работу и передают журналу право первой публикации вместе с работой, одновременно лицензируя ее на условиях Creative Commons Attribution License, которая позволяет другим распространять данную работу с обязательным указанием авторства данной работы и ссылкой на оригинальную публикацию в этом журнале. Авторы сохраняют право заключать отдельные, дополнительные контрактные соглашения на неэксклюзивное распространение версии работы, опубликованной этим журналом (например, разместить ее в университетском хранилище или опубликовать ее в книге), со ссылкой на оригинальную публикацию в этом журнале. Авторам разрешается размещать их работу в сети Интернет (например, в университетском хранилище или на их персональном веб-сайте) до и во время процесса рассмотрения ее данным журналом, так как это может привести к продуктивному обсуждению, а также к большему количеству ссылок на данную опубликованную работу (Смотри The Effect of Open Access).