Skip to main content
Erschienen in: Empirical Software Engineering 1/2024

01.02.2024

Which design decisions in AI-enabled mobile applications contribute to greener AI?

verfasst von: Roger Creus Castanyer, Silverio Martínez-Fernández, Xavier Franch

Erschienen in: Empirical Software Engineering | Ausgabe 1/2024

Einloggen

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

Background

The usage of complex artificial intelligence (AI) models demands expensive computational resources. While currently, available high-performance computing environments can support such complexity, the deployment of AI models in mobile devices, which is an increasing trend, is challenging. Environments with low computational resources imply limitations in the design decisions during the AI-enabled software engineering lifecycle that balance the trade-off between the accuracy and the complexity of the mobile applications.

Objective

Our objective is to systematically assess the trade-off between accuracy and complexity when deploying complex AI models (e.g. neural networks) to mobile devices in pursuit of greener AI solutions. We aim to cover (i) the impact of the design decisions on the achievement of high-accuracy and low resource-consumption implementations; and (ii) the validation of profiling tools for systematically promoting greener AI.

Method

We implement neural networks in mobile applications to solve multiple image and text classification problems on a variety of benchmark datasets. We then profile and model the accuracy, storage weight, and time of CPU usage of the AI-enabled applications in operation with respect to their design decisions. Finally, we provide an open-source data repository following the EMSE open science practices and containing all the experimentation, analysis, and reports in our study.

Results

We find that the number of parameters in the AI models makes the time of CPU usage scale exponentially in convolutional neural networks and logarithmically in fully-connected layers. We also see the storage weight scales linearly with the number of parameters, while the accuracy does not. For this reason, we argue that a good practice for practitioners is to start small and only increase the size of the AI models when their accuracy is low. We also find that Residual Networks (ResNets) and Transformers have a higher baseline cost in time of CPU usage than simple convolutional and recurrent neural networks. Finally, we find that the dataset used for experimentation affects both the scaling properties and accuracy of the AI models, hence showing that researchers must study the presented set of design decisions in each specific problem context.

Conclusions

