Green AI: Which Programming Language Consumes the Most?
Niccol\`o Marini, Leonardo Pampaloni, Filippo Di Martino, Roberto, Verdecchia, and Enrico Vicario

TL;DR
This study empirically evaluates how different programming languages impact the energy consumption of AI tasks, revealing significant differences and emphasizing the importance of language choice for sustainable AI development.
Contribution
It provides the first controlled empirical analysis of programming language effects on AI energy efficiency across multiple algorithms and datasets.
Findings
Compiled languages consume less energy than interpreted ones.
Energy consumption varies significantly with the algorithm used.
Language choice impacts training and inference energy efficiency differently.
Abstract
AI is demanding an evergrowing portion of environmental resources. Despite their potential impact on AI environmental sustainability, the role that programming languages play in AI (in)efficiency is to date still unknown. With this study, we aim to understand the impact that programming languages can have on AI environmental sustainability. To achieve our goal, we conduct a controlled empirical experiment by considering five programming languages (C++, Java, Python, MATLAB, and R), seven AI algorithms (KNN, SVC, AdaBoost, decision tree, logistic regression, naive bayses, and random forest), three popular datasets, and the training and inference phases. The collected results show that programming languages have a considerable impact on AI environmental sustainability. Compiled and semi-compiled languages (C++, Java) consistently consume less than interpreted languages (Python, MATLAB,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsGreen IT and Sustainability · Context-Aware Activity Recognition Systems · IoT and Edge/Fog Computing
