Title: LOOKAHEAD: A FAR-SIGHTED ALTERNATIVE OF MAGNITUDE-BASED PRUNING

Abstract: Magnitude-based pruning is one of the simplest methods for pruning neural networks. Despite its simplicity, magnitude-based pruning and its variants demonstrated remarkable performances for pruning modern architectures. Based on the observation that magnitude-based pruning indeed minimizes the Frobenius distortion of a linear operator corresponding to a single layer, we develop a simple pruning method, coined lookahead pruning, by extending the single layer optimization to a multi-layer optimization. Our experimental results demonstrate that the proposed method consistently outperforms magnitude-based pruning on various networks, including VGG and ResNet, particularly in the high-sparsity regime. See https://github.com/alinlab/lookahead_pruning for codes.

1. INTRODUCTION:

The "magnitude-equals-saliency" approach has been long underlooked as an overly simplistic baseline among all imaginable techniques to eliminate unnecessary weights from over-parametrized neural networks. Since the early works of LeCun et al. (1989) ; Hassibi & Stork (1993) which provided more theoretically grounded alternatives of magnitude-based pruning (MP) based on second derivatives of the loss function, a wide range of methods including Bayesian / informationtheoretic approaches (Neal, 1996; Louizos et al., 2017; Molchanov et al., 2017; Dai et al., 2018) , p -regularization (Wen et al., 2016; Liu et al., 2017; Louizos et al., 2018) , sharing redundant channels (Zhang et al., 2018; Ding et al., 2019) , and reinforcement learning approaches (Lin et al., 2017; Bellec et al., 2018; He et al., 2018) have been proposed as more sophisticated alternatives.

On the other hand, the capabilities of MP heuristics are gaining attention once more. Combined with minimalistic techniques including iterative pruning (Han et al., 2015) and dynamic reestablishment of connections (Zhu & Gupta, 2017) , a recent large-scale study by Gale et al. (2019) claims that MP can achieve a state-of-the-art trade-off between sparsity and accuracy on ResNet-50. The unreasonable effectiveness of magnitude scores often extends beyond the strict domain of network pruning; a recent experiment by Frankle & Carbin (2019) suggests the existence of an automatic subnetwork discovery mechanism underlying the standard gradient-based optimization procedures of deep, overparametrized neural networks by showing that the MP algorithm finds an efficient trainable subnetwork. These observations constitute a call to revisit the "magnitude-equals-saliency" approach for a better understanding of the deep neural network itself.

As an attempt to better understand the nature of MP methods, we study a generalization of magnitude scores under a functional approximation framework; by viewing MP as a relaxed minimization of distortion in layerwise operators introduced by zeroing out parameters, we consider a multi-layer extension of the distortion minimization problem. Minimization of the newly suggested distortion measure, which 'looks ahead' the impact of pruning on neighboring layers, gives birth to a novel pruning strategy, coined lookahead pruning (LAP).

In this paper, we focus on the comparison of the proposed LAP scheme to its MP counterpart. We empirically demonstrate that LAP consistently outperforms MP under various setups, including linear networks, fully-connected networks, and deep convolutional and residual networks. In particular, LAP consistently enables more than ×2 gain in the compression rate of the considered models, with increasing benefits under the high-sparsity regime. Apart from its performance, lookahead pruning enjoys additional attractive properties:

• Easy-to-use: Like magnitude-based pruning, the proposed LAP is a simple score-based approach agnostic to model and data, which can be implemented by computationally light elementary tensor operations. Unlike most Hessian-based methods, LAP does not rely on the availability of training data except for the retraining phase. It also has no hyper-parameter to tune, in contrast to other sophisticated training-based and optimization-based schemes. • Versatility: As our method simply replaces the "magnitude-as-saliency" criterion with a lookahead alternative, it can be deployed jointly with algorithmic tweaks developed for magnitudebased pruning, such as iterative pruning and retraining (Han et al., 2015) or joint pruning and training with dynamic reconnections (Zhu & Gupta, 2017; Gale et al., 2019) .

The remainder of this manuscript is structured as follows: In Section 2, we introduce a functional approximation perspective toward MP and motivate LAP and its variants as a generalization of MP for multiple layer setups; in Section 3 we explore the capabilities of LAP and its variants with simple models, then move on to apply LAP to larger-scale models.

2. LOOKAHEAD: A FAR-SIGHTED LAYER APPROXIMATION:

We begin by a more formal description of the magnitude-based pruning (MP) algorithm (Han et al., 2015) . Given an L-layer neural network associated with weight tensors W 1 , . . . , W L , the MP algorithm removes connections with the smallest absolute weights from each weight tensor until the desired level of sparsity has been achieved. This layerwise procedure is equivalent to finding a mask M whose entries are either 0 or 1, incurring a smallest Frobenius distortion, measured by

EQUATION

where denotes the Hadamard product, • 0 denotes the entrywise 0 -norm, and s is a sparsity constraint imposed by some operational criteria.

Aiming to minimize the Frobenius distortion (Eq. ( 1)), the MP algorithm naturally admits a functional approximation interpretation. For the case of a fully-connected layer, the maximal difference between the output from a pruned and an unpruned layer can be bounded as

W x -(M W )x 2 ≤ W -M W 2 • x 2 ≤ W -M W F • x 2 . (2)

Namely, the product of the layerwise Frobenius distortion upper bounds the output distortion of the network incurred by pruning weights. Note that this perspective on MP as a worst-case distortion minimization was already made in Dong et al. (2017) , which inspired an advent of the layerwise optimal brain surgery (L-OBS) procedure.

A similar idea holds for convolutional layers. For the case of a two-dimensional convolution with a single input and a single output channel, the corresponding linear operator takes a form of a doubly block circulant matrix constructed from the associated kernel tensor (see, e.g., Goodfellow et al. (2016) ). Here, the Frobenius distortion of doubly block circulant matrices can be controlled by the Frobenius distortion of the weight tensor of the convolutional layer. Compute L i (w) according to Eq. ( 4) for all entry w of W i 5:

Set wsi as a s i -th smallest element of {L i (w) : w is an entry of W i } 6:

Set M i ← 1{W i -wsi ≥ 0} 7: Set W i ← M i W i 8: end for 2.1 LOOKAHEAD DISTORTION AS A BLOCK APPROXIMATION ERROR

The myopic optimization (Eq. ( 1)) based on the per-layer Frobenius distortion falls short even in the simplest case of the two-layer linear neural network with one-dimensional output, where we consider predictors taking form Y = u W x and try to minimize the Frobenius distortion of u W (equivalent to 2 distortion in this case). Here, if u i is extremely large, pruning any nonzero element in the i-th row of W may incur a significant Frobenius distortion.

Motivated by this observation, we consider a block approximation analogue of the magnitude-based pruning objective Eq. ( 1). Consider an L-layer neural network associated with weight tensors W 1 , . . . , W L , and assume linear activation for simplicity (will be extended to nonlinear cases later in this section). Let J (W i ) denote the Jacobian matrix corresponding to the linear operator characterized by W i . For pruning the i-th layer, we take into account the weight tensors of adjacent layers W i-1 , W i+1 in addition to the original weight tensor W i . In particular, we propose to minimize the Frobenius distortion of the operator block

EQUATION

An explicit minimization of the block distortion (Eq. ( 3)), however, is computationally intractable in general (see Appendix D for a more detailed discussion).

To avoid an excessive computational overhead, we propose to use the following score-based pruning algorithm, coined lookahead pruning (LAP), for approximating Eq. (3): For each tensor W i , we prune the weights w with the smallest value of lookahead distortion (in a single step), defined as

EQUATION

where W i | w=0 denotes the tensor whose entries are equal to the entries of W i except for having zeroed out w. We let both W 0 and W L+1 to be tensors consisting of ones. In other words, lookahead distortion (Eq. ( 4)) measures the distortion (in Frobenius norm) induced by pruning w while all other weights remain intact. For three-layer blocks consisting only of fully-connected layers and convolutional layers, Eq. ( 4) reduces to the following compact formula: for an edge w connected to the j-th input neuron/channel and the k-th output neuron/channel of the i-th layer, where its formal derivation is presented in Appendix E.

EQUATION

where |w| denotes the weight of w, W [j, :] denotes the slice of W composed of weights connected to the j-th output neuron/channel, and W [:, k] denotes the same for the k-th input neuron/channel.

In LAP, we compute the lookahead distortion for all weights, and then remove weights with the smallest distortions in a single step (as done in MP). A formal description of LAP is presented in Algorithm 1. We also note the running time of LAP is comparable with that of MP (see Appendix G).

LAP on linear networks. To illustrate the benefit of lookahead, we evaluate the performance of MP and LAP on a linear fully-connected network with a single hidden layer of 1,000 nodes, trained with the MNIST image classification dataset. Fig. 2a and Fig. 2b depict the test accuracy of models pruned with each method, before and after retraining steps.

