<figure><img src="image_1.png" /></figure>

HAL
open science

# Rethinking Weight Decay for Efficient Neural Network Pruning

Hugo Tessier, Vincent Gripon, Mathieu Leonardon, Matthieu Arzel, Thomas

Hannagan, David Bertrand

► To cite this version:

Hugo Tessier, Vincent Gripon, Mathieu Leonardon, Matthieu Arzel, Thomas Hannagan, et al. Re-thinking Weight Decay for Efficient Neural Network Pruning. Journal of Imaging, 2022, 8 (3), pp.64. 10.3390/jimaging8030064 . hal-03675138

HAL Id: hal-03675138

https://hal.science/hal-03675138

Submitted on 24 May 2022

HAL is a multi-disciplinary open access
archive for the deposit and dissemination of sci-
entific research documents, whether they are pub-
lished or not. The documents may come from
teaching and research institutions in France or
abroad, or from public or private research centers.

L'archive ouverte pluridisciplinaire HAL, est
destinée au dépôt et à la diffusion de documents
scientifiques de niveau recherche, publiés ou non,
émanant des établissements d'enseignement et de
recherche français ou étrangers, des laboratoires
publics ou privés.

<figure><img src="image_2.png" /></figure>

Distributed under a Creative Commons Attribution 4.0 International License
<figure><img src="image_3.png" /></figure>

Article

# Rethinking Weight Decay for Efficient Neural Network Pruning

Hugo Tessier <fnref n="1" />,<fnref n="2" />,* ID, Vincent Gripon <fnref n="2" /> ID, Mathieu Léonardon <fnref n="2" /> ID, Matthieu Arzel <fnref n="2" />, Thomas Hannagan <fnref n="1" /> ID
and David Bertrand <fnref n="1" />

**Abstract:** Introduced in the late 1980s for generalization purposes, pruning has now become a staple for compressing deep neural networks. Despite many innovations in recent decades, pruning approaches still face core issues that hinder their performance or scalability. Drawing inspiration from early work in the field, and especially the use of weight decay to achieve sparsity, we introduce Selective Weight Decay (SWD), which carries out efficient, continuous pruning throughout training. Our approach, theoretically grounded on Lagrangian smoothing, is versatile and can be applied to multiple tasks, networks, and pruning structures. We show that SWD compares favorably to state-of-the-art approaches, in terms of performance-to-parameters ratio, on the CIFAR-10, Cora, and ImageNet ILSVRC2012 datasets.

**Keywords:** deep learning; neural network pruning; computer vision; convolutional neural networks

<figure><img src="image_4.png" /></figure>

check for
updates

**Citation:** Tessier, H.; Gripon, V.; Léonardon, M.; Arzel, M.; Hannagan, T.; Bertrand, D. Rethinking Weight Decay for Efficient Neural Network Pruning. *J. Imaging* **2022**, *8*, 64. https://doi.org/10.3390/jimaging8030064

Academic Editors: Jonathan Wu, Thangarajah Akilan, Jitendra Kumar and Chengsheng Yuan

Received: 28 October 2021

Accepted: 27 February 2022

Published: 4 March 2022

**Publisher's Note:** MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

<figure><img src="image_5.png" /></figure>

**Copyright:** © 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).

## 1. Introduction

In recent decades, deep neural networks have become the reference for many machine learning tasks, especially computer vision. Their popularity quickly grew once deep convolutional networks managed to outclass classical methods on benchmark tasks, such as image classification on the ImageNet dataset [1]. Since their introduction by Le Cun et al. [2], many architectural innovations have now contributed to their performance and efficiency [3–8]. However, for any given type of deep neural network architecture, the number of parameters tends to correlate with performance, resulting in the best-performing networks having prohibitive requirements in terms of memory footprint, computation power, and energy consumption [9].

This is a crucial issue for multiple reasons. Indeed, many applications, such as autonomous vehicles, require networks that can provide adequate, real-time responses on energy-efficient hardware: for such tasks, one cannot afford to have either an accurate network that is too slow to run or one that performs quickly but crudely. Additionally, research on deep learning relies heavily on iterative experiments that require a lot of computation time and power: lightening the networks would help to speed up the whole process.

Many approaches have been proposed to tackle this issue. These include techniques such as distillation [10,11], quantization [12,13], factorization [14], and pruning [15]; most of them can be combined [16]. The whole field tends to indicate that there may exist a Pareto optimum, between performance, memory occupation, and computation power, that compression could help to attain. However, progress in the field shows that this optimum has yet to be reached.

Our work focuses on pruning. The basis of most pruning methods is to train a network and, according to a certain criterion, to identify which parts of it contribute the least to its performance. These parts are then removed and the network is fine-tuned to recover the incurred loss in performance [15,17].

<footnote n="1">¹ Stellantis, Centre Technique Vélizy, 78140 Vélizy-Villacoublay, France;
thomas.hannagan@stellantis.com (T.H.); david.bertrand@stellantis.com (D.B.)</footnote>

<footnote n="2">² IMT Atlantique, Lab-STICC, UMR CNRS 6285, 29238 Brest, France; vincent.gripon@imt-atlantique.fr (V.G.); mathieu.leonardon@imt-atlantique.fr (M.L.); matthieu.arzel@imt-atlantique.fr (M.A.)</footnote>

<footnote>* Correspondence: hugo.tessier@imt-atlantique.fr; Tel.: +33-7494-00545</footnote>
Multiple decades of innovation in the field have uncovered many issues at stake when pruning networks, such as structure [18], scalability [19,20], or continuity [21]. However, many approaches, while trying to tackle these issues, tend to resort to complex methods involving intrusive processes that make them harder to actually use, re-implement, and adapt to different networks, datasets, or tasks.

Our contribution aims to solve these key problems in a more straightforward and efficient way that avoids human intervention in the training process as much as possible. Our method, Selective Weight Decay (SWD), is a pruning method for deep neural networks that is based on Lagrangian smoothing. It consists in a regularization which, at each step during the training process, penalizes the weights that would be pruned according to a given criterion. The penalization grows in the course of training until the magnitude of the targeted parameters is so close to zero that pruning them induces no drop in performance. This method has many desired properties, including avoiding any discontinuity, since pruned weights are progressively nullified. The weight removal is, itself, learned, which reduces the manual aspects of the pruning process. Moreover, since the penalized weights are not completely removed before the very end of training, the subset of the targeted parameters can be adjusted during training, depending on the current distribution of the weight magnitudes. The dependencies between weights can, thus, be better taken into account.

Our experiments show that SWD works well for both light-weight and large-scale datasets and networks with various pruning structures. Our method shines especially for aggressive pruning rates (few remaining parameter targets) and manages to achieve great results with targets for which classical methods experience a large drop in performance.

Therefore, about SWD, which prunes deep neural networks continuously during training, we have the following claims:

* using standardized benchmark datasets, we prove that SWD performs significantly better on aggressive pruning targets than standard methods;

* we show that SWD needs fewer hyperparameters, introduces no discontinuity, needs no fine-tuning, and can be applied to any pruning structure with any pruning criterion.

In the following sections, we will review in detail the field of network pruning, describe our method, present our experiments and their results, and then discuss our observations.

## 2. Problem Statement and Related Work

We now review the main pruning methods and attempt to organize them into sub-families.

### 2.1. Notations

We first recall the standard optimization problem with weight decay. Let $\mathcal{N}$ be a network with parameters $\mathbf{w}$, trained over dataset $\mathcal{D}$ containing $N$ pairs of input/groundtruth pairs $(x_i, y_i)$. The network is trained through error function $\mathcal{E}$, and penalized by a weight decay with a coefficient $\mu$ [22,23]. The training process thus involves minimizing the objective function $\mathcal{L}$, defined as:

$$ \mathcal{L}(\mathbf{w}) = \sum_{(x,y) \in \mathcal{D}} \underbrace{\mathcal{E}(\mathcal{N}(x, \mathbf{w}), y) + \mu \|\mathbf{w}\|_2}_{\text{Err: error term}} \cdot \underbrace{\text{WD: weight decay}} $$

### 2.2. The Birth and Rebirth of Pruning

Although network size correlates with performance, the fundamental observation that motivates pruning is that not all of a trained network's parts seem to be useful. Unnecessary parts may be removed without penalizing performance.

At the end of the 1980s and at the beginning of the 1990s, the field of pruning quickly expanded from a few seminal studies [24–26]. At the time, as observed by Reed [27], two major branches cohabited: (1) sensitivity calculation methods, which consisted in evaluating the contribution of each parameter to the error function and in pruning those
which contributed the least, and (2) penalty-term methods, which penalized weights globally so as to encourage convergence to networks having a few big weights rather than lots of small ones. It is worth mentioning that pruning was originally intended to help the generalization of networks, rather than being a compression method per se.

This field of research seems to have almost completely vanished during the ensuing decade, only to be resurrected by Han et al. [15]. Since then, the number of pruning investigations has expanded so quickly that it has made any reviewing task a challenging one [28].

Assume we want to train and prune a given model with a target pruning rate *T*. The method of Han et al. [15], which is currently the prototypical pruning technique, consists first in training, then in pruning and fine-tuning the network iteratively, with each time an increasing pruning rate *t* until *T* is reached. In particular, pruning is achieved here by reducing to and then maintaining at zero a proportion of the parameters of the whole network whose absolute magnitude is the smallest. Though it is still possible to prune and fine-tune the model only once, doing so can be viewed as a particular case of the method.

The literature that followed the work of Han et al. [15] has highlighted many questions that tend to be raised when pruning a neural network: “Which parameters should be pruned?”, “How can we prune them and recover from the loss?”, and “What kind of structures should be pruned?” We will tackle these questions.

### 2.3. Which Parameters Should Be Pruned?

One crucial prerequisite to pruning networks is to have a good criterion to define which parameters to prune. Many pruning criteria have been tested [29–33], for example: Anwar and Sung [29] try various random masks and select the one which induces the least degradation; Hu et al. [30] prune on the basis of the average rate of null activation after each pruned layer. The two most widespread criteria are gradient magnitude and weight magnitude, both of which we will detail.

The early branch of sensitivity calculation methods, birthed by the studies of Le Cun [25] and Mozer and Smolensky [26] and then studied within multiple articles [24,34–36], led some recent studies to prune the weights of the least back-propagated gradient [37,38]. Nevertheless, the criterion that remains the most common, namely, the mere magnitude of the parameters, turns out to be surprisingly effective while also intuitive. Although re-introduced by Han et al. [15], it was first introduced by Chauvin [39] and Hanson and Pratt [40], then presented under the name of “clipping” by Janowsky [41]. Segee and Carter [42] observed the surprising correlation between this intuitive criterion and that of Mozer and Smolensky [26], which is more theoretically grounded. These studies tend to confirm that magnitude is a good proxy for the contribution of a parameter to optimization problems summed up by Equation (1), which is why we used it in our experiments.

The other main branch identified by Reed [27] revolved around enforcing sparsity using various kinds of weight decay regularization. The commonly stated motivation was that, if a certain parameter contributes poorly to the error term *Err*, then the weight decay term should outweigh it so that this very parameter would decrease toward zero.

Since weight decay is required for weight-magnitude pruning, which is the favored criterion among several of the best implementations, it seems that sparsity-inducing regularizations are worth exploring further.

### 2.4. How to Prune Parameters and Recover from the Loss

One may object by noting that removing weights, even those that seem the least important, may damage the network in such a way that no fine-tuning could ever allow it to recover. Indeed, doing so severely disrupts the training process, for example, by removing parts of the network while it is trying to learn to solve a problem. The work of Le Cun, Bengio, and Hinton [43] tends to show that the less the training process is disrupted, the better it performs.
For example, there is no guarantee that weights which seemed unimportant at first could not become crucial again in the new context of the pruned network. That is the reason why many efforts have focused on allowing weights to regrow in one way or another. Different approaches have been proposed [44–46] to either regrow previously pruned weights or to not completely prune parameters by still allowing them to be trained once they are reduced to zero by pruning.

The principle of regrowing weights is central to the family of methods that could be called *sparse training*. *Sparse training* was first introduced by Mocanu et al. [47] and then further explored within the literature [48–50]. It involves training the network with a constant level of sparsity, at first spread randomly with uniform probability, and then adjusted during steps which combine (1) pruning of a certain portion of the weights, according to a certain criterion, and (2) regrowing an equivalent amount of weights, depending on another criterion.

Such a family of methods provided a promising way to work around the problem of falsely unimportant weights, while limiting the impact of increasing sparsity all throughout training.

Of course, sparse training is not the only family of methods to tackle this issue. Indeed, this technique belongs to a vast trend in the literature: discovering the importance of sparsity during training to achieve better results with shrunken networks. Pruning networks early, so that they start training with their definitive sparsity from the beginning, is the whole point of a whole range of work [51–54], as well as one of the motivations behind the field surrounding the *lottery ticket hypothesis* [55–60]. Renda et al. [61], while studying the lottery ticket hypothesis, came up with a method called *learning rate rewinding*, which proposes replacing the fine-tuning step with a full retraining stage that uses the weights of the trained and pruned network as a new initialization.

Another distinct branch of methods involves work that aims to induce sparsity in a more continuous way throughout the training process, possibly avoiding any fine-tuning or retraining. One intuition that motivates these methods is that delegating the care of sparsity to the gradient descent is a sensible way to not disrupt training too much.

One sub-family of this branch focuses on finding a way to learn a pruning mask during training [21,62–64]; some of these studies propose learning such a mask using variants of the quantification method of Courbariaux et al. [12] on auxiliary learnable parameters. The other major sub-family counts methods grounded on a Bayesian mathematical formalism [65–69]. They mainly consist in various kinds of sparsity-inducing regularization, whose parameters are tuned through variational inference. These methods are the ones that stick most closely to the former family of penalty-term methods: Ullrich et al. [69] even references the work of Nowlan and Hinton [70].

However, this whole family of methods tends not to be among the simplest to implement and adapt to various kinds of tasks, datasets, or structures. Adapting variational dropout [67] to structured pruning is the focus of whole contributions [66,68], and Gale et al. [20] show that the work of Molchanov et al. [67] and Louizos et al. [21] does not scale easily to large datasets such as ImageNet ILSVRC2012.

