Type: dissertation
Abstract: Deep neural networks have become one of the go-to tools to achieve state-of-the-art performance for various tasks, such as computer vision, speech recognition, and many more.Unfortunately, most modern architectures owe their generalization capabilities to the sheer amount of parameters they possess, with many reaching the order of millions or even billions, resulting in a significant increase in the resources required to use such models.This, in turn, impacts the deployability of neural networks on resource-constrained devices such as smartphones or FPGAs.In this thesis, we will cover the products of my research on neural network pruning, i.e., removing less essential elements of the network (single parameters or entire neurons) to reduce the storage, memory, and computation requirements needed to run the model.We will explore the design of pruning procedures, the effect of pruning on the features extracted by the network model, and the practical application of pruned networks on low-power devices.In this thesis, we present and subsequently employ two pruning techniques: LOBSTER, an unstructured approach that leverages the sensitivity of the parameters as a regularizer, and SeReNe, a structured procedure that evaluates the contribution of the neurons to the output of the network.Neural networks pruned with LOBSTER and SeReNe have been used to assess the advantages of pruning when deploying the networks to embedded devices.To this end, we implemented the Simplify library that removes the zeroed neurons from the architecture.Finally, we focus on reducing the computational resources required to train a neural network.Since backpropagation is the more computation-heavy part of the training process, we defined a technique to disable the computation of the gradients of neurons that reached equilibrium, effectively pruning the backpropagation graph and decreasing the number of operations performed during the procedure.9.5 Neuronal equilibrium-related quantities for ResNet-32 trained on CIFAR-10.The red line indicates the average. . . . . . . . . . . . .96 xv 7.1 Experimental results for different network architectures and pruning strategies.Left: percentage of pruned parameters, size of the simplified network topology, and size of the compressed bitstream.Right: inference time on different embedded devices: Raspberry Pi 3B (RPi 3B), Huawei P20 (P20), Xiaomi MI 9 (MI9), and Samsung Galaxy S6 lite (S6L). . . . . . . . . . . . . . . . . . . . . . . . . .65 7.2 Employed models.a) Pruned models, performance is expressed as classification error for VGG16 and as Dice score for SegNet.b) Quantized models, classification error, and memory footprint. . . . .75 7.3 Inference time, FPS, and speedup for ISIC classification and segmentation models for CPU and FPGA. . . . . . . . . . . . . . . . .76 9.1 Ablation for ResNet-32 trained on CIFAR-10. . . . . . . . . . . . .97 9.2 Results of the application of NEq to each experimental setup, compared to the stochastic approach.We report the average FLOPs per iteration at backpropagation, and the final performance of the model evaluated on the test set (values annotated with † report the classification accuracy, values annotated with ‡ report the mean IoU).98For these reasons, many applications opt for a client-server system.Here, the trained network resides in a server with plenty of resources to satisfy the client's requests.While this setup works well overall, it may pose some concerns in some use cases.For example, transferring private data from the client to the server requires multiple precautions and safety features, also, the internet connection may not be available, or the latency between the request and the response may render the service unusable.Many of these problems could be solved by deploying the neural network directly on the consumer device, reducing privacy concerns, internet dependency, and maintenance costs.Unfortunately, as mentioned, most neural networks require resources that most consumer-grade devices can hardly provide.Multiple (complementary) approaches are being developed to cope with neural networks' memory requirements, inference time, and energy consumption: Pruning artificial neural networks: a way to find well-generalizing, high-entropy sharp minima correlated to the trained classes, making them unexpectedly, potentially, a good match for transfer-learning scenarios.Future works include a quantitative study on transfer learning for sparse architectures and PSP-entropy maximization-based learning.
Author: BRAGAGNOLO, Andrea
Institution: University of Turin
Language: English
Subfield: Computer Vision and Pattern Recognition
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7218161706
