EcoMLS: A Self-Adaptation Approach for Architecting Green ML-Enabled Systems
Meghana Tedla, Shubham Kulkarni, Karthik Vaidhyanathan
TL;DR
EcoMLS addresses runtime energy efficiency in MLS by extending the Machine Learning Model Balancer with energy-aware self-adaptation. It employs a MAPE-K loop to monitor energy and ML performance, evaluates multiple YOLOv5 variants, and dynamically switches models to minimize $Score_m = E_j \times (1 - c_j)$ while preserving accuracy. Empirical results on the SWITCH object-detection exemplar show substantial energy reductions with modest adaptation overhead, confirming the practicality of runtime energy-aware adaptation for green MLS. The work offers a pathway to sustainable MLS across domains, with planned extensions to NLP, autonomous systems, and edge computing, guided by sustainability-focused decision-making.
Abstract
The sustainability of Machine Learning-Enabled Systems (MLS), particularly with regard to energy efficiency, is an important challenge in their development and deployment. Self-adaptation techniques, recognized for their potential in energy savings within software systems, have yet to be extensively explored in Machine Learning-Enabled Systems (MLS), where runtime uncertainties can significantly impact model performance and energy consumption. This variability, alongside the fluctuating energy demands of ML models during operation, necessitates a dynamic approach. Addressing these challenges, we introduce EcoMLS approach, which leverages the Machine Learning Model Balancer concept to enhance the sustainability of MLS through runtime ML model switching. By adapting to monitored runtime conditions, EcoMLS optimally balances energy consumption with model confidence, demonstrating a significant advancement towards sustainable, energy-efficient machine learning solutions. Through an object detection exemplar, we illustrate the application of EcoMLS, showcasing its ability to reduce energy consumption while maintaining high model accuracy throughout its use. This research underscores the feasibility of enhancing MLS sustainability through intelligent runtime adaptations, contributing a valuable perspective to the ongoing discourse on energy-efficient machine learning.
