EcoMLS: A Self-Adaptation Approach for Architecting Green ML-Enabled Systems (2404.11411v1)
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.
- A. Reuther, P. Michaleas, M. Jones, V. Gadepally, S. Samsi, and J. Kepner, “Survey and benchmarking of machine learning accelerators,” in 2019 IEEE High Performance Extreme Computing Conference (HPEC). IEEE, Sep. 2019. [Online]. Available: http://dx.doi.org/10.1109/HPEC.2019.8916327
- Y. Mehta, R. Xu, B. Lim, J. Wu, and J. Gao, “A review for green energy machine learning and ai services,” Energies, vol. 16, no. 15, 2023. [Online]. Available: https://www.mdpi.com/1996-1073/16/15/5718
- E. Strubell, A. Ganesh, and A. McCallum, “Energy and policy considerations for deep learning in nlp,” arXiv preprint arXiv:1906.02243, 2019.
- E. García-Martín, C. F. Rodrigues, G. Riley, and H. Grahn, “Estimation of energy consumption in machine learning,” Journal of Parallel and Distributed Computing, vol. 134, pp. 75–88, 2019. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S0743731518308773
- S. Martínez-Fernández, J. Bogner, X. Franch, M. Oriol, J. Siebert, A. Trendowicz, A. M. Vollmer, and S. Wagner, “Software engineering for ai-based systems: A survey,” ACM Trans. Softw. Eng. Methodol., vol. 31, no. 2, 2022.
- A. Lacoste, A. Luccioni, V. Schmidt, and T. Dandres, “Quantifying the carbon emissions of machine learning,” arXiv preprint arXiv:1910.09700, 2019.
- E. M. Bender, T. Gebru, A. McMillan-Major, and S. Shmitchell, “On the dangers of stochastic parrots: Can language models be too big?” in Proceedings of the 2021 ACM Conference on Fairness, Accountability, and Transparency, ser. FAccT ’21. New York, NY, USA: Association for Computing Machinery, 2021, p. 610–623. [Online]. Available: https://doi.org/10.1145/3442188.3445922
- T. Yigitcanlar, R. Mehmood, and J. M. Corchado, “Green artificial intelligence: Towards an efficient, sustainable and equitable technology for smart cities and futures,” Sustainability, vol. 13, no. 16, 2021.
- E. Barbierato and A. Gatti, “Towards green ai. a methodological survey of the scientific literature,” IEEE Access, pp. 1–1, 2024.
- H. Järvenpää, P. Lago, J. Bogner, G. Lewis, H. Muccini, and I. Ozkaya, “A synthesis of green architectural tactics for ml-enabled systems,” arXiv preprint arXiv:2312.09610, 2023.
- R. Verdecchia, L. Cruz, J. Sallou, M. Lin, J. Wickenden, and E. Hotellier, “Data-centric green ai an exploratory empirical study,” in 2022 International Conference on ICT for Sustainability (ICT4S). Los Alamitos, CA, USA: IEEE Computer Society, jun 2022, pp. 35–45. [Online]. Available: https://doi.ieeecomputersociety.org/10.1109/ICT4S55073.2022.00015
- F. A. Moghaddam, P. Lago, and I. C. Ban, “Self-adaptation approaches for energy efficiency: a systematic literature review,” in Proceedings of the 6th International Workshop on Green and Sustainable Software, ser. GREENS ’18. Association for Computing Machinery, 2018. [Online]. Available: https://doi.org/10.1145/3194078.3194084
- R. Verdecchia, J. Sallou, and L. Cruz, “A systematic review of green ai,” Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery, p. e1507, 2023.
- M. Casimiro, P. Romano, D. Garlan, G. A. Moreno, E. Kang, and M. Klein, “Self-adaptation for machine learning based systems.” in ECSA (Companion), 2021.
- S. Kulkarni, A. Marda, and K. Vaidhyanathan, “Towards self-adaptive machine learning-enabled systems through qos-aware model switching,” in 2023 38th IEEE/ACM International Conference on Automated Software Engineering (ASE). IEEE, 2023.
- A. Marda, S. Kulkarni, and K. Vaidhyanathan, “Switch: An exemplar for evaluating self-adaptive ml-enabled systems,” 2024.
- J. Redmon, S. Divvala, R. Girshick, and A. Farhadi, “You only look once: Unified, real-time object detection,” in Proceedings of the IEEE conference on computer vision and pattern recognition, 2016.
- G. Jocher, “Yolov5 by ultralytics,” May 2020. [Online]. Available: https://github.com/ultralytics/yolov5
- T.-Y. Lin, M. Maire, S. Belongie, L. Bourdev, R. Girshick, J. Hays, P. Perona, D. Ramanan, C. L. Zitnick, and P. Dollár, “Microsoft coco: Common objects in context,” 2015.
- R. Verdecchia, L. Cruz, J. Sallou, M. Lin, J. Wickenden, and E. Hotellier, “Data-centric green ai an exploratory empirical study,” in 2022 International Conference on ICT for Sustainability (ICT4S). Los Alamitos, CA, USA: IEEE Computer Society, 2022, pp. 35–45. [Online]. Available: https://doi.ieeecomputersociety.org/10.1109/ICT4S55073.2022.00015
- T. Wong, M. Wagner, and C. Treude, “Self-adaptive systems: A systematic literature review across categories and domains,” Information and Software Technology, vol. 148, 2022.
- H. Muccini and K. Vaidhyanathan, “Software architecture for ml-based systems: What exists and what lies ahead,” in 2021 IEEE/ACM 1st Workshop on AI Engineering - Software Engineering for AI (WAIN), 2021, pp. 121–128. [Online]. Available: https://doi.ieeecomputersociety.org/10.1109/WAIN52551.2021.00026
- F. A. Moghaddam, P. Lago, and I. C. Ban, “Self-adaptation approaches for energy efficiency: a systematic literature review,” in Proceedings of the 6th International Workshop on Green and Sustainable Software. New York, NY, USA: Association for Computing Machinery, 2018. [Online]. Available: https://doi.org/10.1145/3194078.3194084
- I. Gerostathopoulos, C. Raibulet, and P. Lago, “Expressing the adaptation intent as a sustainability goal,” in Proceedings of the ACM/IEEE 44th International Conference on Software Engineering: New Ideas and Emerging Results, ser. ICSE-NIER ’22, 2022. [Online]. Available: https://doi.org/10.1145/3510455.3512776
- A. Tundo, M. Mobilio, S. Ilager, I. Brandic, E. Bartocci, and L. Mariani, “An energy-aware approach to design self-adaptive ai-based applications on the edge,” in 2023 38th IEEE/ACM International Conference on Automated Software Engineering (ASE). IEEE Computer Society, 2023.
- Meghana Tedla (2 papers)
- Shubham Kulkarni (4 papers)
- Karthik Vaidhyanathan (23 papers)