As can be expected from the discrepancy between the minimization objectives (Eqs. ( 1) and ( 3)), networks pruned with LAP outperform networks pruned with MP at every sparsity level, in terms of its performance before a retraining phase. Remarkably, we observe that test accuracy of models pruned with LAP monotonically increases from 91.2% to 92.3% as the sparsity level increases, until the fraction of surviving weights reaches 1.28%. At the same sparsity level, models pruned with MP achieves only 71.9% test accuracy. We also observe that LAP leads MP at every sparsity level even after a retraining phase, with an increasing margin as we consider a higher level of sparsity.

Understanding LAP with nonlinear activations. Most neural network models in practice deploy nonlinear activation functions, e.g., rectified linear units (ReLU). Although the lookahead distortion has been initially derived using linear activation functions, LAP can also be used for nonlinear networks, as the quantity L i (w) remains relevant to the original block approximation point of view. This is especially true when the network is severely over-parametrized. To see this, consider a case where one aims to prune a connection in the first layer of a two-layer fully-connected network with ReLU, i.e.,

x → W 2 σ(W 1 x), (6) where σ(x) = max{0, x} is applied entrywise. Under the over-parametrized scenario, zeroing out a single weight may alter the activation pattern of connected neurons with only negligible probability, which allows one to decouple the probability of activation of each neuron from the act of pruning each connection. This enables us to approximate the root mean square distortion of the network output introduced by pruning w of W 1 by √ p k L 1 (w), where k is the index of the output neuron that w is connected to, and p k denotes the probability of activation for the k-th neuron. In this sense, LAP (Algorithm 1) can be understood as assuming i.i.d. activations of neurons, due to a lack of additional access to training data. In other words, LAP admits a natural extension to the regime where we assume additional access to training data during the pruning phase. This variant, coined LAP-act, will be formally described in Appendix F, with experimental comparisons to another datadependent baseline of optimal brain damage (OBD) (LeCun et al., 1989) .

Another theoretical justification of using the lookahead distortion (Eq. ( 5)) for neural networks with nonlinear activation functions comes from recent discoveries regarding the implicit bias imposed by training via stochastic gradient descent (Du et al., 2018) . See Appendix M for a detailed discussion.

As will be empirically shown in Section 3.1, LAP is an effective pruning strategy for sigmoids and tanh activations, that are not piece-wise linear as ReLU.

2.2. LOOKAHEAD PRUNING WITH BATCH NORMALIZATION:

Batch normalization (BN), introduced by Ioffe & Szegedy (2015) , aims to normalize the output of a layer per batch by scaling and shifting the outputs with trainable parameters. Based on our functional approximation perspective, having batch normalization layers in a neural network is not an issue for MP, which relies on the magnitudes of weights; batch normalization only affects the distribution of the input for each layer, not the layer itself. On the other hand, as the lookahead distortion (Eq. ( 3)) characterizes the distortion of the multi-layer block, one must take into account batch normalization when assessing the abstract importance of each connection.

The revision of lookahead pruning under the presence of batch normalization can be done fairly simply. Note that such a normalization process can be expressed as

EQUATION

for some a, b ∈ R dim(x) . Hence, we revise lookahead pruning to prune the connections with a minimum value of

EQUATION

where a i [k] denotes the k-th index scaling factor for the BN layer placed at the output of the i-th fully-connected or convolutional layer (if BN layer does not exist, let a i [k] = 1). This modification of LAP makes it an efficient pruning strategy, as will be empirically verified in Section 3.3.

2.3. VARIANTS OF LOOKAHEAD PRUNING:

As the LAP algorithm (Algorithm 1) takes into account current states of the neighboring layers, LAP admits several variants in terms of lookahead direction, the order of pruning, and sequential pruning methods; these methods are extensively studied in Section 3.2. Along with "vanilla" LAP, we consider in total, six variants, which we now describe below:

Mono-directional LAPs. To prune a layer, LAP considers both preceding and succeeding layers.

Looking forward, i.e., only considering the succeeding layer, can be viewed as an educated modification of the internal representation the present layer produces. Looking backward, on the other hand, can be interpreted as only taking into account the expected structure of input coming into the current layer. The corresponding variants, coined LFP and LBP, are tested.

Order of pruning. Instead of using the unpruned tensors of preceding/succeeding layers, we also consider performing LAP based on already-pruned layers. This observation brings up a question of the order of pruning; an option is to prune in a forward direction, i.e., prune the preceding layer first and use the pruned weight to prune the succeeding, and the other is to prune backward. Both methods are tested, which are referred to as LAP-forward and LAP-backward, respectively.

Sequential pruning. We also consider a sequential version of LAP-forward/backward methods.

More specifically, if we aim to prune total p% of weights from each layer, we divide the pruning budget into five pruning steps and gradually prune (p/5)% of the weights per step in forward/backward direction. Sequential variants will be marked with a suffix "-seq".

3. EXPERIMENTS:

In this section, we compare the empirical performance of LAP with that of MP. More specifically, we validate the applicability of LAP to nonlinear activation functions in Section 3.1. In Section 3.2, we test LAP variants from Section 2.3. In Section 3.3, we test LAP on VGG (Simonyan & Zisserman, 2015) , ResNet (He et al., 2016) , and Wide ResNet (WRN, Zagoruyko & Komodakis (2016) ).

Experiment setup. We consider five neural network architectures: (1) The fully-connected network (FCN) under consideration is consist of four hidden layers, each with 500 neurons.

(2) The convolutional network (Conv-6) consists of six convolutional layers, followed by a fully-connected classifier with two hidden layers with 256 neurons each; this model is identical to that appearing in the work of Frankle & Carbin (2019) suggested as a scaled-down variant of VGG.2 (3) VGG-19 is used, with an addition of batch normalization layers after each convolutional layers, and a reduced number of fully-connected layers from three to one.3 (4) ResNets of depths {18, 50} are used.

(5) WRN of 16 convolutional layers and widening factor 8 (WRN-16-8) is used. All networks used ReLU activation function, except for the experiments in Section 3.1. We mainly consider image classification tasks. In particular, FCN is trained on MNIST dataset (Lecun et al., 1998) , Conv-6, VGG, and ResNet are trained on CIFAR-10 dataset (Krizhevsky & Hinton, 2009) , and VGG, ResNet, and WRN are trained on Tiny-ImageNet. 4 We focus on the one-shot pruning of MP and LAP, i.e., models are trained with a single training-pruning-retraining cycle. All results in this section are averaged over five independent trials. We provide more details on setups in Appendix A. 

3.1. NETWORKS WITH NONLINEAR ACTIVATION FUNCTIONS:

We first compare the performance of LAP with that of MP on FCN using three different types of activation functions: sigmoid, and tanh, and ReLU. Figs. 3a to 3c depict the performance of models pruned with LAP (Green) and MP (Red) under various levels of sparsity.

Although LAP was motivated primarily from linear networks and partially justified for positivehomogenous activation functions such as ReLU, the experimental results show that LAP consistently outperforms MP even on networks using sigmoidal activation functions. We remark that LAP outperforms MP by a larger margin as fewer weights survive (less than 1%). Such a pattern will be observed repeatedly in the remaining experiments of this paper.

In addition, we also check whether LAP still exhibits better test accuracy before retraining under the usage of nonlinear activation functions, as in the linear network case (Fig. 2b ). Fig. 3d illustrates the test accuracy of pruned FCN using ReLU on the MNIST dataset before retraining. We observe that the network pruned by LAP continues to perform better than MP in this case; the network pruned by LAP retains the original test accuracy until only 38% of the weights survive, and shows less than 1% performance drop with only 20% of the weights remaining. On the other hand, MP requires 54% and 30% to achieve the same level of performance, respectively. In other words, the models pruned with MP requires about 50% more survived parameters than the models pruned with LAP to achieve a similar level of performance before being retrained using additional training batches.

3.2. EVALUATING LAP VARIANTS:

Now we evaluate LAP and its variants introduced in Section 2.3 on FCN and Conv-6, each trained on MNIST and CIFAR-10, respectively. Table 1 summarizes the experimental results on FCN and Table 2 summarizes the results on Conv-6. In addition to the baseline comparison with MP, we also compare with random pruning (RP), where the connection to be pruned was decided completely independently. We observe that LAP performs consistently better than MP and RP with similar or smaller variance in any case. In the case of an extreme sparsity, LAP enjoys a significant performance gain; over 75% gain on FCN and 14% on Conv-6. This performance gain comes from a better training accuracy, instead of a better generalization; see Appendix L for more information.

Comparing mono-directional lookahead variants, we observe that LFP performs better than LBP in the low-sparsity regime, while LBP performs better in the high-sparsity regime; in any case, LAP performed better than both methods. Intriguingly, the same pattern appeared in the case of the ordered pruning. Here, LAP-forward can be considered an analogue of LBP in the sense that they both consider layers closer to the input to be more critical. Likewise, LAP-backward can be considered an analogue of LFP. We observe that LAP-forward performs better than LAP-backward in the high-sparsity regime, and vice versa in the low-sparsity regime. Our interpretation is as follows: Whenever the sparsity level is low, carefully curating the input signal is not important due to high redundancies in the natural image signal. This causes a relatively low margin of increment by looking backward in comparison to looking forward. When the sparsity level is high, the input signal is scarce, and the relative importance of preserving the input signal is higher.

