Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Leiva-Valverde, Anthony, Elizondo-Fernández, Fabricio, León-Vega, Luis G., Meinhardt, Cristina, Castro-Godínez, Jorge
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2501.13379
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866911574751444992
author Leiva-Valverde, Anthony
Elizondo-Fernández, Fabricio
León-Vega, Luis G.
Meinhardt, Cristina
Castro-Godínez, Jorge
author_facet Leiva-Valverde, Anthony
Elizondo-Fernández, Fabricio
León-Vega, Luis G.
Meinhardt, Cristina
Castro-Godínez, Jorge
contents The softmax function is a widely used activation function in the output layers of neural networks, responsible for converting raw scores into class probabilities while introducing essential non-linearity. Implementing Softmax efficiently poses challenges on low-end FPGAs due to limited hardware resources and the computational complexity of exponential and division operations. This work evaluates approximate computing techniques for softmax acceleration using Taylor series and interpolation methods using Look-Up Tables (LUTs). These approximations aim to reduce execution time and resource consumption while maintaining acceptable levels of numerical precision. Our findings show that quadratic interpolation with LUTs yields the lowest numerical error. In contrast, Taylor-based approximations offer significantly better performance in terms of execution time and resource efficiency due to their computational simplicity. When applied to real-world deep learning models such as LeNet-5 and MobileNet v2, the first- and second-order Taylor approximations provided substantial trade-offs between accuracy and resource savings, achieving up to 0.2% accuracy degradation and 14% resource reduction compared to exact implementations. These results highlight the effectiveness of approximate Softmax designs on resource-constrained FPGAs and lay the groundwork for their integration into larger models, including large language models (LLMs).
format Preprint
id arxiv_https___arxiv_org_abs_2501_13379
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle A Quantitative Evaluation of Approximate Softmax Functions for Deep Neural Networks
Leiva-Valverde, Anthony
Elizondo-Fernández, Fabricio
León-Vega, Luis G.
Meinhardt, Cristina
Castro-Godínez, Jorge
Hardware Architecture
Signal Processing
The softmax function is a widely used activation function in the output layers of neural networks, responsible for converting raw scores into class probabilities while introducing essential non-linearity. Implementing Softmax efficiently poses challenges on low-end FPGAs due to limited hardware resources and the computational complexity of exponential and division operations. This work evaluates approximate computing techniques for softmax acceleration using Taylor series and interpolation methods using Look-Up Tables (LUTs). These approximations aim to reduce execution time and resource consumption while maintaining acceptable levels of numerical precision. Our findings show that quadratic interpolation with LUTs yields the lowest numerical error. In contrast, Taylor-based approximations offer significantly better performance in terms of execution time and resource efficiency due to their computational simplicity. When applied to real-world deep learning models such as LeNet-5 and MobileNet v2, the first- and second-order Taylor approximations provided substantial trade-offs between accuracy and resource savings, achieving up to 0.2% accuracy degradation and 14% resource reduction compared to exact implementations. These results highlight the effectiveness of approximate Softmax designs on resource-constrained FPGAs and lay the groundwork for their integration into larger models, including large language models (LLMs).
title A Quantitative Evaluation of Approximate Softmax Functions for Deep Neural Networks
topic Hardware Architecture
Signal Processing
url https://arxiv.org/abs/2501.13379