The growing awareness of the computational and environmental costs associated with running Machine and Deep Learning models has increased interest in efficiency-aware evaluation. Model performance is commonly assessed through predictive metrics such as accuracy, which do not capture the computational cost required to obtain such results. Existing indicators like execution time, energy consumption, or CO2 emissions depend strongly on hardware and infrastructure characteristics, limiting comparability and reproducibility. FLOPpy addresses this limitation by providing hardware-agnostic estimates of the computational effort required during both training and inference through the number of Floating Point Operations (FLOPs). Beyond this widely adopted metric, FLOPpy introduces the estimation of Bit-Operations (BOPs) by dynamically intercepting tensor precisions at runtime. This enables a precision-aware quantification of computation, capturing efficiency aspects that FLOPs alone cannot reflect. By jointly modeling operation count and numerical precision, the proposed library establishes a more faithful and comprehensive characterization of computational cost. FLOPpy integrates seamlessly with widely used Machine and Deep Learning libraries, allowing researchers and practitioners to incorporate reproducible, precision-aware efficiency analysis into existing experimental workflows.

FLOPpy: A hardware-agnostic Python library to monitor the computational cost of machine and deep learning algorithms

Scala, Francesco
;
Martirano, Liliana;Pontieri, Luigi
2026

Abstract

The growing awareness of the computational and environmental costs associated with running Machine and Deep Learning models has increased interest in efficiency-aware evaluation. Model performance is commonly assessed through predictive metrics such as accuracy, which do not capture the computational cost required to obtain such results. Existing indicators like execution time, energy consumption, or CO2 emissions depend strongly on hardware and infrastructure characteristics, limiting comparability and reproducibility. FLOPpy addresses this limitation by providing hardware-agnostic estimates of the computational effort required during both training and inference through the number of Floating Point Operations (FLOPs). Beyond this widely adopted metric, FLOPpy introduces the estimation of Bit-Operations (BOPs) by dynamically intercepting tensor precisions at runtime. This enables a precision-aware quantification of computation, capturing efficiency aspects that FLOPs alone cannot reflect. By jointly modeling operation count and numerical precision, the proposed library establishes a more faithful and comprehensive characterization of computational cost. FLOPpy integrates seamlessly with widely used Machine and Deep Learning libraries, allowing researchers and practitioners to incorporate reproducible, precision-aware efficiency analysis into existing experimental workflows.
2026
Istituto di Calcolo e Reti ad Alte Prestazioni - ICAR
Bit-operations
Computational workload
Deep learning
Floating point operations
Green AI
Hardware-agnostic
Machine learning
File in questo prodotto:
File Dimensione Formato  
1-s2.0-S2352711026003572-main.pdf

accesso aperto

Tipologia: Versione Editoriale (PDF)
Licenza: Creative commons
Dimensione 1.77 MB
Formato Adobe PDF
1.77 MB Adobe PDF Visualizza/Apri

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/20.500.14243/591741
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? ND
social impact