Finally, we observe that employing forward/backward ordering and sequential methods leads to better performance, especially in the high-sparsity regime. There is no clear benefit of adopting directional methods in the low-sparsity regime. The relative gain in performance with respect to LAP is either marginal or unreliable. We also compare empirical performances of MP with LAP on deeper networks. We trained VGG-19 and ResNet-18 on CIFAR-10 (Tables 3 and 4 ), and VGG-19, ResNet-50, and WRN-16-8 on Tiny-ImageNet (Tables 5 to 7 ). For models trained on CIFAR-10, we also test LAP-forward to verify the observation that it outperforms LAP in the high-sparsity regime on such deeper models. We also report additional experimental results on VGG-{11, 16} trained on CIFAR-10 in Appendix B. For models trained on Tiny-ImageNet, top-1 error rates are reported in Appendix C.

From Tables 3 to 7 , we make the following two observations: First, as in Section 3.2, the models pruned with LAP consistently achieve a higher or similar level of accuracy compared to models pruned with MP, at all sparsity levels. In particular, test accuracies tend to decay at a much slower rate with LAP. In Table 3 , for instance, we observe that the models pruned by LAP retain test accuracies of 70∼80% even with less than 2% of weights remaining. In contrast, the performance of models pruned with MP falls drastically, to below 30% accuracy. This observation is consistent on both CIFAR-10 and Tiny-ImageNet datasets.

Second, the advantages of considering an ordered pruning method (LAP-forward) over LAP is limited. While we observe from Table 3 that LAP-forward outperforms both MP and LAP in the highsparsity regime, the gain is marginal considering standard deviations. LAP-forward is consistently worse than LAP (by at most 1% in absolute scale) in the low-sparsity regime. 

4. CONCLUSION:

In this work, we interpret magnitude-based pruning as a solution to the minimization of the Frobenius distortion of a single layer operation incurred by pruning. Based on this framework, we consider the minimization of the Frobenius distortion of multi-layer operation, and propose a novel lookahead pruning (LAP) scheme as a computationally efficient algorithm to solve the optimization. Although LAP was motivated from linear networks, it extends to nonlinear networks which indeed minimizes the root mean square lookahead distortion assuming i.i.d. activations. We empirically show its effectiveness on networks with nonlinear activation functions, and test the algorithm on various network architectures including VGG, ResNet and WRN, where LAP consistently performs better than MP.

A EXPERIMENTAL SETUP Models and datasets. We consider four neural network architectures: (1) The fully-connected network (FCN) under consideration is composed of four hidden layers, each with 500 hidden neurons.

(2) The convolutional network (Conv-6) consists of six convolutional layers, followed by a fully-connected classifier with two hidden layers with 256 hidden neurons each; this model is identical to that appearing in the work of Frankle & Carbin (2019) suggested as a scaled-down variant of VGG. 5 (3) VGGs of depths {11, 16, 19} were used, with an addition of batch normalization layers after each convolutional layers, and a reduced number of fully-connected layers from three to one. 6 (4) ResNets with depth {18, 50} are used. ( 5) Wide ResNets with depth 16 and widening factor 8 is used. All networks are initialized via the method of Glorot & Bengio (2010) , except for ResNets and WRN. We use the ReLU activation function except for the experiments in Section 3.1. We focus on image classification tasks. FCN is trained with MNIST dataset (Lecun et al., 1998), Conv-6, VGG-{11, 16, 19} and ResNet-18 are trained with CIFAR-10 dataset (Krizhevsky & Hinton, 2009) , and VGG-19, ResNet-50, WRN-16-8 ware trained with Tiny-ImageNet dataset.

Optimizers and hyperparameters. We use Adam optimizer (Kingma & Ba, 2015) with batch size 60. We use a learning rate of 1. Sparsity levels. To determine the layerwise pruning ratio, we largely follow the the guidelines of Han et al. (2015) ; Frankle & Carbin (2019) : For integer values of τ , we keep p τ fraction of weights in all convolutional layers and q τ fraction in all fully-connected layers, except for the last layer where we use (1 + q)/2 instead. For FCN, we use (p, q) = (0, 0.5). For Conv-6, VGGs ResNets, and WRN, we use (0.85, 0.8). For ResNet-{18, 50}, we do not prune the first convolutional layer. The range of sparsity for reported figures in all tables is decided as follows: we start from τ where test error rate starts falling below that of an unpruned model and report the results at τ, τ + 1, τ + 2, . . . for FCN and Conv-6, τ, τ + 2, τ + 4, . . . for VGGs, ResNet-50, and WRN, and τ, τ + 3, τ + 6, . . . for ResNet-18. D NP-HARDNESS OF EQ. (3)

B ADDITIONAL VGG EXPERIMENTS:

In this section, we show that the optimization in Eq. ( 3) is NP-hard by showing the reduction from the following binary quadratic programming which is NP-hard (Murty & Kabadi, 1987) :

EQUATION

for some symmetric matrix A ∈ R n×n . Without loss of generality, we assume that the minimum eigenvalue of A (denoted with λ) is negative; if not, Eq. ( 9) admits a trivial solution x = (0, . . . , 0).

Assuming λ < 0, Eq. ( 9) can be reformulated as:

EQUATION

where H = A -λI. Here, one can easily observe that the above optimization can be solved by solving the below optimization for s = 1, . . . , n

EQUATION

Finally, we introduce the below equality

EQUATION

)

where 1 denotes a vector of ones, U is a matrix consisting of the eigenvectors of H as its column vectors, and Λ is a diagonal matrix with corresponding (positive) eigenvalues of H as its diagonal elements. The above equality shows that Eq. ( 11) is a special case of Eq. ( 3) by choosing W 1 = √ ΛU , W 2 = 1, W 3 = 1 and M = 1 -x. This completes the reduction from Eq. ( 9) to Eq. ( 3).

E DERIVATION OF EQ. (5)

In this section, we provide a derivation of Eq. ( 5) for the fully-connected layers. The convolutional layers can be handled similarly by substituting the multiplications in Eqs. ( 16) and ( 17) by the convolutions.

The Jacobian matrix of the linear operator correponding to a fully-connected layer is the weight matrix itself, i.e. J (W i ) = W i . From this, lookahead distortion can be reformulated as

EQUATION

Now, we decompose the matrix product W i+1 W i W i-1 in terms of entries of W i as below:

EQUATION

where

W i [k, j], W i+1 [:, k], and W i-1 [j, :] denote (j, k)-th element of W i , k-th column of W i+1 ,

and j-th row of W i-1 , respectively. The contribution of a single entry w :

= W i [k, j] to the prod- uct W i+1 W i W i-1 is equivalent to w • W i+1 [:, k]W i-1 [j, :].

Therefore, in terms of the Frobenius distortion, we conclude that

L i (w) = w • W i+1 [:, k]W i-1 [j, :] F = |w| • W i-1 [j, :] F • W i+1 [:, k] F ,

which completes the derivation of Eq. ( 5) for fully-connected layers.

F LAP-ACT: IMPROVING LAP USING TRAINING DATA:

Recall two observations made from the example of two-layer fully connected network with ReLU activation appearing in Section 2.1: LAP is designed to reflect the lack of knowledge about the training data at the pruning phase; once the activation probability of each neuron can be estimated, it is possible to refine LAP to account for this information.

In this section, we continue our discussion on the second observation. In particular, we study an extension of LAP called lookahead pruning with activation (LAP-act) which prunes the weight with smallest value of

EQUATION

Here, W i is a scaled version of W i and w is the corresponding scaled value of w, defined by

EQUATION

where I i,j denotes the set of ReLU indices in the j-th output neuron/channel of i-th layer. For example, I i,j = {j} for fully connected layers and I i,j is a set of ReLU indices in the j-th channel for convolutional layers. Also, p k denotes the k-th ReLU's probability of activation, which can be estimated by passing the training data.

We derive LAP-act (Eq. ( 18)) in Appendix F.1 and perform preliminary empirical validations in Appendix F.2 with using optimal brain damage (OBD) as a baseline. We also evaluate a variant of LAP using Hessian scores of OBD instead of magnitude scores. It turns out that in the small networks (FCN, Conv-6), LAP-act outperforms OBD.

F.1 DERIVATION OF LAP-ACT:

Consider a case where one aims to prune a connection of a network with ReLU, i.e.,

EQUATION

where σ(x) = max{0, x} is applied entrywise. Under the over-parametrized scenario, zeroing out a single weight may alter the activation pattern of connected neurons with only negligible probability, which allows one to decouple the probability of activation of each neuron from the act of pruning each connection. From this observation, we first construct the below random distortion, following the philosophy of the linear lookahead distortion Eq. ( 4)

