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

Vitor Mac Iel Fontes Jacques, Negar Alizadeh, Fernando Castor

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

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 publicationProceedings - 2024 IEEE/ACM 11th International Conference on Mobile Software Engineering and Systems, MOBILESoft 2024
PublisherAssociation for Computing Machinery
Pages1-11
Number of pages11
ISBN (Electronic)9798400705892
DOIs
Publication statusPublished - 14 Apr 2024
Event11th IEEE/ACM International Conference on Mobile Software Engineering and Systems, MOBILESoft 2024 - Lisbon, Portugal
Duration: 15 Apr 2024 → …

Publication series

NameProceedings - 2024 IEEE/ACM 11th International Conference on Mobile Software Engineering and Systems, MOBILESoft 2024

Conference

Conference11th IEEE/ACM International Conference on Mobile Software Engineering and Systems, MOBILESoft 2024
Country/TerritoryPortugal
CityLisbon
Period15/04/24 → …

Bibliographical note

Publisher Copyright:
© 2024 Copyright is held by the owner/author(s). Publication rights licensed to ACM.

Keywords

  • CoreML
  • deep learning
  • energy efficiency
  • iOS
  • performance
  • Pytorch
  • Tensorflow

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