Green Architectural Tactics in ML-enabled Systems: An LLM-based Repository Mining Study Journal: Empirical Software Engineering
Vincenzo De Martino, Silverio Martínez-Fernández, Fabio Palomba · 2026
Read Green Architectural Tactics in ML-enabled Systems: An LLM-based Repository Mining Study Journal: Empirical Software Engineering by Vincenzo De Martino, Silverio Martínez-Fernández, Fabio Palomba (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2603-18734.txt.
Introduction
De Martino, Martínez-Fernández, and Palomba mine GitHub to see which green practices ML projects really use. Training and inference burn large amounts of compute, so efficiency tactics matter. The team studies 205 open-source machine learning projects. A language-model tool scans code for known sustainable practices and spots new ones. Known tactics from the literature do appear, though uptake varies widely. The scan also finds nine practices not yet documented. The authors draw lessons for builders who want lower-impact systems.
Catalog record
| CREATOR | Vincenzo De Martino, Silverio Martínez-Fernández, Fabio Palomba |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 104733 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2603.18734
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Green Architectural Tactics in ML-enabled Systems: An LLM-based Repository Mining Study Journal: Empirical Software Engineering Vincenzo De Martino, Silverio Martínez-Fernández, Fabio Palomba Abstract Context: The increasing adoption of machine learning (ML) and artificial intelligence (AI) technologies raises growing concerns about their environmental sustainability. Developing and deploying ML-enabled systems is computationally intensive, particularly during training and inference. Green AI has emerged to address these issues by promoting efficiency without sacrificing accuracy. While prior research has proposed catalogs of sustainable practices (i.e., green tactics), there remains limited understanding of their adoption in practice and whether additional, undocumented tactics exist. Objective: This study aims to investigate the extent to which existing sustainable practices are implemented in real-world ML-enabled systems and to identify previously undocumented practices that support environmental sustainability. Method: We conduct a mining software repository study on 205 open-source ML projects on GitHub . To support our analysis, we design a novel mechanism based on large language models (LLMs) capable of identifying both known and new sustainable practices from code repositories. Results: Our findings confirm that green tactics reported in the literature are used in practice, although adoption rates vary. Furthermore, our LLM-based approach reveals nine previously undocumented sustainable practices. Each tactic is supported with code examples to aid adoption and integration. Conclusions: We finally provide insights for practitioners seeking to reduce the environmental impact of ML-enabled systems and offer a foundation for future research in automating the detection and adoption of sustainable practices. ∎ 1 Introduction The widespread influence of machine learning (ML) and artificial intelligence (AI) in various sectors - such as education, medicine, science, and finance - has been well documented, and these technologies drive significant gains in innovation and efficiency wu2022sustainable . As a subset of AI, ML focuses on creating algorithms that can learn from data and make predictions or decisions without being explicitly programmed sarker2021machine . Systems incorporating AI or ML, often referred to as AI-enabled or ML-enabled systems, are becoming increasingly common martinez2022software . The growing use of these systems raises concerns about their sustainability, particularly in terms of energy consumption and CO 2 emissions, which have become increasingly pressing lacoste2019quantifying ; duran2024identifying ; de2025sustainability . The development and deployment of ML-enabled systems are resource-intensive, especially during training and inference schwartz2020green . For example, training models like LLaMA-65B consume around 449 MWh of electricity, producing approximately 173 tons of CO 2 emissions touvron2023llama , which corresponds to powering an average electric car for approximately 5,058 km (3,143 miles) zhao2023quantifying , raising concerns about their long-term sustainability, especially considering the increasing demand for powerful models. While the focus has traditionally been on maximizing accuracy, there is increasing recognition of the need to balance this with environmental impact, leading to the concept of Green AI schwartz2020green . Green AI advocates for reducing computational demands while maintaining accuracy, emphasizing a responsible approach to AI development and deployment van2021sustainable . Maintaining this balance is essential to promote sustainable ML engineering and is important for society and users of ML systems, who are increasingly concerned about climate change. By addressing the environmental impact of ML-enabled systems, Green AI helps foster trust and align technological progress with broader societal goals of environmental responsibility and climate action martinez2024environmental . In recent years, the software engineering community has made considerable efforts in promoting software sustainability, with specific attention now being paid to ML-enabled systems verdecchia2023systematic ; tamburri2020sustainable ; martinez2023towards . This shift has led to the identification and synthesis of various green tactics aimed at reducing the environmental footprint of ML models verdecchia2023systematic ; 10.1145/3639475.3640111 . For instance, Järvenpää et al. 10.1145/3639475.3640111 recently elicited a comprehensive catalog of 30 green architectural tactics for ML-enabled systems, which were derived from a thorough analysis of the literature and validated through expert focus groups. These tactics encompass strategies across different phases of ML development and deployment, such as data-centric and management. A code example of a green architectural tactic is the quantization techniques provided by PyTorch 1 1 1 https://pytorch.org/docs/stable/quantization.html , such as dynamic quantization shown below, to optimize ML models. ⬇ 1 import torch 2 # create a model instance 3 model_fp32 = M () 4 # create a quantized model instance 5 model_int8 = torch . ao . quantization . quantize_dynamic ( 6 model_fp32 , # the original model 7 { torch . nn . Linear }, # a set of layers to dynamically quantize 8 dtype = torch . qint8 ) # the target dtype for quantized weights While the work by Järvenpää et al. 10.1145/3639475.3640111 offers valuable guidance on Green AI, the actual relevance of these tactics is not yet established. There is still a gap of knowledge on the extent to which green tactics are actually implemented in real-world contexts. Moreover, it is unclear if there are additional practices not yet documented in the literature that practitioners employ when developing ML-enabled systems. An improved understanding of the practical adoption of green AI tactics is crucial for both researchers and practitioners. Researchers can gain insights into the relevance and impact of certain tactics, which can inform future studies and refinements of existing guidelines. Practitioners can benefit from knowledge of the most widely employed tactics in the wild, which can guide them in making sustainable choices. Furthermore, assessing the impact of the documented tactics will make previous findings more actionable and tangible, thereby enhancing their practical utility. To overcome the limitations of previous studies, we recently presented a preliminary short paper de2024developers where we investigated the extent to which developers adopt green tactics defined in the literature when developing ML-enabled systems. Specifically, we build upon the catalog proposed by Järvenpää et al. 10.1145/3639475.3640111 , analyzing the adoption of these tactics in 168 open-source ML projects on GitHub . To this aim, we developed a novel LLM-based mechanism to identify green architectural tactics in software repositories at the code level. This earlier work revealed that while developers implement many cataloged tactics, others remain underutilized due to knowledge gaps or implementation challenges. In this article, we build on this foundation by addressing two critical limitations of the earlier study. • First, we broaden the scope beyond the predefined catalog of tactics by enhancing the LLM-based mechanism to identify undocumented green tactics employed by developers in real-world ML-enabled systems. This approach allowed us to extend the existing catalog by introducing new tactics that were not previously documented . • Second, we augment the empirical findings of the preliminary study with additional quantitative and qualitative insights supported by detailed examples of the newly identified tactics , and expanding our dataset from 168 to 205 open-source ML projects . • Furthermore, we provide an extended and refined description of the methodology employed to investigate the adoption of green tactics , enhancing the comprehensiveness of our analysis. • Finally, we provided discussions and implications of our work for researchers and practitioners, highlighting how the findings of our study may impact future developments in green software engineering . Our results reveal that all existing tactics in the literature are adopted in real software projects, with a different frequency for each tactic. Additionally, starting by analyzing code rather than papers as previous work verdecchia2023systematic ; 10.1145/3639475.3640111 , we were able to