EQUATION

where J (W i ) denotes a random matrix where

J (W i )[k, :] = g i [k] • J (W i )[k, :

] and g i [k] is a 0-1 random variable corresponding to the activation, i.e., g i [k] = 1 if and only if the k-th output, i.e., ReLU, of the i-th layer is activated. However, directly computing the expected distortion with respect to the real activation distribution might be computationally expensive. To resolve this issue, we approximate the root mean square lookahead distortion by applying the mean-field approximation to the activation probability of neurons, i.e., all activations are assumed to be independent, as

EQUATION

where g = [g i ] i , p(g) denotes the empirical activation distribution of all neurons and i,k p(g i [k]) denotes the mean-field approximation of p(g). Indeed, the lookahead distortion with ReLU nonlinearity (Eq. ( 22)) or three-layer blocks consisting only of the fully-connected layers and the convolutional layers can be easily computed by using the rescaled weight matrix W i :

EQUATION

where I i,j denotes the set of ReLU indices in the j-th output neuron/channel of i-th layer. For example, I i,j = {j} for fully connected layers and I i,j is a set of ReLU indices in the j-th channel for convolutional layers. Finally, for an edge w connected to the j-th input neuron/channel and the k-th output neuron/channel of the i-th layer, Eq. ( 22) reduces to

L i (w) = | w| • W i-1 [j, :] F • W i+1 [:, k] F (24)

where w denotes the rescaled value of w. This completes the derivation of Eq. ( 18).

F.2 EXPERIMENTS WITH LAP-ACT:

We compare the performance of three algorithms utilizing training data at the pruning phase: optimal brain damage (OBD) which approximates the loss via second order Taylor seris approximation with the Hessian diagonal (LeCun et al., 1989) , LAP using OBD instead of weight magnitudes (OBD+LAP), and LAP-act as described in this section. We compare the performances of three algorithms under the same experimental setup as in Section 3.2. To compute the Hessian diagonal for OBD and OBD+LAP, we use a recently introduced software package called "BackPACK," (Dangel et al., 2020) , which is the only open-source package supporting an efficient of Hessians, up to our knowledge. Note that the algorithms evaluated in this section are also evaluated for global pruning experiments in Appendix I.

The experimental results for FCN and Conv-6 are presented in Tables 13 and 14 . Comparing to algorithms relying solely on the model parameters for pruning (MP/LAP in Tables 1 and 2 ), we observe that OBD performs better in general, especially in the high sparsity regime. This observation is coherent to the findings of LeCun et al. (1989) . Intriguingly, however, we observe that applying lookahead critertion to OBD (OBD+LAP) significantly enhances to OBD significantly enhances the performance in the high sparsity regime. We hypothesize that LAP helps capturing a correlation among scores (magnitude or Hessian-based) of adjacent layers. Also, we observe that LAP-act consistently exhibits a better performance compared to OBD. This result is somewhat surprising, in the sense that LAP-act only utilizes (easier-to-estimate) information about activation probabilities of each neuron to correct lookahead distortion.

The average running time of OBD, OBD+LAP, and LAP-act is summarized in Table 15 . We use Xeon E5-2630v4 2.20GHz for pruning edges, and additionally used a single NVidia GeForce GTX-1080 for the computation of Hessian diagonals (used for OBD, OBD+LAP) and activation probabiility (for LAP-act). We observe that LAP-act runs in a significantly less running time than OBD/OBD+LAP, and the gap widens as the number of parameters and the dimensionality of the dataset increases (from MNIST to CIFAR-10). 

H LOOKAHEAD FOR CHANNEL PRUNING:

In the main text, LAP is compared to MP in the context of unstructured pruning, where we do not impose any structural constraints on the set of connections to be pruned together. On the other hand, the magnitude-based pruning methods are also being used popularly as a baseline for channel pruning (Ye et al., 2018) , which falls under the category of structured pruning.

MP in channel pruning is typically done by removing channels with smallest aggregated weight magnitudes; this aggregation can be done by either taking 1 -norm or 2 -norm of magnitudes. Similarly, we can consider channel pruning scheme based on an 1 or 2 aggregation of LAP distortions, which we will call LAP-1 and LAP-2 (as opposed to MP-1 and MP-2 ).

We compare the performances of LAP-based channel pruning methods to MP-based channel pruning methods, along with another baseline of random channel pruning (denoted with RP). We test with Conv-6 (Table 17 ) and VGG-19 (Table 18 ) networks on CIFAR-10 dataset. All reported figures are averaged over five trials, experimental settings are identical to the unstructure pruning experiments unless noted otherwise.

Similar to the case of unstructured pruning, we observe that LAP-based methods consistently outperform MP-based methods. Comparing 1 with 2 aggregation, we note that LAP-2 performs better than LAP-1 in both experiments, by a small margin. Among MP-based methods, we do not observe any similar dominance. 

J LAP-ALL: LOOKING AHEAD THE WHOLE NETWORK:

We also report some experimental results on a variant of lookahead pruning, coined LAP-all, which treats (a linearized version of) the whole network as an operator block. More specifically, one attempts to minimize the Frobenius distortion of the operator block

min Mi: Mi 0 =si J d:i+1 J (W i )J i-1:1 -J d:i+1 J (M i W i )J i-1:1 F , where J i+j:i := J (W i+j )J (W i+j-1 ) • • • J (W i ).

We test LAP-all on FCN under the same setup as in Section 3.2, and report the results in Table 21 .

All figures are averaged over five trials.

We observe that LAP-all achieves a similar level of performance to LAP, while LAP-all underperforms under a high-sparsity regime. We suspect that such shortfall originates from the accumulation of error terms incurred by ignoring the effect of activation functions, by which the benefits of looking further fades. An in-depth theoretical analysis for the determination of an optimal "sight range" of LAP would be an interesting future direction. 

K COMPARISON WITH SMALLER NETWORKS:

As a sanity check, we compare the performance of large neural networks pruned via MP and LAP to the performance of a small network. In particular, we prune VGG-16, VGG-19, and ResNet-18 trained on CIFAR-10 dataset, to have a similar number of parameters to MobileNetV2 (Sandler et al., 2018) . For training and pruning VGGs and ResNet, we follows the prior setup in Appendix A while we use the same setup for training MobileNetV2 (Adam optimizer with learning rate of 3 • 10 -4 with batch size 60, and trained 60k steps). We observe that models pruned via LAP (and MP) exhibit better performance compared to MobileNetV2, even when pruned to have a smaller number of parameters. In this section, we briefly discuss where the benefits of the sub-network discovered by LAP comes from; does LAP subnetwork have a better generalizability or expressibility? For this purpose, we look into the generalization gap, i.e., the gap between the training and test accuracies, of the hypothesis learned via LAP procedure. Below we present a plot of test accuracies (Fig. 4a ) and a plot of generalization gap (Fig. 4b ) for FCN trained with MNIST dataset. The plot hints us that the network structure learned by LAP may not necessarily have a smaller generalizability. Remarkably, the generalization gap of the MP-pruned models and the LAP-pruned models are very similar to each other; the benefits of LAP subnetwork compared to MP would be that it can express a better-performing architecture with a network of similar sparsity and generalizability. 

M CONNECTIONS TO IMPLICIT BIAS OF SGD:

Another theoretical justification of using the lookahead distortion (Eq. ( 5)) for neural networks with nonlinear activation functions comes from recent discoveries regarding the implicit bias imposed by training procedures using stochastic gradient descent. More specifically, Du et al. (2018) proves the following result, generalizing the findings of Arora et al. (2018) : For any two neighboring layers of fully-connected neural network using positive homogeneous activation functions, the quantity

W i+1 [:, j] 2 2 -W i [j, :] 2 2 (26)

remains constant for any hidden neuron j over training via gradient flow. In other words, the total outward flow of weights is tied to the inward flow of weights for each neuron. This observation hints at the possibility of a relative undergrowth of weight magnitude of an 'important' connection, in the case where the connection shares the same input/output neuron with other 'important' connections. From this viewpoint, the multiplicative factors in Eq. ( 5) take into account the abstract notion of neuronal importance score, assigning significance to connections to the neuron through which more gradient signals have flowed through. Without considering such factors, LAP reduces to the ordinary magnitude-based pruning.

:

The case of multiple input/output channels or non-circular convolution can be dealt with similarly using channel-wise circulant matrices as a block. We refer the interested readers toSedghi et al. (2019).

Convolutional layers are organized as [64, 64] -MaxPool -[128, 128] -MaxPool -[256, 256].

This is a popular configuration of VGG forCIFAR-10 (Liu et al., 2019;Frankle & Carbin, 2019)

Tiny-ImageNet visual recognition challenge, https://tiny-imagenet.herokuapp.com.

