A Study on the Battery Usage of Deep Learning Frameworks on iOS Devices

Vitor Jacques, Negar Alizadeh, Fernando Castor

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

1 Citation (Scopus)

Abstract

As machine learning continues to establish its presence on mobile platforms, there arises a need to evaluate model resource usage across a variety of devices and frameworks. In this paper, we measure the performance and battery usage of inference for three significant machine learning models, MobileNetV2, ResNet50, and BERT QA, when employing different deep learning frameworks (CoreML, Tensorflow, and PyTorch), iOS devices (iPhone 8 Plus, iPhone 11 Pro, and iPad Air 4), and threading configurations. Throughout our study, we systematically assessed key metrics: battery usage, inference duration, and accuracy rates. Our findings challenge some conventional beliefs; for instance, an increase in thread count did not always guarantee faster model execution, even when there are physical cores available. Similarly, a quick inference time was not always synonymous with higher energy efficiency. In addition, our study shows no single best framework for all cases. CoreML is more energy-efficient for MobileNetV2 and ResNet50 but sometimes slower, especially on older devices. TensorFlow Lite excels in energy and performance for BERT QA, even on newer hardware. While multithreading often helps, its benefits are limited, especially for CoreML beyond two threads. These results emphasize the need to tailor machine learning implementations to specific hardware and model characteristics, indicating room for improvement in existing frameworks.
Original languageEnglish
Title of host publication2024 IEEE/ACM 11th International Conference on Mobile Software Engineering and Systems (MOBILESoft)
PublisherAssociation for Computing Machinery
Pages1-11
Number of pages11
ISBN (Electronic)9798400705892
ISBN (Print)979-8-3503-6397-5
DOIs
Publication statusPublished - 7 Apr 2024
EventIEEE/ACM 11th International Conference on Mobile Software Engineering and Systems, MOBILESoft 2024 - Lisbon, Portugal
Duration: 15 Apr 202415 Apr 2024
Conference number: 11

Conference

ConferenceIEEE/ACM 11th International Conference on Mobile Software Engineering and Systems, MOBILESoft 2024
Abbreviated titleMOBILESoft 2024
Country/TerritoryPortugal
CityLisbon
Period15/04/2415/04/24

Keywords

  • 2024 OA procedure
  • Instruction sets
  • Machine learning
  • Hardware
  • Energy efficiency
  • Batteries
  • Task analysis
  • Performance evaluation

Fingerprint

Dive into the research topics of 'A Study on the Battery Usage of Deep Learning Frameworks on iOS Devices'. Together they form a unique fingerprint.

Cite this