1 Introduction
The astonishing success of Neural Networks (NNs) relies heavily on over-parameterized architectures [79] containing up to billions of parameters. Consequently, modern networks require large amounts of storage and increasingly long, computationally intensive training and inference times, entailing tremendous financial and environmental costs [64]. To address this, a large body of work focuses on compressing networks, resulting in sparse models that require only a fraction of memory or floating-point operations while being as performant as their dense counterparts. Recent techniques include the pruning of individual parameters [26], [24], [49], [8] or group entities such as convolutional filters and entire neurons [46], [2], [51], [75], as well as classical matrix- or tensor-decompositions [80], [65], [72], [48] in order to reduce the number of parameters.
A higher degree of sparsification typically leads to a degradation in predictive power of the network. Addressing this, two main paradigms emerged: pruning after training, like Iterative Magnitude Pruning (IMP) [26], is characterized by a three-stage pipeline of regular (sparsity-agnostic) training followed by prune-retrain cycles that are either performed once (One-Shot) or iteratively. The need for retraining to recover pruning-induced losses is often considered to be an inherent disadvantage and computationally impractical [50], [20], [70], [49], [85]. Alternatively, pruning during training avoids retraining by inducing strong inductive biases to converge to a sparse model at the end of training [82], [13], [37], [50]. A drawback of such approaches is the necessity to train one model per sparsity level, while IMP just needs one pretrained model to generate the entire accuracy-vs.-sparsity frontier.
A third paradigm, being the focus of this work, emerges when no retraining is allowed and training multiple times to generate the accuracy-vs.-sparsity tradeoff frontier is prohibitive. Ideally, the optimization procedure is “compression-aware” [3], [56] or “pruning-aware” [53], allowing to train once and then being able to compress to various degrees while keeping most of the performance without retraining (termed pruning stability). Compression-aware training procedures are expected to yield state-of-the-art dense models, which are robust to pruning without its hyperparameters being selected for a particular level of compression. While many such methods employ SGD-variants to discriminate between seemingly “important” and “unimportant” parameters [20], [13], [19], [83], actively encouraging the former to grow and penalizing the latter, an interesting line of research considers using optimizers other than SGD. An optimization approach that is particularly suited is the first-order and projection-free Stochastic Frank–Wolfe (SFW) algorithm [23], [7], [57], [66], [53]. While being used throughout various domains of machine learning for its highly structured, sparsity-enhancing update directions [39], [78], [12], [9], the algorithm has only recently been considered for promoting sparsity in NN architectures.
Addressing the issue of compression-aware training, we propose leveraging the SFW algorithm in conjunction with a family of norm constraints that actively encourage robustness to convolutional filter pruning and low-rank matrix decomposition. Our approach, using the group-k-support norm and variants thereof [4], [58], [52], is able to train state-of-the-art image-classification and semantic-segmentation architectures on large data sets to high accuracy while biasing the network toward compression-robustness. Similarly, motivated by the work of Pokutta et al. [57] and concurrent to our work, Miao et al. [53] showed the effectiveness of k-sparse constraints, focusing solely on unstructured weight pruning. Our approach generalizes the unstructured pruning case and further mitigates existing convergence and hyperparameter stability issues. To the best of our knowledge, our work is the first to apply SFW for structured pruning tasks. In analyzing the techniques introduced by Pokutta et al. [57], we find that the gradient rescaling of the learning rate is important for obtaining high performing and pruning stable models. We lay the theoretical foundation for this practice by proving the convergence of SFW with gradient rescaling in the nonconvex stochastic case, extending results of Reddi et al. [60].
Contributions
The contributions of our work can be summarized as follows:
- 1.
-
We propose a constrained optimization framework centered around a versatile family of norm constraints, which together with the SFW algorithm, produces well-performing models that are robust toward filter pruning as well as low-rank matrix decomposition. We empirically show that the proposed method is able to perform on par with or better than existing approaches. In the decomposition case, our approach can require significantly less compute resources than nuclear-norm regularization based approaches.
- 2.
-
As a special case, our derivation includes the unstructured pruning setting. We show that our approach enjoys favorable properties when compared to the existing k-sparse approach [57], [53].
- 3.
-
We empirically show that the robustness of SFW-trained NNs can largely be attributed to the usage of the gradient rescaling of the learning rate. To justify the usage of gradient rescaling theoretically, we prove the convergence of SFW with batch gradient dependent step size in the non-convex setting.
Related work
The Frank–Wolfe (FW) or conditional gradient algorithm [23], [44] is widely used in machine learning for handling complex structural requirements efficiently [39], [78], [22], [34], [55]. Lacoste-Julien [38] extended the convergence theory of FW to the nonconvex setting, while Hazan and Luo [27] and Reddi et al. [60] provide convergence rates for the stochastic variant of the algorithm (SFW). Accelerated variants include variance reduction approaches [27], [76], [63], adaptive gradients [16], and momentum [54], [14]. For a comprehensive review, see Braun et al. [9].
SFW has also received increased interest for training NNs with studies exploring parameter constraints [59], SFW applied for shallow networks [71], NN-specific variants [7], adversarial training [66], and achieving benchmark performances in image classification [57]. While classical FW has been applied to sparsity problems in machine learning, few have explored its structure-enhancing benefits in deep learning. Grigas et al. [25] remove neurons from three-layer convolutional networks. Pokutta et al. [57] constrain the parameters to lie within a k-sparse polytope, resulting in a large fraction having small magnitude. Miao et al. [53] leverage this idea for unstructured pruning in the “once-for-all” [10] pruning-aware training setting. We refer to Hoefler et al. [30] for a detailed account of sparsification approaches.