Convolutional layers are organized as [64,

64] -MaxPool -[128, 128] -MaxPool -[256, 256].6 This is a popular configuration of VGG forCIFAR-10 (Liu et al., 2019;Frankle & Carbin, 2019)

Figures and Tables:

Figure 1: An illustration of magnitude-based pruning (MP) and lookahead pruning (LAP). MP only considers a single weight while LAP also considers the effects of neighboring edges.

Figure 2: Test accuracy of pruned linear network under varying levels of sparsity, (a) before and (b) after a retraining phase. MP denotes magnitude-based pruning and LAP denotes lookahead pruning. All reported points are averaged over 5 trials.

Figure 3: Test accuracy of FCN with (a) sigmoid, (b) tanh, (c) ReLU activations; (d) test accuracy of FCN with ReLU activation before retraining, for the MNIST dataset.

Figure 4: Test accuracy and generalization gap of FCN trained on MNIST.

Weight tensors W 1 , . . . , W L of a trained network, desired sparsities s 1 , . . . , s L 2: Output: Pruned weight tensors W 1 , . . . , W L

Table content: <table><tr><td>Algorithm 1 Lookahead Pruning (LAP)</td></tr></table>

Test error rates of FCN on MNIST. Subscripts denote standard deviations, and bracketed numbers denote relative gains with respect to MP. Unpruned models have 1.98% error rate.

Table content: <table><tr><td/><td>6.36%</td><td>3.21%</td><td>1.63%</td><td>0.84%</td><td>0.43%</td><td>0.23%</td><td>0.12%</td></tr><tr><td>MP (baseline)</td><td>1.75±0.11</td><td>2.11±0.14</td><td>2.53±0.09</td><td>3.32±0.27</td><td colspan="2">4.77±0.22 19.85±8.67</td><td>67.62±9.91</td></tr><tr><td>RP</td><td>2.36±0.13</td><td>2.72±0.16</td><td colspan="4">3.64±0.17 17.54±7.07 82.48±4.03 88.65±0.00</td><td>88.65±0.00</td></tr><tr><td>LFP</td><td>1.63±0.08</td><td>1.89±0.11</td><td>2.43±0.10</td><td>3.32±0.13</td><td>4.23±0.38</td><td colspan="2">9.59±1.70 50.11±12.99</td></tr><tr><td/><td colspan="2">(-6.41%) (-10.60%)</td><td>(-3.95%)</td><td colspan="3">(-0.12%) (-11.40%) (-51.70%)</td><td>(-25.91%)</td></tr><tr><td>LBP</td><td>1.75±0.17</td><td>2.04±0.12</td><td>2.61±0.15</td><td>3.62±0.17</td><td>4.19±0.31</td><td colspan="2">9.09±1.41 28.51±14.85</td></tr><tr><td/><td>(+0.69%)</td><td>(-3.31%)</td><td>(+3.00%)</td><td colspan="3">(+8.97%) (-12.23%) (-54.21%)</td><td>(-57.84%)</td></tr><tr><td>LAP</td><td>1.67±0.11</td><td>1.89±0.12</td><td>2.48±0.13</td><td>3.29±0.06</td><td>3.93±0.26</td><td>6.72±0.44</td><td>16.45±5.61</td></tr><tr><td/><td colspan="2">(-4.24%) (-10.61%)</td><td>(-2.05%)</td><td colspan="3">(-1.08%) (-17.72%) (-66.15%)</td><td>(-75.68%)</td></tr><tr><td>LAP-forward</td><td>1.60±0.08</td><td>1.93±0.15</td><td>2.51±0.11</td><td>3.56±0.19</td><td>4.47±0.20</td><td>6.58±0.33</td><td>12.00±0.73</td></tr><tr><td/><td>(-8.25%)</td><td>(-8.43%)</td><td>(-0.95%)</td><td>(+7.03%)</td><td colspan="2">(-6.41%) (-66.81%)</td><td>(-82.26%)</td></tr><tr><td>LAP-backward</td><td>1.63±0.11</td><td>1.88±0.07</td><td>2.35±0.02</td><td>3.12±0.08</td><td>3.87±0.18</td><td>5.62±0.17</td><td>13.00±3.30</td></tr><tr><td/><td colspan="2">(-6.64%) (-10.80%)</td><td>(-7.03%)</td><td colspan="3">(-6.08%) (-19.02%) (-71.71%)</td><td>(-80.78%)</td></tr><tr><td>LAP-forward-seq</td><td>1.68±0.11</td><td>1.92±0.10</td><td>2.49±0.14</td><td>3.39±0.24</td><td>4.21±0.06</td><td>6.20±0.32</td><td>10.98±1.03</td></tr><tr><td/><td>(-3.66%)</td><td>(-9.09%)</td><td>(-1.42%)</td><td colspan="3">(+1.93%) (-11.86%) (-68.73%)</td><td>(-83.76%)</td></tr><tr><td>LAP-backward-seq</td><td>1.57±0.08</td><td>1.84±0.10</td><td>2.20±0.10</td><td>3.13±0.16</td><td>3.62±0.14</td><td>5.42±0.27</td><td>11.92±4.61</td></tr><tr><td/><td colspan="3">(-10.08%) (-12.41%) (-13.27%)</td><td colspan="3">(-5.90%) (-24.13%) (-72.71%)</td><td>(-82.36%)</td></tr></table>

Test error rates of Conv-6 on CIFAR-10. Subscripts denote standard deviations, and bracketed numbers denote relative gains with respect to MP. Unpruned models have 11.97% error rate.

Table content: <table><tr><td/><td>10.62%</td><td>8.86%</td><td>7.39%</td><td>6.18%</td><td>5.17%</td><td>4.32%</td><td>3.62%</td></tr><tr><td>MP (baseline)</td><td colspan="7">11.86±0.33 12.20±0.21 13.30±0.30 15.81±0.59 20.19±2.35 24.43±1.48 28.60±2.10</td></tr><tr><td>RP</td><td colspan="7">26.85±1.23 29.72±1.13 32.98±1.10 35.92±1.08 39.13±1.05 41.20±1.19 43.60±0.82</td></tr><tr><td>LFP</td><td colspan="7">11.81±0.35 12.18±0.23 13.27±0.44 15.04±0.43 18.50±0.80 22.86±1.66 26.65±1.33</td></tr><tr><td/><td>(-0.39%)</td><td>(-0.20%)</td><td>(-0.26%)</td><td>(-4.87%)</td><td>(-8.37%)</td><td>(-6.40%)</td><td>(-6.83%)</td></tr><tr><td>LBP</td><td colspan="7">12.08±0.17 12.34±0.36 13.26±0.16 14.93±0.85 18.11±1.27 22.57±0.94 26.34±1.60</td></tr><tr><td/><td>(+1.84%)</td><td>(-1.15%)</td><td>(-0.33%)</td><td colspan="2">(-5.57%) (-10.31%)</td><td>(-7.59%)</td><td>(-7.91%)</td></tr><tr><td>LAP</td><td colspan="7">11.76±0.24 12.16±0.27 13.05±0.14 14.39±0.44 17.10±1.26 21.24±1.16 24.52±1.11</td></tr><tr><td/><td>(-0.83%)</td><td>(-0.34%)</td><td>(-1.86%)</td><td colspan="4">(-8.99%) (-15.30%) (-13.04%) (-14.29%)</td></tr><tr><td>LAP-forward</td><td colspan="7">11.82±0.16 12.35±0.34 13.09±0.36 14.42±0.45 17.05±1.30 20.28±1.40 22.80±0.51</td></tr><tr><td/><td>(-0.33%)</td><td>(+1.24%)</td><td>(-1.62%)</td><td colspan="4">(-8.79%) (-15.57%) (-16.98%) (-20.30%)</td></tr><tr><td>LAP-backward</td><td colspan="7">11.82±0.25 12.29±0.06 12.93±0.38 14.55±0.58 17.00±0.84 20.00±0.82 23.37±1.16</td></tr><tr><td/><td>(-0.32%)</td><td>(+0.68%)</td><td>(-2.78%)</td><td colspan="4">(-7.98%) (-15.78%) (-18.11%) (-18.30%)</td></tr><tr><td>LAP-forward-seq</td><td colspan="7">12.01±0.17 12.47±0.37 13.19±0.19 14.12±0.28 16.73±0.95 19.63±1.81 22.44±1.31</td></tr><tr><td/><td>(+1.28%)</td><td>(+2.21%)</td><td colspan="5">(-0.81%) (-10.70%) (-17.13%) (-19.62%) (-21.54%)</td></tr><tr><td colspan="8">LAP-backward-seq 11.81±0.16 12.35±0.26 13.25±0.21 14.17±0.44 16.99±0.97 19.94±1.02 23.15±1.12</td></tr><tr><td/><td>(-0.39%)</td><td>(+1.25%)</td><td colspan="5">(-0.41%) (-10.37%) (-15.87%) (-18.38%) (-19.08%)</td></tr><tr><td colspan="5">3.3 DEEPER NETWORKS: VGG, RESNET, AND WRN</td><td/><td/></tr></table>

