Back to search

McGill University

Inference energy modeling for BERT models

Abstract

dc:description.abstract

BERT achieved great success in Natural Language Processing (NLP). BERT models are computationally expensive due to their model size with hundreds of millions of parameters making them impractical to deploy to resource-constrained hardware platforms such as mobile devices.One way to optimize these complex models is to utilize hardware-aware neural architecture search (NAS). However, hardware-aware NAS needs to incorporate hardware performance metrics, such as energy consumption. Although on-device measurements provide accurate feedback, the overhead is huge. To address this problem, we propose an energy modeling framework on the Hikey 970 ARM big.LITTLE CPU and Mali GPU to predict the inference energy consumption of BERT models. We train energy predictor models on BERT and MobileBERT design space. We evaluate our BERT energy predictor's ability to generalize to the DistilBERT and DynaBERT design spaceCombined with the real accuracy values on the QNLI task, we evaluate our energy model's ability to predict the Pareto-optimal front in the 2D accuracy-energy design space of DynaBERT models. Our model correctly predicts 14 out of the 17 true Pareto-optimal models

Degree

thesis:*
Name thesis:degree_name
Master of Science
Grantor dc:publisher
McGill University
Year dc:date.issued
2023

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Li, Chuning
Advisor dc:contributor.advisor
  • Meyer, Brett (Supervisor)

Subjects

dc:subject × 1

Rights

dc:rights
Statement dc:rights
  • All items in eScholarship@McGill are protected by copyright with all rights reserved unless otherwise indicated.
Language dc:language.iso
en

Identifiers

dc:identifier.*
OCLC
1416849029
Dc Identifier Other
hyrax:2n49t734f

Chain of custody

source
Harvested from
McGill University
Base URL
mcgill.scholaris.ca/server/oai/request
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
citation

Li, Chuning. Inference energy modeling for BERT models. McGill University, 2023. https://doi.org/10.82308/12928