A methodological framework for optimizing the energy consumption of deep neural networks: a case study of a cyber threat detector
Authors:
Open Access
- 15 March 2024
- journal article
- research article
- Published by Springer Nature in Neural Computing and Applications
- Vol. 36 (17) , 10297-10338
Abstract
The growing prevalence of deep neural networks (DNNs) across various fields raises concerns about their increasing energy consumption, especially in large data center applications. Identifying the best combination of optimization techniques to achieve maximum energy efficiency while maintaining system performance is challenging due to the vast number of techniques available, their complex interplay, and the rigorous evaluation required to assess their impact on the model. To address this gap, we propose an open-source methodological framework for the systematic study of the influence of various optimization techniques on diverse tasks and datasets. The goal is to automate experimentation, addressing common pitfalls and inefficiencies of trial and error, saving time, and allowing fair and reliable comparisons. The methodology includes model training, automatic application of optimizations, export of the model to a production-ready format, and pre- and post-optimization energy consumption and performance evaluation at inference time using various batch sizes. As a novelty, the framework provides pre-configured "optimization strategies" for combining state-of-the-art optimization techniques that can be systematically evaluated to determine the most effective strategy based on real-time energy consumption and performance feedback throughout the model life cycle. As an additional novelty, "optimization profiles" allow the selection of the optimal strategy for a specific application, considering user preferences regarding the trade-off between energy efficiency and performance. Validated through an empirical study on a DNN-based cyber threat detector, the framework demonstrates up to 82% reduction in energy consumption during inference with minimal accuracy loss.Keywords
Funding Information
- Horizon 2020 Framework Programme (101015857 (Teraflow))
- HORIZON EUROPE Framework Programme (101097122 (ACROSS))
- Ministerio de Asuntos Económicos y Transformación Digital, Gobierno de España (B5GEMINI AIUC (TSI-063000-2021-79))
- Universidad Politécnica de Madrid
This publication has 34 references indexed in Scilit:
- Using N-BEATS ensembles to predict automated guided vehicle deviationApplied Intelligence, 2023
- Anticipatory analysis of AGV trajectory in a 5G network using machine learningJournal of Intelligent Manufacturing, 2023
- Chlorophyll soft-sensor based on machine learning models for algal bloom predictionsScientific Reports, 2022
- Knowledge Distillation: A SurveyInternational Journal of Computer Vision, 2021
- Detection of Encrypted Cryptomining Malware Connections With Machine and Deep LearningIEEE Access, 2020
- Estimation of energy consumption in machine learningJournal of Parallel and Distributed Computing, 2019
- How to Measure Energy Consumption in Machine Learning Algorithms2019
- Designing Energy-Efficient Convolutional Neural Networks Using Energy-Aware Pruning2017
- On Compressing Deep Models by Low Rank and Sparse Decomposition2017
- Evaluating the Energy Efficiency of Deep Convolutional Neural Networks on CPUs and GPUs2016