Test error rates of VGG-19 on CIFAR-10. Subscripts denote standard deviations, and bracketed numbers denote relative gains with respect to MP. Unpruned models have 9.02% error rate.

Table content: <table><tr><td/><td>12.09%</td><td>8.74%</td><td>6.31%</td><td>4.56%</td><td>3.30%</td><td>2.38%</td><td>1.72%</td><td>1.24%</td></tr><tr><td colspan="2">MP (baseline) 8.99±0.12</td><td colspan="7">9.90±0.09 11.43±0.24 15.62±1.68 29.10±8.78 40.27±11.51 63.27±11.91 77.90±7.94</td></tr><tr><td>LAP</td><td>8.89±0.14</td><td colspan="4">9.51±0.22 10.56±0.28 12.11±0.44 13.64±0.77</td><td>16.38±1.47</td><td colspan="2">20.88±1.71 22.82±0.81</td></tr><tr><td/><td>(-1.07%)</td><td>(-3.96%)</td><td colspan="3">(-7.63%) (-22.48%) (-53.13%)</td><td>(-59.31%)</td><td colspan="2">(-67.00%) (-70.71%)</td></tr><tr><td>LAP-forward</td><td colspan="5">9.63±0.25 10.31±0.23 11.10±0.22 12.24±0.33 13.54±0.28</td><td>16.03±0.46</td><td colspan="2">19.33±1.14 21.59±0.32</td></tr><tr><td/><td colspan="2">(+7.16%) (+4.12%)</td><td colspan="6">(-2.89%) (-21.66%) (-53.46%) (-60.18%) (-69.44%) (-72.29%)</td></tr></table>

Test error rates of ResNet-18 on CIFAR-10. Subscripts denote standard deviations, and bracketed numbers denote relative gains with respect to MP. Unpruned models have 8.68% error rate.

Table content: <table><tr><td/><td>10.30%</td><td>6.33%</td><td>3.89%</td><td>2.40%</td><td>1.48%</td><td>0.92%</td><td>0.57%</td><td>0.36%</td></tr><tr><td colspan="3">MP (baseline) 8.18±0.33 8.74±0.15</td><td colspan="6">9.82±0.18 11.28±0.30 14.31±0.18 18.56±0.36 22.93±0.93 26.77±1.04</td></tr><tr><td>LAP</td><td colspan="2">8.09±0.10 8.97±0.22</td><td colspan="6">9.74±0.15 11.35±0.20 13.73±0.24 16.29±0.29 20.22±0.53 22.45±0.64</td></tr><tr><td/><td colspan="2">(-1.08%) (+2.59%)</td><td colspan="2">(-0.81%) (+0.64%)</td><td colspan="4">(-4.08%) (-12.23%) (-11.82%) (-15.82%)</td></tr><tr><td>LAP-forward</td><td colspan="8">8.19±0.15 9.17±0.07 10.32±0.27 12.38±0.30 15.31±0.62 18.56±0.88 21.09±0.53 23.89±0.46</td></tr><tr><td/><td colspan="5">(+0.12%) (+4.85%) (+5.09%) (+9.79%) (+6.96%)</td><td>(-0.02%)</td><td colspan="2">(-8.04%) (-10.44%)</td></tr></table>

Top-5 test error rates of VGG-19 on Tiny-ImageNet. Subscripts denote standard deviations, and bracketed numbers denote relative gains with respect to MP. Unpruned models have 36.89% error rate. Top-1 test error rates are presented in Table10.

Table content: <table><tr><td/><td>12.16%</td><td>10.34%</td><td>8.80%</td><td>7.48%</td><td>6.36%</td><td>5.41%</td><td>4.61%</td><td>3.92%</td></tr><tr><td colspan="9">MP (baseline) 36.40±1.31 37.37±1.08 38.40±1.30 40.23±1.26 42.68±1.97 45.83±2.76 49.79±2.67 56.15±5.14</td></tr><tr><td>LAP</td><td colspan="8">36.01±1.31 37.03±0.90 38.20±1.61 39.36±1.30 40.95±1.46 43.14±1.33 45.29±1.80 48.34±0.30</td></tr><tr><td/><td>(-1.07%)</td><td>(-0.90%)</td><td>(-0.52%)</td><td>(-2.16%)</td><td>(-4.05%)</td><td>(-5.87%)</td><td colspan="2">(-9.02%) (-13.92%)</td></tr><tr><td colspan="9">LAP-forward 36.98±1.04 37.35±0.90 38.49±1.10 39.57±0.97 40.94±1.49 43.30±1.57 45.76±1.37 48.95±1.70</td></tr><tr><td/><td>(+1.58%)</td><td colspan="2">(-0.04%) (+0.24%)</td><td>(-1.65%)</td><td>(-4.06%)</td><td>(-5.53%)</td><td colspan="2">(-8.08%) (-12.84%)</td></tr></table>



Table content: <table><tr><td/><td>6.52%</td><td>4.74%</td><td>3.45%</td><td>2.51%</td><td>1.83%</td><td>1.34%</td><td>0.98%</td><td>0.72%</td></tr><tr><td colspan="9">MP (baseline) 23.88±0.27 24.99±0.34 26.84±0.39 29.54±0.58 34.04±0.48 40.19±0.36 45.13±0.57 59.18±16.31</td></tr><tr><td>LAP</td><td colspan="7">23.64±0.40 24.91±0.25 26.52±0.38 28.84±0.43 33.71±0.58 39.07±0.45 43.05±0.97</td><td>46.16±1.04</td></tr><tr><td/><td>(-1.00%)</td><td>(-0.34%)</td><td>(-1.17%)</td><td>(-2.38%)</td><td>(-0.98%)</td><td>(-2.79%)</td><td>(-4.61%)</td><td>(-22.00%)</td></tr><tr><td>LAP-forward</td><td colspan="7">24.26±0.48 24.92±0.41 27.66±0.55 30.93±0.81 35.90±1.24 39.99±0.58 43.42±0.52</td><td>45.45±0.78</td></tr><tr><td/><td>(+1.57%)</td><td>(-0.30%)</td><td>(+3.08%)</td><td>(+4.71%)</td><td>(+5.46%)</td><td>(-0.48%)</td><td>(-3.79%)</td><td>(-23.19%)</td></tr></table>



Table content: <table><tr><td/><td>12.22%</td><td>8.85%</td><td>6.41%</td><td>4.65%</td><td>3.37%</td><td>2.45%</td><td>1.77%</td><td>1.29%</td></tr><tr><td colspan="9">MP (baseline) 25.27±0.73 26.79±0.87 28.84±1.04 31.91±0.80 37.01±1.42 42.89±2.43 51.10±2.59 59.73±2.85</td></tr><tr><td>LAP</td><td colspan="8">24.99±0.85 26.55±1.45 28.68±1.17 32.22±2.51 35.82±2.06 41.37±3.07 45.43±4.48 51.83±1.91</td></tr><tr><td/><td>(-1.12%)</td><td>(-0.87%)</td><td>(-0.58%)</td><td>(+0.98%)</td><td>(-3.22%)</td><td colspan="3">(-3.55%) (-11.10%) (-13.22%)</td></tr><tr><td colspan="9">LAP-forward 26.30±0.88 28.52±2.13 30.98±1.39 34.72±1.82 38.41±2.48 42.02±2.46 45.10±1.80 51.92±1.94</td></tr><tr><td/><td>(+4.08%)</td><td>(+6.48%)</td><td>(+7.42%)</td><td>(+8.83%)</td><td>(+3.79%)</td><td colspan="3">(-2.02%) (-11.74%) (-13.07%)</td></tr></table>

2 • 10 -3 for FCN and 3 • 10 -4 for all other models. For FCN, we use [50k, 50k] for the initial training phase and retraining phase. For Conv-6, we use [30k, 20k] steps. For VGG-11 and ResNet-18, we use [35k, 25k] steps. For VGG-16, we use [50k, 35k]. For VGG-19, ResNet-50, and WRN-16-8 we use [60k, 40k]. We do not use any weight decay, learning rate scheduling, or regularization.

Table content: <table/>

Test error rates of VGG-11 on CIFAR-10. Subscripts denote standard deviations, and bracketed numbers denote relative gains with respect to MP. Unpruned models have 11.51% error rate.

