mlsanityData to 7 Oct 2026

Green AI: Which Programming Language Consumes the Most?

arXiv 2501.14776 ↗First posted 31 Dec 2024cs.CY cs.AI cs.PLcited by 2

Not on the map. Why?

Abstract (arXiv)

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, R), which require up to 54x more energy. Some languages are cumulatively more efficient in training, while others in inference. Which programming language consumes the most highly depends on the algorithm considered. Ultimately, algorithm implementation might be the most determining factor in Green AI, regardless of the language used. As conclusion, while making AI more environmentally sustainable is paramount, a trade-off between energy efficiency and implementation ease should always be considered. Green AI can be achieved without the need of completely disrupting the development practices and technologies currently in place.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 4 of its 18 references that are in the map. First posted on arXiv 31 Dec 2024.

Builds on

4 of 18 references.

References · 4

  1. 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,242
  2. 2019Green AIcited by 620
  3. 2019Quantifying the Carbon Emissions of Machine Learningcited by 516
  4. 2023A Systematic Review of Green AIcited by 77

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.