Unfortunately, one problem that encompasses the whole field, and about which Blalock et al. [28] raise the alarm, is the lack of comparability between the various methods in the literature. Indeed, contributions to the domain rarely compare to the same reference methods, tasks, models, training conditions, or datasets and do not always show the same metrics computed in a consistent way. Hence, it is very difficult to know which method brings actual methodological or theoretical improvements on the topic, and it appears that none of the questions or aspects we mentioned can be considered solved for now. Therefore, while taking inspiration from these methods and their desirable properties, we propose one that is easier to scale, adapt, and apply.
## 2.5. What Kind of Structures Should Be Pruned?

As pointed out by both Anwar et al. [71] and Li et al. [18], the parameter-wise pruning of Han et al. [15] produces sparse matrices that are hardly exploitable by modern hardware and deep learning frameworks. That is why a whole field of pruning is dedicated to finding ways to eliminate parts of the networks in a structured way that can actually induce a measurable speedup.

Because of the predominance of convolutional neural networks in the literature, the most widespread type of structure to be considered by the field is convolutional channels (or filters) [17,18,29,31,46,71–74]. Indeed, pruning filters induces a direct shrinking of the very architecture of the network and a quadratic reduction in the parameter count, as each removed filter is one less input feature map for the next convolution layer.

Other types of structures have been experimented on, such as kernels or intra-kernel strided structures [29,71] or the reduction of convolutions to shift operations [75]. In this work, we focus on two granularity levels: parameter-wise (unstructured) and convolutional filter-wise (structured).

## 3. Selective Weight Decay

We now present our contribution, illustrated in Figure 1, and explain how it addresses the aforementioned issues.

<figure><img src="image_6.png" /><figcaption>**Figure 1.** To prune deep neural networks continuously during training, we apply distinct types of weight decay (penalty $p$ on the y-axis) depending on weight magnitude (weight value $w$ on the x-axis). Weights whose magnitude exceeds a threshold $t$ (defined according to the number of weights to prune) are penalized by a regular weight decay. Those beneath this threshold are targeted by a stronger weight decay whose intensity grows during training. This stronger weight decay, only applied to a subset of the network, is the Selective Weight Decay. This approach can be equally well applied to weights (unstructured case) or groups of weights (structured case).</figcaption></figure>

### 3.1. Principle

Selective Weight Decay (SWD) is a regularization which induces sparsity continuously on any type of structure: at each training step, a certain penalization is applied to the parameters to be pruned at this very step according to a certain criterion and a certain structure. The criterion we chose is weight magnitude, or variants of it according to the chosen structure. The penalized optimization problem can be viewed as:

$$ \mathcal{L}(\mathbf{w}) = \sum_{(x,y) \in \mathcal{D}} \underbrace{\mathcal{E}(\mathcal{N}(x, \mathbf{w}), y) + \mu \|\mathbf{w}\|_2}_{Err} + a\mu \|\mathbf{w}^*\|_2, \quad (2) $$

with $a$ being a coefficient which determines the importance of SWD relative to the rest of the optimization problem. $\mathbf{w}^*$ is the subset of $\mathbf{w}$ to be pruned at a certain step. SWD is summed up as Algorithm 1.
<caption>**Algorithm 1: Summary of SWD**</caption>

**Data:** network $\mathcal{N}$ of weights $\mathbf{w}$, dataset $\mathcal{D}$, target pruning rate $T$
$a \leftarrow a_{min}$;
**while** the network is not fully trained and $a \le a_{max}$ **do**
&nbsp;&nbsp;&nbsp;&nbsp;draw batches $x$ and $y$ from $\mathcal{D}$;
&nbsp;&nbsp;&nbsp;&nbsp;Err $\leftarrow \mathcal{E}(\mathcal{N}(x, \mathbf{w}), y)$;
&nbsp;&nbsp;&nbsp;&nbsp;WD $\leftarrow \mu \|\mathbf{w}\|_2$;
&nbsp;&nbsp;&nbsp;&nbsp;determine $\mathbf{w}^*$ according to $T$;
&nbsp;&nbsp;&nbsp;&nbsp;SWD $\leftarrow \mu \|\mathbf{w}^*\|_2$;
&nbsp;&nbsp;&nbsp;&nbsp;backpropagate Err + WD + aSWD;
&nbsp;&nbsp;&nbsp;&nbsp;update weights;
&nbsp;&nbsp;&nbsp;&nbsp;increase $a$;
**end**

The evolution of *a* is designed to be exponential and, according to two bounds *a*<sub>min</sub> and *a*<sub>max</sub> at a certain training step *s*, is defined as such:

$$a(s) = a_{\min} \left( \frac{a_{\max}}{a_{\min}} \right)^{\frac{s}{s_{\text{final}}}}, \qquad (3)$$

with $s_{final}$ being the value at which SWD reaches $a_{max}$ and, usually, the total number of training iterations. The exponential increase in Equation (3) allows the network to converge before applying a strong penalization. We favored an exponential increase over a linear one so that *a* can reach large final values without penalizing training too much throughout the training process. In addition, setting $a_{min}$ and $a_{max}$ manually allows precise control over the evolution of the penalty and enables a careful study of how training behaves under this constraint.

## 3.2. SWD as a Lagrangian Smoothing of Pruning

Penalizing weights until they reach zero appears to be a viable method to relax the hard constraint that is pruning. Indeed, pruning can be seen as a constraint on the $L_0$ norm of the network, which is non-differentiable (this is a problem in differentiable optimization methods such as those used in deep learning). The $L_2$ norm can be used as a differentiable relaxation of $L_0$. We designed SWD so that it can be viewed as a Lagrangian smoothing, with coefficient *a* of the SWD term in Equation (2) being a Lagrangian multiplier.

As pointed out by the work of Murray and Ng [76], Lagrangian smoothing allows convergence relative to both the error term and the constraint. While *a* can be mostly negligible at the start of the training, it becomes preponderant at the end and forces the target weights to be pruned, so as not to hinder the convergence of the network during training while allowing for pruning. The fact that SWD only penalizes weights selectively during training allows them to recover as soon as they are no longer targeted by the pruning criterion, thereby combining both the pruning and regrowing criteria of sparse training. Therefore, SWD is a non-greedy method that allows weights to recover when needed.

## 3.3. On the Adaptability of SWD to Structures

The exact definition of $\mathbf{w}^*$ depends on the chosen type of structure to prune. As SWD induces no constraint on such considerations, it can be applied to any type of structure.

Unstructured pruning is defined by removing all the weights of least magnitude in the whole network so that the proportion of pruned parameters matches the pruning target as closely as possible. Formally stated:

$$\mathbf{w}^* = \{ |w| \le \delta, w \in \mathbf{w} \}, \qquad (4)$$
with $\delta$ so that $n(\mathbf{w}^*) = Tn(\mathbf{w})$,
with *T* being the pruning target and *n*(*w*) the number of elements of the parameters *w*.

We based the structured version of our SWD on the method of Liu et al. [17] to solve a problem induced by residual connections in modern convolutional networks: to ensure that the exact output dimensions of the feature maps after each residual connection match the desired target, one must prune exactly the same channels among the connections and the last convolution before them. To the best of our knowledge, this problem has not been tackled, and approaches that use certain norms of the filters as a criterion could not be adjusted to tackle this important problem without altering them too drastically, if the desire was to remain true to the original contribution.

However, since the method of Liu et al. [17] prunes multiplicative coefficients of batchnorm layers, it is easy for it to solve the residual connection issue as soon as a batchnorm layer is inserted after each residual connection (which does not change the overall performance of the network).

Han et al. [17] considered the magnitudes of multiplicative coefficients in a batchnorm layer to be an estimator of the importance of their corresponding filters. These batchnorm layers were then penalized during training by a smooth-$L_1$ norm. In their work, a global threshold was applied to all the batchnorm layers in order to globally prune a target percentage of all the smallest batchnorm coefficients.

However, in order to have better control over the exact number of parameters at the end of the pruning process, we instead prune all the smallest batchnorm layers until a portion of the overall network (once the parameters of the corresponding convolutional filters have been subtracted) is removed.

# 4. Experiments

## 4.1. General Training Conditions

In order to eliminate all unwanted variables, each series of experiments was run under the same conditions, except when explicitly stated, with the same initialization and same seed for the random number generators of the various used libraries. We used no pre-trained networks and we trained all of them in a very standard way.

The training conditions were as follows: all our networks were trained using the Pytorch framework (Paske et al. [77]); using SGD as an optimizer, with a base learning rate of $1 \times 10^{-1}$ for the first third of the training, then $1 \times 10^{-2}$ for the second, and finally $1 \times 10^{-3}$ for the last third, and momentum set to 0.9. All networks are initialized using default initialization from Pytorch. Our code is available at https://github.com/HugoTessier-lab/SWD, accessed on 26 February 2022.

## 4.2. Chosen Baselines and Specificities of Each Method

### Unstructured pruning: Han et al. [15]

The networks trained with this method were pruned and fine-tuned for five iterations. At each step, the pruning target is a fraction of the final one: for example, when first pruned, only a fifth of the final pruning target is actually removed. The pruned weights are those of least magnitude.

### Structured pruning: Liu et al. [17]

The network is only pruned once and fine-tuned. In accordance with the paper, a smooth-$L_1$ norm is applied as a regularization to every prunable batchnorm layer with a coefficient $\lambda$ that depends on the dataset. This method appeared to us to be the most straightforward one for allowing an accurate evaluation of the number of pruned parameters. The pruned filters are those whose multiplicative coefficients in the batch normalization layer are of least magnitude.

### LR-Rewinding: Renda et al. [61]

When networks are trained following this method, the post-removal fine-tuning is replaced by a retraining which consists in repeating the pre-removal training process exactly, with the same learning rate values and the same number of epochs. This method
updates and significantly improves the train, prune, and fine-tune framework that serves as a basis for both previous methods.

## SWD

Whether on unstructured or structured pruning, when trained with SWD, the network is not fine-tuned at all and only pruned once at the end. The values $a_{min}$ and $a_{max}$ vary according to the model and the dataset.

## Overall methodology

In order to isolate the respective gain of each method:

* All the unstructured pruning methods use weight magnitude as their criterion;

* All the structured pruning methods are applied to batch normalization layers;

* Structured LR-Rewinding also applies the smooth-$L_1$ penalty from Liu et al. [17];

* The hyper-parameters specific to the aforementioned methods, namely, the number of iterations and the values of the smooth-$L_1$ norm, are directly extracted from their respective original papers.

Here are the only notable differences:

* SWD does not apply any fine-tuning;

* Unstructured LR-Rewinding only re-trains the network once (because of the extra cost from fully retraining networks, compared to fine-tuning);