Table content: <table><tr><td/><td>16.74%</td><td>12.10%</td><td>8.74%</td><td>6.32%</td><td>4.56%</td><td>3.30%</td><td>2.38%</td><td>1.72%</td></tr><tr><td colspan="9">MP (baseline) 11.41±0.24 12.38±0.14 13.54±0.35 16.08±1.13 19.76±1.67 28.12±3.45 45.38±11.69 55.97±15.99</td></tr><tr><td>LAP</td><td colspan="6">11.19±0.15 11.79±0.44 12.95±0.14 13.95±0.17 15.59±0.35 20.96±6.02</td><td>22.00±1.09</td><td>28.96±3.30</td></tr><tr><td/><td>(-1.96%)</td><td>(-4.78%)</td><td colspan="4">(-4.39%) (-13.25%) (-21.13%) (-25.47%)</td><td>(-51.52%)</td><td>(-48.25%)</td></tr><tr><td colspan="7">LAP-forward 11.47±0.30 12.33±0.12 13.15±0.22 13.96±0.25 15.42±0.21 18.22±0.69</td><td>21.74±1.59</td><td>25.85±1.40</td></tr><tr><td/><td>(+0.56%)</td><td>(-0.44%)</td><td colspan="6">(-2.87%) (-13.18%) (-21.97%) (-35.20%) (-52.10%) (-53.82%)</td></tr></table>

Test error rates of VGG-16 on CIFAR-10. Subscripts denote standard deviations, and bracketed numbers denote relative gains with respect to MP. Unpruned models have 9.33% error rate.

Table content: <table><tr><td/><td>10.28%</td><td>7.43%</td><td>5.37%</td><td>3.88%</td><td>2.80%</td><td>2.03%</td><td>1.46%</td><td>1.06%</td></tr><tr><td colspan="8">MP (baseline) 9.55±0.11 10.78±0.45 13.42±2.19 17.83±3.08 26.61±4.91 48.87±5.85 69.39±11.85</td><td>83.47±5.60</td></tr><tr><td>LAP</td><td colspan="6">9.35±0.18 10.07±0.19 11.52±0.26 12.57±0.34 14.23±0.27 17.01±1.46</td><td colspan="2">25.03±2.08 32.45±12.20</td></tr><tr><td/><td>(-2.05%)</td><td colspan="5">(-6.59%) (-14.21%) (-29.50%) (-46.52%) (-65.19%)</td><td>(-63.92%)</td><td>(-61.12%)</td></tr><tr><td>LAP-forward</td><td colspan="6">9.45±0.17 10.40±0.20 11.33±0.15 13.09±0.21 14.61±0.25 17.10±0.19</td><td>22.39±0.74</td><td>24.99±0.49</td></tr><tr><td/><td>(-1.03%)</td><td colspan="7">(-3.49%) (-15.60%) (-26.56%) (-45.08%) (-65.02%) (-67.74%) (-70.06%)</td></tr></table>

Top-1 test error rates of VGG-19 on Tiny-ImageNet. Subscripts denote standard deviations, and bracketed numbers denote relative gains with respect to MP. Unpruned models have 64.55% error rate.

Table content: <table><tr><td/><td>12.16%</td><td>10.34%</td><td>8.80%</td><td>7.48%</td><td>6.36%</td><td>5.41%</td><td>4.61%</td><td>3.92%</td></tr><tr><td colspan="9">MP (baseline) 63.35±1.44 64.43±1.05 65.44±1.31 67.09±1.04 69.40±1.40 72.36±2.09 75.35±1.75 79.98±3.28</td></tr><tr><td>LAP</td><td colspan="8">63.15±1.52 63.91±1.38 65.56±1.42 66.56±0.93 68.40±1.08 70.45±0.67 72.16±1.62 75.05±0.29</td></tr><tr><td/><td>(-0.31%)</td><td colspan="2">(-0.80%) (+0.18%)</td><td>(-0.80%)</td><td>(-1.44%)</td><td>(-2.63%)</td><td>(-4.24%)</td><td>(-6.17%)</td></tr><tr><td colspan="9">LAP-forward 64.22±1.11 64.77±0.96 65.63±1.21 67.03±1.23 68.52±1.39 70.55±1.21 73.13±0.97 75.71±1.33</td></tr><tr><td/><td colspan="3">(+1.38%) (+0.53%) (+0.28%)</td><td>(-0.09%)</td><td>(-1.26%)</td><td>(-2.50%)</td><td>(-2.95%)</td><td>(-5.34%)</td></tr></table>

Top-1 test error rates of ResNet-50 on Tiny-ImageNet. Subscripts denote standard deviations, and bracketed numbers denote relative gains with respect to MP. Unpruned models have 47.50% error rate.

Table content: <table><tr><td/><td>6.52%</td><td>4.74%</td><td>3.45%</td><td>2.51%</td><td>1.83%</td><td>1.34%</td><td>0.98%</td><td>0.72%</td></tr><tr><td colspan="9">MP (baseline) 48.18±0.39 49.85±0.30 52.28±0.24 55.46±0.57 60.51±0.39 66.60±0.42 70.75±0.33 80.02±8.94</td></tr><tr><td>LAP</td><td colspan="8">48.27±0.13 49.96±0.26 51.92±0.21 54.91±0.45 60.31±0.18 65.46±0.27 69.13±0.91 71.81±0.84</td></tr><tr><td/><td>(+0.20%)</td><td>(+0.22%)</td><td>(-0.69%)</td><td>(-0.99%)</td><td>(-0.34%)</td><td>(-1.71%)</td><td colspan="2">(-2.29%) (-10.26%)</td></tr><tr><td colspan="9">LAP-forward 48.69±0.52 50.25±0.26 53.55±0.42 57.59±0.61 62.74±0.87 66.59±0.89 69.55±0.25 71.49±0.57</td></tr><tr><td/><td>(+1.05%)</td><td>(+0.79%)</td><td>(+2.42%)</td><td>(+3.84%)</td><td>(+3.69%)</td><td>(-0.02%)</td><td colspan="2">(-1.69%) (-10.67%)</td></tr></table>

Top-1 test error rates of WRN-16-8 on Tiny-ImageNet. Subscripts denote standard deviations, and bracketed numbers denote relative gains with respect to MP. Unpruned models have 51.85% error rate.

Table content: <table><tr><td/><td>12.22%</td><td>8.85%</td><td>6.41%</td><td>4.65%</td><td>3.37%</td><td>2.45%</td><td>1.77%</td><td>1.29%</td></tr><tr><td colspan="9">MP (baseline) 50.38±1.00 52.64±0.84 55.23±1.13 58.79±0.81 64.11±1.23 69.22±2.03 75.90±2.03 81.83±2.17</td></tr><tr><td>LAP</td><td colspan="8">49.85±1.19 52.33±1.69 54.96±1.26 59.06±2.40 62.68±1.57 67.82±2.39 71.30±3.65 76.51±1.54</td></tr><tr><td/><td>(-1.04%)</td><td>(-0.60%)</td><td>(-0.49%)</td><td>(+0.46%)</td><td>(-2.23%)</td><td>(-2.02%)</td><td>(-6.06%)</td><td>(-6.50%)</td></tr><tr><td colspan="9">LAP-forward 51.86±1.14 54.77±2.37 57.65±1.75 61.84±1.39 65.30±2.16 69.03±2.46 71.75±1.66 77.00±1.23</td></tr><tr><td/><td>(+2.95%)</td><td>(+4.05%)</td><td>(+4.38%)</td><td>(+5.18%)</td><td>(+1.85%)</td><td>(-0.27%)</td><td>(-5.46%)</td><td>(-5.91%)</td></tr></table>

Test error rates of FCN on MNIST. Subscripts denote standard deviations, and bracketed numbers denote relative gains with respect to OBD. Unpruned models achieve 1.98% error rate.

Table content: <table><tr><td/><td>6.36%</td><td>3.21%</td><td>1.63%</td><td>0.84%</td><td>0.43%</td><td>0.23%</td><td>0.12%</td></tr><tr><td colspan="2">OBD (baseline) 1.87±0.05</td><td>2.07±0.13</td><td>2.51±0.10</td><td>3.07±0.12</td><td>4.08±0.14</td><td colspan="2">5.66±0.39 11.01±1.71</td></tr><tr><td>OBD+LAP</td><td>1.81±0.05</td><td>2.18±0.13</td><td>2.52±0.14</td><td>3.48±0.14</td><td>4.16±0.35</td><td>5.88±0.51</td><td>8.65±0.56</td></tr><tr><td/><td>(-3.42%)</td><td>(+5.31%)</td><td colspan="2">(+0.48%) (+13.35%)</td><td>(+1.91%)</td><td colspan="2">(+3.81%) (-21.41%)</td></tr><tr><td>LAP-act</td><td>1.78±0.07</td><td>1.85±0.09</td><td>2.21±0.13</td><td>2.73±0.04</td><td>3.50±0.35</td><td>4.74±0.21</td><td>7.99±0.19</td></tr><tr><td/><td colspan="7">(-4.60%) (-10.63%) (-12.11%) (-11.13%) (-14.31%) (-16.21%) (-27.48%)</td></tr></table>

Test error rates of Conv-6 on CIFAR-10. Subscripts denote standard deviations, and bracketed numbers denote relative gains with respect to OBD. Unpruned models achieve 11.97% error rate.

