Batching for Green AI -- An Exploratory Study on Inference

Tim Yarally, Luís Cruz, Daniel Feitosa, June Sallou, Arie van Deursen

Research output: Chapter in Book/Report/Conference proceedingConference contributionAcademicpeer-review

25 Downloads (Pure)

Abstract

The batch size is an essential parameter to tune during the development of new neural networks. Amongst other quality indicators, it has a large degree of influence on the model's accuracy, generalisability, training times and parallelisability. This fact is generally known and commonly studied. However, during the application phase of a deep learning model, when the model is utilised by an end-user for inference, we find that there is a disregard for the potential benefits of introducing a batch size. In this study, we examine the effect of input batching on the energy consumption and response times of five fully-trained neural networks for computer vision that were considered state-of-the-art at the time of their publication. The results suggest that batching has a significant effect on both of these metrics. Furthermore, we present a timeline of the energy efficiency and accuracy of neural networks over the past decade. We find that in general, energy consumption rises at a much steeper pace than accuracy and question the necessity of this evolution. Additionally, we highlight one particular network, ShuffleNetV2(2018), that achieved a competitive performance for its time while maintaining a much lower energy consumption. Nevertheless, we highlight that the results are model dependent.
Original languageEnglish
Title of host publication2023 49th Euromicro Conference on Software Engineering and Advanced Applications (SEAA)
EditorsRadovan Stojanovic, Xiaozhou Li
Place of PublicationPiscataway
PublisherIEEE
Pages112-119
Number of pages8
ISBN (Electronic)979-8-3503-4235-2
ISBN (Print)979-8-3503-4236-9
DOIs
Publication statusPublished - 1-Jan-2024
Event49th EUROMICRO Conference on Software Engineering and Advanced Applications - Durres, Albania
Duration: 6-Sept-20238-Sept-2023
Conference number: 49
https://dsd-seaa2023.com/seaa/

Conference

Conference49th EUROMICRO Conference on Software Engineering and Advanced Applications
Abbreviated titleSEAA '23
Country/TerritoryAlbania
CityDurres
Period06/09/202308/09/2023
Internet address

Keywords

  • cs.LG
  • cs.AI
  • cs.CV
  • cs.SE

Fingerprint

Dive into the research topics of 'Batching for Green AI -- An Exploratory Study on Inference'. Together they form a unique fingerprint.

Cite this