Skip to main navigation Skip to search Skip to main content

A Quantitative Evaluation of Approximate Softmax Functions for Deep Neural Networks

  • Anthony Leiva-Valverde
  • , Fabricio Elizondo-Fernández
  • , Luis G. León-Vega
  • , Cristina Meinhardt
  • , Jorge Castro-Godínez
  • Costa Rica Institute of Technology
  • University of Trieste
  • Universidade Federal de Santa Catarina

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

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).

Original languageEnglish
Title of host publication2026 IEEE 17th Latin American Symposium on Circuits and Systems, LASCAS 2026 - Proceedings
PublisherInstitute of Electrical and Electronics Engineers Inc.
ISBN (Electronic)9798331570972
DOIs
StatePublished - 2026
Event17th Latin American Symposium on Circuits and Systems, LASCAS 2026 - Arequipa, Peru
Duration: 24 Feb 202627 Feb 2026

Publication series

Name2026 IEEE 17th Latin American Symposium on Circuits and Systems, LASCAS 2026 - Proceedings

Conference

Conference17th Latin American Symposium on Circuits and Systems, LASCAS 2026
Country/TerritoryPeru
CityArequipa
Period24/02/2627/02/26

UN SDGs

This output contributes to the following UN Sustainable Development Goals (SDGs)

  1. SDG 8 - Decent Work and Economic Growth
    SDG 8 Decent Work and Economic Growth
  2. SDG 12 - Responsible Consumption and Production
    SDG 12 Responsible Consumption and Production

Keywords

  • Approximate computing
  • high-level synthesis
  • inference algorithms
  • multilayer perceptrons
  • neural network compression

Fingerprint

Dive into the research topics of 'A Quantitative Evaluation of Approximate Softmax Functions for Deep Neural Networks'. Together they form a unique fingerprint.

Cite this