Table content: <table><tr><td/><td>10.62%</td><td>8.86%</td><td>7.39%</td><td>6.18%</td><td>5.17%</td><td>4.32%</td><td>3.62%</td></tr><tr><td colspan="8">OBD (baseline) 12.10±0.21 12.81±0.61 13.18±0.26 14.28±0.55 15.54±0.40 16.83±0.27 19.14±0.32</td></tr><tr><td>OBD+LAP</td><td colspan="7">12.51±0.21 13.22±0.48 13.68±0.57 14.31±0.36 15.09±0.36 16.31±0.51 17.29±0.47</td></tr><tr><td/><td>(+3.41%)</td><td>(+3.20%)</td><td colspan="2">(+2.23%) (+0.18%)</td><td>(-2.90%)</td><td>(-3.13%)</td><td>(-9.65%)</td></tr><tr><td>LAP-act</td><td colspan="7">12.11±0.12 12.72±0.11 12.92±0.48 13.45±0.25 14.86±0.13 16.47±0.36 18.48±0.33</td></tr><tr><td/><td>(+0.12%)</td><td>(-0.69%)</td><td>(-3.47%)</td><td>(-5.87%)</td><td>(-4.40%)</td><td>(-2.13%)</td><td>(-3.46%)</td></tr></table>

Computation time of MP and LAP on FCN,16,19}, All figures are averaged over 100 independent trials. Bracketed numbers denote relative increments. Number of weight parameters denote the number of parameters that are the target of pruning.

Table content: <table><tr><td/><td>FCN</td><td>Conv-6</td><td>VGG-11</td><td>VGG-16</td><td>VGG-19</td><td>ResNet-18</td></tr><tr><td>MP (baseline)</td><td colspan="3">46.23 (ms) 108.92 (ms) 542.95 (ms)</td><td colspan="3">865.91 (ms) 1188.29 (ms) 641.59 (ms)</td></tr><tr><td colspan="4">LAP (w/o batchnorm) 47.73 (ms) 116.74 (ms) 560.60 (ms)</td><td colspan="3">912.47 (ms) 1241.55 (ms) 671.61 (ms)</td></tr><tr><td/><td>(+3.14%)</td><td>(+7.18%)</td><td>(+3.25%)</td><td>(+5.28%)</td><td>(+4.48%)</td><td>(+4.68%)</td></tr><tr><td>LAP</td><td>-</td><td colspan="5">-805.98 (ms) 1213.24 (ms) 1653.02 (ms) 943.86 (ms)</td></tr><tr><td/><td>-</td><td>-</td><td>(+48.44%)</td><td>(+40.11%)</td><td>(+39.19%)</td><td>(+47.11%)</td></tr><tr><td># weight parameters</td><td>1.15M</td><td>2.26M</td><td>9.23M</td><td>14.72M</td><td>20.03M</td><td>10.99M</td></tr></table>

Test error rates of Conv-6 on CIFAR-10 for channel pruning. Subscripts denote standard deviations, and bracketed numbers denote relative gains with respect to the best of MP-1 and MP-

Table content: <table/>

Test error rates of FCN on MNIST, with LAP-all variant. Subscripts denote standard deviations. Unpruned models achieve 1.98% error rate. 77± 0.22 19.85± 8.67 67.62± 9.91 RP 2.36± 0.13 2.72± 0.16 3.64± 0.17 17.54± 7.07 82.48± 4.03 88.65± 0.00 88.65± 0.00

Table content: <table><tr><td/><td>6.36%</td><td>3.21%</td><td>1.63%</td><td>0.84%</td><td>0.43%</td><td>0.23%</td><td>0.12%</td></tr><tr><td colspan="6">MP (baseline) 1.75± 0.11 2.11± 0.14 2.53± 0.09 4.LAP 3.32± 0.27 1.67± 0.11 1.89± 0.12 2.48± 0.13 3.29± 0.06 3.93± 0.26</td><td colspan="2">6.72± 0.44 16.45± 5.61</td></tr><tr><td>LAP-all</td><td colspan="3">1.64± 0.05 2.06± 0.17 2.53± 0.15</td><td>3.23± 0.13</td><td>4.01± 0.10</td><td colspan="2">6.78± 0.44 25.64± 5.42</td></tr></table>

Test error rates of various networks on CIFAR-10. Subscripts denote standard deviations, and bracketed numbers denote relative gains with respect to the unpruned MobileNetV2. WHERE IS THE PERFORMANCE GAIN OF LAP COMING FROM?

Table content: <table><tr><td/><td>VGG-16</td><td>VGG-19</td><td colspan="2">ResNet-18 MobileNetV2</td></tr><tr><td>Unpruned</td><td>9.33±0.15</td><td>9.02±0.36</td><td>8.68±0.21</td><td>9.81±0.30</td></tr><tr><td>MP</td><td>8.92±0.18</td><td>9.46±0.25</td><td>7.70±0.23</td><td>-</td></tr><tr><td/><td>(-9.07%)</td><td>(-3.57%)</td><td>(-21.51%)</td><td/></tr><tr><td>LAP</td><td>8.77±0.20</td><td>9.30±0.25</td><td>7.73±0.29</td><td>-</td></tr><tr><td/><td>(-10.60%)</td><td>(-5.20%)</td><td>(-21.20%)</td><td/></tr><tr><td colspan="4"># weight parameters 2.09M/14.72M 2.06M/20.03M 2.17M/10.99M</td><td>2.20M</td></tr><tr><td/><td>(14.23%)</td><td>(10.28%)</td><td>(19.17%)</td><td/></tr></table>

Peer review (iclr2020):
*Summary* The paper proposes a multi-layer alternative to magnitude-based pruning. The operations entailed in the previous, current, and subsequent layers are treated as linear operations (by omitting any nonlinearities), weights are selected for pruning to minimize the *Frobenius distortion*, the Frobenius norm of the difference between products of the (i-1, i, i+1)-layer Jacobians with and without the selected weight. This simplifies to a cost-effective pruning criterion. In spite of the simplistic linear setting assumed for the derivation, results show the criterion prunes better than weight-based methods at unstructured pruning of a variety of modern architectures with CIFAR-10, particularly excelling at higher sparsity. *Rating* The paper has some clear positives, particularly: + Clear writing and formatting + Simple method + Good structure for the experimental analysis (with 5x replications!) However there are a few limitations, noted below; while none is fatal on its own, in total the limitations have led me to recommend *weak reject* currently. Limitations of the method: (1) Residual networks: The lack of an explicit strategy for handling residual connections (and the accompanying worsened relative performance) is a notable limitation since residual/skip connections are nearly universal in state-of-the-art large networks. The performance was shown to still be *slightly* better than with magnitude pruning. (2) Global ranking: Since connections are pruned layerwise, rather than taking the best-k neurons across the entire network at once, I assume that the LAP pruning criterion doesn*t scale reasonably across layers. This implies that the method cannot be used to learn network structure. Instead the user must decide the desired number of neurons at each layer. (3) Structured pruning: There is no mention of pruning entire convolutional kernels or *neurons* at once, so I assume that only individual weights were pruned. Since structured pruning is the simplest way to achieve speedup in network inference (as opposed to merely reduction in model size), how does the LAP criterion perform when adapted for structured pruning, e.g. removing filters/neurons with the best average LAP score? Limitations of the experiments: (4) Baselines: While the paper is explicitly focused on an easy to compute replacement for magnitude-based pruning, there are a wide variety of alternative methods available. These vary in complexity, runtime, etc., but they deserve mention and either explicit comparison in the experiments or reasoning to justify the omission of such comparisons. (5) ImageNet: (Insert obligatory statement about the ubiquity of ImageNet experiments, ...) While it is cliche to request ImageNet experiments and CIFAR-10 is a helpful stand-in, they would be really nice to have. (6) Activations after non-linearities: While Fig. 3 and the remaining experiments present a reasonable case that the presence of non-linearities doesn*t prevent LAP from improving upon magnitude-based pruning, it doesn*t resolve the issue either. Whether considering negative values clipped by with ReLU or large magnitude values that are squashed by sigmoid and tanh, the linear-only model is a poor approximation for some unknown fraction of neurons for probably most inputs. Does this mean that LAP is underperforming in those cases? Are those cases sufficiently rare or randomly distributed that they are merely noise? Is there another mechanism at play? In practical terms, how much does the activation rate (positive for ReLU, linear/unsquashed for sigmoid/tanh) vary by neuron? This seems like a reasonably simple thing to compute and incorporate into pruning. *Notes* Eq. (4): Is (4) simply the one-step/greedy approximation to the optimization in (3)? If so, it may be helpful to state this explicitly. Also, is ? If so, this is useful to explicitly state. Sec 2.1: Consider noting that the linear-model setup is used to construct the method, but non-linearities are addressed subsequently Sec 2.2: Is the activation probability p_j used in practice, or is it merely an explanatory device? pg5: *gradually prune (p/5)%* and marked with a suffix *-seq** pg5: note that residual connections are discussed in the experiments? Tables 3-6: note that these all use CIFAR-10