Work

Optimal Structure Discovery of Deep Neural Networks During Training and its Application to Reinforcement Learning

Year: 2025
Type: dissertation
Abstract: This thesis presents a series of novel and theoretically grounded approaches to neural network optimization through simultaneous training and pruning to discover optimal structures of deep neural networks. In view of the ever-increasing computational demands of neural networks, we aim to address the critical challenge of balancing computational cost and performance. We propose an algorithm for simultaneous learning and pruning capable of identifying and eliminating irrelevant units/filters of neural networks during the early stages of training. In this manner, we can significantly reduce the computational load during both training and inference. The algorithm is shown to be easily applicable to existing neural network architectures and machine learning applications such as deep reinforcement learning. Our approach is based on variational inference principles using Gaussian scale mixture priors on the neural network weights. The variational posterior distribution of Bernoulli random variables multiplying the units/filters is learned, similarly to adaptive dropout. Pruning occurs when a variational parameter converges to 0 rendering the corresponding structure permanently inactive, thus saving computations during subsequent iterations of training and prediction. The careful construction of a novel “flattening” hyper-prior distribution over the prior parameters is crucial for their optimal selection and addresses challenges such as premature pruning and robustness with respect to different initializations and network sizes. We extend our approach to layer-level pruning, which reduces the sequential computation in neural networks. Here, the variational posterior distributions of scalar Bernoulli random variables multiplying whole layer weight matrices are learned, similarly to adaptive layer-wise dropout. Unit/filter and layer pruning are combined carefully into a single algorithm that optimally balances network performance, pruning levels, and computational as well as memory complexity. This approach introduces a novel cost function that integrates prediction accuracy and network pruning objectives in a complexity-aware manner, using only three user-defined parameters that are easy to interpret and tune. We prove that the solutions of the resulting optimization problem found via stochastic gradient descent have scale/Bernoulli parameters at either 0 or 1; hence describe deterministic and optimally regularized networks. For all methods, we carefully analyze the ODE systems underlying the stochastic optimization algorithms and establish domains of attraction around zero for the dynamics of the network parameters. These results provide theoretical support for safely pruning units/filters and/or layers during training and lead to practical pruning conditions. The proposed methods are extensively evaluated on benchmark data sets (MNIST, CIFAR-10/100 and ImageNet) and popular neural network architectures (LeNet, VGG16, and several ResNets), consistently demonstrating improved pruning ratios and competitive test accuracy compared to state-of-the-art techniques. We demonstrate that the combined approach improves upon layer-only or unit-only pruning and favorably competes with existing combined unit/filter and layer pruning algorithms that require pre-trained networks. We integrate our pruning method with common deep reinforcement learning algorithms such as Proximal Policy Optimization, the Twin Delayed Deep Deterministic Gradient and Soft Actor-Critic algorithm. While such algorithms can be overly sensitive to the choice of the network architecture, we aim to discover suitable network architectures during the agent's learning in the environment and hence eliminate the need for the expensive manual tuning of the network architectures. The integration of our method requires only minor modifications to the network architecture such as introducing skip-connections and the random variables multiplying different structures as well as the addition of the needed regularization terms to the existing objective functions. Simulations on typical benchmark problems demonstrate the effectiveness of our method in finding such networks and in reducing the computational load of the control policy networks and value-function networks during the learning process.
Language: English
Open Access status: green
OpenAlex ID: W7070643393
Cites: 94
Cited by: 1
Related to: 10