Back to search

Technische Universität Dresden

Efficient Neural Network Inference on Resource-Constrained Devices

Abstract

dc:description.abstract

Large-scale Artificial Neural Networks (ANNs) have gone from academic subject to surpassing human performance in a large number of domains within little more than a decade. What powered this meteoric rise was the availability of enormous—and exponentially growing—amounts of computational capacity. During the same time, many scandals around data breaches have undermined the public’s trust in the confidentiality of their data, once transferred to the cloud platforms on which ANNs usually run. This trend has sparked interest in running Machine Learning (ML) models not just on centralized and powerful compute systems, but on the edge, close to where the data originates. These devices are often battery-powered and provide several orders of magnitude less compute and memory, compared to modern High Performance Computing (HPC) systems. Training a model based on local data is rarely feasible on such constrained systems. Querying an existing, static model for predictions—a process known as inference—is, however, often achievable, especially for comparatively simple tasks like image recognition and keyword spotting. This thesis discusses several adaptations to the inference of ANNs to suit the requirements of these resource-constrained systems. First, integer quantization and the use of Approximate Multipliers (AMs) are discussed as a means of reducing the energy consumption of the arithmetic hardware of resource-constrained systems. These hardware multipliers do not provide mathematically exact results under all conditions, which allows them to improve upon accurate hardware in other metrics. When they are used to run a model that was trained using accurate multiplication, they do, however, tend to cause a significant degradation of accuracy. To improve the final model’s accuracy when using AMs, a Graphics Processing Unit (GPU)-backed simulation of their behavior is integrated into the popular ML framework PyTorch. For some designs, the throughput of this simulation is improved upon by up to four times through a novel simulation model in the floating-point domain, which plays to the strengths of the GPUs that are commonly used to carry out the training. This AM simulation software library is then used to combine the heterogeneous choice of AMs for different layers in a neural network with retraining to improve the model’s performance. Considering the accuracy requirements of each layer in a neural network, rather than uniformly deploying a single AM model throughout improves the accuracy for a given reduction in energy and vice versa. An up to 79% reduction in the energy consumption for multiplications at a less than 1 p.p. drop in accuracy was achieved when combining heterogeneous AM assignment with retraining. Besides compute, another scarce quantity in a resource-constrained system is memory. Results from previous research suggest that many parameters in a neural network might be redundant and can be replaced with zeroes, leaving a network with sparse tensors. Most research focuses on using this sparsity to accelerate computations, while its use for compression is rarely discussed. This is addressed by developing two encoding schemes for sparse neural network tensors, which achieve both high compression ratios and can utilize the parallel hardware available in many devices to accelerate decompression at runtime. The combination of both schemes achieves a more than 25% reduction in memory consumption at a less than 1 p.p. loss in model accuracy for several different image recognition architectures. Finally, sparsity and heterogeneous choice of AMs are combined and extended to include a third desirable property in resource-constrained systems: flexibility. The AM choice algorithm is enhanced to allow for a constrained number of AMs to be chosen from a larger search space. If the compute platform allows for reconfiguring the precision of the approximate operator at runtime, The optimization result is used to provide several different assignments from AMs to layers—the model’s operating points. Each of these points strikes a different balance between energy consumption and accuracy and allows for adjusting the Quality of Service (QoS) of the model at runtime. The increase in parameters caused by retraining the same model for different inference environments is addressed with a weight-sharing scheme that keeps the majority of parameters identical between models as well as the use of pruning and compression of the model’s sparse tensors. With this combination, both an up to 50% reduction in energy consumption and a 25% reduction in memory footprint are achieved, at the cost of a worst-case accuracy loss of 1.10 p.p. This thesis integrates several, usually distinct, aspects of neural network inference from model training to hardware parameters optimization and low-level software. Simultaneously considering these different components that need to come together in a system’s design helps build a deeper understanding away from domain-specific optimizations, and towards optimization of neural network inference on resource-constrained devices as a whole.

Degree

thesis:*
Level thesis:degree_level
thesis.doctoral
Grantor dc:publisher
Technische Universität Dresden
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Trommer, Elias
Contributors dc:contributor
  • Kumar, Akash
  • Henkel, Jörg

Subjects

dc:subject × 4

Rights

dc:rights
Statement dc:rights
  • info:eu-repo/semantics/openAccess
Language dc:language.dcterms_iso639_2
eng

Identifiers

dc:identifier.*
Ddb Identifier Erstkat Id
1925348849

Chain of custody

source
Harvested from
QUCOSA
Base URL
www.qucosa.de/oai/
Last updated
2026-11-18
Source record
OAI-PMH GetRecord
citation

Trommer, Elias. Efficient Neural Network Inference on Resource-Constrained Devices. thesis.doctoral thesis, Technische Universität Dresden, 2025. https://nbn-resolving.org/urn:nbn:de:bsz:14-qucosa2-968657