Cargando…

A pseudo-softmax function for hardware-based high speed image classification

In this work a novel architecture, named pseudo-softmax, to compute an approximated form of the softmax function is presented. This architecture can be fruitfully used in the last layer of Neural Networks and Convolutional Neural Networks for classification tasks, and in Reinforcement Learning hardw...

Descripción completa

Detalles Bibliográficos
Autores principales: Cardarilli, Gian Carlo, Di Nunzio, Luca, Fazzolari, Rocco, Giardino, Daniele, Nannarelli, Alberto, Re, Marco, Spanò, Sergio
Formato: Online Artículo Texto
Lenguaje:English
Publicado: Nature Publishing Group UK 2021
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8319144/
https://www.ncbi.nlm.nih.gov/pubmed/34321514
http://dx.doi.org/10.1038/s41598-021-94691-7
_version_ 1783730389329641472
author Cardarilli, Gian Carlo
Di Nunzio, Luca
Fazzolari, Rocco
Giardino, Daniele
Nannarelli, Alberto
Re, Marco
Spanò, Sergio
author_facet Cardarilli, Gian Carlo
Di Nunzio, Luca
Fazzolari, Rocco
Giardino, Daniele
Nannarelli, Alberto
Re, Marco
Spanò, Sergio
author_sort Cardarilli, Gian Carlo
collection PubMed
description In this work a novel architecture, named pseudo-softmax, to compute an approximated form of the softmax function is presented. This architecture can be fruitfully used in the last layer of Neural Networks and Convolutional Neural Networks for classification tasks, and in Reinforcement Learning hardware accelerators to compute the Boltzmann action-selection policy. The proposed pseudo-softmax design, intended for efficient hardware implementation, exploits the typical integer quantization of hardware-based Neural Networks obtaining an accurate approximation of the result. In the paper, a detailed description of the architecture is given and an extensive analysis of the approximation error is performed by using both custom stimuli and real-world Convolutional Neural Networks inputs. The implementation results, based on CMOS standard-cell technology, compared to state-of-the-art architectures show reduced approximation errors.
format Online
Article
Text
id pubmed-8319144
institution National Center for Biotechnology Information
language English
publishDate 2021
publisher Nature Publishing Group UK
record_format MEDLINE/PubMed
spelling pubmed-83191442021-07-29 A pseudo-softmax function for hardware-based high speed image classification Cardarilli, Gian Carlo Di Nunzio, Luca Fazzolari, Rocco Giardino, Daniele Nannarelli, Alberto Re, Marco Spanò, Sergio Sci Rep Article In this work a novel architecture, named pseudo-softmax, to compute an approximated form of the softmax function is presented. This architecture can be fruitfully used in the last layer of Neural Networks and Convolutional Neural Networks for classification tasks, and in Reinforcement Learning hardware accelerators to compute the Boltzmann action-selection policy. The proposed pseudo-softmax design, intended for efficient hardware implementation, exploits the typical integer quantization of hardware-based Neural Networks obtaining an accurate approximation of the result. In the paper, a detailed description of the architecture is given and an extensive analysis of the approximation error is performed by using both custom stimuli and real-world Convolutional Neural Networks inputs. The implementation results, based on CMOS standard-cell technology, compared to state-of-the-art architectures show reduced approximation errors. Nature Publishing Group UK 2021-07-28 /pmc/articles/PMC8319144/ /pubmed/34321514 http://dx.doi.org/10.1038/s41598-021-94691-7 Text en © The Author(s) 2021, corrected publication 2021 https://creativecommons.org/licenses/by/4.0/Open AccessThis article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/ (https://creativecommons.org/licenses/by/4.0/) .
spellingShingle Article
Cardarilli, Gian Carlo
Di Nunzio, Luca
Fazzolari, Rocco
Giardino, Daniele
Nannarelli, Alberto
Re, Marco
Spanò, Sergio
A pseudo-softmax function for hardware-based high speed image classification
title A pseudo-softmax function for hardware-based high speed image classification
title_full A pseudo-softmax function for hardware-based high speed image classification
title_fullStr A pseudo-softmax function for hardware-based high speed image classification
title_full_unstemmed A pseudo-softmax function for hardware-based high speed image classification
title_short A pseudo-softmax function for hardware-based high speed image classification
title_sort pseudo-softmax function for hardware-based high speed image classification
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8319144/
https://www.ncbi.nlm.nih.gov/pubmed/34321514
http://dx.doi.org/10.1038/s41598-021-94691-7
work_keys_str_mv AT cardarilligiancarlo apseudosoftmaxfunctionforhardwarebasedhighspeedimageclassification
AT dinunzioluca apseudosoftmaxfunctionforhardwarebasedhighspeedimageclassification
AT fazzolarirocco apseudosoftmaxfunctionforhardwarebasedhighspeedimageclassification
AT giardinodaniele apseudosoftmaxfunctionforhardwarebasedhighspeedimageclassification
AT nannarellialberto apseudosoftmaxfunctionforhardwarebasedhighspeedimageclassification
AT remarco apseudosoftmaxfunctionforhardwarebasedhighspeedimageclassification
AT spanosergio apseudosoftmaxfunctionforhardwarebasedhighspeedimageclassification
AT cardarilligiancarlo pseudosoftmaxfunctionforhardwarebasedhighspeedimageclassification
AT dinunzioluca pseudosoftmaxfunctionforhardwarebasedhighspeedimageclassification
AT fazzolarirocco pseudosoftmaxfunctionforhardwarebasedhighspeedimageclassification
AT giardinodaniele pseudosoftmaxfunctionforhardwarebasedhighspeedimageclassification
AT nannarellialberto pseudosoftmaxfunctionforhardwarebasedhighspeedimageclassification
AT remarco pseudosoftmaxfunctionforhardwarebasedhighspeedimageclassification
AT spanosergio pseudosoftmaxfunctionforhardwarebasedhighspeedimageclassification