<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Greedy Optimization Provably Wins the Lottery: Logarithmic Number of Winning Tickets is Enough</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>2020</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10276253</idno>
					<idno type="doi"></idno>
					<title level='j'>Conference on Neural Information Processing Systems (NeurIPS)</title>
<idno></idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Mao Ye</author><author>Lemeng Wu</author><author>Qiang Liu</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Despite the great success of deep learning, recent works show that large deep neural networks are often highly redundant and can be significantly reduced in size. However, the theoretical question of how much we can prune a neural network given a specified tolerance of accuracy drop is still open. This paper provides one answer to this question by proposing a greedy optimization based pruning method. The proposed method has the guarantee that the discrepancy between the pruned network and the original network decays with exponentially fast rate w.r.t. the size of the pruned network, under weak assumptions that apply for most practical settings. Empirically, our method improves prior arts on pruning various network architectures including ResNet, MobilenetV2/V3 on ImageNet.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>Large-scale deep neural networks have achieved remarkable success on complex cognitive tasks, including image classification, e.g., <ref type="bibr">He et al. (2016)</ref>, speech recognition, e.g., <ref type="bibr">Amodei et al. (2016)</ref> and machine translation, e.g., <ref type="bibr">Wu et al. (2016)</ref>. However, a drawback of the modern large-scale DNNs is their low inference speed and high energy cost, which makes it less appealing to deploy those models on edge devices such as mobile phones and Internet of Things <ref type="bibr">(Cai et al., 2019)</ref>.</p><p>It has been shown that network pruning <ref type="bibr">(Han et al., 2015)</ref> is an effective technique to reduce the size of the DNNs without a significant drop of accuracy. However, most existing works on network pruning are based on heuristics, leaving the theoretical questions largely open on what kind of network can be effectively pruned, how much we can prune a DNN given a specified tolerance of accuracy drop and how to achieve it with a practical and computationally efficient procedure.</p><p>Recently, a line of works on network pruning with theoretical guarantees have emerged, including sensitivity-based methods <ref type="bibr">(Baykal et al., 2019b;</ref><ref type="bibr">Liebenwein et al., 2020)</ref>, coreset-based methods <ref type="bibr">(Baykal et al., 2019a;</ref><ref type="bibr">Mussay et al., 2020)</ref>, greedy forward selection <ref type="bibr">(Ye et al., 2020)</ref>. Both the sensitivity-based and coreset-based methods prune the network by sampling and bound the error caused pruning via concentration inequalities. They show that the error introduced by pruning decays with an O(n -1 ) rate w.r.t. the size n of pruned network. This is comparable to the asymptotic error obtained by directly training a neural network of size n with gradient descent descent, which is also O(n -1 ) following the mean field analysis of <ref type="bibr">Mei et al. (2018)</ref>; <ref type="bibr">Ara&#250;jo et al. (2019)</ref>; <ref type="bibr">Sirignano &amp; Spiliopoulos (2019)</ref>. More recently, <ref type="bibr">Ye et al. (2020)</ref> proposed the first pruning method that achieves a faster O(n -2 ) error rate and is hence provably better than direct training with gradient descent. See Table <ref type="table">1</ref> for a summary on those works.</p><p>However, the analysis of <ref type="bibr">Ye et al. (2020)</ref> only applies to two-layer networks and requires the original network to be sufficiently over-parameterized. In this paper, we proposed a new greedy optimization based pruning method, which learns sub-networks of size n with a significantly smaller O(exp(-cn))</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Rate</head><p>No Over-param Deep Net <ref type="bibr">Baykal et al. (2019b)</ref>; <ref type="bibr">Liebenwein et al. (2020)</ref> O(n -1 ) <ref type="bibr">Baykal et al. (2019a)</ref>; <ref type="bibr">Mussay et al. (2020)</ref> O(n -1 ) <ref type="bibr">Ye et al. (2020)</ref> O(n -2 ) &#215; &#215; This paper O(exp(-cn)) Table <ref type="table">1</ref>: Overview on theoretical guaranteed pruning methods. Rate above gives how the error due to pruning decays as the size of the pruned network (n) increases. Column 'No Over-param' denotes whether the method applies to an original network that is not over-parameterized in order to obtained the rate. Column 'Deep net' denotes whether the analysis applies to deep networks.</p><p>error rate, improving the rate from polynomial to exponential. In addition, our theoretical rate only requires weak assumptions that hold for most networks in practice, without requiring the the original networks to be overparameterized as <ref type="bibr">Ye et al. (2020)</ref>. Different from the Lottery Ticket Hypothesis <ref type="bibr">(Frankle &amp; Carbin, 2018)</ref>, which selects the winning tickets that give good performance when trained in isolation from initialization, our approach finds the tickets (that already won) from a fully converged network.</p><p>Practically, our algorithm is simple and easy to implement. In addition, we introduce practical speedup techniques to further improve the time efficiency. Empirically, our method improves the prior arts on network pruning under various network structures including ResNet-34 <ref type="bibr">(He et al., 2016)</ref>, MobileNetV2 <ref type="bibr">(Sandler et al., 2018)</ref> and MobileNetV3 <ref type="bibr">(Howard et al., 2019)</ref> on ImageNet <ref type="bibr">(Deng et al., 2009)</ref> as well as DGCNN <ref type="bibr">(Wang et al., 2019)</ref> on ModelNet40 <ref type="bibr">(Wu et al., 2015)</ref> on point cloud classification.</p><p>Notation We use notation [N ] := 1, ..., N for the set of the first N positive integers. All the vector norms &#8226; are assumed to be 2 norm. We denote the vector 0 norm by &#8226; 0 . &#8226; Lip denotes the Lipschitz norm for functions. I{&#8226;} indicates the indicator function.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Background and Method</head><p>Problem Setup Given a pre-trained deep neural network with L layers:</p><p>, where the -th layer F consisting of N neurons forms a mapping of form</p><p>with z as a proper input of the -th layer, which is the output of the previous -1 layers. Here &#963;(&#952;, &#8226;) is a general nonlinear map parameterized by &#952; that represents a neuron or other module in the network. For example, in a fully connected layer, we have &#963;(&#952;, z) = w 1 &#963; + (w 2 z) with &#952; = [w 1 , w 2 ] and &#963; + an activation function such as ReLU or Tanh. In a convolution layer, we have &#963;(&#952;, z) = w 1 &#963; + (w 2 * z), where * denotes the convolution operator. In this paper we may call &#963;(&#952; i , &#8226;) the neuron i or the i-th neuron for simplicity. Without loss of generality, we assume each layer in the given deep network has the same number of neurons using the same activation function.</p><p>The goal of network pruning is to construct a thinner network by replacing each layer with a subset of n &lt; N neurons. For simplicity of presentation, we focus on pruning a single layer F for now and we discuss how to apply our algorithm in a layer-wise fashion to prune the whole network in section 2.4.</p><p>To prune the -th layer, the goal is to replace F with a thinner layer f ,A with n &lt; N neurons:</p><p>where &#8486; [N ] is the probability simplex on the N neurons, that is,</p><p>By enforcing that A &#8712; &#8486; N , we prune the layer by finding the best convex combination of a subset of neurons. The constraint that i a i = 1 ensures that the overall magnitude of the output of the layer after pruning matches that of the original network even when a lot neurons are moved. We denote the network with the -th layer replaced by f ,A as f A , i.e.,</p><p>Given an observed dataset D m := (x (i) , y (i) ) m i=1 with m data points. We want to choose A such that the pruned network f A is close to the original F as much as possible, measured by the regression discrepancy loss,</p><p>Our algorithm and theoretical analysis can be extended to other discrepancy losses such as the cross-entropy. The problem of pruning the -th layer can be formulated by the following constraint problem</p><p>This yields a challenging sparse optimization problem, which we address using greedy optimization, yielding algorithms that are both theoretically guaranteed and practically efficient.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1">Pruning with Greedy Local Imitation</head><p>We first introduce a simply greedy algorithm via local imitation for searching a good solution of problem (1). The pruned network can be viewed as</p><p>Here z is the output of the -1-th layers and i) ). The set D m := (z (i) ) m i=1 denotes the distribution of training data pushed through the first -1 layers. Suppose H is Lipschitz continuous, which typically holds for neural networks, we are about to upper bound</p><p>where D is the local discrepancy loss measuring the discrepancy on the output of the -th layer between the pruned and original network</p><p>In local imitation, we construct f ,A such that its output well imitates the output of F , i.e., The local imitation is a bi-directional greedy optimization for solving (2). It starts with an empty layer, and sequentially adds, removes or adjusts neurons that yield the largest decrease of the loss. Specifically, denote by f ,A(k) the layer we obtained at the k-th iteration with A(k) = [a 1 (k), ..., a N (k)]. We start with selecting the single best neuron that minimizes the loss:</p><p>where i * 0 is the index of the selected neuron; correspondingly, we have a i (0) = I{i = i * 0 }. At iteration k, we search for the best neuron i * k and step size &#947; * k that minimizes the loss most, i.e.,</p><p>Then we update</p><p>Here U i in (4) is the search interval of the step size &#947;. We set U i = [0, 1] if the i-th neuron has not been selected yet (i.e., a i (k) = 0) and U i = [-a i (k)/(1 -a i (k)), 1] if the neuron has already been added (i.e., a i (k) &gt; 0). Therefore, this update can correspond to adding or removing a neuron, or simply adjusting the weight of existing neurons: the i * k -th neuron is added into the pruned network f ,A if we have a i * k (k) = 0, and it is removed from f ,A if we have &#947;</p><p>; no new neuron is added or removed if otherwise.</p><p>We stop the iteration when a convergence criterion, i.e., D &#8804; , is met.</p><p>Solving Greedy Optimization in (4) A naive way to solve problem (4) is by enumerating each neuron and solving the corresponding inner minimization on &#947;. This is computational costly as it requires computing the forward pass in neural network many times. However, given i, the local discrepancy loss is a quadratic function w.r.t. &#947;. Combined with some special property of the local imitation algorithms, we are able to solve (4) with only computing the forward pass in network once. We refer readers to Appendix 5.1 for details</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1.1">Greedy Local Imitation Decays Error Exponentially Fast</head><p>Now we proceed to give the convergence rate for the proposed local imitation algorithm. We introduce the following assumption.</p><p>Assumption 1 Assume that for any i &#8712; [N ], z (j) &#8712; D m , we have &#963;(&#952; i , z (j) ) &#8804; c 1 and H Lip &#8804; c 1 for some c 1 &lt; &#8734;.</p><p>Assumption 1 holds when network parameters and data are bounded and the activation is Lipschitz continuous, which is very mild and holds for most network in practice. The following theorem characterizes the convergence of local imitation showing that the error caused by pruning decays exponentially fast when the number of neurons in the pruned model increases.</p><p>Theorem 1 (Convergence Rate) Under assumption 1, at each step k of the greedy optimization in (2), we obtain a layer with no more than k neurons (i.e., A(k) 0 &#8804; k), whose loss satisfies</p><p>, where &#955; &gt; 0 is a strictly positive constant. That is, the loss decays exponentially with the number of neurons in f ,A(k) .</p><p>Remark Minimizing &#947; over U i can be viewed as line searching the optimal step size for adjusting neuron i. We may also consider to choose a proper fixed step size, e.g., &#947; = 1/(k + 1) instead of line searching, in which case the optimization in (2) is simplified into</p><p>which can be shown to give an O(k -2 ) error at the k-th step under the same assumption as Theorem 1. See Appendix 5.2 for more details.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2">Pruning with Greedy Global Imitation</head><p>The local imitation method uses a surrogate local discrepancy loss which is convex w.r.t. A to prune the networks. Despite the good property of local imitation, the use of surrogate loss can be ineffective for some layers. For example, during the iteration of local imitation, the best neuron that minimizes the surrogate loss is not necessarily the best one that minimizes the actual discrepancy loss.</p><p>We propose a second pruning method, which directly minimizing the original discrepancy loss. This method follows the similar greedy fashion as the local imitation. We initialize the network by</p><p>and</p><p>Similarly, at each iteration, We adjust the network in a greedy way by solving the following problem:</p><p>However, solving problem ( <ref type="formula">7</ref>) is computationally costly as the loss is non-convex w.r.t. A and thus solving the inner minimization on &#947; requires exhaustive search. To reduce the computational cost, in iteration k, we instead consider the following problem</p><p>Suppose that i * k gives that solution of problem (8), we update the network by setting</p><p>And we end the iteration when convergence criterion is met. Notice that different from local imitation, the algorithm adjusts A based on the final output of the network instead of the 'local' output of the pruned layer and thus we name it global imitation.</p><p>Different from the local imitation, due to the nonlinear of H 2 , besides Assumption 1, obtaining a convergence rate for the global imitation requires several additional assumptions characterizing the linearity of H 2 as well as the geometric property of the pruned layer.</p><p>Theorem 2 Under Assumption 1 and some additional assumptions, specified in Appendix 5.3, on the linearity of H 2 and initialization, we have</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2.1">Accelerating Global Imitation via Taylor Approximation</head><p>A native way to solve problem ( <ref type="formula">8</ref>) is by enumerating all the neurons and calculating</p><p>, which has at least O(N n) time complexity for pruning a layer with N neurons to n neurons. Here we propose a technique to reduce the computational cost via Taylor approximation. At iteration k, for any neuron i &#8712; [N ], we have</p><p>where we define</p><p>Thus, when k is large enough (which we find 25 is sufficient in practice), this approximation allows us to find the (near) optimal solution with small error of problem ( <ref type="formula">8</ref>) by finding the neuron with the largest gr A,i . Simple algebra shows that</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Therefore, we can easily calculate gr</head><p>In appendix, we show that r A(k),i can be easily computed with automatic differentiation function in common deep learning libraries by introducing some ancillary parameters into the model. See Appendix 5.4 for details. If we choose to use this approximation when k &gt; k for some k &gt; 0, we reduce the complexity from O(N n) to O(n).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3">Pruning vs GD: Numerical Verification of the Rate</head><p>Our result implies that the subnetwork f A obtained by pruning gives</p><p>where n is the number of neurons remained in the pruned layer. In comparison, the mean field analysis <ref type="bibr">(Ara&#250;jo et al., 2019;</ref><ref type="bibr">Mei et al., 2018)</ref> suggests that directly train a network with same size as the pruned model gives O n -1 discrepancy loss. This suggests that pruning is provably better than training. We conduct a numerical experiment to verify the theoretical result. Given some simulated dataset, we firstly train a two hidden layer neural network with 100 neurons for each layer. And we prune the layer close to the input to different number of neurons using the local and global imitation.</p><p>We also train the network with different number of neurons for the pruned layer and 100 neurons for the other one. Figure <ref type="figure">1</ref> plots the discrepancy loss and the number of neurons of the pruned layer. The empirical result matches our theoretical findings. We refer readers to Appendix 5.5 for more details.  The loss is in logarithm scale.</p><p>In section 2.1 and 2.2 we introduce how to use the greedy local/global imitation to prune a certain layer in a network.</p><p>In order to prune the whole network, we apply the greedy optimization scheme in a layer-wise fashion. Starting from the full network F , we apply the pruning method to prune the first layer (the one that is closest to the input)</p><p>We then apply the pruning method to prune the second layer F 2 in F prune,1 and continue until all the layers are pruned. By applying the pruning algorithm in this manner we prune the whole network.</p><p>The local imitation and global imitation perform differently when pruning different layers. To combine their advantages, when pruning each layer, both methods are applied individually with same convergence criterion and the one gives better performance is picked up. In this paper, we stop pruning when the discrepancy loss D of the pruned model is smaller than a user specified threshold. The method prunes more neurons at convergence is selected. If both methods prune the same number of neurons, then the one with smaller discrepancy loss is chosen. Algorithm 1 summarizes the procedure of local and global imitation and Algorithm 2 gives the layer-wise scheme on pruning the whole deep network.</p><p>The exponential decay rate can be obtained by iteratively applying our theory on each layer. Suppose the pruned model F pruned has n neurons at each layer, we have D[F pruned , F ] = O(exp(-&#955;n)). We refer reader to Appendix 5.6 for details. Also notice that the exponential decay rate also holds for Algorithm 1 as it chooses the method with smaller loss.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Experiment</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Comparing the Local and Global Imitation</head><p>Our first experiment aims to analyze the performance of local and global imitation for pruning deep neural network for image classification. We first apply both methods to a pretrained VGG-11 on CIFAR-10 dataset. We prune all the 8 convolution layers individual (when pruning one layer, the other layers remain unpruned) using both local and global imitation in order to compare these two methods side by side. Code for reproducing can be found at <ref type="url">https://github.com/lushleaf/ Network-Pruning-Greedy-Forward-Selection</ref>.</p><p>Settings The full network is trained with SGD optimizer with momentum 0.9. We use 128 batch size with initial learning rate 0.1 and train the model for 160 epochs. We decay the learning rate by 0.1 at the 80-th and the 120-th epochs. During pruning we use 128 batch size. We do not apply the Taylor approximation tricks to global imitation for this experiment. we use cross entropy between the pruned model and original model as discrepancy loss.</p><p>Result Figure <ref type="figure">2</ref>  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Imagenet Experiment</head><p>We use ILSVRC2012, a subset of ImageNet <ref type="bibr">(Deng et al., 2009)</ref> which consists of about 1.28 million training images and 50000 validation images with 1000 different classes.</p><p>Setting We apply our method on pruning ResNet34 (traditional large architecture) <ref type="bibr">(He et al., 2016)</ref>, MobileNetV2 (efficient architecture) <ref type="bibr">(Sandler et al., 2018)</ref> and MobileNetV3-small (an very small efficient architecture) <ref type="bibr">(Howard et al., 2019)</ref> on ImageNet.</p><p>We use batch size 64 for both local and global imitation. We set the algorithm to converge when the gap between the cross entropy training loss before pruning and after pruning is smaller than .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Model Method</head><p>Top-1 Acc Size (M) FLOPs</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>ResNet34</head><p>Full Model <ref type="bibr">(He et al., 2016)</ref> 73.4 21.8 3.68G L 1 norm <ref type="bibr">(Li et al., 2017)</ref> 72.1 -2.79G Neural Imp <ref type="bibr">(Molchanov et al., 2019)</ref> 72.8 -2.83G Rethink <ref type="bibr">(Liu et al., 2018)</ref> 72.9 -2.79G More is Less <ref type="bibr">(Dong et al., 2017)</ref> 73.0 -2.75G GFS <ref type="bibr">(Ye et al., 2020)</ref> 73.5 17.2 2.64G Ours 73.5 14.9 2.20G SPF <ref type="bibr">(He et al., 2018a)</ref> 71.8 -2.17G FPGM <ref type="bibr">(He et al., 2019)</ref> 72.5 -2.16G GFS <ref type="bibr">(Ye et al., 2020)</ref> 72.9 14.7 2.07G Ours 73.3 13.5 1.90G</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>MobileNetV2</head><p>Full Model <ref type="bibr">(Sandler et al., 2018)</ref> 72.2 3.5 314M GFS <ref type="bibr">(Ye et al., 2020)</ref> 71.9 3.2 258M Ours 72.2 3.2 245M Uniform <ref type="bibr">(Sandler et al., 2018)</ref> 70.4 2.9 220M AMC <ref type="bibr">(He et al., 2018b)</ref> 70.8 2.9 220M Meta Pruning <ref type="bibr">(Liu et al., 2019)</ref> 71.2 -217M LeGR <ref type="bibr">(Chin et al., 2019)</ref> 71.4 -224M GFS <ref type="bibr">(Ye et al., 2020)</ref> 71.6 2.9 220M Ours 71.7 2.9 218M ThiNet <ref type="bibr">(Luo et al., 2017)</ref> 68.6 -175M DPL <ref type="bibr">(Zhuang et al., 2018)</ref> 68.9 -175M GFS <ref type="bibr">(Ye et al., 2020)</ref> 70.4 2.3 170M Ours 70.5 2.3 170M</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>MobileNetV3-Small</head><p>Full Model <ref type="bibr">(Howard et al., 2019)</ref> 67.5 2.5 64M Uniform <ref type="bibr">(Howard et al., 2019)</ref> 65.4 2.0 47M GFS <ref type="bibr">(Ye et al., 2020)</ref> 65.8 2.0 49M Ours 66.4 2.0 48M We vary to get pruned model with different sizes. When conducting global imitation, we use the Taylor approximation trick introduced in section 2.2.1 to accelerate global imitation. We start the approximation when the number of neurons is larger than 25 and we evaluate the top 5 neurons with largest gr A,i and pick up the best one to adjust. We find that this setting is able to produce the same pruning result as the exact version while substantially reduces the computation cost.</p><p>We finetune the pruned models with standard SGD optimizer with momentum 0.9 and weight decay 5 &#215; 10 -5 . All the pruned models are finetuned for 150 epochs with batch size 256 using cosine learning rate decay <ref type="bibr">(Loshchilov &amp; Hutter, 2016)</ref>. We use initial learning 0.001 for ResNet34 and 0.01 for MobileNetV2 and MobileNetv3. We resize images to 224 &#215; 224 resolution and adopt the standard data augumentation scheme (mirroring and shifting).</p><p>Result Table <ref type="table">2</ref> reports the top1 accuracy, FLOPs and model size of the pruned network. Our algorithm consistently improves prior arts on network pruning.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3">DGCNN Experiment</head><p>We conduct experiment on the point cloud classification tasks on ModelNet40. Since the network structure used to extract the global information in point cloud usually requires to aggregate features from neighbor points, the high feature dimension heavily influence the forward time. We deploy our method on DGCNN. We compare with several baselines, including PointNet <ref type="bibr">(Qi et al., 2017a)</ref>, PointNet++ <ref type="bibr">(Qi et al., 2017b)</ref>, DGCNN with different width multipliers, and signed splitting steepest descent <ref type="bibr">(Wu et al., 2020)</ref>, which obtains a compact DGCNN by growing a extremely thin model. Table <ref type="table">3</ref> shows that our method produces networks with comparable accuracy while with much less inference time. We refer readers to Appendix 5.7 for details of experiment settings.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Model</head><p>Acc. Forward time (ms) # Param (M) PointNet <ref type="bibr">(Qi et al., 2017a)</ref> 89.2 32.19 2.85 PointNet++ <ref type="bibr">(Qi et al., 2017b)</ref>  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Related Work</head><p>Greedy Method Our method is highly related to <ref type="bibr">Ye et al. (2020)</ref>, which is also a greedy method with O(n -2 ) error rate for pruning over-parameterized two layer network. In comparison, we obtain exponential decay rate for pruning deep neural network with no requirement on the overparameterization of full model. Our local imitation method is also related to Frank Wolfe algorithm <ref type="bibr">(Frank &amp; Wolfe, 1956)</ref>. Compared with it, our local imitation is a bi-level greedy joint optimization method while Frank Wolfe first searches for best direction and then conduct descent greedily.</p><p>Theory on Lottery Ticket Hypothesis <ref type="bibr">(Malach et al., 2020)</ref> aims to prove the existence of subnetwork inside a random network that well approximates an unknown target network which has finite width and depth. It shows that a sufficiently large random network (with a specific structure) contains such a subnetwork with width of higher order compared with the targeted network. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Conclusion</head><p>This paper proposes a greedy optimization based pruning method, which is guaranteed to find a set of winning tickets (neurons) that approximates the fully trained unpruned network with exponential decay error rate w.r.t the number of selected tickets. The proposed pruning method is efficient with small time and space complexity and can be generally applied to various modern deep learning models.</p><p>Broader Impact Statement This work proposes a greedy optimization based pruning method, which has strong theoretical guarantee and good empirical performance. It gives positive improvement to the community of network efficiency. Our work do not have any negative societal impacts that we can foresee in the future.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2">Local Imitation with Fixed Step Sizes</head><p>In this section we give detailed discussion on local imitation with a fixed step size scheme shown in Section 2.2.1. Different from the greedy optimization (4), in this scheme, as the step size is fixed, the solution returned in each iteration is no better than the one of (4). As a consequence, it gives slower convergence rate.</p><p>Theorem 4 Under Assumption 1, at each step k of the greedy optimization in 5, we have</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.3">Theory on Greedy Global Imitation</head><p>Now we give the theoretical result on greedy global imitation. Denote</p><p>and D as the diameter of M, which is defined in Lemma 5. Notice that &#954; 1 &#954; 2 &#8805; 1. Using Lemma 3, we know that h &#8712; riM, which indicate that there exists some &#955; &gt; 0 such that</p><p>where B( h, &#955;) denotes the ball with radius &#955; centered at h.</p><p>Theorem 5 (Complete Version of Theorem 2) Suppose Assumption 1 holds. Further suppose that 1.</p><p>Remark Here the descending property of global imitation is influenced by the non-linear mapping H. As a consequence, the algorithm gives good convergence property when the whole dynamics is guaranteed to stay in a proper convergence region (R). The first extra assumption assumes the existence of this convergence region; The second extra assumption assumes a good initialization to ensure the dynamics stays in the convergence region at initialization; The third assumption can be roughly interpreted as assuming the dynamics will not jump out of the convergence region during descending. Notice that the extra assumptions holds when &#954; 1 and &#954; 2 is sufficiently close to 1.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.4">Details on Taylor Approximation Tricks</head><p>In this section we give details on the computation of Taylor approximation tricks. Notice that</p><p>Thus the key quantities we want to obtain is</p><p>And once we obtain r A,i , we are able to calculate gr A,i = 2 N j=1 (I {j = i} -a j ) r A,j . Now we introduce how to calculate r A,i efficiently by introducing an ancillary variable. Suppose when pruning layer , we have</p><p>Here b i is the introduced ancillary variable, which alway takes 0 value. We have</p><p>This for implementation in practice, we can introduce b i with its value fixed 0 and calculate its gradient using, which is r A,i using the auto differentiate operator in common deep learning libraries.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.5">Details on Numeric Verification of Rate</head><p>In this section, we give details on the toy experiment on verifying numeric rate. We first introduce the problem setup for the comparison between pruning and direct gradient training in obtaining small network. We use the two-hidden-layer deep mean field network formulated by <ref type="bibr">Ara&#250;jo et al. (2019)</ref>. Suppose that the second hidden layer (the one close to output) has 50 neurons; the first hidden layer (the one close to input) has n &#8804; 50 neurons with 50 dimensional feature map; and the input has 100 dimension. That is, we consider the following deep mean field network</p><p>, where</p><p>Suppose that we train the original network F N with N = 50 neuron at the first hidden layer using gradient descent defined in <ref type="bibr">Ara&#250;jo et al. (2019)</ref> for T time (T &lt; &#8734;) with random initialization. To obtain a small network with n neurons at the first hidden layer, we consider two approaches. In the first approach, we prune the first hidden layer of the trained F N using local imitation to obtain F n local where n indicates the number of neurons remained in the first hidden layer. In the second approach, we direct train the network F n direct train with n neurons in the first layer using the same gradient descent dynamics, initialization and training time as that in training F N . By the analysis in <ref type="bibr">Ara&#250;jo et al. (2019)</ref>, we have D[F n direct train , F N ] = O(n -1 ). And by Theorem 1, we have D[F n local , F N ] = O(exp(-&#955;n)) for some &#955; &gt; 0. This implies that pruning is provably much better than directly training in obtaining compact neural network. Now we introduce the experiment settings. To simulate the data, we first generate a random network F gen (x) = (exp (w 2 /10) -0.5) Tanh(sin (2&#960;w 1 ) x/5)/1000, where w 1 &#8712; R 1000&#215;100 and w 2 &#8712; R 1000 is generated by randomly sampling from uniform distribution Unif[0, 1] (each element is sampled independently). And then we generate the training data by sampling feature x from Unif[0, 1] (each coordinate is sampled independently) and then generate label y = F gen (x). The simulated training dataset consists of 200 data points. We initialize the parameters of F N and F n direct train from standard Gaussian distribution with variance 1, N (0, 1) (each element are initialized independently) and both F N and F n direct train are trained using the same and sufficiently long time to ensure convergence. We also include the pruned model using global imitation, which is denoted as F n global . The pruned models are not finetuned. We vary different n and summarize the discrepancy.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.6">Theory on Pruning All Layers</head><p>In the main text, we mainly discuss the convergence rate of pruning one layer. In this section, we discuss how to apply our convergence rate for single layer pruning to obtain an overall convergence rate. Following the layer-wise procedure introduced in Section 2.4, suppose that the algorithms prunes F to f ,A , &#8712; [L]. And thus, during the layer-wise pruning, the algorithm generates a sequence of pruned networks </p><p>we set A = A local , else we set A = A global . Define</p><p>denotes the distribution of training data pushed through the first -1 layers.</p><p>We introduce the following assumption on the boundedness.</p><p>Assumption 2 Assume that for any i &#8712;</p><p>Theorem 6 (Overall Convergence) Under assumption 2, we have</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.7">DGCNN Experiment</head><p>We deploy our method on DGCNN <ref type="bibr">(Wang et al., 2019)</ref>. DGCNN contains 4 EdgeConv layers that use K-Nearest-Neighbor(KNN) to aggregate the information from the output of convolution operation.</p><p>Pruning the convolution operation in EdgeConv can significantly speed up the KNN operation and therefor make the whole model more computational efficient.</p><p>Settings The full network is trained with SGD optimizer with momentum 0.9 and weight decay 1 &#215; 10 -4 . We train the model using 64 batch size with an initial learning rate 0.1 for 250 epochs. We apply cosine learning rate scheduler during the training and decrease the learning rate to 0.001 at the final epoch. During the pruning, we use 32 batch sizes and the other settings keep the same as our ImageNet experiment in Section 3.2.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Technical Lemmas</head><p>We introduce several technical Lemmas that are useful for proving the main theorems.</p><p>Lemma 1 Given some convex set M &#8834; R d , for any q 1 &#8712; riM and q 2 &#8712; clM . Then all the points from the half-segment [q 1 , q 2 ) belongs to the relative interior of M , i.e.,</p><p>Lemma 2 Let M be a convex set in R d , then if M is nonempty, then the relative interior of M is nonempty.</p><p>Lemma 1 and 2 are classic results from convex optimization.</p><p>where S = {q 1 , ..., q n } &#8838; R d with 1 &#8804; n &lt; &#8734;. Define q = 1 n n i=1 q i , then q &#8712; riM .</p><p>Lemma 4 Suppose that for some &#955; &gt; 0 such that</p><p>Lemma 5 Under Assumption 1, for any h, h &#8712; M, hh &#8804; D for some D &#8804; 2 &#8730; mc 1 . Here D can be viewed as the diameter of M.</p><p>, for some &#961; &#8712; (0, 1).</p><p>Lemma 7 Consider the following number sequence x 2 k+1 &#8804; ax 2 k -bx k + c. Suppose that this number sequence satisfies the following conditions: (1) a &gt; 1, b &#8805; 0, c &#8805; 0; (2) x k &#8805; 0 for any k;</p><p>(3) (a -1)x 2 -bx 2 + c has two real roots z 1 &#8804; z 2 ; (we allow z</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Proof of Main Theorems</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.7.1">Proof of Theorem 1</head><p>Using Lemma 3, we know that h &#8712; riM, which indicate that there exists some &#955; &gt; 0 such that</p><p>where B( h, &#955;) denotes the ball with radius &#955; centered at h. Define Extre(M) as the set of extreme points of M, we know that Extre(M) &#8838; {h 1 , ..., h N }. Consider the following problem</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>As the objective h</head><p>Here the last inequality is by Lemma 6. This gives that h</p><p>And thus we have</p><p>And thus we have</p><p>where the last inequality is by A(k) 0 &#8804; k.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Proof of Theorem 3</head><p>Notice that if we have</p><p>, by the argument in proving Theorem 1, we have</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>This gives that</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Proof of Theorem 4</head><p>Using Lemma 3, we know that h &#8712; riM, which indicate that there exists some &#955; &gt; 0 such that</p><p>where B( h, &#955;) denotes the ball with radius &#955; centered at h. Following the same argument of <ref type="bibr">Ye et al. (2020)</ref> in proving theorem 2, we have hh A(k) 2 = O((k + 1) -2 ). The result that A(k) 0 &#8804; k + 1 is obvious as in each iteration, the number of nonzero elements in A at most increases by 1.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Proof of Theorem 5</head><p>Suppose that at iteration k, we have h A(k) . And the global imitation algorithm returns h A(k+1) with f .A</p><p>We also define i k as the solution of local imitation. And we let f</p><p>Here D is the quantities defined in Lemma 5, (1) and (3) use the definition of &#954; 1 and &#954; 2 and (2) is by the argument of <ref type="bibr">Ye et al. (2020)</ref> in proving Theorem 2 (notice that their argument also applies to the case that h is in the relative interior of M, which is proved by Lemma 3, instead of that h is in the interior of M). By the assumption that D</p><p>.</p><p>We define q 1 = &#954; 2 1 &#954; 2 2 and q 2 = &#954; 2 1 &#954; 2 , and we have</p><p>1, then the rate holds by directly applying the argument of <ref type="bibr">Ye et al. (2020)</ref> in proving Theorem 2. If q 1 &gt; 1, we know that 2q 2 &#955; &#8805; 0 and &#954; 2 1 D 2 &#8805; 0; W k &#8805; 0 for any k by its definition; the formula q 1 x 2 -2q 2 &#955;x + &#954; 2 1 D 2 = x 2 has two real roots z 1 &#8804; z 2 ; z 2 &#8805; &#954; 1 D by the assumption; and W k+1 &#8804; z 2 by the assumption. Using Lemma 7, we have, for any k,</p><p>and thus D[f A(k) , F ] = O(k -2 ). The result that A(k) 0 &#8804; k + 1 is obvious as in each iteration, A(k) 0 at most increase 1.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Proof of Theorem 6</head><p>When pruning the -th layer, if this layer is pruned by local imitation, by applying Theorem 1 on the -th layer of f [ -1] , we have</p><p>for some &#955; &gt; 0. Else if this layer is pruned by global imitation, we have</p><p>Using triangle inequality, we know that</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Proof of Technical Lemmas</head><p>Proof of Lemma 3</p><p>The case that n = 1 is trivial and we consider the case that n &#8805; 2. By the definition, we know that M is an non-empty and closed convex set. And thus by Lemma 2, riM is not empty. Define q &#8712; riM, q = n i=1 &#945; i q i , n i=1 &#945; i = 1 and &#945; i &#8805; 0 &#8704;i &#8712; [n].</p><p>We define &#945; max = max i&#8712;[n] &#945; i . Notice that &#945; max &#8805; 1/n, otherwise, if &#945; max &lt; 1/n, we have n i=1 &#945; i &#8804; n&#945; max &lt; 1, which makes contradiction. If &#945; max = 1/n, then &#945; i = 1/n for all i &#8712; [n], otherwise, n i=1 &#945; i &lt; 1, which makes contradiction. In the case that &#945; max = 1/n, we have already obtained the desired result. Now we assume &#945; max &gt; 1 n . Define &#955; = 1 -1 n&#945;max &#8712; [0, 1) and &#946; i = &#945;max-&#945;i n&#945;max-1 . Notice this gives that n i=1</p><p>We define q = n i=1 &#946; i q i and by the property of &#946; i and the definition of M , we have q &#8712; M = clM . Notice that q = 1 n n i=1</p><p>Using Lemma 1, we know that q &#8712; riM .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.8">Proof of Lemma 4</head><p>Notice that by choosing</p><p>5.9 Proof of Lemma 5</p><p>Notice that for any i &#8712; [N ],</p><p>And for any h &#8712; M, we have h = N i=1 &#946; i h i , for some &#946; i &#8805; 0 and N i=1 &#946; i = 1, which gives that</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Proof of Lemma 6</head><p>Proof of this Lemma follows standard argument in analyzing Frank Wolfe algorithm. We include it for the completeness. Notice that s * k = arg min Using Lemma 4, we know that h</p><p>where the last inequality uses the fact that h</p><p>. And thus we have</p><p>where the last inequality is by Lemma 5.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Proof of Lemma 7</head><p>Define f (x) = ax 2 -bx+c. By assumption (1) and assumption (3), for any z &#8712; [z 1 , z 2 ], f (z)-z 2 &#8804; 0. We proof the desired result by induction. Suppose that x k &#8712; [0, z 2 ]. Case 1: x k &#8712; [z 1 , z 2 ] and in this case,</p><p>x 2 k+1 &#8804; f (x k ) &#8804; x 2 k &#8804; z 2 2 . Case 2: x k &#8712; [0, z 1 ) and in this case</p><p>f (z) &#8804; max(f (0), f (z 1 )) = max(c, z 2 1 ).</p><p>This gives that x k+1 &#8804; max( &#8730; c, z 1 ) &#8804; max(z 2 , z 1 ) = z 2 . The desired result follows by induction.</p></div></body>
		</text>
</TEI>