* SWD does not apply a smooth-$L_1$ norm (since it would clash with SWD's own penalty).

## 4.3. Comparison with the State of the Art

Table 1 shows results from different techniques, as presented in the related papers, on different datasets, networks, compression rates, and pruning structures. To achieve the best performance possible, results of SWD in the case of structured pruning on ImageNet are ran with warm-restart and 180 epochs in total.

<table><caption>**Table 1.** Quick comparison between SWD and multiple pruning methods, for different datasets and networks. All lines marked with an * are results obtained with our own implementations; all the others are extracted from the original papers.</caption><thead><tr><th>Method</th><th>Type</th><th>Dataset</th><th>Network</th><th>Comp.</th><th>Accuracy</th></tr></thead><tbody><tr><td>Liu et al. [78]</td><td>Unstructured</td><td>ImageNet</td><td>AlexNet</td><td>×22.6</td><td>56.82% (+0.24%)</td></tr><tr><td>Zhu et al. [79]</td><td>Unstructured</td><td>ImageNet</td><td>InceptionV3</td><td>×8</td><td>74.6% (-3.5%)</td></tr><tr><td>Zhu et al. [79]</td><td>Unstructured</td><td>ImageNet</td><td>MobileNet</td><td>×10</td><td>61.8% (-8.8%)</td></tr><tr><td>Xiao et al. [64]</td><td>Unstructured</td><td>ImageNet</td><td>ResNet50</td><td>×2.2</td><td>74.50% (-0.40%)</td></tr><tr><td>SWD (ours) *</td><td>Unstructured</td><td>ImageNet</td><td>ResNet50</td><td>×2</td><td>75.0% (-0.7%)</td></tr><tr><td>SWD (ours) *</td><td>Unstructured</td><td>ImageNet</td><td>ResNet50</td><td>×10</td><td>73.1% (-1.8%)</td></tr><tr><td>SWD (ours) *</td><td>Unstructured</td><td>ImageNet</td><td>ResNet50</td><td>×40</td><td>67.8% (-7.1%)</td></tr><tr><td>Liu et al. [17] *</td><td>Structured</td><td>ImageNet</td><td>ResNet50</td><td>×2</td><td>63.6% (-12.1%)</td></tr><tr><td>Luo et al. [31]</td><td>Structured</td><td>ImageNet</td><td>ResNet50</td><td>×2.06</td><td>72.03% (-3.27%)</td></tr><tr><td>Luo et al. [31]</td><td>Structured</td><td>ImageNet</td><td>ResNet50</td><td>×2.95</td><td>68.17% (-7.13%)</td></tr><tr><td>Molchanov et al. [80]</td><td>Structured</td><td>ImageNet</td><td>ResNet50</td><td>×1.59</td><td>74.5% (-1.68%)</td></tr><tr><td>Molchanov et al. [80]</td><td>Structured</td><td>ImageNet</td><td>ResNet50</td><td>×2.86</td><td>71.69% (-4.49%)</td></tr><tr><td>SWD (ours) *</td><td>Structured</td><td>ImageNet</td><td>ResNet50</td><td>×1.33</td><td>74.7% (-1.0%)</td></tr><tr><td>SWD (ours) *</td><td>Structured</td><td>ImageNet</td><td>ResNet50</td><td>×2</td><td>73.9% (-1.8%)</td></tr></tbody></table>
<table><caption>**Table 1.** *Cont.*</caption><thead><tr><th>Method</th><th>Type</th><th>Dataset</th><th>Network</th><th>Comp.</th><th>Accuracy</th></tr></thead><tbody><tr><td>Liu et al. [17]</td><td>Structured</td><td>CIFAR10</td><td>DenseNet40</td><td>×2.87</td><td>94.35% (+0.46%)</td></tr><tr><td>Liu et al. [17]</td><td>Structured</td><td>CIFAR10</td><td>ResNet164</td><td>×1.54</td><td>94.73% (+0.15%)</td></tr><tr><td>Ye et al. [81]</td><td>Structured</td><td>CIFAR10</td><td>ResNet20-16</td><td>×1.6</td><td>90.9% (-1.1%)</td></tr><tr><td>Ye et al. [81]</td><td>Structured</td><td>CIFAR10</td><td>ResNet20-16</td><td>×3.1</td><td>88.8% (-3.2%)</td></tr><tr><td>SWD (ours) *</td><td>Structured</td><td>CIFAR10</td><td>ResNet20-16</td><td>×1.42</td><td>91.22% (-1.15%)</td></tr><tr><td>SWD (ours) *</td><td>Structured</td><td>CIFAR10</td><td>ResNet20-16</td><td>×3.33</td><td>88.93% (-3.44%)</td></tr><tr><td>Liu et al. [17] *</td><td>Structured</td><td>CIFAR10</td><td>ResNet20-64</td><td>×2</td><td>94.92% (-0.75%)</td></tr><tr><td>SWD (ours) *</td><td>Structured</td><td>CIFAR10</td><td>ResNet20-64</td><td>×2</td><td>94.96% (-0.71%)</td></tr><tr><td>SWD (ours) *</td><td>Structured</td><td>CIFAR10</td><td>ResNet20-64</td><td>×50</td><td>89.07% (-6.5%)</td></tr></tbody></table>

Since these results do not come from identical networks on the same datasets, trained in the same conditions, and pruned at the same rate, the comparisons have to be interpreted with caution. However, Table 1 gives quantified indications as to how our method compares to the state of the art, in terms of performance and allowed compression rates.

### 4.4. Experiments on ImageNet ILSVRC2012

The results of the experiments on ImageNet ILSVRC2012 are shown in Table 2, which presents the top-one and top-five accuracies of ResNet-50 from He et al. [3] on ImageNet ILSVRC2012, under the conditions described in Sections 4.1 and 4.2. The “Baseline” method is a regular, non-pruned network, which serves as a reference. SWD outperforms the reference method for both unstructured and structured pruning.

<table><caption>**Table 2.** Results with ResNet-50 on ImageNet ILSVRC2012, with unstructured and structured pruning for different rates of remaining parameters. SWD outperforms the reference method (or its counterpart with additional LR-Rewinding) in both cases. All values are in %. The best performance for each target is indicated in bold.</caption><caption>Experiments on ImageNet ILSVRC2012</caption><thead><tr><th rowspan="3">Target (%)</th><th colspan="6">Unstructured pruning</th></tr><tr><th colspan="2">Han et al. [15]</th><th colspan="2">+LRR [61]</th><th colspan="2">SWD (ours)</th></tr><tr><th>Top-1</th><th>Top-5</th><th>Top-1</th><th>Top-5</th><th>Top-1</th><th>Top-5</th></tr></thead><tbody><tr><td>50</td><td>74.9</td><td>92.2</td><td>58.4</td><td>82.1</td><td><strong>75.0</strong></td><td><strong>92.2</strong></td></tr><tr><td>10</td><td>71.1</td><td>90.5</td><td>54.6</td><td>79.6</td><td><strong>73.1</strong></td><td><strong>91.3</strong></td></tr><tr><td>2.5</td><td>47.2</td><td>73.2</td><td>34.8</td><td>61.54</td><td><strong>67.8</strong></td><td><strong>88.4</strong></td></tr></tbody><thead><tr><th rowspan="3">Target (%)</th><th colspan="6">Structured pruning</th></tr><tr><th colspan="2">Liu et al. [17]</th><th colspan="2">+LRR [61]</th><th colspan="2">SWD (ours)</th></tr><tr><th>Top-1</th><th>Top-5</th><th>Top-1</th><th>Top-5</th><th>Top-1</th><th>Top-5</th></tr></thead><tbody><tr><td>90</td><td><strong>74.7</strong></td><td><strong>92.2</strong></td><td>56.1</td><td>80.7</td><td>74.2</td><td>91.9</td></tr><tr><td>75</td><td>73.4</td><td>91.6</td><td>51.1</td><td>77.1</td><td><strong>73.5</strong></td><td><strong>91.5</strong></td></tr><tr><td>50</td><td>63.6</td><td>85.7</td><td>40.0</td><td>66.2</td><td><strong>69.0</strong></td><td><strong>88.8</strong></td></tr><tr><td>20</td><td>0.1</td><td>0.5</td><td>0.1</td><td>0.5</td><td><strong>69.0</strong></td><td><strong>88.7</strong></td></tr></tbody></table>

For models trained on ImageNet ILSVRC2012, the standard weight decay (parameter $\mu$) is set to $1 \times 10^{-4}$ and models were trained during 90 epochs. For the method from Han et al. [15], we made each fine-tuning step last for 5 epochs, except for the last iteration which lasted 15 epochs. For Liu et al.'s [17] method, the network was only pruned once and fine-tuned over 40 epochs. The smooth-$L_1$ norm had a coefficient set to $\lambda = 1 \times 10^{-5}$. For unstructured pruning, SWD was applied with $a_{min} = 1 \times 10^{-1}$ and $a_{max} = 1 \times 10^5$; for structured pruning, $a_{min} = 10$ and $a_{max} = 1 \times 10^4$.
4.5. *Impact of SWD on the Pruning/Accuracy Trade-Off*

Even though obtaining better accuracy for a given pruning target is not without
interest, it makes more sense to know what maximal compression rate SWD would allow
for a given accuracy target.

Figures 2 and 3 show the influence of SWD on the pruning/accuracy trade-off for ResNet-20, with an initial embedding of 64 and 16 feature maps, respectively, on CIFAR-10 [82]. We used that lighter dataset instead of ImageNet ILSVRC2012 because of the high cost of computing so many points.

Since each point is the result of only one experiment, there may be some fluctuations
due to low statistical power. However, since the same random seed and model initialization
were used each time, these may not prevent us from drawing conclusions about the behavior
of each method. As we stated in Section 2.2, pruning originally served as a method to
improve generalization. This suggests that the relationship between performance and
pruning may be subtle enough to lead to local optima that may not be possible to predict.

<figure><img src="image_7.png" /><figcaption>**Figure 2.** Comparison of the trade-off between pruning target and top-1 accuracy for ResNet-20 (with an initial embedding of 64 feature-maps) on CIFAR-10, for SWD and two reference methods. “Magnitude pruning” refers either to the method used in Han et al. [15] or Liu et al. [17]. SWD has a better performance/parameter trade-off on high-pruning targets. (a) Unstructured pruning. (b) Structured pruning.</figcaption></figure>

<figure><img src="image_8.png" /><figcaption>**Figure 3.** Comparison of the trade-off between pruning target and top-1 accuracy for ResNet-20 on CIFAR-10, with an initial embedding of 16 feature maps, for SWD and two reference methods. “Magnitude pruning” refers either to the method used in Han et al. [15] or Liu et al. [17]. SWD has a better performance/parameter trade-off on high-pruning targets. (a) Unstructured pruning. (b) Structured pruning.</figcaption></figure>

The standard weight decay (parameter *μ*) is set to 5 × 10⁻⁴ for CIFAR-10. The models on CIFAR-10 were trained for 300 epochs and each fine-tuning lasted 15 epochs, except the last one (or the only one when applying Liu et al. [17]), which lasted 50 epochs. When using the smooth-L₁ norm, its coefficient is set to λ = 1 × 10⁻⁴. For an initial embedding of 64 feature maps with unstructured pruning, we set *a*<sub>min</sub> = 1 × 10⁻¹ and *a*<sub>max</sub> = 1 × 10⁵; on structured pruning, *a*<sub>min</sub> = 1 × 10² and *a*<sub>max</sub> = 1 × 10⁷. For 16 feature maps, we set
$a_{min} = 1$ and $a_{min} = 1 \times 10^4$ for unstructured pruning and $a_{min} = 100$ and $a_{min} = 1 \times 10^6$ when structured.

Exact results are reported in Table 3, in which the expected compression ratios, in terms of operations, are also displayed. Since unstructured pruning produces sparse matrices, whereas structured pruning leads to networks of smaller sizes, some authors such as Ma et al. [83] have argued against the use of the former and in favor of the latter. Indeed, sparse matrices either need specific hardware or expensive indexing methods, which makes them less efficient than structured pruning. Therefore, because of how hardware- or method-specific the gains of unstructured pruning can be, we preferred not to indicate any compression ratio in terms of operation count for unstructured pruning. However, concerning structured pruning, it is far easier to guess what the operation count will be. The operations are calculated in the following way, with $f_{in}$ being the number of input channels, $f_{out}$ being the number of output channels, $k$ being the kernel size, $h$ being the height (in pixels) of the input feature maps, and $w$ being its width:

* convolution layer: $f_{in} \times f_{out} \times k^2 \times h \times w$;

* batch normalization layer: $f_{in} \times h \times w \times 2$;

* dense layer: $f_{in} \times f_{out} + f_{out}$.

We make no distinction between multiplications and additions in our count.

### 4.6. Grid Search on Multiple Models and Datasets

To show the influence of the values of $a_{min}$ and $a_{max}$ on the performance of networks right before and right after the final pruning step, we conducted a grid search using LeNet-5 and ResNet-20 on MNIST and CIFAR-10 with both unstructured and structured pruning.

The LeNet-5 models were trained for 200 epochs, with a learning rate of 0.1 and no weight decay (even though $\mu$ is set to $5 \times 10^{-4}$ for SWD); the momentum is set to 0. The pruning targets are 90% and 99%. The results of these grid searches are reported in Table 4.

Another grid search, on CIFAR-10 with ResNet-20 (64 channels), is reported in Table 5 with an extended range of values explored in order to showcase the importance of the increase of $a$ during training. As it involved testing cases decreasing $a$, we named the start and end values of $a$ as $a_{start}$ and $a_{end}$ instead of $a_{min}$ and $a_{max}$. Otherwise, the conditions were the same as described in Sections 4.1 and 4.5. Table 6 shows another distinct grid search, performed with structured pruning on various pruning targets.

In order to tease apart the sensitivity of SWD from variations of the model or of the dataset, we provide additional grid searches in Tables 7 and 8. These tables feature results on CIFAR-10 with ResNet-18 and ResNet-20 to showcase the influence of the model's depth, and on CIFAR-100 with ResNet-34 to have results on another, more complex dataset. Each network has an initial embedding of 64 and we show results for both structured and unstructured pruning.

Additionally, as highlighted by both Tables 4 and 6, the choice of $a_{min}$ and $a_{max}$ depends on the pruning target. To highlight this fact, we show a complete trade-off figure for various values of $a_{min}$ and $a_{max}$ in Figure 4, whose results are reported in Table 9.
<table><caption>**Table 3.** Top-1 accuracy of ResNet-20, with an initial embedding of 64 or 16 feature maps, on CIFAR-10 for various pruning targets, with different unstructured and structured pruning methods. In both cases, SWD outperforms the other methods for high-pruning targets. For each point, the corresponding estimated percentage of remaining operations ("Ops") is given (except for unstructured pruning). The missing point in the table (*) is due to the fact that too high values of SWD can lead to overflow of the value of the gradient, which induced a critical failure of the training process on this specific point. However, if the value of $a_{max}$ is instead set to $1 \times 10^6$, we obtain 95.19% accuracy, with a compression rate of operations of 82.21%. The best performance for each target is indicated in bold. Operations are reported in light grey for readability reasons.</caption><thead><tr><th rowspan="2">Target</th><th colspan="10">ResNet-20 on CIFAR-10 (Unstructured)</th></tr><tr><th>Base</th><th>Ops</th><th>LRR<br>64 Feature Maps</th><th>Ops</th><th>SWD</th><th>Ops</th><th>Base</th><th>Ops</th><th>LRR<br>16 Feature Maps</th><th>SWD</th><th>Ops</th></tr></thead><tbody><tr><td>10</td><td><b>95.45</b></td><td></td><td>94.82</td><td></td><td>95.43</td><td></td><td>92.23</td><td></td><td>90.47</td><td><b>92.63</b></td><td></td></tr><tr><td>20</td><td>95.47</td><td></td><td>95.15</td><td></td><td><b>95.55</b></td><td></td><td>92.25</td><td></td><td>89.70</td><td><b>92.47</b></td><td></td></tr><tr><td>30</td><td>95.43</td><td></td><td>95.03</td><td></td><td><b>95.47</b></td><td></td><td>92.27</td><td></td><td><b>92.57</b></td><td>92.45</td><td></td></tr><tr><td>40</td><td><b>95.48</b></td><td></td><td>94.94</td><td></td><td>95.40</td><td></td><td>92.31</td><td></td><td>90.15</td><td><b>92.36</b></td><td></td></tr><tr><td>50</td><td>95.44</td><td></td><td>95.33</td><td></td><td><b>95.46</b></td><td></td><td><b>92.43</b></td><td></td><td>91.06</td><td>92.08</td><td></td></tr><tr><td>60</td><td>95.32</td><td></td><td>95.04</td><td></td><td><b>95.37</b></td><td></td><td>91.95</td><td></td><td>89.93</td><td><b>92.15</b></td><td></td></tr><tr><td>70</td><td>95.3</td><td></td><td><b>95.45</b></td><td></td><td>95.04</td><td></td><td><b>91.78</b></td><td></td><td>89.8</td><td>91.69</td><td></td></tr><tr><td>75</td><td>95.32</td><td></td><td>95.15</td><td></td><td><b>95.34</b></td><td></td><td><b>91.46</b></td><td></td><td>89.39</td><td>90.90</td><td></td></tr><tr><td>80</td><td><b>95.32</b></td><td></td><td>95.14</td><td></td><td>95.09</td><td></td><td>90.77</td><td></td><td><b>91.52</b></td><td>91.37</td><td></td></tr><tr><td>85</td><td><b>95.05</b></td><td></td><td>95.03</td><td></td><td>94.99</td><td></td><td>90.22</td><td></td><td>88.51</td><td><b>90.97</b></td><td></td></tr><tr><td>90</td><td>94.77</td><td></td><td>94.72</td><td></td><td><b>94.90</b></td><td></td><td>85.26</td><td></td><td>88.12</td><td><b>90.15</b></td><td></td></tr><tr><td>92.5</td><td>94.48</td><td></td><td><b>94.74</b></td><td></td><td>94.58</td><td></td><td>79.98</td><td></td><td>86.07</td><td><b>89.88</b></td><td></td></tr><tr><td>95</td><td>94.03</td><td></td><td>93.66</td><td></td><td><b>94.40</b></td><td></td><td>77.15</td><td></td><td>83.27</td><td><b>88.90</b></td><td></td></tr><tr><td>96</td><td>93.38</td><td></td><td>93.63</td><td></td><td><b>94.14</b></td><td></td><td>79.41</td><td></td><td>82.96</td><td><b>88.69</b></td><td></td></tr><tr><td>97</td><td>91.95</td><td></td><td>93.34</td><td></td><td><b>93.76</b></td><td></td><td>68.85</td><td></td><td>82.75</td><td><b>86.95</b></td><td></td></tr><tr><td>97.5</td><td>91.43</td><td></td><td>92.48</td><td></td><td><b>93.52</b></td><td></td><td>68.51</td><td></td><td>79.32</td><td><b>86.16</b></td><td></td></tr><tr><td>98</td><td>90.58</td><td></td><td>91.64</td><td></td><td><b>93.49</b></td><td></td><td>58.15</td><td></td><td>75.21</td><td><b>84.88</b></td><td></td></tr><tr><td>98.5</td><td>87.44</td><td></td><td>90.36</td><td></td><td><b>93.00</b></td><td></td><td>41.60</td><td></td><td>62.52</td><td><b>83.33</b></td><td></td></tr><tr><td>99</td><td>83.42</td><td></td><td>87.38</td><td></td><td><b>92.50</b></td><td></td><td>41.26</td><td></td><td>51.93</td><td><b>75.89</b></td><td></td></tr><tr><td>99.5</td><td>66.90</td><td></td><td>82.21</td><td></td><td><b>91.05</b></td><td></td><td>34.88</td><td></td><td><b>37.22</b></td><td>29.35</td><td></td></tr><tr><td>99.8</td><td>48.52</td><td></td><td>65.46</td><td></td><td><b>86.81</b></td><td></td><td>10.00</td><td></td><td>10.00</td><td><b>16.47</b></td><td></td></tr><tr><td>99.9</td><td>27.78</td><td></td><td>45.44</td><td></td><td><b>81.32</b></td><td></td><td>10.00</td><td></td><td>10.00</td><td><b>11.11</b></td><td></td></tr></tbody><tbody><tr><th colspan="11">ResNet-20 on CIFAR-10 (structured)</th></tr><tr><td>10</td><td>94.83</td><td>84.13</td><td><b>95.10</b></td><td>85.37</td><td>*</td><td>*</td><td><b>91.96</b></td><td>90.06</td><td>89.95</td><td>85.70</td><td>91.88</td><td>77.68</td></tr><tr><td>20</td><td>94.88</td><td>70.41</td><td><b>95.39</b></td><td>76.45</td><td>95.38</td><td>70.21</td><td>91.25</td><td>78.64</td><td>88.91</td><td>76.21</td><td><b>91.97</b></td><td>64.63</td></tr><tr><td>30</td><td>94.88</td><td>58.20</td><td><b>95.53</b></td><td>67.45</td><td><b>95.48</b></td><td>59.67</td><td>90.55</td><td>69.77</td><td>90.65</td><td>63.10</td><td><b>91.22</b></td><td>59.23</td></tr><tr><td>40</td><td>94.91</td><td>48.06</td><td><b>95.32</b></td><td>53.40</td><td><b>95.44</b></td><td>51.96</td><td>89.59</td><td>62.20</td><td>89.94</td><td>54.85</td><td><b>90.67</b></td><td>51.07</td></tr><tr><td>50</td><td>94.92</td><td>40.25</td><td><b>94.31</b></td><td>43.68</td><td><b>94.96</b></td><td>44.31</td><td>89.11</td><td>51.72</td><td>88.07</td><td>44.04</td><td><b>90.27</b></td><td>41.95</td></tr><tr><td>60</td><td>94.29</td><td>33.88</td><td><b>95.02</b></td><td>35.82</td><td>94.93</td><td>37.90</td><td>87.70</td><td>42.16</td><td>85.84</td><td>35.6</td><td><b>89.66</b></td><td>33.42</td></tr><tr><td>70</td><td>93.24</td><td>26.01</td><td><b>94.98</b></td><td>28.08</td><td>94.64</td><td>30.20</td><td>85.08</td><td>33.12</td><td>85.84</td><td>30.29</td><td><b>88.93</b></td><td>28.76</td></tr><tr><td>75</td><td>92.08</td><td>21.36</td><td><b>94.67</b></td><td>24.26</td><td>94.25</td><td>24.89</td><td>82.61</td><td>28.68</td><td>83.58</td><td>22.92</td><td><b>88.23</b></td><td>25.59</td></tr><tr><td>80</td><td>84.20</td><td>16.55</td><td><b>94.45</b></td><td>19.97</td><td>94.15</td><td>22.46</td><td>79.71</td><td>24.18</td><td>83.50</td><td>19.07</td><td><b>87.82</b></td><td>23.94</td></tr><tr><td>85</td><td>77.18</td><td>12.07</td><td><b>94.36</b></td><td>16.45</td><td>94.27</td><td>19.02</td><td>10.00</td><td>17.29</td><td>82.53</td><td>18.36</td><td><b>86.79</b></td><td>19.20</td></tr><tr><td>90</td><td>71.01</td><td>8.04</td><td><b>93.42</b></td><td>11.67</td><td><b>93.72</b></td><td>14.35</td><td>10.00</td><td>12.31</td><td>80.19</td><td>12.06</td><td><b>85.25</b></td><td>15.75</td></tr><tr><td>92.5</td><td>10.00</td><td>5.87</td><td><b>92.94</b></td><td>8.93</td><td><b>93.06</b></td><td>12.84</td><td>10.00</td><td>10.40</td><td>74.81</td><td>9.86</td><td><b>83.67</b></td><td>12.38</td></tr><tr><td>95</td><td>10.00</td><td>4.01</td><td><b>91.14</b></td><td>6.66</td><td><b>91.93</b></td><td>9.65</td><td>64.23</td><td>8.1</td><td>66.30</td><td>5.89</td><td><b>80.66</b></td><td>11.08</td></tr><tr><td>96</td><td>10.00</td><td>3.39</td><td>89.80</td><td>5.72</td><td><b>91.67</b></td><td>8.89</td><td>10.00</td><td>7.16</td><td>64.90</td><td>4.81</td><td><b>78.39</b></td><td>9.99</td></tr><tr><td>97</td><td>10.00</td><td>2.84</td><td>89.25</td><td>4.68</td><td><b>90.57</b></td><td>7.45</td><td>10.00</td><td>5.08</td><td>39.30</td><td>4.25</td><td><b>75.45</b></td><td>8.53</td></tr><tr><td>97.5</td><td>10.00</td><td>2.26</td><td>87.92</td><td>4.27</td><td><b>89.90</b></td><td>7.05</td><td>10.00</td><td>4.21</td><td>10.00</td><td>3.79</td><td><b>72.73</b></td><td>7.8</td></tr><tr><td>98</td><td>10.00</td><td>1.80</td><td>88.00</td><td>3.63</td><td><b>89.07</b></td><td>6.00</td><td>10.00</td><td>3.7</td><td>10.00</td><td>3.12</td><td><b>71.45</b></td><td>6.73</td></tr><tr><td>98.5</td><td>10.00</td><td>1.37</td><td>74.97</td><td>2.73</td><td><b>87.68</b></td><td>5.29</td><td>10.00</td><td>2.13</td><td>10.00</td><td>2.64</td><td><b>66.71</b></td><td>5.08</td></tr><tr><td>99</td><td>10.00</td><td>0.99</td><td>57.99</td><td>2.32</td><td><b>84.66</b></td><td>4.22</td><td>10.00</td><td>1.79</td><td>10.00</td><td>2.24</td><td><b>51.49</b></td><td>4.25</td></tr><tr><td>99.5</td><td>10.00</td><td>0.57</td><td>10.00</td><td>1.45</td><td><b>79.86</b></td><td>2.42</td><td>10.00</td><td>0.8</td><td>10.00</td><td>1.53</td><td><b>47.63</b></td><td>1.9</td></tr><tr><td>99.8</td><td>10.00</td><td>0.26</td><td>10.00</td><td>0.75</td><td><b>70.18</b></td><td>0.97</td><td>10.00</td><td>0.03</td><td>10.00</td><td>0.13</td><td><b>36.67</b></td><td>0.53</td></tr><tr><td>99.9</td><td>10.00</td><td>0.12</td><td>10.00</td><td>0.37</td><td><b>66.96</b></td><td>0.45</td><td>10.00</td><td>0.01</td><td>10.00</td><td>0.01</td><td><b>10.00</b></td><td>0.35</td></tr></tbody></table>
<table><caption>**Table 4.** Top-1 accuracy after the final unstructured removal step and the difference of performance it induces, for LeNet-5 on MNIST with pruning targets of 10% and 1%. We observe that sufficiently high values of $a_{max}$ are needed to prevent the post-removal drop in performance. Higher values of $a_{min}$ seem to work better than smaller ones. The difference induced by $a_{min}$ and $a_{max}$ seems to be more dramatic for higher pruning targets. Colors are added to ease the interpretation of the results.</caption><thead><tr><th colspan="13">Grid Search with LeNet-5 on MNIST</th></tr><tr><th rowspan="2">a<sub>min</sub></th><th colspan="4">Top-1 Accuracy after Removal (%)</th><th colspan="4">Change of Accuracy through Removal (%)</th></tr><tr><th>1 × 10<sup>-1</sup></th><th>1 × 10<sup>-2</sup></th><th>1 × 10<sup>-3</sup></th><th>1 × 10<sup>-4</sup></th><th>1 × 10<sup>-1</sup></th><th>1 × 10<sup>-2</sup></th><th>1 × 10<sup>-3</sup></th><th>1 × 10<sup>-4</sup></th></tr></thead><tbody><tr><th colspan="9" style="text-align: center;">Pruning target 90%</th></tr><tr><th>a<sub>max</sub></th><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><th>1 × 10<sup>1</sup></th><td>98.26</td><td>98.03</td><td>98.02</td><td>95.64</td><td>-0.45</td><td>-0.58</td><td>-0.73</td><td>-3.01</td></tr><tr><th>1 × 10<sup>2</sup></th><td>98.65</td><td>98.81</td><td>98.74</td><td>98.84</td><td>0.14</td><td>0.33</td><td>-0.02</td><td>0.11</td></tr><tr><th>1 × 10<sup>3</sup></th><td>98.81</td><td>98.47</td><td>97.96</td><td>98.55</td><td>0.01</td><td>0.12</td><td>-0.02</td><td>0.45</td></tr><tr><th>1 × 10<sup>4</sup></th><td>98.95</td><td>99.04</td><td>96.92</td><td>98.88</td><td>0</td><td>0</td><td>0.37</td><td>-0.03</td></tr><tr><th colspan="9" style="text-align: center;">Pruning target 99%</th></tr><tr><th>1 × 10<sup>1</sup></th><td>23.52</td><td>15.74</td><td>18.04</td><td>12.45</td><td>-75.39</td><td>-83.20</td><td>-80.72</td><td>-86.53</td></tr><tr><th>1 × 10<sup>2</sup></th><td>19.86</td><td>16.04</td><td>22.94</td><td>22.76</td><td>-70.60</td><td>-80.85</td><td>-74.26</td><td>-72.44</td></tr><tr><th>1 × 10<sup>3</sup></th><td>78.06</td><td>75.84</td><td>67.69</td><td>69.74</td><td>-15.01</td><td>-10.81</td><td>-22.92</td><td>-21.69</td></tr><tr><th>1 × 10<sup>4</sup></th><td>92.47</td><td>93.52</td><td>92.60</td><td>92.14</td><td>2.12</td><td>0.28</td><td>3.03</td><td>2.46</td></tr></tbody></table>

<table><caption>**Table 5.** On ResNet-20 with an initial embedding of 64 feature maps, trained on CIFAR-10 for a pruning target of 90%. Top-1 accuracy after the final unstructured removal step and the difference in performance it induces. The best results are obtained for reasonably low $a_{start}$ and high $a_{end}$, in accordance with the motivation behind SWD we provided in Section 3. Colors are added to ease the interpretation of the results.</caption><thead><tr><th colspan="13">Extended Grid Search</th></tr><tr><th>a<sub>start</sub></th><th>1 × 10<sup>4</sup></th><th>1 × 10<sup>3</sup></th><th>1 × 10<sup>2</sup></th><th>1 × 10<sup>1</sup></th><th>1 × 10<sup>0</sup></th><th>1 × 10<sup>-1</sup></th><th>1 × 10<sup>-2</sup></th><th>1 × 10<sup>-3</sup></th><th>1 × 10<sup>-4</sup></th><th>1 × 10<sup>-5</sup></th></tr></thead><tbody><tr><th colspan="11" style="text-align: center;">Top-1 accuracy after removal (%)</th></tr><tr><th>a<sub>end</sub></th><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><th>1 × 10<sup>1</sup></th><td>94.44</td><td>94.08</td><td>93.92</td><td>94.21</td><td>94.54</td><td>91.00</td><td>83.89</td><td>53.68</td><td>71.88</td><td>67.07</td></tr><tr><th>1 × 10<sup>2</sup></th><td>94.52</td><td>94.13</td><td>93.91</td><td>94.00</td><td>94.65</td><td>95.15</td><td>94.55</td><td>93.99</td><td>92.40</td><td>89.87</td></tr><tr><th>1 × 10<sup>3</sup></th><td>94.57</td><td>94.23</td><td>93.50</td><td>94.00</td><td>94.72</td><td>94.96</td><td>95.29</td><td>95.27</td><td>94.81</td><td>94.72</td></tr><tr><th>1 × 10<sup>4</sup></th><td>94.61</td><td>94.17</td><td>93.85</td><td>94.49</td><td>94.50</td><td>94.73</td><td>95.37</td><td>95.29</td><td>95.14</td><td>95.22</td></tr><tr><th>1 × 10<sup>5</sup></th><td>94.37</td><td>94.45</td><td>93.54</td><td>94.39</td><td>94.39</td><td>94.78</td><td>95.24</td><td>95.07</td><td>95.30</td><td>95.19</td></tr><tr><th colspan="11" style="text-align: center;">Change in accuracy through removal (%)</th></tr><tr><th>1 × 10<sup>1</sup></th><td>-0.1</td><td>0</td><td>-0.01</td><td>0</td><td>0.06</td><td>-4.33</td><td>-11.49</td><td>-41.72</td><td>-23.53</td><td>-28.36</td></tr><tr><th>1 × 10<sup>2</sup></th><td>0.06</td><td>-0.09</td><td>-0.01</td><td>-0.05</td><td>0.1</td><td>-0.01</td><td>-0.45</td><td>-0.99</td><td>-2.37</td><td>-4.74</td></tr><tr><th>1 × 10<sup>3</sup></th><td>-0.01</td><td>0.03</td><td>-0.01</td><td>0</td><td>0.02</td><td>-0.01</td><td>-0.06</td><td>0.05</td><td>-0.01</td><td>0.11</td></tr><tr><th>1 × 10<sup>4</sup></th><td>-0.02</td><td>-0.07</td><td>0.01</td><td>0.01</td><td>0.02</td><td>-0.03</td><td>0.02</td><td>0.05</td><td>-0.02</td><td>0.08</td></tr><tr><th>1 × 10<sup>5</sup></th><td>0.01</td><td>0.04</td><td>0.02</td><td>0</td><td>0</td><td>-0.01</td><td>-0.02</td><td>-0.01</td><td>0.01</td><td>-0.10</td></tr></tbody></table>
<table><caption>**Table 6.** Top-1 accuracy after the final structured removal step and the difference in performance it induces, for ResNet-20 with an initial embedding of 64 feature maps, trained on CIFAR-10 and pruning targets of 75% and 90%. Structured pruning with SWD turned out to require exploring a wider range of values than unstructured pruning, as well as being even more sensitive to *a*. Colors are added to ease the interpretation of the results.</caption><thead><tr><th rowspan="2">a<sub>min</sub></th><th colspan="6">Grid Search with Structured Pruning</th><th colspan="6">Change of Accuracy through Removal (%)</th></tr><tr><th colspan="4">Top-1 Accuracy after Removal (%)</th><th colspan="2">Change of Accuracy through Removal (%)</th></tr><tr><th>a<sub>max</sub></th><th>1 × 10<sup>0</sup></th><th>1 × 10<sup>-1</sup></th><th>1 × 10<sup>-2</sup></th><th>1 × 10<sup>-3</sup></th><th>1 × 10<sup>-4</sup></th><th>1 × 10<sup>0</sup></th><th>1 × 10<sup>-1</sup></th><th>1 × 10<sup>-2</sup></th><th>1 × 10<sup>-3</sup></th><th>1 × 10<sup>-4</sup></th><th>1 × 10<sup>0</sup></th><th>1 × 10<sup>-1</sup></th><th>1 × 10<sup>-2</sup></th><th>1 × 10<sup>-3</sup></th><th>1 × 10<sup>-4</sup></th></tr></thead><tbody><tr><th colspan="16" style="text-align: center;">Pruning target 75%</th></tr><tr><th>1 × 10<sup>1</sup></th><td>57.11</td><td>8.2</td><td>12.68</td><td>9.52</td><td>7.9</td><td>-37.68</td><td>-87.4</td><td>-82.68</td><td>-85.81</td><td>-87.61</td><td>91.21</td><td>5.57</td><td>6.45</td><td>9.97</td><td>8.01</td></tr><tr><th>1 × 10<sup>2</sup></th><td></td><td></td><td></td><td></td><td></td><td>-3.74</td><td>-89.35</td><td>-88.37</td><td>-85.06</td><td>-86.72</td><td>94.94</td><td>86.11</td><td>15.87</td><td>5.84</td><td>4.38</td></tr><tr><th>1 × 10<sup>3</sup></th><td></td><td></td><td></td><td></td><td></td><td>-0.05</td><td>-7.78</td><td>-77.34</td><td>-87.85</td><td>-89.39</td><td>94.79</td><td>94.77</td><td>94.24</td><td>36.51</td><td>6.63</td></tr><tr><th>1 × 10<sup>4</sup></th><td></td><td></td><td></td><td></td><td></td><td>0</td><td>-0.04</td><td>-0.21</td><td>-56.77</td><td>-85.94</td><td>94.70</td><td>95.28</td><td>94.75</td><td>94.59</td><td>86.47</td></tr><tr><th>1 × 10<sup>5</sup></th><td></td><td></td><td></td><td></td><td></td><td>-0.01</td><td>0</td><td>0.2</td><td>0.05</td><td>-7.83</td><td>95.05</td><td>94.91</td><td>94.70</td><td>94.99</td><td>94.71</td></tr><tr><th>1 × 10<sup>6</sup></th><td></td><td></td><td></td><td></td><td></td><td>0</td><td>0</td><td>-0.01</td><td>0</td><td>0.01</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><th colspan="16" style="text-align: center;">Pruning target 90%</th></tr><tr><th>1 × 10<sup>1</sup></th><td>11.17</td><td>10.00</td><td>10.00</td><td>10.00</td><td>07.19</td><td>-83.86</td><td>-85.19</td><td>-85.24</td><td>-85.45</td><td>-88.22</td><td>16.45</td><td>10.00</td><td>10.00</td><td>10.00</td><td>10.00</td></tr><tr><th>1 × 10<sup>2</sup></th><td></td><td></td><td></td><td></td><td></td><td>-78.2</td><td>-84.05</td><td>-84.62</td><td>-84.22</td><td>-84.11</td><td>78.66</td><td>14.51</td><td>10.01</td><td>10.00</td><td>10.04</td></tr><tr><th>1 × 10<sup>3</sup></th><td></td><td></td><td></td><td></td><td></td><td>-14.91</td><td>-77.96</td><td>-82.53</td><td>-81.64</td><td>-81.37</td><td>94.15</td><td>92.86</td><td>49.28</td><td>51.28</td><td>10.55</td></tr><tr><th>1 × 10<sup>4</sup></th><td></td><td></td><td></td><td></td><td></td><td>-0.01</td><td>-0.79</td><td>-42.71</td><td>-40.7</td><td>-81.47</td><td>93.82</td><td>93.59</td><td>93.18</td><td>89.49</td><td>91.93</td></tr><tr><th>1 × 10<sup>5</sup></th><td></td><td></td><td></td><td></td><td></td><td>-0.04</td><td>-0.01</td><td>-0.03</td><td>-2.4</td><td>-0.39</td><td>94.05</td><td>94.02</td><td>93.73</td><td>93.60</td><td>93.55</td></tr><tr><th>1 × 10<sup>6</sup></th><td></td><td></td><td></td><td></td><td></td><td>0</td><td>0</td><td>0.01</td><td>0</td><td>-0.02</td><td></td><td></td><td></td><td></td><td></td></tr></tbody></table>

<figure><img src="image_9.png" /><figcaption>**Figure 4.** Comparison of the trade-off between an unstructured pruning target and the top-1 accuracy for ResNet-20 on CIFAR-10, with an initial embedding of 16 feature maps, for SWD with different values of *a*<sub>min</sub> and *a*<sub>max</sub>. Depending on the pruning rate, the best values to choose are not always the same.</figcaption></figure>
<table><caption>**Table 7.** Top-1 accuracy after the final unstructured removal step and the difference in performance it induces, for various networks and datasets with a pruning target of 90%. The influence of $a_{min}$ and $a_{max}$ varies significantly depending on the problem, although common tendencies persist. Colors are added to ease the interpretation of the results.</caption><thead><tr><th rowspan="2">a<sub>min</sub></th><th colspan="5">Grid Search with Unstructured Pruning</th><th colspan="5">Change of Accuracy through Removal (%)</th></tr><tr><th>1 × 10<sup>-1</sup></th><th>1 × 10<sup>-2</sup></th><th>1 × 10<sup>-3</sup></th><th>1 × 10<sup>-4</sup></th><th>1 × 10<sup>-5</sup></th><th>1 × 10<sup>-1</sup></th><th>1 × 10<sup>-2</sup></th><th>1 × 10<sup>-3</sup></th><th>1 × 10<sup>-4</sup></th><th>1 × 10<sup>-5</sup></th></tr></thead><tbody><tr><th colspan="11" style="text-align: center;">ResNet-18 on CIFAR-10</th></tr><tr><th>1 × 10<sup>1</sup></th><td>94.73</td><td>92.69</td><td>78.28</td><td>83.08</td><td>63.66</td><td>-0.21</td><td>-2.55</td><td>-17.3</td><td>-12.25</td><td>-31.39</td></tr><tr><th>1 × 10<sup>2</sup></th><td>94.88</td><td>94.33</td><td>92.29</td><td>85.33</td><td>29.18</td><td>-0.08</td><td>-0.68</td><td>-2.72</td><td>-9.52</td><td>-65.73</td></tr><tr><th>1 × 10<sup>3</sup></th><td>95.33</td><td>95.34</td><td>93.55</td><td>92.64</td><td>86.89</td><td>0.04</td><td>0.02</td><td>-1.64</td><td>-2.48</td><td>-8.13</td></tr><tr><th>1 × 10<sup>4</sup></th><td>95.17</td><td>95.08</td><td>95.28</td><td>94.88</td><td>95.23</td><td>-0.01</td><td>0.02</td><td>-0.02</td><td>-0.29</td><td>0.01</td></tr><tr><th>1 × 10<sup>5</sup></th><td>95.19</td><td>95.18</td><td>95.21</td><td>95.11</td><td>95.43</td><td>0.0</td><td>0.0</td><td>0.01</td><td>0.02</td><td>0.03</td></tr><tr><th colspan="11" style="text-align: center;">ResNet-20 on CIFAR-10</th></tr><tr><th>1 × 10<sup>1</sup></th><td>91.00</td><td>83.89</td><td>53.68</td><td>71.88</td><td>67.07</td><td>-4.33</td><td>-11.49</td><td>-41.72</td><td>-23.53</td><td>-28.36</td></tr><tr><th>1 × 10<sup>2</sup></th><td>95.15</td><td>94.55</td><td>93.99</td><td>92.40</td><td>89.87</td><td>-0.01</td><td>-0.45</td><td>-0.99</td><td>-2.37</td><td>-4.74</td></tr><tr><th>1 × 10<sup>3</sup></th><td>94.96</td><td>95.29</td><td>95.27</td><td>94.81</td><td>94.72</td><td>-0.01</td><td>-0.06</td><td>0.05</td><td>-0.01</td><td>0.11</td></tr><tr><th>1 × 10<sup>4</sup></th><td>94.73</td><td>95.37</td><td>95.29</td><td>95.14</td><td>95.22</td><td>-0.03</td><td>0.02</td><td>0.05</td><td>-0.02</td><td>0.08</td></tr><tr><th>1 × 10<sup>5</sup></th><td>94.78</td><td>95.24</td><td>95.07</td><td>95.30</td><td>95.19</td><td>-0.01</td><td>-0.02</td><td>-0.01</td><td>0.01</td><td>-0.1</td></tr><tr><th colspan="11" style="text-align: center;">ResNet-34 on CIFAR-100</th></tr><tr><th>1 × 10<sup>1</sup></th><td>73.15</td><td>71.94</td><td>66.81</td><td>67.04</td><td>64.55</td><td>2.5</td><td>-6.0</td><td>-11.22</td><td>-11.16</td><td>-13.77</td></tr><tr><th>1 × 10<sup>2</sup></th><td>77.36</td><td>77.38</td><td>75.71</td><td>75.57</td><td>74.77</td><td>0.08</td><td>-0.46</td><td>-1.42</td><td>-1.82</td><td>-2.55</td></tr><tr><th>1 × 10<sup>3</sup></th><td>72.63</td><td>78.04</td><td>78.16</td><td>77.52</td><td>77.45</td><td>1.66</td><td>0.03</td><td>-0.02</td><td>0.02</td><td>-0.09</td></tr><tr><th>1 × 10<sup>4</sup></th><td>76.86</td><td>77.55</td><td>78.21</td><td>78.74</td><td>77.52</td><td>0.08</td><td>0.04</td><td>0.03</td><td>0.01</td><td>0.02</td></tr><tr><th>1 × 10<sup>5</sup></th><td>77.08</td><td>77.88</td><td>78.12</td><td>77.26</td><td>77.87</td><td>0.0</td><td>-0.01</td><td>0.04</td><td>0.03</td><td>0.0</td></tr></tbody></table>

<table><caption>**Table 8.** Top-1 accuracy after the final structured removal step and the difference in performance it induces, for various networks and datasets with a pruning target of 90%. The influence of $a_{min}$ and $a_{max}$ varies significantly depending on the problem, although common tendencies persist. As previously shown in Table 6, structured pruning is a lot more sensitive to variations of $a_{min}$ and $a_{max}$. Colors are added to ease the interpretation of the results.</caption><thead><tr><th rowspan="2">a<sub>min</sub></th><th colspan="5">Grid Search with Structured Pruning</th><th colspan="5">Change in Accuracy through Removal (%)</th></tr><tr><th>1 × 10<sup>0</sup></th><th>1 × 10<sup>-1</sup></th><th>1 × 10<sup>-2</sup></th><th>1 × 10<sup>-3</sup></th><th>1 × 10<sup>-4</sup></th><th>1 × 10<sup>0</sup></th><th>1 × 10<sup>-1</sup></th><th>1 × 10<sup>-2</sup></th><th>1 × 10<sup>-3</sup></th><th>1 × 10<sup>-4</sup></th><th>1 × 10<sup>-5</sup></th></tr></thead><tbody><tr><th colspan="11" style="text-align: center;">ResNet-18 on CIFAR-10</th></tr><tr><th>1 × 10<sup>1</sup></th><td>28.95</td><td>10.00</td><td>10.00</td><td>10.00</td><td>10.00</td><td>-66.2</td><td>-84.93</td><td>-84.96</td><td>-85.19</td><td>-85.19</td><td>-84.91</td></tr><tr><th>1 × 10<sup>2</sup></th><td>65.74</td><td>10.00</td><td>10.00</td><td>10.00</td><td>10.00</td><td>-28.58</td><td>-84.33</td><td>-84.52</td><td>-84.37</td><td>-84.57</td><td>-84.33</td></tr><tr><th>1 × 10<sup>3</sup></th><td>93.81</td><td>10.00</td><td>10.00</td><td>10.00</td><td>10.00</td><td>-1.05</td><td>-84.49</td><td>-84.26</td><td>-81.58</td><td>-84.22</td><td>-84.16</td></tr><tr><th>1 × 10<sup>4</sup></th><td>94.63</td><td>18.08</td><td>10.00</td><td>10.00</td><td>10.00</td><td>-0.02</td><td>-76.53</td><td>-84.43</td><td>-84.22</td><td>-83.7</td><td>-79.16</td></tr><tr><th>1 × 10<sup>5</sup></th><td>94.84</td><td>94.23</td><td>29.14</td><td>11.39</td><td>10.00</td><td>0.0</td><td>-0.62</td><td>-65.14</td><td>-83.13</td><td>-83.69</td><td>-82.3</td></tr><tr><th>1 × 10<sup>6</sup></th><td>94.73</td><td>94.94</td><td>94.58</td><td>94.46</td><td>93.57</td><td>0.0</td><td>0.01</td><td>-0.13</td><td>-0.05</td><td>1.33</td><td>-2.78</td></tr></tbody></table>
<table><caption>**Table 8.** *Cont.*</caption><thead><tr><th colspan="15">Grid Search with Structured Pruning</th></tr><tr><th colspan="5">Top-1 Accuracy after Removal (%)</th><th colspan="10">Change in Accuracy through Removal (%)</th></tr></thead><tbody><tr><th colspan="15">ResNet-20 on CIFAR-10</th></tr><tr><td>1 × 10<sup>1</sup></td><td>11.17</td><td>10.00</td><td>10.00</td><td>10.00</td><td>07.16</td><td>10.17</td><td>-83.86</td><td>-85.19</td><td>-85.24</td><td>-85.45</td><td>-88.22</td><td>-85.31</td></tr><tr><td>1 × 10<sup>2</sup></td><td>16.45</td><td>10.00</td><td>10.00</td><td>10.00</td><td>10.00</td><td>10.36</td><td>-78.2</td><td>-84.05</td><td>-84.62</td><td>-84.22</td><td>-84.11</td><td>-83.58</td></tr><tr><td>1 × 10<sup>3</sup></td><td>78.66</td><td>14.51</td><td>10.01</td><td>10.00</td><td>10.04</td><td>11.69</td><td>-14.91</td><td>-77.96</td><td>-82.53</td><td>-81.64</td><td>-81.37</td><td>-78.78</td></tr><tr><td>1 × 10<sup>4</sup></td><td>94.15</td><td>92.86</td><td>49.28</td><td>51.28</td><td>10.55</td><td>15.53</td><td>-0.01</td><td>-0.79</td><td>-42.71</td><td>-40.7</td><td>-81.47</td><td>-75.52</td></tr><tr><td>1 × 10<sup>5</sup></td><td>93.82</td><td>93.59</td><td>93.18</td><td>89.49</td><td>91.93</td><td>89.56</td><td>-0.04</td><td>-0.01</td><td>-0.03</td><td>-2.4</td><td>-0.39</td><td>-1.04</td></tr><tr><td>1 × 10<sup>6</sup></td><td>94.05</td><td>94.02</td><td>93.73</td><td>93.60</td><td>93.55</td><td>92.00</td><td>0.0</td><td>0.0</td><td>0.01</td><td>0.0</td><td>-0.02</td><td>-0.7</td></tr><tr><th colspan="15">ResNet-34 on CIFAR-100</th></tr><tr><td>1 × 10<sup>1</sup></td><td>01.00</td><td>34.60</td><td>01.00</td><td>01.00</td><td>01.00</td><td>01.00</td><td>-75.11</td><td>-7.89</td><td>-77.46</td><td>-77.31</td><td>-76.95</td><td>-77.46</td></tr><tr><td>1 × 10<sup>2</sup></td><td>01.00</td><td>51.33</td><td>01.00</td><td>01.00</td><td>01.00</td><td>01.00</td><td>-72.98</td><td>0.0</td><td>-75.23</td><td>-74.68</td><td>-74.7</td><td>-73.79</td></tr><tr><td>1 × 10<sup>3</sup></td><td>01.18</td><td>01.00</td><td>01.00</td><td>01.00</td><td>01.00</td><td>01.00</td><td>-70.32</td><td>-68.22</td><td>-64.48</td><td>-64.8</td><td>-61.12</td><td>-61.96</td></tr><tr><td>1 × 10<sup>4</sup></td><td>72.41</td><td>12.66</td><td>01.00</td><td>01.00</td><td>00.92</td><td>01.00</td><td>-0.01</td><td>-58.94</td><td>-56.6</td><td>-45.25</td><td>-47.44</td><td>-51.16</td></tr><tr><td>1 × 10<sup>5</sup></td><td>74.26</td><td>73.80</td><td>15.19</td><td>01.05</td><td>01.11</td><td>01.00</td><td>0.0</td><td>-0.3</td><td>-50.0</td><td>-58.16</td><td>-41.92</td><td>-28.91</td></tr><tr><td>1 × 10<sup>6</sup></td><td>73.77</td><td>75.22</td><td>62.94</td><td>34.01</td><td>18.35</td><td>05.69</td><td>-0.01</td><td>-0.02</td><td>-4.76</td><td>-28.26</td><td>-42.86</td><td>-34.76</td></tr></tbody></table>

<table><caption>**Table 9.** Top-1 accuracy for ResNet-20 on CIFAR-10, with an initial embedding of 16 feature maps, with different unstructured pruning targets, for SWD with different values of $a_{min}$ and $a_{max}$. Depending on the pruning rate, the best values to choose are not always the same. If, for each pruning target, we picked the best value among these, SWD would outclass the other technique from Table 3 by a larger margin. The best performance for each target is indicated in bold.</caption><thead><tr><th rowspan="2">a<sub>min</sub><br>a<sub>max</sub></th><th colspan="4">Influence of a<sub>min</sub> and a<sub>max</sub></th></tr><tr><th>0.1<br>1 × 10<sup>4</sup></th><th>0.1<br>5 × 10<sup>4</sup></th><th>1<br>1 × 10<sup>4</sup></th><th>1<br>5 × 10<sup>4</sup></th></tr></thead><tbody><tr><td>10</td><td>92.38</td><td>92.50</td><td><strong>92.63</strong></td><td>92.56</td></tr><tr><td>20</td><td>92.32</td><td>92.57</td><td>92.47</td><td><strong>92.62</strong></td></tr><tr><td>30</td><td>92.53</td><td>92.34</td><td>92.45</td><td><strong>92.55</strong></td></tr><tr><td>40</td><td><strong>92.58</strong></td><td>92.35</td><td>92.36</td><td>91.98</td></tr><tr><td>50</td><td><strong>92.15</strong></td><td>92.02</td><td>92.08</td><td>92.02</td></tr><tr><td>60</td><td><strong>92.28</strong></td><td>92.09</td><td>92.15</td><td>91.89</td></tr><tr><td>70</td><td><strong>92.01</strong></td><td>91.87</td><td>91.69</td><td>91.57</td></tr><tr><td>75</td><td><strong>92.27</strong></td><td>91.89</td><td>90.90</td><td>91.70</td></tr><tr><td>80</td><td><strong>91.85</strong></td><td>91.52</td><td>91.37</td><td>91.04</td></tr><tr><td>85</td><td>91.44</td><td><strong>91.48</strong></td><td>90.97</td><td>90.7</td></tr><tr><td>90</td><td><strong>90.91</strong></td><td>90.83</td><td>90.15</td><td>90.22</td></tr><tr><td>92.5</td><td><strong>90.59</strong></td><td>90.16</td><td>89.88</td><td>89.36</td></tr><tr><td>95</td><td><strong>89.30</strong></td><td>89.00</td><td>88.90</td><td>88.28</td></tr><tr><td>96</td><td>88.11</td><td>88.64</td><td><strong>88.69</strong></td><td>87.72</td></tr><tr><td>97</td><td><strong>87.01</strong></td><td>87.0</td><td>86.95</td><td>86.67</td></tr><tr><td>97.5</td><td>85.76</td><td>86.09</td><td><strong>86.16</strong></td><td>85.91</td></tr><tr><td>98</td><td>83.56</td><td>84.27</td><td><strong>84.88</strong></td><td>85.11</td></tr><tr><td>98.5</td><td>75.47</td><td>81.62</td><td><strong>83.33</strong></td><td>82.91</td></tr><tr><td>99</td><td>37.24</td><td>74.07</td><td><strong>75.89</strong></td><td>80.2</td></tr><tr><td>99.5</td><td>21.61</td><td>47.26</td><td>29.35</td><td><strong>64.01</strong></td></tr><tr><td>99.8</td><td>12.27</td><td>11.33</td><td>16.47</td><td><strong>25.19</strong></td></tr><tr><td>99.9</td><td>9.78</td><td><strong>16.39</strong></td><td>11.11</td><td>10.9</td></tr></tbody></table>

## 4.7. Experiment on Graph Convolutional Networks

In order to verify that SWD can be applied to tasks that are not image classification (such as CIFAR-10/100 or ImageNet ILSVRC2012), we ran experiments on a Graph Convolutional Network (GCN) based on Kipf and Welling[84] on the Cora dataset [85]. We
instantiated the GCN with 16 hidden units and trained it with the Adam optimizer [86] with a weight decay of $5 \times 10^{-4}$ and a learning rate of $1 \times 10^{-2}$. The dropout rate was set at 50%.

Pruning models introduced severe instabilities when training with the original number of epochs per training, set to 200, which is why we trained models for 2000 epochs instead. For SWD, we set $a_{min} = 1 \times 10^{-1}$ and $a_{max} = 1 \times 10^{6}$. For magnitude pruning, models were pruned across 5 iterations, with each fine-tuning lasting 200 epochs, except for the last one, which lasted 2000. The results are reported in Figure 5.

<figure><img src="image_10.png" /><figcaption>**Figure 5.** Magnitude pruning [15] and SWD applied on a Graph Convolutional Network[84] on the Cora dataset [85].</figcaption></figure>

## 4.8. Ablation Test: The Need for Selectivity

Section 4.6 studied the sensitivity of performance to the pace at which SWD increases during training. However, we need to show the necessity of its other characteristic: its selectivity. Indeed, SWD is only applied to a subset of the network's parameters.

We ran this ablation test using ResNet-20, with an initial embedding of 64 feature maps, on CIFAR-10, with unstructured pruning, and under the same conditions as stated in Section 4.5. Without any fine tuning, we compared three cases: (1) using only simple weight decay, (2) using a weight decay that grows in the same way as SWD, and (3) SWD.

Figure 6 shows that neither weight decay nor increasing weight decay achieve the same performance as SWD. Indeed, the weight decay curve equates pruning a normally trained network without any fine-tuning, which is expected to be sub-optimal. Increasing global weight decay amounts to applying SWD everywhere and, thus, to pruning the whole network.

Therefore, we can deduce that (1) SWD is a more efficient removal method than the manual nullification of small weights and (2) the selectivity of SWD is necessary.

## 4.9. Computational Cost of SWD

We measured the additional computing time caused by using SWD. Results are presented in Table 10. We performed experiments on ImageNet and CIFAR-10. In both cases, we obtained increased computation time of the order of 40% to 50%. These numbers should be put into perspective with the fact most pruning techniques come with additional epochs in training, which can easily result in doubling the computation time when compared with the corresponding baselines.
<figure><img src="image_11.png" /><figcaption>**Figure 6.** Ablation test: SWD without fine-tuning is compared to a network that has been pruned without fine-tuning and to which either normal weight decay or a weight decay that increases at the same pace as SWD was applied. It appears that weight decay alone is insufficient for obtaining the performance of SWD, and that an increasing global weight decay prunes the entire network. Therefore, the selectivity, as well as the increase, of SWD is necessary to its performance.</figcaption></figure>

<table><caption>**Table 10.** Increased training duration in seconds per epoch for two different networks and datasets. Results on ImageNet ILSVRC 2012 are averaged over 5 epochs, those on CIFAR-10 are averaged over 50 epochs. Each epoch includes both training and testing.</caption><thead><tr><th colspan="4">ResNet-50 on ImageNet on 3 NVIDIA Quadro K6000</th></tr></thead><tbody><tr><td>SWD type</td><td>None</td><td>Unstructured</td><td>Structured</td></tr><tr><td>Seconds per epoch</td><td>2936</td><td>4352</td><td>4143</td></tr><tr><td>Increase (%)</td><td>0</td><td>48</td><td>41</td></tr></tbody><thead><tr><th colspan="4">ResNet-20 on CIFAR-10 on 1 NVIDIA GeForce RTX 2070</th></tr></thead><tbody><tr><td>SWD type</td><td>None</td><td>Unstructured</td><td>Structured</td></tr><tr><td>Seconds per epoch</td><td>55</td><td>77</td><td>78</td></tr><tr><td>Increase (%)</td><td>0</td><td>40</td><td>41</td></tr></tbody></table>

## 5. Discussion

The experiments on CIFAR-10 have shown that SWD performs on par with standard methods for low pruning targets and greatly outperforms them on high ones. Our method allows for much higher targets on the same accuracy. We think that the multiple desirable properties brought by SWD over standard pruning methods are responsible for a much more efficient identification and removal of the unnecessary parts of networks. Indeed, dramatic degradations of performance, which could come from removing a necessary parameter or filter, by error are limited by two things: (1) the continuity of SWD, which lets the other parameters compensate progressively for the loss, and (2) its ability to adapt its targeted parameters, so that the weights that are the most relevant to remove are penalized at a more appropriate time.

We compared SWD to multiple methods, described in Section 4.2. Because of the large number of diverging methods in the literature, we preferred to stick to very standard ones that still serve as baselines to many works and remain relevant points of comparison [20]. The values of the hyper-parameters specific to these methods were directly extracted from their original papers. Concerning the other hyper-parameters, we ran each experiment under the same condition and initialization to separate the influence of the hyper-parameters from that of the initialization and of the actual pruning method.
Because of the low granularity of filter-wise structured pruning, there is always the risk of pruning all filters of a single layer and, then, breaking the network irremediably. This likely explains the sudden drops in performance that can be observed for reference methods in Figure 2. Since SWD can adapt to induce no such damage, the network does not reach random guesses even at extreme pruning targets, such as 99.9%. Our results also confirm that SWD can be applied to different datasets and networks, or even pruning structures, and yet stay ahead of the reference methods. Indeed, Figure 5 suggests that the gains observed for a visual classification task carry over to a graph neural network trained on a non-visual task. That means that the properties of SWD are not task- or network-specific and can be transposed in various contexts (see Figure 5), which is an important issue, as shown by Gale [20].

Multiple observations can be drawn from the grid searches displayed in Tables 4–6. Experiments on MNIST show that the effect of $a_{min}$ and $a_{max}$ on both performance and post-removal drop in accuracy depends on the pruning target: the higher the target, the more dramatic the differences of behavior between given ranges of values. Upon comparison with experiments on CIFAR-10, we can tell that these behaviors are also sensitive to the models, datasets, and structures.

Both Tables 4 and 5 show that high values of $a$ (or at least, of $a_{max}$ or $a_{end}$) are needed to prevent the post-removal drop in performance. This means that the penalty must be strong enough to effectively reduce weights almost to zero, so that they can be removed seamlessly. Table 5 shows that cases of high $a_{start}$ work pretty well. This is consistent with the literature in Section 2, which tends to demonstrate the importance of sparsity during training. However, the best results are obtained for reasonably low $a_{min}$ and high $a_{max}$, which is consistent with our arguments in favor of SWD in Section 3.

Experiments on ResNet-20 with an initial embedding of 16 feature maps, instead of 64, revealed that these networks were much more sensitive to pruning, had a lower threshold for high $a_{max}$ values, and were more prone to local instabilities, such as the spike for structured magnitude pruning visible in Figure 3. This is understandable: slimmer networks are expected to be more difficult to prune, since they are less likely to be over-parameterized. Because of their thinness, they also tend to be more vulnerable to layer collapse [53], which tends to prematurely reduce the network to random guessing by pruning entire layers and, hence, irremediably breaking the network.

These experiments show that the performance of SWD scales well on this slimmer network relative to the reference methods. However, the increased sensitivity to values of $a_{min}$ and $a_{max}$ highlight how sub-optimal it may be to apply the same values of these for any pruning target. Indeed, picking the best-performing combination for each target, in Table 9, results in a trade-off that outmatches the reference methods by a larger margin than what Figure 3 shows.

However, one may notice that we generally used a different pair of values $a_{min}$ and $a_{max}$ for each experiment. Indeed, as stated previously, the behavior of SWD for certain values of $a$ is very sensitive to the overall task, and we had to choose empirically the best values we could for our hyperparameters. Moreover, for each pruning/performance trade-off figure, we used the same pair of values, while Table 4 proved it to be quite sensitive to the pruning target. Therefore, it is very possible that our results are actually very sub-optimal, comparatively, to what SWD could achieve with better hyperparameter values. As finding them is very time- and energy-consuming, a method to make this process easier (or to bypass it) would be a significant improvement.

Moreover, our contribution counts multiple aspects that could be expanded on and further explored, such as the penalty and evolution function. Indeed, we have chosen the $L_2$ norm to stick to the definition of weight decay, leaving open the question of how SWD would perform with other norms. Similarly, if the exponential increase of $a$ was to bring satisfying results, other kinds of functions could be tested.

Let us add a last note about the introduced hyperparameters $a_{min}$ and $a_{max}$. Our tests suggest that a poor choice of these values may dramatically harm performance.
Interestingly, however, reasonable choices ($a_{min}$ as small enough and $a_{max}$ as large enough) lead to consistently good results across datasets and architectures. These parameters have to be compared with the ones introduced by other methods. For example, in [15], defining multiple subtargets of pruning at various epochs during training is required, leading to a large combinatorial search space.

Overall, the principle of SWD is flexible enough to serve as a framework for multiple variations. It could be possible to combine SWD with progressive pruning [20] or to choose gradient magnitude as a pruning criterion instead of weight magnitude.

## 6. Conclusions

We have proposed a new approach to prune deep neural networks continuously during training. Our theoretically motivated method, Selective Weight Decay (SWD), shows a better performance/parameters trade-off when compared with reference methods from the literature. We have shown that our method performs better while removing the need for any fine-tuning after the network is pruned. One great advantage of SWD is that it can be combined with virtually any pruning criterion on any pruning structure, which opens up many possibilities. The hyperparameter *a* and its bounds, $a_{min}$ and $a_{max}$, deserve to be studied further, leaving room for future improvements to our method.

**Author Contributions:** Conceptualization, H.T., V.G., M.L., M.A., T.H. and D.B.; methodology, H.T. and V.G.; software, H.T.; validation, H.T., V.G., M.L., M.A., T.H. and D.B.; investigation, H.T.; writing—original draft preparation, H.T.; writing—review and editing, V.G., M.L., M.A., T.H. and D.B.; visualization, H.T.; supervision, V.G., M.L., M.A., T.H. and D.B. All authors have read and agreed to the published version of the manuscript.

**Funding:** This work was funded by an ANRT (http://www.anrt.asso.fr/fr, accessed on 26 February 2022) CIFRE scholarship between École Nationale Supérieure Mines-Télécom Atlantique Bretagne Pays de la Loire (IMT Atlantique) and Stellantis.

**Institutional Review Board Statement:** Not applicable.

**Informed Consent Statement:** Not applicable.

**Data Availability Statement:** https://github.com/HugoTessier-lab/SWD, accessed on 26 February 2022).

**Acknowledgments:** We would like to thank GENCI, as well as Pierre Bellec, for graciously providing access to their GPUs to conduct experiments. This research was enabled in part by support provided by Calcul Québec (https://www.calculquebec.ca/, accessed on 26 February 2022) and Compute Canada (www.computecanada.ca, accessed on 26 February 2022).

**Conflicts of Interest:** The authors declare no conflict of interest.

## References

1. Krizhevsky, A.; Sutskever, I.; Hinton, G.E. Imagenet classification with deep convolutional neural networks. *Adv. Neural Inf. Process. Syst.* **2012**, *25*, 1097–1105. [CrossRef]

2. Le Cun, Y.; Haffner, P.; Bottou, L.; Bengio, Y. Object recognition with gradient-based learning. In *Shape, Contour and Grouping in Computer Vision*; Springer: Berlin/Heidelberg, Germany, 1999; pp. 319–345.

3. He, K.; Zhang, X.; Ren, S.; Sun, J. Deep residual learning for image recognition. In *Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 27–30 June 2016*; pp. 770–778.

4. Ioffe, S.; Szegedy, C. Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift. *arXiv* **2015**, arXiv:cs.LG/1502.03167.

5. Lin, M.; Chen, Q.; Yan, S. Network in network. *arXiv* **2013**, arXiv:1312.4400.

6. Simonyan, K.; Zisserman, A. Very deep convolutional networks for large-scale image recognition. *arXiv* **2014**, arXiv:1409.1556.

7. Szegedy, C.; Liu, W.; Jia, Y.; Sermanet, P.; Reed, S.; Anguelov, D.; Erhan, D.; Vanhoucke, V.; Rabinovich, A. Going deeper with convolutions. In *Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Boston, MA, USA, 7–12 June 2015*; pp. 1–9.

8. Xie, S.; Girshick, R.; Dollár, P.; Tu, Z.; He, K. Aggregated residual transformations for deep neural networks. In *Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2017*; pp. 1492–1500.

9. Boukli Hacene, G. Processing and Learning Deep Neural Networks on Chip. Ph.D. Thesis, Ecole Nationale Supérieure Mines-Télécom Atlantique Bretagne Pays de la Loire, Brest, France, 2019.
10. Hinton, G.; Vinyals, O.; Dean, J. Distilling the Knowledge in a Neural Network. *Stat* **2015**, *1050*, 9.

11. Lassance, C.; Bontonou, M.; Hacene, G.B.; Gripon, V.; Tang, J.; Ortega, A. Deep Geometric Knowledge Distillation with Graphs. In Proceedings of the ICASSP 2020—2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Barcelona, Spain, 4–8 May 2020; pp. 8484–8488. [CrossRef]

12. Courbariaux, M.; Bengio, Y.; David, J.P. BinaryConnect: Training Deep Neural Networks with binary weights during propagations. In *Advances in Neural Information Processing Systems 28*; Cortes, C., Lawrence, N.D., Lee, D.D., Sugiyama, M., Garnett, R., Eds.; Curran Associates, Inc.: Red Hook, NY, USA, 2015; pp. 3123–3131.

13. Rastegari, M.; Ordonez, V.; Redmon, J.; Farhadi, A. Xnor-net: Imagenet classification using binary convolutional neural networks. In *European Conference on Computer Vision*; Springer: Berlin/Heidelberg, Germany, 2016; pp. 525–542.

14. Denton, E.L.; Zaremba, W.; Bruna, J.; Le Cun, Y.; Fergus, R. Exploiting Linear Structure Within Convolutional Networks for Efficient Evaluation. In *Advances in Neural Information Processing Systems 27*; Ghahramani, Z., Welling, M., Cortes, C., Lawrence, N.D., Weinberger, K.Q., Eds.; Curran Associates, Inc.: Red Hook, NY, USA, 2014; pp. 1269–1277.

15. Han, S.; Pool, J.; Tran, J.; Dally, W. Learning both Weights and Connections for Efficient Neural Network. In *Advances in Neural Information Processing Systems 28*; Cortes, C., Lawrence, N.D., Lee, D.D., Sugiyama, M., Garnett, R., Eds.; Curran Associates, Inc.: Red Hook, NY, USA, 2015; pp. 1135–1143.

16. Han, S.; Mao, H.; Dally, W.J. Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Coding. *arXiv* **2015**, arXiv:1510.00149.

17. Liu, Z.; Li, J.; Shen, Z.; Huang, G.; Yan, S.; Zhang, C. Learning Efficient Convolutional Networks Through Network Slimming. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Venice, Italy, 22–29 October 2017.

18. Li, H.; Kadav, A.; Durdanovic, I.; Samet, H.; Graf, H.P. Pruning Filters for Efficient ConvNets. *arXiv* **2016**, arXiv:1608.08710.

19. Liu, Z.; Sun, M.; Zhou, T.; Huang, G.; Darrell, T. Rethinking the Value of Network Pruning. In Proceedings of the International Conference on Learning Representations, Vancouver, BC, Canada, 30 April–3 May 2018.

20. Gale, T.; Elsen, E.; Hooker, S. The State of Sparsity in Deep Neural Networks. *arXiv* **2019**, arXiv:1902.09574.

21. Louizos, C.; Welling, M.; Kingma, D.P. Learning Sparse Neural Networks through L_0 Regularization. In Proceedings of the International Conference on Learning Representations, Vancouver, BC, Canada, 30 April–3 May 2018.

22. Krogh, A.; Hertz, J.A. A Simple Weight Decay Can Improve Generalization. In *Advances in Neural Information Processing Systems 4*; Moody, J.E., Hanson, S.J., Lippmann, R.P., Eds.; Morgan-Kaufmann: Burlington, MA, USA, 1992; pp. 950–957.

23. Plaut, D.C.; Nowlan, S.J.; Hinton, G.E. *Experiments on Learning Back Propagation*; Technical Report CMU-CS-86-126; Carnegie-Mellon University: Pittsburgh, PA, USA, 1986.

24. Hassibi, B.; Stork, D.G. Second order derivatives for network pruning: Optimal Brain Surgeon. In *Advances in Neural Information Processing Systems 5*; Hanson, S.J., Cowan, J.D., Giles, C.L., Eds.; Morgan-Kaufmann: Burlington, MA, USA, 1993; pp. 164–171.

25. Le Cun, Y.; Denker, J.S.; Solla, S.A. Optimal Brain Damage. In *Advances in Neural Information Processing Systems 2*; Morgan Kaufmann Publishers Inc.: San Francisco, CA, USA, 1990; pp. 598–605.

26. Mozer, M.C.; Smolensky, P. Skeletonization: A Technique for Trimming the Fat from a Network via Relevance Assessment. In *Advances in Neural Information Processing Systems 1*; Touretzky, D.S., Ed.; Morgan-Kaufmann: Burlington, MA, USA, 1989; pp. 107–115.

27. Reed, R. Pruning algorithms-a survey. *IEEE Trans. Neural Netw.* **1993**, *4*, 740–747. [CrossRef]

28. Blalock, D.; Gonzalez Ortiz, J.J.; Frankle, J.; Guttag, J. What is the State of Neural Network Pruning? *arXiv* **2020**, arXiv:2003.03033.

29. Anwar, S.; Sung, W. Compact Deep Convolutional Neural Networks With Coarse Pruning. *arXiv* **2016**, arXiv:1610.09639.

30. Hu, H.; Peng, R.; Tai, Y.W.; Tang, C.K. Network Trimming: A Data-Driven Neuron Pruning Approach towards Efficient Deep Architectures. *arXiv* **2016**, arXiv:1607.03250.

31. Luo, J.H.; Wu, J.; Lin, W. ThiNet: A Filter Level Pruning Method for Deep Neural Network Compression. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Venice, Italy, 22–29 October 2017.

32. Srinivas, S.; Venkatesh Babu, R. Data-free parameter pruning for Deep Neural Networks. *arXiv* **2015**, arXiv:1507.06149.

33. Yu, R.; Li, A.; Chen, C.; Lai, J.; Morariu, V.I.; Han, X.; Gao, M.; Lin, C.; Davis, L.S. NISP: Pruning Networks Using Neuron Importance Score Propagation. In Proceedings of the 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018; pp. 9194–9203. [CrossRef]

34. Hassibi, B.; Stork, D.G.; Wolff, G. Optimal Brain Surgeon: Extensions and performance comparisons. In *Advances in Neural Information Processing Systems 6*; Cowan, J.D., Tesauro, G., Alspector, J., Eds.; Morgan-Kaufmann: Burlington, MA, USA, 1994; pp. 263–270.

35. Karnin, E.D. A simple procedure for pruning back-propagation trained neural networks. *IEEE Trans. Neural Netw.* **1990**, *1*, 239–242. [CrossRef] [PubMed]

36. Tresp, V.; Neuneier, R.; Zimmermann, H.G. Early Brain Damage. In *Advances in Neural Information Processing Systems 9*; Mozer, M.C., Jordan, M.I., Petsche, T., Eds.; MIT Press: Cambridge, MA, USA, 1997; pp. 669–675.

37. Dong, X.; Chen, S.; Pan, S. Learning to Prune Deep Neural Networks via Layer-wise Optimal Brain Surgeon. In *Advances in Neural Information Processing Systems 30*; Guyon, I., Luxburg, U.V., Bengio, S., Wallach, H., Fergus, R., Vishwanathan, S., Garnett, R., Eds.; Curran Associates, Inc.: Red Hook, NY, USA, 2017; pp. 4857–4867.
38. Molchanov, P.; Tyree, S.; Karras, T.; Aila, T.; Kautz, J. Pruning convolutional neural networks for resource efficient inference. In Proceedings of the 5th International Conference on Learning Representations, ICLR 2017-Conference Track Proceedings, Toulon, France, 24–26 April 2017.

39. Chauvin, Y. A Back-Propagation Algorithm with Optimal Use of Hidden Units. In *Advances in Neural Information Processing Systems 1*; Touretzky, D.S., Ed.; Morgan-Kaufmann: Burlington, MA, USA, 1989; pp. 519–526.

40. Hanson, S.J.; Pratt, L.Y. Comparing Biases for Minimal Network Construction with Back-Propagation. In *Advances in Neural Information Processing Systems 1*; Touretzky, D.S., Ed.; Morgan-Kaufmann: Burlington, MA, USA, 1989; pp. 177–185.

41. Janowsky, S.A. Pruning versus clipping in neural networks. *Phys. Rev. A* **1989**, *39*, 6600–6603. [CrossRef] [PubMed]

42. Segee, B.E.; Carter, M.J. Fault tolerance of pruned multilayer networks. In Proceedings of the IJCNN-91-Seattle International Joint Conference on Neural Networks, Seattle, WA, USA, 8–14 July 1991; Volume ii, pp. 447–452.

43. Le Cun, Y.; Bengio, Y.; Hinton, G. Deep Learning. *Nature* **2015**, *521*, 436–444. [CrossRef]

44. Bellec, G.; Kappel, D.; Maass, W.; Legenstein, R. Deep Rewiring: Training very sparse deep networks. *arXiv* **2017**, arXiv:1711.05136.

45. Dai, X.; Yin, H.; Jha, N.K. NeST: A Neural Network Synthesis Tool Based on a Grow-and-Prune Paradigm. *IEEE Trans. Comput.* **2019**, *68*, 1487–1497. [CrossRef]

46. He, Y.; Kang, G.; Dong, X.; Fu, Y.; Yang, Y. Soft filter pruning for accelerating deep convolutional neural networks. In Proceedings of the 27th International Joint Conference on Artificial Intelligence, Stockholm, Sweden, 13–19 July 2018; pp. 2234–2240.

47. Mocanu, D.; Mocanu, E.; Stone, P.; Nguyen, P.; Gibescu, M.; Liotta, A. Scalable training of artificial neural networks with adaptive sparse connectivity inspired by network science. *Nat. Commun.* **2018**, *9*, 2383. [CrossRef]

48. Dettmers, T.; Zettlemoyer, L. Sparse Networks from Scratch: Faster Training without Losing Performance. *arXiv* **2019**, arXiv:1907.04840.

49. Evci, U.; Gale, T.; Menick, J.; Castro, P.S.; Elsen, E. Rigging the Lottery: Making All Tickets Winners. *arXiv* **2019**, arXiv:1911.11134

50. Mostafa, H.; Wang, X. Parameter Efficient Training of Deep Convolutional Neural Networks by Dynamic Sparse Reparameterization. *arXiv* **2019**, arXiv:1902.05967.

51. Frankle, J.; Dziugaite, G.K.; Roy, D.M.; Carbin, M. Pruning Neural Networks at Initialization: Why are We Missing the Mark? *arXiv* **2020**, arXiv:2009.08576.

52. Lee, N.; Ajanthan, T.; Torr, P.H. SNIP: Single-shot network pruning based on connection sensitivity. In Proceedings of the International Conference on Learning Representations, ICLR, New Orleans, LA, USA, 6–9 May 2019.

53. Tanaka, H.; Kunin, D.; Yamins, D.L.; Ganguli, S. Pruning neural networks without any data by iteratively conserving synaptic flow. *Adv. Neural Inf. Process. Syst.* **2020**, *33*, 6377–6389.

54. Wang, C.; Zhang, G.; Grosse, R. Picking Winning Tickets Before Training by Preserving Gradient Flow. In Proceedings of the International Conference on Learning Representations, New Orleans, LA, USA, 6–9 May 2019.

55. Frankle, J.; Carbin, M. The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networks. In Proceedings of the International Conference on Learning Representations, Vancouver, BC, Canada, 30 April–3 May 2018.

56. Frankle, J.; Dziugaite, G.K.; Roy, D.; Carbin, M. Linear mode connectivity and the lottery ticket hypothesis. In Proceedings of the International Conference on Machine Learning, PMLR, Virtual, 13–18 July 2020; pp. 3259–3269.

57. Frankle, J.; Dziugaite, G.K.; Roy, D.M.; Carbin, M. Stabilizing the lottery ticket hypothesis. *arXiv* **2019**, arXiv:1903.01611.

58. Malach, E.; Yehudai, G.; Shalev-Schwartz, S.; Shamir, O. Proving the lottery ticket hypothesis: Pruning is all you need. In Proceedings of the International Conference on Machine Learning, PMLR, Virtual, 13–18 July 2020; pp. 6682–6691.

59. Morcos, A.S.; Yu, H.; Paganini, M.; Tian, Y. One ticket to win them all: Generalizing lottery ticket initializations across datasets and optimizers. *Stat* **2019**, *1050*, 6.

60. Zhou, H.; Lan, J.; Liu, R.; Yosinski, J. Deconstructing lottery tickets: Zeros, signs, and the supermask. *arXiv* **2019**, arXiv:1905.01067.

61. Renda, A.; Frankle, J.; Carbin, M. Comparing rewinding and fine-tuning in neural network pruning. *arXiv* **2020**, arXiv:2003.02389.

62. Guo, Y.; Yao, A.; Chen, Y. Dynamic Network Surgery for Efficient DNNs. In *Advances in Neural Information Processing Systems 29*; Lee, D.D., Sugiyama, M., Luxburg, U.V., Guyon, I., Garnett, R., Eds.; Curran Associates, Inc.: Red Hook, NY, USA, 2016; pp. 1379–1387.

63. Srinivas, S.; Subramanya, A.; Venkatesh Babu, R. Training Sparse Neural Networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR) Workshops, Honolulu, HI, USA, 21–26 July 2017.

64. Xiao, X.; Wang, Z.; Rajasekaran, S. AutoPrune: Automatic Network Pruning by Regularizing Auxiliary Parameters. *Advances in Neural Information Processing Systems*; Wallach, H., Larochelle, H., Beygelzimer, A., d'Alché-Buc, F., Fox, E., Garnett, R., Eds. Curran Associates, Inc.: Red Hook, NY, USA, 2019; Volume 32.

65. Dai, B.; Zhu, C.; Guo, B.; Wipf, D. Compressing neural networks using the variational information bottleneck. In Proceedings of the International Conference on Machine Learning, PMLR, Stockholm, Sweden, 10–15 July 2018; pp. 1135–1144.

66. Louizos, C.; Ullrich, K.; Welling, M. Bayesian Compression for Deep Learning. In Proceedings of the 31st Conference on Neural Information Processing Systems (NIPS 2017), Long Beach, CA, USA, 4–9 December 2017.

67. Molchanov, D.; Ashukha, A.; Vetrov, D. Variational dropout sparsifies deep neural networks. In Proceedings of the International Conference on Machine Learning, PMLR, Sydney, Australia, 6–11 August 2017; pp. 2498–2507.

68. Neklyudov, K.; Molchanov, D.; Ashukha, A.; Vetrov, D. Structured Bayesian pruning via log-normal multiplicative noise. In Proceedings of the 31st International Conference on Neural Information Processing Systems, Long Beach, CA, USA, 4–9 December 2017; pp. 6778–6787.
69. Ullrich, K.; Meeds, E.; Welling, M. Soft weight-sharing for neural network compression. *Stat* **2017**, *1050*, 13.

70. Nowlan, S.J.; Hinton, G.E. Simplifying neural networks by soft weight-sharing. *Neural Comput.* **1992**, *4*, 473–493. [CrossRef]

71. Anwar, S.; Hwang, K.; Sung, W. Structured Pruning of Deep Convolutional Neural Networks. *ACM J. Emerg. Technol. Comput. Syst.* **2015**, *13*. [CrossRef]

72. He, Y.; Zhang, X.; Sun, J. Channel Pruning for Accelerating Very Deep Neural Networks. In Proceedings of the 2017 IEEE International Conference on Computer Vision (ICCV), Venice, Italy, 22–29 October 2017; pp. 1398–1406. [CrossRef]

73. Huang, Q.; Zhou, K.; You, S.; Neumann, U. Learning to Prune Filters in Convolutional Neural Networks. In Proceedings of the 2018 IEEE Winter Conference on Applications of Computer Vision (WACV), Lake Tahoe, NV, USA, 12–15 March 2018; pp. 709–718. [CrossRef]

74. Yamamoto, K.; Maeno, K. PCAS: Pruning Channels with Attention Statistics for Deep Network Compression. *arXiv* **2019**, arXiv:1806.05382.

75. Hacene, G.B.; Lassance, C.; Gripon, V.; Courbariaux, M.; Bengio, Y. Attention based pruning for shift networks. *arXiv* **2019**, arXiv:1905.12300.

76. Murray, W.; Ng, K.M. Algorithm for nonlinear optimization problems with binary variables. *Comput. Optim. Appl.* **2010**, *47*, 257–288. [CrossRef]

77. Paszke, A.; Gross, S.; Massa, F.; Lerer, A.; Bradbury, J.; Chanan, G.; Killeen, T.; Lin, Z.; Gimelshein, N.; Antiga, L.; et al. PyTorch: An Imperative Style, High-Performance Deep Learning Library. In *Advances in Neural Information Processing Systems* 32; Wallach, H., Larochelle, H., Beygelzimer, A., d'Alché Buc, F., Fox, E., Garnett, R., Eds.; Curran Associates, Inc.: Red Hook, NY, USA, 2019; pp. 8026–8037.

78. Liu, Z.; Xu, J.; Peng, X.; Xiong, R. Frequency-domain dynamic pruning for convolutional neural networks. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, Montreal, QC, Canada, 3–8 December 2018; pp. 1051–1061.

79. Zhu, M.; Gupta, S. To prune, or not to prune: Exploring the efficacy of pruning for model compression. *arXiv* **2017**, arXiv:1710.01878.

80. Molchanov, P.; Mallya, A.; Tyree, S.; Frosio, I.; Kautz, J. Importance estimation for neural network pruning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA, 15–20 June 2019; pp. 11264–11272.

81. Ye, J.; Lu, X.; Lin, Z.; Wang, J.Z. Rethinking the smaller-norm-less-informative assumption in channel pruning of convolution layers. *arXiv* **2018**, arXiv:1802.00124.

82. Krizhevsky, A. Learning Multiple Layers of Features from Tiny Images. Master's Thesis, University of Toronto, Toronto, ON, Canada, 2009.

83. Ma, X.; Lin, S.; Ye, S.; He, Z.; Zhang, L.; Yuan, G.; Tan, S.H.; Li, Z.; Fan, D.; Qian, X.; et al. Non-Structured DNN Weight Pruning—Is It Beneficial in Any Platform? *IEEE Trans. Neural Netw. Learn. Syst.* **2021**, 1–15. [CrossRef] [PubMed]

84. Kipf, T.N.; Welling, M. Semi-Supervised Classification with Graph Convolutional Networks. *arXiv* **2016**, arXiv:1609.02907.

85. Sen, P.; Namata, G.; Bilgic, M.; Getoor, L.; Galligher, B.; Eliassi-Rad, T. Collective classification in network data. *AI Mag.* **2008**, *29*, 93–93. [CrossRef]

86. Kingma, D.P.; Ba, J. Adam: A method for stochastic optimization. *arXiv* **2014**, arXiv:1412.6980.