We have depicted an underlying and existing relationship between the design of AI models and the performance of the applications that integrate these, and we motivate further work and extensions to better characterize this complex relationship.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Literatur
Zurück zum Zitat Banerjee A, Roychoudhury A (2016) In: Proceedings of the International conference on mobile software engineering and systems (2016), pp 139–150 Banerjee A, Roychoudhury A (2016) In: Proceedings of the International conference on mobile software engineering and systems (2016), pp 139–150
Zurück zum Zitat Bao L, Lo D, Xia X, Wang X, Tian C (2016) In: 2016 IEEE/ACM 13th Working conference on mining software repositories (MSR) IEEE, pp 37–48 Bao L, Lo D, Xia X, Wang X, Tian C (2016) In: 2016 IEEE/ACM 13th Working conference on mining software repositories (MSR) IEEE, pp 37–48
Zurück zum Zitat Basili VR, Caldiera G, Rombach DH (1994) The Goal Question Metric Approach. Encycl Softw Eng 1 Basili VR, Caldiera G, Rombach DH (1994) The Goal Question Metric Approach. Encycl Softw Eng 1
Zurück zum Zitat Brown T, Mann B, Ryder N, Subbiah M, Kaplan JD, Dhariwal P, Neelakantan A, Shyam P, Sastry G, Askell A et al (2020) Advances in neural information processing systems 33:1877 Brown T, Mann B, Ryder N, Subbiah M, Kaplan JD, Dhariwal P, Neelakantan A, Shyam P, Sastry G, Askell A et al (2020) Advances in neural information processing systems 33:1877
Zurück zum Zitat Byun C, Arcand W, Bestor D, Bergeron B, Hubbell M, Kepner J, McCabe A, Michaleas P, Mullen J, O’Gwynn D, et al (2012) In: 2012 IEEE Conference on high performance extreme computing IEEE, pp 1–6 Byun C, Arcand W, Bestor D, Bergeron B, Hubbell M, Kepner J, McCabe A, Michaleas P, Mullen J, O’Gwynn D, et al (2012) In: 2012 IEEE Conference on high performance extreme computing IEEE, pp 1–6
Zurück zum Zitat Calero C, Moraga MÁ, Piattini M (2021) Software Sustainability pp 1–15 Calero C, Moraga MÁ, Piattini M (2021) Software Sustainability pp 1–15
Zurück zum Zitat Calero C, Piattini M (2017) Ontologies for software engineering and software technology Calero C, Piattini M (2017) Ontologies for software engineering and software technology
Zurück zum Zitat Castanyer RC, Martínez-Fernández S, Franch X (2021) In: 2021 IEEE/ACM 1st Workshop on AI engineering-software engineering for AI (WAIN) IEEE, pp 27–34 Castanyer RC, Martínez-Fernández S, Franch X (2021) In: 2021 IEEE/ACM 1st Workshop on AI engineering-software engineering for AI (WAIN) IEEE, pp 27–34
Zurück zum Zitat Chen Z, Cao Y, Liu Y, Wang H, Xie T, Liu X (2020) In: Proceedings of the 28th ACM ESEC/FSE, pp 750–762 Chen Z, Cao Y, Liu Y, Wang H, Xie T, Liu X (2020) In: Proceedings of the 28th ACM ESEC/FSE, pp 750–762
Zurück zum Zitat Chowdhury S, Borle S, Romansky S, Hindle A (2019) Empirical Software Engineering 24(4):1649CrossRef Chowdhury S, Borle S, Romansky S, Hindle A (2019) Empirical Software Engineering 24(4):1649CrossRef
Zurück zum Zitat Cruz L, Abreu R 2019 Emp Softw Eng 24(4):2209 Cruz L, Abreu R 2019 Emp Softw Eng 24(4):2209
Zurück zum Zitat Devlin J, Chang MW, Lee K, Toutanova K (2018) Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv:1810.04805 Devlin J, Chang MW, Lee K, Toutanova K (2018) Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv:​1810.​04805
Zurück zum Zitat Dowd K, Severance C (2010) High performance computing Dowd K, Severance C (2010) High performance computing
Zurück zum Zitat Georgiou S, Kechagia M, Sharma T, Sarro F, Zou Y (2022) ACM: Association for Computing Machinery Georgiou S, Kechagia M, Sharma T, Sarro F, Zou Y (2022) ACM: Association for Computing Machinery
Zurück zum Zitat Go A, Bhayani R, Huang L (2009) CS224N project report, Stanford 1(12):2009 Go A, Bhayani R, Huang L (2009) CS224N project report, Stanford 1(12):2009
Zurück zum Zitat Guo Q, Chen S, Xie X, Ma L, Hu Q, Liu H et al (2019) In: 2019 34th IEEE/ACM International conference on automated software engineering (ASE) IEEE, pp 810–822 Guo Q, Chen S, Xie X, Ma L, Hu Q, Liu H et al (2019) In: 2019 34th IEEE/ACM International conference on automated software engineering (ASE) IEEE, pp 810–822
Zurück zum Zitat Krizhevsky A, Hinton G et al Learning multiple layers of features from tiny images (2009) Krizhevsky A, Hinton G et al Learning multiple layers of features from tiny images (2009)
Zurück zum Zitat Lwakatare LE, Raj A, Crnkovic I, Bosch J, Olsson HH (2020) Information and Software Technology 127:106368CrossRef Lwakatare LE, Raj A, Crnkovic I, Bosch J, Olsson HH (2020) Information and Software Technology 127:106368CrossRef
Zurück zum Zitat Maas AL, Daly RE, Pham PT, Huang D, Ng AY, Potts C (2011) In: Proceedings of the 49th annual meeting of the association for computational linguistics: human language technologies association for computational linguistics, Portland, Oregon, USA, pp 142–150. http://www.aclweb.org/anthology/P11-1015 Maas AL, Daly RE, Pham PT, Huang D, Ng AY, Potts C (2011) In: Proceedings of the 49th annual meeting of the association for computational linguistics: human language technologies association for computational linguistics, Portland, Oregon, USA, pp 142–150. http://​www.​aclweb.​org/​anthology/​P11-1015
Zurück zum Zitat Mao H, Cheung M, She J (2017) In: Proceedings of the 25th ACM international conference on multimedia, pp 1183–1191 Mao H, Cheung M, She J (2017) In: Proceedings of the 25th ACM international conference on multimedia, pp 1183–1191
Zurück zum Zitat Méndez Fernández D, Monperrus M, Feldt R, Zimmermann T (2019) Empirical Software Engineering 24(3):1057CrossRef Méndez Fernández D, Monperrus M, Feldt R, Zimmermann T (2019) Empirical Software Engineering 24(3):1057CrossRef
Zurück zum Zitat Miles J (2014) Wiley StatsRef: Statistics Reference Online Miles J (2014) Wiley StatsRef: Statistics Reference Online
Zurück zum Zitat Miles MB, Huberman AM (1994) Qualitative data analysis: An expanded sourcebook sage Miles MB, Huberman AM (1994) Qualitative data analysis: An expanded sourcebook sage
Zurück zum Zitat Mohri M, Rostamizadeh A, Talwalkar A (2018) Foundations of machine learning, MIT press Mohri M, Rostamizadeh A, Talwalkar A (2018) Foundations of machine learning, MIT press
Zurück zum Zitat Ni J, Li J, McAuley J (2019) In: Proceedings of the 2019 conference on empirical methods in natural language processing and the 9th international joint conference on natural language processing (EMNLP-IJCNLP), pp 188–197 Ni J, Li J, McAuley J (2019) In: Proceedings of the 2019 conference on empirical methods in natural language processing and the 9th international joint conference on natural language processing (EMNLP-IJCNLP), pp 188–197
Zurück zum Zitat Oord Avd, Dieleman S, Zen H, Simonyan K, Vinyals O, Graves A, Kalchbrenner N, Senior A, Kavukcuoglu K (2016) Wavenet: A generative model for raw audio. arXiv:1609.03499 Oord Avd, Dieleman S, Zen H, Simonyan K, Vinyals O, Graves A, Kalchbrenner N, Senior A, Kavukcuoglu K (2016) Wavenet: A generative model for raw audio. arXiv:​1609.​03499
Zurück zum Zitat Pope P, Webster J (1972) Technometrics 14(2):327 Pope P, Webster J (1972) Technometrics 14(2):327
Zurück zum Zitat Rasley J, Rajbhandari S, Ruwase O, He Y (2020) In: Proceedings of the 26th ACM SIGKDD international conference on knowledge discovery & data mining, pp 3505–3506 Rasley J, Rajbhandari S, Ruwase O, He Y (2020) In: Proceedings of the 26th ACM SIGKDD international conference on knowledge discovery & data mining, pp 3505–3506
Zurück zum Zitat Sanh V, Debut L, Chaumond J, Wolf T (2019) DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter. arXiv:1910.01108 Sanh V, Debut L, Chaumond J, Wolf T (2019) DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter. arXiv:​1910.​01108
Zurück zum Zitat Silver D, Schrittwieser J, Simonyan K, Antonoglou I, Huang A, Guez A, Hubert T, Baker L, Lai M, Bolton A et al (2017) Nature 550(7676):354CrossRef Silver D, Schrittwieser J, Simonyan K, Antonoglou I, Huang A, Guez A, Hubert T, Baker L, Lai M, Bolton A et al (2017) Nature 550(7676):354CrossRef
Zurück zum Zitat Stallkamp J, Schlipsing M, Salmen J, Igel C (2012) Neural networks 32:323CrossRef Stallkamp J, Schlipsing M, Salmen J, Igel C (2012) Neural networks 32:323CrossRef
Zurück zum Zitat Tan M, Le Q (2019) In: International Conference on Machine Learning PMLR, pp 6105–6114 Tan M, Le Q (2019) In: International Conference on Machine Learning PMLR, pp 6105–6114
Zurück zum Zitat Tappert CC, Suen CY, Wakahara T (1990) IEEE Transactions on pattern analysis and machine intelligence 12(8):787CrossRef Tappert CC, Suen CY, Wakahara T (1990) IEEE Transactions on pattern analysis and machine intelligence 12(8):787CrossRef
Zurück zum Zitat Verdecchia R, Sallou J, Cruz L (2023) A systematic review of Green AI. Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery. arXiv:2301.11047 Verdecchia R, Sallou J, Cruz L (2023) A systematic review of Green AI. Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery. arXiv:​2301.​11047
Zurück zum Zitat Verdecchia R, Cruz L, Sallou J, Lin M, Wickenden J, Hotellier E (2022) Data-centric green ai an exploratory empirical study. In: 2022 international conference on ICT for sustainability (ICT4S). arXiv:2204.02766 Verdecchia R, Cruz L, Sallou J, Lin M, Wickenden J, Hotellier E (2022) Data-centric green ai an exploratory empirical study. In: 2022 international conference on ICT for sustainability (ICT4S). arXiv:​2204.​02766
Zurück zum Zitat Xu Y, Martínez-Fernández S, Martinez M, Franch X (2023) Xu Y, Martínez-Fernández S, Martinez M, Franch X (2023)
Zurück zum Zitat Zellers R, Holtzman A, Rashkin H, Bisk Y, Farhadi A, Roesner F, Choi Y (2019) Advances in neural information processing systems. arXiv:1905.12616 Zellers R, Holtzman A, Rashkin H, Bisk Y, Farhadi A, Roesner F, Choi Y (2019) Advances in neural information processing systems. arXiv:​1905.​12616
Metadaten
Titel
Which design decisions in AI-enabled mobile applications contribute to greener AI?
verfasst von
Roger Creus Castanyer
Silverio Martínez-Fernández
Xavier Franch
Publikationsdatum
01.02.2024
Verlag
Springer US
Erschienen in
Empirical Software Engineering / Ausgabe 1/2024
Print ISSN: 1382-3256
Elektronische ISSN: 1573-7616
DOI
https://doi.org/10.1007/s10664-023-10407-7

Weitere Artikel der Ausgabe 1/2024

Empirical Software Engineering 1/2024 Zur Ausgabe

Premium Partner