[ { "type": "text", "text": "DIVISION: MEMORY EFFICIENT TRAINING VIA DUAL ACTIVATION PRECISION ", "text_level": 1, "bbox": [ 176, 98, 754, 146 ], "page_idx": 0 }, { "type": "text", "text": "Anonymous authors Paper under double-blind review ", "bbox": [ 183, 171, 398, 198 ], "page_idx": 0 }, { "type": "text", "text": "ABSTRACT ", "text_level": 1, "bbox": [ 454, 236, 544, 251 ], "page_idx": 0 }, { "type": "text", "text": "Activation compressed training (ACT) has been shown to be a promising way to reduce the memory cost of training deep neural networks (DNNs). However, existing work of ACT relies on searching for optimal bit-width during DNN training to reduce the quantization noise, which makes the procedure complicated and less transparent. To this end, we propose a simple and effective method to compress DNN training. Our method is motivated by an instructive observation: DNN backward propagation mainly utilizes the low-frequency component (LFC) of the activation maps, while the majority of memory is for caching the high-frequency component (HFC) during the training. This indicates the HFC of activation maps is highly redundant and compressible during DNN training, which inspires our proposed Dual ActIVation PrecISION (DIVISION). During the training, DIVISION preserves the high-precision copy of LFC and compresses the HFC into a light-weight copy with low numerical precision. This can significantly reduce the memory cost without negatively affecting the precision of backward propagation such that DIVISION maintains competitive model accuracy. Experimental results show DIVISION achieves over $1 0 \\times$ compression of activation maps, and significantly higher training throughput than state-of-theart ACT methods, without loss of model accuracy. The code is available at https://anonymous.4open.science/r/division-5CC0/. ", "bbox": [ 233, 267, 764, 530 ], "page_idx": 0 }, { "type": "text", "text": "1 INTRODUCTION ", "text_level": 1, "bbox": [ 176, 559, 336, 575 ], "page_idx": 0 }, { "type": "text", "text": "Deep neural networks (DNNs) have been widely applied to real-world tasks such as language understanding (Devlin et al., 2018), machine translation (Vaswani et al., 2017), visual detection and tracking (Redmon et al., 2016). With increasingly larger and deeper architectures, DNNs achieve remarkable improvement in representation learning and generalization capacity (Krizhevsky et al., 2012). Generally, training a larger model requires more memory resources to cache the activation values of all intermediate layers during the back-propagation1. For example, training a DenseNet121 (Huang et al., 2017) on the ImageNet dataset (Deng et al., 2009) requires to cache over 1.3 billion float activation values (4.8GB) during back-propagation; and training a ResNet-50 (He et al., 2016) requires to cache over 4.6 billion float activation values (17GB). Some techniques have been developed to reduce the training cache of DNNs, such as checkpointing (Chen et al., 2016; Gruslys et al., 2016), mix precision training (Vanholder, 2016), low bit-width training (Lin et al., 2017; Chen et al., 2020) and activation compressed training (Georgiadis, 2019; Liu et al., 2022). Among these, the activation compressed training (ACT) has emerged as a promising method due to its significant reduction of training memory and the competitive learning performance (Liu et al., 2021b). ", "bbox": [ 174, 585, 825, 779 ], "page_idx": 0 }, { "type": "text", "text": "Existing work of ACT relies on quantizing the activation maps to reduce the memory consumption of DNN training, such as BLPA (Chakrabarti & Moseley, 2019), TinyScript (Fu et al., 2020) and ActNN (Chen et al., 2021). Although ACT could significantly reduce the training memory cost, the quantization process introduces noises in backward propagation, which makes the training suffer from undesirable degradation of accuracy (Fu et al., 2020). Due to this reason, BLPA requires 4- bit ACT to ensure the convergence to optimal solution on the ImageNet dataset, which has only $6 \\times$ compression rate2 of activation maps (Chakrabarti & Moseley, 2019). Other works propose to search for optimal bit-width to match different samples during training, such as ActNN (Chen et al., 2021) and AC-GC (Evans & Aamodt, 2021). Although it can moderately reduce the quantization noise and achieves optimal solution under 2-bit ACT (nearly $1 0 \\times$ compression rate), the following issues cannot be ignored. First, it is time-consuming to search for optimal bit-width during training. Second, the framework of bit-width searching is complicated and non-transparent, which brings new challenges to follow-up studies on the ACT and its real-world applications. ", "bbox": [ 174, 786, 823, 883 ], "page_idx": 0 }, { "type": "text", "text": "", "bbox": [ 174, 103, 823, 188 ], "page_idx": 1 }, { "type": "text", "text": "In this work, we propose a simple and transparent method to reduce the memory cost of DNN training. Our method is motivated by an instructive observation: DNN backward propagation mainly utilizes the low-frequency component (LFC) of the activation maps, while the majority of memory is for the storage of high-frequency component (HFC) during the training. This indicates the HFC of activation map is highly redundant and compressible during the training. Following this direction, we propose Dual Activation Precision (DIVISION), which preserves the high-precision copy of LFC and compresses the HFC into a light-weight copy with low numerical precision during the training. In this way, DIVISION can significantly reduce the memory cost. Meanwhile, it will not negatively affect the quality of backward propagation and could maintain competitive model accuracy. ", "bbox": [ 173, 194, 825, 320 ], "page_idx": 1 }, { "type": "text", "text": "Compared with existing work that integrates searching into learning (Liu et al., 2022), DIVISION has a more simplified compressor and decompressor, speeding up the procedure of ACT. More importantly, it reveals the compressible (HFC) and non-compressible factors (LFC) during DNN training, improving the transparency of ACT. Experiments are conducted to evaluate DIVISION in terms of memory cost, model accuracy, and training throughput. An overall comparison is given in Figure 1 (a). Our proposed DIVISION consistently outperforms state-of-the-art baseline methods in the above three aspects. The contributions of this work are summarized as follows: ", "bbox": [ 173, 325, 825, 424 ], "page_idx": 1 }, { "type": "text", "text": "• We experimentally demonstrate and theoretically prove that DNN backward propagation mainly utilizes the LFC of the activation maps. The HFC is highly redundant and compressible. • We propose a simple framework DIVISION to effectively reduce the memory cost of DNN training via removing the redundancy in the HFC of activation maps during the training. • Experiments on three benchmark datasets demonstrate the effectiveness of DIVISION in terms of memory cost, model accuracy, and training throughput. ", "bbox": [ 176, 428, 825, 511 ], "page_idx": 1 }, { "type": "text", "text": "2 PRELIMINARY ", "text_level": 1, "bbox": [ 174, 516, 323, 531 ], "page_idx": 1 }, { "type": "text", "text": "2.1 NOTATIONS ", "text_level": 1, "bbox": [ 174, 535, 297, 549 ], "page_idx": 1 }, { "type": "text", "text": "Without loss of generality, we consider an $L$ -layer deep neural network in this work. During the forward pass, for each layer $l$ $\\begin{array} { r } { 1 \\leq l \\leq L } { } \\end{array}$ ), the activation map is calculated by ", "bbox": [ 173, 554, 821, 583 ], "page_idx": 1 }, { "type": "equation", "img_path": "images/f1b91977acffb3df14bccc6e7fb8c254d40d96a0ecdd91bb8340567fc4c6b201.jpg", "text": "$$\n\\mathbf { H } _ { l } = \\operatorname { f o r w a r d } ( \\mathbf { H } _ { l - 1 } ; \\mathbf { W } _ { l } ) ,\n$$", "text_format": "latex", "bbox": [ 406, 584, 589, 602 ], "page_idx": 1 }, { "type": "text", "text": "where $\\mathbf { H } _ { l }$ denotes the activation map of layer $l$ ; $\\mathbf { H } _ { 0 }$ takes a mini-batch of input images; $\\mathbf { W } _ { l }$ denotes the weight of layer $l$ ; and forward $( \\cdot )$ denotes the feed-forward operation. During the backward pass, the gradients of the loss value towards the activation maps and weights are be estimated by ", "bbox": [ 176, 603, 823, 645 ], "page_idx": 1 }, { "type": "equation", "img_path": "images/9b3de00e5aa405d91964dcb0a848f38fd7209ac1a26893286374fbf645be3d2c.jpg", "text": "$$\n\\begin{array} { r } { \\left[ \\hat { \\nabla } _ { \\mathbf { H } _ { l - 1 } } , \\hat { \\nabla } _ { \\mathbf { W } _ { l } } \\right] = \\operatorname { b a c k w a r d } ( \\hat { \\nabla } _ { \\mathbf { H } _ { l } } , \\mathbf { H } _ { l - 1 } , \\mathbf { W } _ { l } ) , } \\end{array}\n$$", "text_format": "latex", "bbox": [ 341, 647, 655, 667 ], "page_idx": 1 }, { "type": "text", "text": "where $\\hat { \\nabla } _ { \\mathbf { H } _ { l - 1 } }$ and $\\hat { \\nabla } _ { \\mathbf { H } _ { l } }$ denote the gradient towards the activation map of layer $l - 1$ and $l$ , respectively; $\\hat { \\nabla } _ { \\mathbf { W } _ { l } }$ denotes the gradient towards the weight of layer $l$ ; and backward $( \\cdot ) ^ { 3 }$ denotes the backward function which takes $\\hat { \\nabla } _ { \\mathbf { H } _ { l } }$ , $\\mathbf { H } _ { l - 1 }$ and $\\mathbf { W } _ { l }$ , and outputs the gradients $\\hat { \\nabla } _ { \\mathbf { H } _ { l - 1 } }$ and $\\hat { \\nabla } _ { \\mathbf { W } _ { l } }$ . Equation (2) indicates it is required to cache the activation maps $\\mathbf { H } _ { 0 } , \\cdots , \\mathbf { H } _ { L - 1 }$ after the feedforward operations for gradient estimation during backward propagation. ", "bbox": [ 174, 670, 825, 747 ], "page_idx": 1 }, { "type": "text", "text": "2.2 ACTIVATION COMPRESSED TRAINING ", "text_level": 1, "bbox": [ 176, 752, 477, 767 ], "page_idx": 1 }, { "type": "text", "text": "It has been proved in existing work (Chen et al., 2020) that majority of memory (nearly $90 \\%$ ) is for caching activation maps during the training of DNNs. Following this direction, the activation compressed training (ACT) reduces the memory cost via real-time compressing the activation maps during the training. A typical ACT framework in existing work (Chakrabarti & Moseley, 2019) is shown in Figure 1 (b). Specifically, after the feed-forward operation of each layer $l$ , activation map $\\mathbf { H } _ { l - 1 }$ is compressed into a representation for caching. The compression enables a significant reduction of memory compared with caching the original (exact) activation maps. During the backward pass of layer $l$ , ACT decompresses the cached representation into $\\hat { \\mathbf { H } } _ { l - 1 }$ , and estimates the gradient by taking the reconstructed $\\hat { \\mathbf { H } } _ { l - 1 }$ into Equation (2): $[ \\hat { \\nabla } _ { \\mathbf { H } _ { l - 1 } } , \\hat { \\nabla } _ { \\mathbf { W } _ { l } } ] = \\operatorname { b a c k w a r d } ( \\hat { \\nabla } _ { \\mathbf { H } _ { l } } , \\hat { \\mathbf { H } } _ { l - 1 } , \\mathbf { W } _ { l } ) .$ ", "bbox": [ 173, 770, 825, 902 ], "page_idx": 1 }, { "type": "image", "img_path": "images/4acc6fe49c2733f27a4d011e3f7727507aa4634198fedf43d0dc08186513d825.jpg", "image_caption": [ "Figure 1: (a) Overall performance of DIVISION versus baseline methods. (b) Activation compressed training. " ], "image_footnote": [], "bbox": [ 187, 94, 810, 205 ], "page_idx": 2 }, { "type": "image", "img_path": "images/9760f45e24475edce7d3e16c225a62b86a6a9641f48444d2e41c89f8c5ea79f9.jpg", "image_caption": [ "Figure 2: (a) Adopting DCT to estimate the low frequency component (LFC) and high frequency component (HFC) of an image. (b) Top-1 accuracy and (c) Memory cost of normal training, LFC-ACT and HFC-ACT, where RN-18, DN-121, and SN refer to the ResNet-18, DenseNet-121, and ShuffleNet-V2, respectively. " ], "image_footnote": [], "bbox": [ 204, 229, 792, 367 ], "page_idx": 2 }, { "type": "text", "text": "Even though the pipeline of compression and decompression is lossy, i.e. $\\hat { \\mathbf { H } } _ { l } \\neq \\mathbf { H } _ { l }$ for $1 \\le l \\le L$ . It has been proved ACT can limit the reconstruction error flowing back to early layers and enables the training to approach an approximately optimal solution (Chen et al., 2021). ", "bbox": [ 174, 426, 825, 469 ], "page_idx": 2 }, { "type": "text", "text": "2.3 DISCRETE COSINE TRANSFORMATION ", "text_level": 1, "bbox": [ 174, 477, 478, 491 ], "page_idx": 2 }, { "type": "text", "text": "Discrete Cosine Transformation (DCT) projects the target data from the spatial domain to the frequency domain via the inner-production of the data and a collection of cosine functions with different frequency (Rao & Yip, 2014). We focus on the 2D-DCT in this work, where the target data is the input image and activation maps of DNNs. Specifically, for 2D-matrix data $\\mathbf { H }$ , the frequency-domain feature $\\widetilde { \\bf H }$ is estimated by $\\widetilde { \\mathbf { H } } = \\mathrm { D C T } ( \\mathbf { H } )$ , where $\\mathbf { H }$ and $\\widetilde { \\bf H }$ have the same shape of $N \\times N$ . and each of the element $\\tilde { h } _ { i , j }$ is given by ", "bbox": [ 173, 496, 825, 585 ], "page_idx": 2 }, { "type": "equation", "img_path": "images/3ba1a7c55fac124a3557917fc5e525c1a3ca6c684344f6eeae2f89228fada1c8.jpg", "text": "$$\n\\tilde { h } _ { i , j } = \\sum _ { m = 0 } ^ { N - 1 } \\sum _ { n = 0 } ^ { N - 1 } h _ { m , n } \\cos { \\left[ \\frac { \\pi } { N } \\left( m + \\frac { 1 } { 2 } \\right) i \\right] } \\cos { \\left[ \\frac { \\pi } { N } \\left( n + \\frac { 1 } { 2 } \\right) j \\right] } ,\n$$", "text_format": "latex", "bbox": [ 300, 583, 696, 622 ], "page_idx": 2 }, { "type": "text", "text": "where $h _ { m , n }$ , $0 \\leq m , n \\leq N - 1$ , are elements in the original matrix $\\mathbf { H }$ . During the training of DNNs, an image or activation map has the shape of Minibatch $\\times { \\mathrm { C h a n n e l } } \\times N \\times N$ . In this case, the frequency-domain feature is estimated via operating 2D-DCT for each $N { \\times } N$ matrix in each channel. ", "bbox": [ 176, 621, 825, 662 ], "page_idx": 2 }, { "type": "text", "text": "With DCT, we could extract the low-frequency/high-frequency component (LFC/HFC) of an image or activation map, using a pipeline of low-pass/high-pass masking and inverse DCT, as shown in Figure 2. To be concrete, the estimation of LFC and HFC is given by ", "bbox": [ 174, 669, 825, 712 ], "page_idx": 2 }, { "type": "equation", "img_path": "images/0abbfbfa92f08f914c9d13bf1b6b873119b4956c633a1dd7e92803be9d3f5389.jpg", "text": "$$\n\\begin{array} { r l } & { \\mathbf { H } ^ { \\mathsf { L } } = \\mathrm { i } \\mathrm { D C T } ( \\widetilde { \\mathbf { H } } \\odot \\mathbf { M } ) } \\\\ & { \\mathbf { H } ^ { \\mathsf { H } } = \\mathrm { i } \\mathrm { D C T } ( \\widetilde { \\mathbf { H } } \\odot ( \\mathbf { 1 } _ { N \\times N } - \\mathbf { M } ) ) , } \\end{array}\n$$", "text_format": "latex", "bbox": [ 379, 712, 614, 750 ], "page_idx": 2 }, { "type": "text", "text": "where $\\mathrm { i D C T } ( \\cdot )$ denotes the inverse DCT (Rao & Yip, 2014); $\\mathbf { M } = [ m _ { i , j } | 1 \\leq i , j \\leq N ]$ denotes an $N \\times N$ low-pass mask satisfying $m _ { i , j } = 1$ for $1 \\leq i , j \\leq W$ and $m _ { i , j } = 0$ for other elements; and $\\mathbf { 1 } _ { N \\times N } - \\mathbf { M }$ indicates the high-pass mask. Intuitively, $\\mathbf { H } ^ { \\mathsf { L } }$ has $W ^ { 2 }$ non-zero float numbers in each channel, in contrast with $N ^ { \\Xi } - W ^ { 2 }$ non-zero float numbers in each channel of $\\mathbf { H } ^ { \\mathsf { H } }$ . Generally, we have $W \\ll N$ in practical scenarios, e.g. $W / N = 0 . 1$ in Figure 2 (a). This indicates the HFC takes the majority of the memory cost in the caching of activation maps. ", "bbox": [ 174, 750, 825, 837 ], "page_idx": 2 }, { "type": "text", "text": "3 CONTRIBUTION OF LFC AND HFC TO BACKWARD PROPAGATION ", "text_level": 1, "bbox": [ 171, 845, 750, 863 ], "page_idx": 2 }, { "type": "text", "text": "In this section, we experimentally prove the LFC of activation maps has significantly more contribution to DNN backward propagation than the HFC. Moreover, our theoretical result indicates the LFC enables the estimated gradient to be bounded into a tighter range around the optimal value, leading to a more accurate learned model, which is consistent with the experimental results. ", "bbox": [ 174, 872, 825, 928 ], "page_idx": 2 }, { "type": "image", "img_path": "images/6e15190f61de85f9bafe7e5aee52d33e715b5ef6a4a1d059f25a5f3640c2618a.jpg", "image_caption": [ "Figure 3: $\\lambda _ { l } ^ { \\downarrow } = \\hat { | } | \\widetilde { \\mathbf { H } } _ { l } \\odot \\mathbf { M } | | _ { F }$ versus $\\lambda _ { l } ^ { \\sf H } = | | \\widetilde { \\bf H } _ { l } \\odot ( { \\bf 1 } - \\dot { \\bf M } ) | | _ { F }$ in the training (epoches 20, 40, and 60) of ResNet18. $\\mathbf { H } _ { l }$ takes the activation maps of four BasicBlocks in ResNet-18; $\\boxed { \\begin{array} { r l } \\end{array} }$ indicates the mean values; $W { = } 0 . 5 N$ . " ], "image_footnote": [], "bbox": [ 181, 98, 818, 224 ], "page_idx": 3 }, { "type": "text", "text": "3.1 EXPERIMENTAL ANALYSIS ", "text_level": 1, "bbox": [ 174, 267, 400, 280 ], "page_idx": 3 }, { "type": "text", "text": "To study the individual contribution of LFC and HFC to DNN backward propagation, we design three training methods with different backward propagations: LFC-ACT takes LFC into the backward function as shown in Equation (6), where $\\dot { \\bf H } _ { l } ^ { \\mathrm { L } }$ is estimated by Equations (4); HFC-ACT takes HFC into the backward function as given in Equation (7), where $\\mathbf { H } _ { l } ^ { \\mathsf { H } }$ is according to Equation (5); Normal training (for comparison) estimates the gradients by Equation (2). ", "bbox": [ 173, 285, 825, 357 ], "page_idx": 3 }, { "type": "equation", "img_path": "images/135d6b2620f7c85af17b665be2c9e540d3e76ebaaff2f7de23e60823bb46630b.jpg", "text": "$$\n\\begin{array} { r l } & { [ \\hat { \\nabla } _ { \\mathbf { H } _ { l - 1 } } ^ { \\bullet } , \\hat { \\nabla } _ { \\mathbf { W } _ { l } } ] = \\mathrm { b a c k w a r d } ( \\hat { \\nabla } _ { \\mathbf { H } _ { l } } , \\check { \\mathbf { H } } _ { l } ^ { \\ L } , \\dot { \\mathbf { W } } _ { l } ) , } \\\\ & { [ \\hat { \\nabla } _ { \\mathbf { H } _ { l - 1 } } , \\hat { \\nabla } _ { \\mathbf { W } _ { l } } ] = \\mathrm { b a c k w a r d } ( \\hat { \\nabla } _ { \\mathbf { H } _ { l } } , \\mathbf { H } _ { l } ^ { \\ H } , \\mathbf { W } _ { l } ) . } \\end{array}\n$$", "text_format": "latex", "bbox": [ 328, 354, 625, 395 ], "page_idx": 3 }, { "type": "text", "text": "We conduct the experiments on the CIFAR-10 dataset. The implementation details are given in Appendix A. The top-1 accuracy and memory cost of LFC-ACT, HFC-ACT, and normal training are shown in Figure 2 (b) and (c), respectively. Overall, we have the following observations: ", "bbox": [ 174, 395, 825, 438 ], "page_idx": 3 }, { "type": "text", "text": "• Accuracy drop: According to Figure 2 (b), HFC-ACT suffers from significantly more degradation of accuracy than LFC-ACT. This indicates DNN backward propagation mainly utilizes the LFC of activation maps during the training. • Memory cost: According to Figure 2 (c), the storage of HFC requires significantly more memory than that of the LFC. i.e. The storage of HFC consumes the majority of memory. ", "bbox": [ 174, 440, 825, 513 ], "page_idx": 3 }, { "type": "text", "text": "To better understand the results of model accuracy, we theoretically prove the gradient for backward propagation is bounded into a tighter range around the optimal value in LFC-ACT. This enables LFC-ACT to learn a more accurate model than HFC-ACT. ", "bbox": [ 174, 515, 823, 558 ], "page_idx": 3 }, { "type": "text", "text": "3.2 THEORETICAL ANALYSIS ", "text_level": 1, "bbox": [ 174, 568, 392, 582 ], "page_idx": 3 }, { "type": "text", "text": "We theoretically analyze the gradient estimation error of LFC-ACT and HFC-ACT which adopt Equations (6) aHFC-ACT, let $\\hat { \\nabla } _ { \\mathbf { W } _ { l } } ^ { \\ L }$ ) forand $\\hat { \\nabla } _ { \\mathbf { W } _ { l } } ^ { \\mathsf { H } }$ ward propagation, respectively. Generdenote the estimated gradient of layer $l$ ly, for the LFC-ACT and, respectively. In this way, $\\big | \\big | \\hat { \\nabla } _ { \\mathbf { W } _ { l } } ^ { \\mathsf { L } } - \\bigtriangledown _ { \\mathbf { W } _ { l } } \\big | \\big | _ { F } 4$ and a ref $| | \\hat { \\nabla } _ { \\mathbf { W } _ { l } } ^ { \\mathsf { H } } - \\nabla _ { \\mathbf { W } _ { l } } | | _ { F }$ indicates the gradient estimation errors, taking the completere the distortion of backward propagation in LFC-ACT and $\\nabla _ { \\mathbf { W } _ { l } }$ HFC-ACT, let $\\mathrm { G E B } _ { l } ^ { \\mathsf { L } }$ and $\\mathrm { G E B } _ { l } ^ { \\mathsf { H } }$ denote the gradient error upper bound (GEB), respectively, i.e. $\\| \\hat { \\nabla } _ { \\mathbf { W } _ { l } } ^ { \\ L } - \\nabla _ { \\mathbf { W } _ { l } } \\| _ { F } \\leq \\mathrm { G E B } _ { l } ^ { \\ L }$ and $\\lvert \\lvert \\hat { \\nabla } _ { \\mathbf { W } _ { l } } ^ { \\mathsf { H } } - \\nabla _ { \\mathbf { W } _ { l } } \\lvert \\lvert _ { F } \\leq \\mathrm { G E B } _ { l } ^ { \\mathsf { H } }$ . Intuitively, higher GEB indicates less accurate backward propagation, leading to a less accurate model after training. To this end, we give Theorem 1 to compare $\\mathrm { \\bar { G E B } } _ { l } ^ { \\mathsf { L } }$ and $\\mathrm { G E B } _ { l } ^ { \\mathsf { H } }$ , where a convolutional layer is considered. The proof is given in Appendix B. A similar analysis of GEB for a linear layer is provided in Appendix C. ", "bbox": [ 173, 587, 825, 739 ], "page_idx": 3 }, { "type": "text", "text": "Theorem 1. During the backward pass of a convolutional layer $l$ , $\\mathrm { G E B } _ { l } ^ { \\mathsf { L } }$ and $\\mathrm { G E B } _ { l } ^ { \\mathsf { H } }$ satisfy ", "bbox": [ 178, 741, 782, 756 ], "page_idx": 3 }, { "type": "equation", "img_path": "images/e532bbbdcec3fb0d457cca1cfdaf521b780297f571d53502718b099edd388c84.jpg", "text": "$$\n\\mathbf { G E B } _ { l } ^ { \\mathbf { L } } - \\mathbf { G E B } _ { l } ^ { \\mathbf { H } } = \\left( \\alpha _ { l , l } | | \\mathbf { H } _ { l - 1 } ^ { \\mathsf { T } } | | _ { F } + \\beta _ { l } \\right) ( \\lambda _ { l } ^ { \\mathsf { H } } - \\lambda _ { l } ^ { \\mathbf { L } } ) + | | \\mathbf { H } _ { l - 1 } ^ { \\mathsf { T } } | | _ { F } \\sum _ { i = l + 1 } ^ { L } \\alpha _ { l , i } ( \\lambda _ { i } ^ { \\mathsf { H } } - \\lambda _ { i } ^ { \\mathbf { L } } ) \\prod _ { j = l } ^ { i - 1 } \\gamma _ { j } ,\n$$", "text_format": "latex", "bbox": [ 217, 756, 777, 797 ], "page_idx": 3 }, { "type": "text", "text": "where $\\alpha _ { l , i } , \\beta _ { l } , \\gamma _ { l } > 0$ for $1 \\leq l , i \\leq L$ depend on the model weights before backward propagation (given by Equations (24) in Appendix $B$ ); $\\lambda _ { l } ^ { \\mathbf { L } } = | | \\widetilde { \\mathbf { H } } _ { l } { \\odot } \\mathbf { M } | | _ { F } ; { \\boldsymbol { \\lambda } } _ { l } ^ { \\mathsf { H } } { = } | | \\widetilde { \\mathbf { H } } _ { l } { \\odot } ( \\mathbf { 1 } { - } \\mathbf { M } ) | | _ { F } ; \\widetilde { \\mathbf { H } } _ { l } { = } \\mathrm { D C T } ( \\mathbf { H } _ { l } ) ,$ ; and M denotes the loss-pass mask given by Equation (4). ", "bbox": [ 173, 796, 823, 842 ], "page_idx": 3 }, { "type": "text", "text": "Theorem 1 indicates the GEB difference depends on $\\lambda _ { \\underline { { l } } } ^ { \\mathsf { H } } - \\lambda _ { l } ^ { \\mathsf { L } }$ for $1 \\leq l \\leq L$ during the training. Following this direction, we estimate $\\lambda _ { l } ^ { \\mathsf { L } }$ and $\\lambda _ { l } ^ { \\mathsf { H } }$ via $\\lambda _ { l } ^ { \\mathbf { L } } { = } | | \\widetilde { \\mathbf { H } } _ { l } { \\odot } \\mathbf { M } | | _ { F }$ and $\\lambda _ { l } ^ { \\mathsf { H } } = | | \\widetilde { \\mathbf { H } } _ { l } \\odot ( \\mathbf { 1 - M } ) | | _ { F }$ during the training of ResNet-18 and DenseNet-121 on the CIFAR-10 dataset. Specifically, $\\mathbf { H } _ { l }$ takes the activation maps of the BasicBlocks in ResNet-18, and Denseblocks in DenseNet-121. The estimation of $\\lambda _ { l } ^ { \\mathsf { L } }$ and $\\lambda _ { l } ^ { \\mathsf { H } }$ is based on the checkpoint of ResNet-18 in epoches 20, 40, and 60, and visualized in Figures 3 (a)-(c), respectively; and the results of DenseNet-121 are given in Appendix D. It is consistently observed that $\\lambda _ { l } ^ { \\mathsf { L } } > \\lambda _ { l } ^ { \\mathsf { H } }$ for different instances and layers. This leads to $\\mathrm { \\bar { G E B } } _ { l } ^ { \\mathsf { L } } < \\mathrm { G E B } _ { l } ^ { \\mathsf { H } }$ according to Theorem 1. Therefore, HFC-ACT suffers from a worse distortion of backward propagation during the training, eventually leading to less accurate learned model than LFC-ACT. ", "bbox": [ 174, 848, 825, 896 ], "page_idx": 3 }, { "type": "image", "img_path": "images/a2b627f97dbfa1492cc5b154bc8008a695ed5791bcff3c0c85d3030644330850.jpg", "image_caption": [ "Figure 4: Framework of Dual Activation Precision Training. " ], "image_footnote": [], "bbox": [ 173, 98, 825, 181 ], "page_idx": 4 }, { "type": "text", "text": "", "bbox": [ 173, 210, 825, 296 ], "page_idx": 4 }, { "type": "text", "text": "In this section, from both experimental and theoretical perspectives, we prove the HFC of activation maps has less contribution to backward propagation than LFC. However, according to Figure 2 (c), the HFC takes the majority of memory cost during the training. This indicates the HFC is highly redundant and compressible during the training. Following this direction, we propose DIVISION to compress the activation maps into a dual precision representation: high-precision LFC combined with low-precision HFC. On the one hand, both LFC and low-precision HFC requires much less memory to cache. On the other hand, removing the redundancy of HFC cannot cause much distortion of backward propagation. In this way, DIVISION enables effective compression of training memory without degradation of model accuracy. ", "bbox": [ 173, 303, 825, 428 ], "page_idx": 4 }, { "type": "text", "text": "4 DUAL ACTIVATION PRECISION TRAINING ", "text_level": 1, "bbox": [ 174, 443, 552, 458 ], "page_idx": 4 }, { "type": "text", "text": "We introduce the proposed Dual ActIVation PrecISION (DIVISION) in this section. The framework of DIVISION is shown in Figure 4. Specifically, after the feed-forward operation of each layer, DIVISION estimates the LFC and compresses the HFC into a low-precision copy such that the total memory cost is significantly decreased after the compression. Before the backward propagation of each layer, the low-precision HFC is decompressed and combined with LFC to reconstruct the activation map. The detailed compression and decompression are given as follows. ", "bbox": [ 173, 468, 825, 551 ], "page_idx": 4 }, { "type": "text", "text": "4.1 ACTIVATION MAP COMPRESSION ", "text_level": 1, "bbox": [ 176, 563, 446, 577 ], "page_idx": 4 }, { "type": "text", "text": "For compressing the activation map $\\mathbf { H } _ { l }$ of layer $l$ , DIVISION estimates the LFC $\\mathbf { H } _ { l } ^ { \\mathrm { L } }$ and HFC $\\mathbf { H } _ { l } ^ { \\mathsf { H } }$ after the feed-forward operation. However, the high computational complexity of DCT prevents us from directly applying it to real-time algorithms. We thus give Theorem 2 to introduce a moving average operation that can approximate the loss-pass filter. The proof is given in Appendix E. ", "bbox": [ 174, 582, 825, 638 ], "page_idx": 4 }, { "type": "text", "text": "Theorem 2. For any real-valued function f(x) and its moving average ¯f(x) = 12B R x+x $\\begin{array} { r } { \\bar { f } ( x ) = \\frac { 1 } { 2 B } \\int _ { x } ^ { x + 2 B } f ( t ) \\mathrm { d } t , } \\end{array}$ , let $F ( \\omega )$ and $\\overline { { F } } ( \\omega )$ denote the Fourier transformation of $f ( x )$ and ${ \\bar { f } } ( x )$ , respectively. Generally, we have $\\overline { { F } } ( \\omega ) = H ( \\omega ) F ( \\omega )$ , where $\\begin{array} { r } { | H ( \\omega ) | = | \\frac { \\sin \\omega B } { \\omega B } | } \\end{array}$ ", "bbox": [ 176, 645, 825, 695 ], "page_idx": 4 }, { "type": "text", "text": "Remark 1. The frequency response of $H ( \\omega )$ depends on its envelope function $\\frac { 1 } { | { \\boldsymbol { \\omega } } { \\boldsymbol { B } } | }$ . Note that $\\frac { 1 } { | { \\boldsymbol { \\omega } } { \\boldsymbol { B } } | }$ decreases with $| \\omega |$ such that $\\begin{array} { r } { \\frac { 1 } { | \\omega B | } 0 } \\end{array}$ as $\\omega \\infty$ . Hence, $H ( \\omega )$ is an approximate loss-pass filter. ", "bbox": [ 174, 700, 823, 737 ], "page_idx": 4 }, { "type": "text", "text": "According to Remark 1, we approximate the LFC $\\mathbf { H } _ { l } ^ { \\mathrm { L } }$ into the moving average of $\\mathbf { H } _ { l }$ . Note that the average pooling operator provides efficient moving average. DIVISION adopts average pooling to estimate the LFC by $\\mathbf { H } _ { l } ^ { \\lfloor } = \\mathrm { A v e r a g e P o o l i n g } ( \\mathbf { H } _ { l } )$ . The value of block-size and moving stride is a unified hyper-parameter $B$ , which controls the memory of $\\mathbf { H } _ { l } ^ { \\mathsf { L } 5 }$ . Moreover, $\\mathbf { H } _ { l } ^ { \\mathsf { L } }$ is cached in the format of bfloat16 for saving the memory. In our experiments, we found $\\dot { B } = 8$ can provide representative LFC for backward propagation, where the memory cost of $\\mathbf { H } _ { l } ^ { \\mathrm { L } }$ is only $0 . 8 \\%$ of $\\mathbf { H } _ { l }$ . ", "bbox": [ 174, 743, 825, 829 ], "page_idx": 4 }, { "type": "text", "text": "To estimate the HFC, DIVISION calculates the residual value $\\mathbf { H } _ { l } ^ { \\mathsf { H } } = \\mathbf { H } _ { l } - \\mathrm { U p S a m p l i n g } ( \\mathbf { H } _ { l } ^ { \\mathsf { L } } )$ , where the UpSampling(·) enlarges $\\mathbf { H } _ { l } ^ { \\mathsf { L } }$ to shape Minibatc $1 \\times \\mathrm { C h a n n e l } \\times i$ N ×N via nearest interpolation. Then, DIVISION compress the $\\mathbf { H } _ { l } ^ { \\mathsf { H } }$ into low-precision because it plays a less important role during the backward propagation but consumes most of the memory. Specifically, DIVISION adopts $Q$ -bit per-channel quantization67 for the compression, where the bit-width $Q$ controls the precision and memory cost of HFC after the compression. Let $\\mathbf { V } _ { l } ^ { \\mathsf { H } }$ denote a $Q$ -bit integer matrix, as the lowprecision representation of $\\mathbf { H } _ { l } ^ { \\mathsf { H } }$ . The detailed procedure of compressing $\\mathbf { H } _ { l } ^ { \\mathsf { H } }$ into $\\mathbf { V } _ { l } ^ { \\mathsf { H } }$ is given by ", "bbox": [ 176, 837, 823, 897 ], "page_idx": 4 }, { "type": "text", "text": "", "bbox": [ 173, 102, 825, 147 ], "page_idx": 5 }, { "type": "equation", "img_path": "images/3cce48c5e8aab093e4889a6b38054d8df936e100bf86f5efb7d51ac9a0d4cab7.jpg", "text": "$$\n\\mathbf { V } _ { l } ^ { \\mathsf { H } } = \\mathrm { Q u a n t } ( \\mathbf { H } _ { l } ^ { \\mathsf { H } } ) = \\big [ \\Delta _ { l } ^ { - 1 } ( \\mathbf { H } _ { l } ^ { \\mathsf { H } } - \\delta _ { l } ) \\big ] ,\n$$", "text_format": "latex", "bbox": [ 362, 150, 632, 170 ], "page_idx": 5 }, { "type": "text", "text": "where $\\delta _ { l }$ denotes the minimum element in $\\mathbf { H } _ { l } ^ { \\mathsf { H } }$ ; $\\Delta _ { l } = ( h _ { \\operatorname* { m a x } } - \\delta _ { l } ) / ( 2 ^ { Q } - 1 )$ denotes the quantization step; $h _ { \\mathrm { m a x } }$ denotes the maximum element in $\\mathbf { H } _ { l } ^ { \\mathsf { H } } ; \\lfloor \\bullet \\rceil$ denotes the stochastic rounding89 (Gupta et al., 2015); and $\\delta _ { l }$ and $\\Delta _ { l }$ are cached in the formate of bfloat16 for saving memory. In this way, the memory cost of $( \\mathbf { V } _ { l } ^ { \\mathsf { H } } , \\delta _ { l } , h _ { \\operatorname* { m a x } } )$ is $\\left( N ^ { 2 } Q / 8 + 4 \\right)$ bytes per channel, in contrast with that of $\\mathbf { H } _ { l }$ being $4 N ^ { 2 }$ bytes per channel. In our experiments, we found $Q = 2$ can provide enough representation for backward propagation, where the memory cost of $\\mathbf { V } _ { l } ^ { \\mathsf { H } }$ is only $8 . 3 \\%$ of $\\mathbf { H } _ { l }$ . ", "bbox": [ 173, 171, 825, 258 ], "page_idx": 5 }, { "type": "text", "text": "After the compression, as the representation of $\\mathbf { H } _ { l }$ , the tuple of $( \\mathbf { H } _ { l } ^ { \\mathsf { L } } , \\mathbf { V } _ { l } ^ { \\mathsf { H } } , \\Delta _ { l } , \\delta _ { l } )$ is cached to the memory for reconstructing the activation maps during the backward pass. ", "bbox": [ 173, 265, 823, 295 ], "page_idx": 5 }, { "type": "text", "text": "4.2 ACTIVATION MAP DECOMPRESSION ", "text_level": 1, "bbox": [ 176, 306, 464, 321 ], "page_idx": 5 }, { "type": "text", "text": "During the backward pass, DIVISION adopts the cached tuples of $\\{ ( \\mathbf { H } _ { l } ^ { \\mathsf { L } } , \\mathbf { V } _ { l } ^ { \\mathsf { H } } , \\Delta _ { l } , \\delta _ { l } ) \\mid 0 \\leq l \\leq$ $L - 1 \\}$ to reconstruct the activation map layer-by-layer. Specifically, for each layer $l$ , DIVISION dequantizes the HFC via $\\hat { \\mathbf { H } } _ { l } ^ { \\mathsf { H } } = \\Delta _ { l } \\mathbf { V } _ { l } ^ { \\mathsf { H } } + \\delta _ { l }$ , which is the inverse process of Equation (9). Then, the activation map is reconstructed via ", "bbox": [ 173, 325, 825, 385 ], "page_idx": 5 }, { "type": "equation", "img_path": "images/82da2bcca4096df0eab92b6e88abb2557470b6e0b51d782fca91fac97891c3da.jpg", "text": "$$\n\\hat { \\mathbf { H } } _ { l } = \\mathrm { U p S a m p l i n g } ( \\mathbf { H } _ { l } ^ { \\mathsf { L } } ) + \\hat { \\mathbf { H } } _ { l } ^ { \\mathsf { H } } ,\n$$", "text_format": "latex", "bbox": [ 390, 387, 606, 406 ], "page_idx": 5 }, { "type": "text", "text": "where UpSampling $( \\cdot )$ enlarges $\\mathbf { H } _ { l } ^ { \\mathrm { L } }$ to shape Minibatch×Channe ${ \\times } N { \\times } N$ via nearest interpolation. After the decompression, DIVISION frees the caching of $( \\mathbf { H } _ { l } ^ { \\mathsf { L } } , \\mathbf { V } _ { l } ^ { \\mathsf { H } } , \\Delta _ { l } , \\delta _ { l } )$ , and takes $\\hat { \\mathbf { H } } _ { l }$ into $[ \\hat { \\nabla } _ { \\mathbf { H } _ { l - 1 } } , \\hat { \\nabla } _ { \\mathbf { W } _ { l } } ] = \\operatorname { b a c k w a r d } ( \\hat { \\nabla } _ { \\mathbf { H } _ { l } } , \\hat { \\mathbf { H } } _ { l - 1 } , \\mathbf { W } _ { l } )$ to estimate the gradient for backward propagation. Without loss of generality, 1D/3D activation maps are considered for DIVISION in Appendix F. ", "bbox": [ 174, 407, 825, 469 ], "page_idx": 5 }, { "type": "text", "text": "4.3 ALGORITHM OF DIVISION ", "text_level": 1, "bbox": [ 176, 483, 408, 496 ], "page_idx": 5 }, { "type": "text", "text": "Algorithm 1 demonstrates a mini-batch updating of DIVISION, which includes a forward pass and backward pass. During the forward pass of each layer, DIVISION first forwards the exact activation map to the next layer (line 2); then, estimates the LFC and HFC (line 3- 4); after this, achieves the low precision copy of HFC (lines 5); finally caches the representation to the memory (line 6). During the backward pass of each layer, DIVISION first decompresses the HFC (line 10); then reconstructs the activation map (line 11); after this, estimates the gradients and updates the weights of layer $l$ (line 12); finally frees the caching of $( \\mathbf { H } _ { l - 1 } ^ { \\mathsf { L } } , \\mathbf { V } _ { l - 1 } ^ { \\mathsf { H } } , \\Delta _ { l - 1 } , \\delta _ { l - 1 } )$ (line 13). For each minibatch updating, the memory usage reaches the ", "bbox": [ 174, 502, 483, 723 ], "page_idx": 5 }, { "type": "text", "text": "Algorithm 1 Mini-batch updating of DIVISION ", "text_level": 1, "bbox": [ 500, 478, 794, 492 ], "page_idx": 5 }, { "type": "text", "text": "Input: Mini-batch samples $\\mathbf { x }$ and labels y. \nOutput: Weight and bias $\\{ \\mathbf { W } _ { l } , \\mathbf { B } _ { l } | 1 \\le l \\le L \\}$ . \n1: for layer $l : = 1$ to $L$ do \n2: $\\mathbf { H } _ { l } = f ( \\mathbf { W } _ { l } \\mathbf { H } _ { l - 1 } + \\mathbf { B } _ { l } ) / / \\mathbf { H } _ { 0 } = \\mathbf { x }$ \n3: $\\mathbf { H } _ { l - 1 } ^ { \\mathsf { L } } = \\mathrm { A v e r a g e P o o l i n g } ( \\mathbf { H } _ { l - 1 } )$ \n4: $\\mathbf { H } _ { l - 1 } ^ { \\mathsf { H } } = \\mathbf { H } _ { l - 1 } - \\mathrm { U p S a m p l i n g } ( \\mathbf { H } _ { l - 1 } ^ { \\mathsf { L } } )$ \n5: $\\boldsymbol { \\mathsf { V } } _ { l - 1 } ^ { \\mathsf { H } } , \\boldsymbol { \\Delta _ { l - 1 } } , \\delta _ { l - 1 } = \\operatorname { Q u a n t } ( \\mathbf { H } _ { l - 1 } ^ { \\mathsf { H } } )$ \n6: Cache $( \\mathbf H _ { l - 1 } ^ { \\mathsf { L } } , \\mathbf V _ { l - 1 } ^ { \\mathsf { H } } , \\Delta _ { l - 1 } , \\delta _ { l - 1 } \\big )$ \n7: end for \n8: Estimate the loss value and gradient $\\hat { \\nabla } _ { \\mathbf { H } _ { L } }$ . \n9: for layer $l : = L$ to 1 do \n10: $\\hat { \\mathbf { H } } _ { l - 1 } ^ { \\sf H } = \\mathrm { D e q u a n t } ( \\mathbf { V } _ { l - 1 } ^ { \\sf H } , \\Delta _ { l - 1 } , \\delta _ { l - 1 } )$ \n11: $\\hat { \\mathbf { H } } _ { l - 1 } = \\mathrm { U p S a m p l i n g } ( \\mathbf { H } _ { l - 1 } ^ { \\mathsf { L } } ) + \\hat { \\mathbf { H } } _ { l - 1 } ^ { \\mathsf { H } }$ \n12: Estimate $[ \\hat { \\nabla } _ { \\mathbf { H } _ { l - 1 } } , \\hat { \\nabla } _ { \\mathbf { W } _ { l } } ]$ and update $\\mathbf { W } _ { l }$ \n13: Free $( \\mathbf H _ { l - 1 } ^ { \\mathsf { L } } , \\mathbf V _ { l - 1 } ^ { \\mathsf { H } } , \\Delta _ { l - 1 } , \\delta _ { l - 1 } \\big )$ . \n14: end for ", "bbox": [ 500, 496, 781, 717 ], "page_idx": 5 }, { "type": "text", "text": "maximum value after the forward pass (caching the representation of activation maps layer-bylayer), and reduces to the minimum value after the backward pass (freeing the cache layer-by-layer). Existing work (Chen et al., 2021) estimates the memory cost of activation maps by ", "bbox": [ 174, 723, 825, 765 ], "page_idx": 5 }, { "type": "text", "text": "Memory Cost $=$ Memory Utilizationafter forward − Memory Utilizationafter backward, where existing deep learning tools provide $\\mathsf { A P I s } ^ { 1 0 }$ to estimate the memory utilization. ", "bbox": [ 173, 768, 756, 803 ], "page_idx": 5 }, { "type": "text", "text": "The theoretical compression rate $R$ of DIVISION is given in Appendix G, where general cases of convolutional neural networks and multi-layer perception are considered for the estimation. For the model architectures in our experiments, we have $R _ { \\mathrm { R e s N e t - 5 0 } } , R _ { \\mathrm { W R N - 5 0 - 2 } } \\geq 1 0 . 3 5$ . ", "bbox": [ 174, 808, 821, 852 ], "page_idx": 5 }, { "type": "image", "img_path": "images/79bd97596a52de0297dfdde60309cfc0ce3fd8c03be7a093d5f384a7932aa30f.jpg", "image_caption": [], "image_footnote": [], "bbox": [ 181, 99, 815, 224 ], "page_idx": 6 }, { "type": "text", "text": "5 EVALUATION OF DIVISION ", "text_level": 1, "bbox": [ 174, 241, 442, 257 ], "page_idx": 6 }, { "type": "text", "text": "We conduct the experiments to evaluate DIVISION by answering the following research questions. RQ1: How does DIVISION perform compared with state-of-the-art baseline methods in terms of the model accuracy, memory cost, and training throughput? RQ2: Does the strategy of dual-precision compression contribute to DIVISION? RQ3: What is the effect of hyper-parameters on DIVISION? ", "bbox": [ 174, 268, 825, 324 ], "page_idx": 6 }, { "type": "text", "text": "The experiment setting including the datasets, baseline methods and DNN architectures is specified in Appendix H. The implementation details including the hyper-parameters of DIVISION and configuration of baseline methods are given in Appendix I. More experiments on MLPs, vision transformers, depthwise, and pointwise convolutional layers are given in Appendix K, L, and M. ", "bbox": [ 174, 332, 825, 387 ], "page_idx": 6 }, { "type": "text", "text": "5.1 EVALUATION BY MODEL ACCURACY (RQ1) ", "text_level": 1, "bbox": [ 173, 401, 522, 416 ], "page_idx": 6 }, { "type": "text", "text": "In this section, we evaluate the training methods in terms of model accuracy on the CIFAR-10, CIFAR-100 and ImageNet datasets. Specifically, DIVISION is compared with BLPA (Chakrabarti & Moseley, 2019), AC-GC (Evans & Aamodt, 2021) and ActNN (Chen et al., 2021) in Figure 5 (a)- (c), respectively, where different model architectures are considered. Here, Checkpoint and SWAP are not considered in this section because they are able to reduce the training memory without degradation of model accuracy. Overall, we have the following observations: ", "bbox": [ 173, 422, 825, 507 ], "page_idx": 6 }, { "type": "text", "text": "• DIV vs Baseline Methods: Compared with normal training, DIVISION achieves almost the same top-1 validation accuracy. In contrast, the baseline methods suffer from slightly higher validation error. This indicates DIVISION provides nearly loss-less compression of DNN training. ", "bbox": [ 176, 516, 821, 559 ], "page_idx": 6 }, { "type": "text", "text": "• Flexibility of DIV: DIVISION consistently achieves competitive model accuracy in the training of different architectures on different datasets. This indicates DIVISION is a flexible framework that can be applied to different scenarios. ", "bbox": [ 178, 561, 821, 603 ], "page_idx": 6 }, { "type": "text", "text": "• Compressibility of HFC: Note that DIVISION adopts a significantly high compression rate $1 2 \\times$ for the HFC during the training, and achieves nearly loss-less accuracy. This result indicates the HFC of activation map is highly redundant and compressible during the training. ", "bbox": [ 179, 606, 821, 648 ], "page_idx": 6 }, { "type": "text", "text": "5.2 EVALUATION BY MEMORY COST (RQ1) ", "text_level": 1, "bbox": [ 174, 666, 491, 680 ], "page_idx": 6 }, { "type": "text", "text": "We evaluate the training methods in terms of the training memory cost on the ImageNet datasest, where the configuration of our computational infrastructure is given in Appendix R. Table 1 indicates the training memory cost and practical compression rate of DIVISION and baseline methods. Moreover, DIVISION is compared with the checkpoint strategy of Megatron-LM (Shoeybi et al., 2019) in Appendix O. Overall, we have the following observations: ", "bbox": [ 174, 688, 823, 757 ], "page_idx": 6 }, { "type": "text", "text": "• DIV vs SWAP, Checkpoint & BLPA: SWAP reduces the GPU memory cost merely by transferring the overhead from GPU to CPU, which is non-effective if considering the memory utilization of both GPU and CPU. Checkpoint shows considerable memory overhead because it caches some key activation maps to reconstruct other activation maps during backward pass. BLPA is less effective than DIVISION because it relies on at least 4-bit compression. ", "bbox": [ 176, 763, 825, 833 ], "page_idx": 6 }, { "type": "text", "text": "• DIV vs AC-GC: The practical memory cost of AC-GC should be greater than the values given in Table 1. AC-GC searches the bit-width from an initial maximum value, and finalizes with an optimal bit-width. Thus, the average memory cost should be greater than that in the last epoch. ", "bbox": [ 178, 837, 823, 878 ], "page_idx": 6 }, { "type": "text", "text": "• DIV vs ActNN: DIVISION has approximately the same memory cost as ActNN. Beyond the storage of 2-bit activation maps, DIVISION has overhead for caching the LFC; and ActNN spends almost equal overhead for storing the parameters of per-group quantization. ", "bbox": [ 178, 882, 823, 924 ], "page_idx": 6 }, { "type": "table", "img_path": "images/ad0d73ea6168869d2d75f13e8e8c215bd35c506c5e5652d446cb7a1c3bd048fa.jpg", "table_caption": [ "Table 1: Memory cost $\\downarrow$ and compression rate $\\uparrow$ . Total Mem refers to total memory cost of weights, optimizer, data and activation maps. Act Mem refers to memory cost of activation maps. $O O M$ refers to out of memory. " ], "table_footnote": [], "table_body": "
ArchitectureResNet-50WRN-50-2
Batch-size6412825651264128256512
Total Mem (GB)Normal5.4610.6220.920OM7.5214.2327.680OM
SWAP5.46 (1x)10.62 (1x)20.92 (1x)0OM7.52 (1x)14.23 (1x)27.68 (1x)00M
Checkpoint1.23 (4.4x)2.16 (4.9x)4.03 (5.2x)7.761.71 (4.4x)2.65 (5.4x)4.51 (6.1x)8.25
BLPA1.15 (4.7x)2.01 (5.3x)3.72 (5.6x)7.141.87 (4.0x)2.96 (4.8x)5.15 (5.4x)9.51
AC-GC1.80 (3.0x)3.31 (3.2x)6.31 (3.3x)12.332.72 (2.8x)4.66 (3.1x)8.53 (3.2x)16.27
ActNN0.81 (6.7x)1.34 (7.9x)2.39 (8.8x)4.471.44 (5.2x)2.09 (6.8x)3.41 (8.1x)6.03
DIVISION0.82 (6.7x)1.35 (7.9x)2.41 (8.7x)4.521.45 (5.2x)2.12 (6.7x)3.44 (8.0x)6.08
Act. Mem (GB)Normal5.1410.2520.4800M6.7013.3826.750OM
SWAP5.14 (1x)10.25 (1x)20.48 (1x)00M6.70 (1x)13.38 (1x)26.75 (1x)0OM
Checkpoint0.90 (5.7x)1.80 (5.7x)3.59 (5.7x)7.180.90 (7.4x)1.80 (7.4x)3.59 (7.5x)7.18
BLPA0.82 (6.3x)1.64 (6.2x)3.28 (6.2x)6.561.06 (6.3x)2.11 (6.3x)4.22 (6.3x)8.44
AC-GC1.47 (3.5x)2.94 (3.5x)5.88 (3.5x)11.751.91 (3.5x)3.81 (3.5x)7.61 (3.5x)15.20
ActNN0.49 (10.5x)0.97 (10.6x)1.94 (10.6x)3.890.62 (10.8×)1.25 (10.7×)2.49 (10.7x)4.97
DIVISION0.49 (10.5×)0.99 (10.4×)1.97 (10.4x)3.940.64 (10.5x)1.27 (10.5x)2.52 (10.6x)5.02
", "bbox": [ 173, 131, 825, 338 ], "page_idx": 7 }, { "type": "image", "img_path": "images/8c64adb55d32edfcf6b576434633c3c4834f80f8c3a18b625cef7579f1a0723b.jpg", "image_caption": [ "Figure 6: Training throughput $\\uparrow$ of (a) Resnet-50 and (b) WRN-50-2 on the ImageNet dataset, where \\$ indicates out of memory. (c) Top-1 validation accuracy $( \\% ) \\uparrow$ of DIVISION, DIVISION w/o HFC, DIVISION w/o LFC and fixed bit-width quantization on the ImageNet dataset. " ], "image_footnote": [], "bbox": [ 178, 354, 812, 491 ], "page_idx": 7 }, { "type": "text", "text": "• Act. Maps: For normal training, the caching of activation maps takes the majority of memory cost $( > 9 0 \\%$ , growing with the mini-batch size), which is consistent with our discussion in Section 1. ", "bbox": [ 178, 537, 823, 566 ], "page_idx": 7 }, { "type": "text", "text": "• Compression rate: The activation map compression rate of DIVISION is consistently with the theoretical results $( R _ { \\mathrm { R e s N e t - } 5 0 }$ , $R _ { \\mathrm { W R N - 5 0 - 2 } } ~ \\geq ~ 1 0 . 3 5$ , see Appendix $\\mathbf { G }$ ), which is not influenced by the mini-batch size. Moreover, the overall compression rate grows with the mini-batch size. ", "bbox": [ 178, 569, 821, 611 ], "page_idx": 7 }, { "type": "text", "text": "5.3 EVALUATION BY TRAINING THROUGHPUT (RQ1) ", "text_level": 1, "bbox": [ 173, 618, 558, 632 ], "page_idx": 7 }, { "type": "text", "text": "We now evaluate the training methods in terms of the training throughput on the Imagenet dataset. Generally, the throughput indicates the running speed of a training method via counting the average number of data samples processed per second. The throughput is given by $\\frac { \\mathrm { M i n i - b a t c h ~ S i z e } } { T _ { \\mathrm { b a t c h } } }$ e , where Tbatch denotes the time consumption of single mini-batch updating. Each method is combined with the automatic mixed precision $( \\mathbf { A M P } ) ^ { 1 1 }$ to speed up the training. Figures 6 (a) and (b) show the average throughput of 20 times of mini-batch updating. Overall, we have the following observations: ", "bbox": [ 173, 637, 825, 723 ], "page_idx": 7 }, { "type": "text", "text": "• Reason for Time overhead: Compared with normal training, the time overhead of DIVISION comes from the estimation of LFC and compression of HFC. In ActNN, the overhead mainly comes from the the dynamic bit-width allocation and activation map quantization. In Checkpoint, it comes from replaying the forward process of inter-media layers. In SWAP, the overhead mainly derives from the communication cost between the CPUs and GPUs. ", "bbox": [ 176, 731, 825, 800 ], "page_idx": 7 }, { "type": "text", "text": "• DIV vs ActNN: DIVISION shows higher throughput than ActNN as a result of more simplified data compression. To be concrete, DIVISION adopts average-pooling to extract the LFC, and a fixed bit-width per-channel quantization to compress the HFC. In contrast, ActNN relies on searching optimal bit-width to match different samples, and per-group quantization based on the searched bit-width. ActNN has more complex processing, which leads to its lower throughput. ", "bbox": [ 176, 804, 825, 873 ], "page_idx": 7 }, { "type": "text", "text": "• DIV vs SWAP: SWAP is less efficient than ACT-based methods (DIVISION and ActNN), which indicates the CPU-GPU communication cost is larger than the cost of activation map processing. ", "bbox": [ 179, 876, 823, 905 ], "page_idx": 7 }, { "type": "text", "text": "5.4 EFFECT OF DUAL PRECISION STRATEGY (RQ2) ", "text_level": 1, "bbox": [ 173, 103, 545, 117 ], "page_idx": 8 }, { "type": "text", "text": "To study the effect of our proposed dual precision strategy, DIVISION is compared with three training methods: DIVISION w/o HFC: Merely caching the high-precision LFC for back-propagation. DIVISION w/o LFC: Merely caching the low-precision HFC for back-propagation. Fixed Quant: Compressing the activation maps using a fixed bit-width quantization. The experiments are conducted on the ImageNet dataset using the hyper-parameters given in Appendix S. More experiments of Fixed Quant with different bit-width are given in Appendix P. The model accuracy are given in Figure 6 (c). Overall, we have the following insights: ", "bbox": [ 173, 122, 825, 220 ], "page_idx": 8 }, { "type": "text", "text": "• LFC & Low Precision HFC: Removing either HFC or LFC from DIVISION, the training converges to far lower levels of accuracy. This indicates both the LFC and low precision HFC of activation maps are necessary for leading the training to converge to an optimal solution. • Benifits of Dual Precision: The fixed bit-width quantization fails to converge to an optimal solution. This indicates the noise caused by the fixed bit-width quantization can terribly disturb the back-propagation. DIVISION solves this problem by combining a high-precision LFC and a fixed bit-width quantization for compressing the activation maps. ", "bbox": [ 174, 227, 825, 320 ], "page_idx": 8 }, { "type": "text", "text": "", "bbox": [ 184, 314, 620, 329 ], "page_idx": 8 }, { "type": "text", "text": "5.5 HYPER-PARAMETER TUNING FOR DIVISION (RQ3) ", "text_level": 1, "bbox": [ 173, 333, 583, 348 ], "page_idx": 8 }, { "type": "text", "text": "We study the effect of hyper-parameters $B$ (block-size) and $Q$ (bitwidth) on the accuracy and compression rate. Specifically, we adopt DIVISION to train ResNet-18 on the CIFAR-10 dataset with $B \\in$ $\\{ 8 , 1 2 , 1 8 \\}$ and $Q \\in \\{ 2 , 4 , 8 \\}$ . The accuracy versus compression rate is shown in Figure 7 (a). Overall, we have the following insights: ", "bbox": [ 174, 352, 627, 422 ], "page_idx": 8 }, { "type": "text", "text": "• Effect of $Q$ : The accuracy is stable (consistently nearly $9 5 \\%$ ) when reducing the precision-level of HFC $Q$ reduces from 8 to 2). This indicates DIVISION only requires approximate values of HFC during backward propagation. \n• Effect of $B$ : Lower-precision LFC for backward propagation leads to significant degradation of accuracy (as $B$ grows from 8 to 18). This is because DIVISION relies on a high-precision LFC to reconstruct the activation maps for backward propagation. \n• Optimal Setting: DIVISION has optimal accuracy-compression trade-off taking $B = 8$ and $Q = 2$ , where the degradation of accuracy is less than $0 . 4 \\%$ . According to more empirical studies in Appendix N, $B { = } 8$ and $Q = 2$ can be a default setting effective for most of model architectures and datasets. ", "bbox": [ 176, 426, 627, 604 ], "page_idx": 8 }, { "type": "text", "text": "Note that normal training can be accelerated by the automatic mixed precision (AMP) (Micikevicius et al., 2017) without loss of accuracy. ", "bbox": [ 173, 609, 625, 637 ], "page_idx": 8 }, { "type": "image", "img_path": "images/30d185c1054d7c87522d141914160b9525a69c3458480157bec28ed00590633f.jpg", "image_caption": [], "image_footnote": [], "bbox": [ 643, 320, 821, 424 ], "page_idx": 8 }, { "type": "image", "img_path": "images/be1a685a31b16109bac6a2fd8be0957874916ea1cde3aeac9d6cdfaee3f1773d.jpg", "image_caption": [ "(a) Effect of Hyper-parameters. ", "(b) Effect of AMP. Figure 7: (a) Top-1 Accuracy and compression rate of DIVISION in different settings. (b) Top-1 accuracy and training throughput of DIVISION w/ and w/o AMP. " ], "image_footnote": [], "bbox": [ 648, 439, 821, 542 ], "page_idx": 8 }, { "type": "text", "text": "We study whether AMP can speed up DIVISION without loss of accuracy. Specifically, we follow the setting of DIVISION $B = 8$ , $Q = 2$ to train ResNet-18 on the CIFAR-10 dataset. The accuracy and training throughput of DIVISION w/ and w/o AMP are shown in Figure 7 (b). More experiments with different mini-batch size are given in Appendix Q. It is observed that AMP can significantly speed up the DIVISION when MiniBatch-size $\\geq 2 5 6$ without loss of model accuracy. This indicates DIVISION has the potential to be applied to scenarios where both time and memory are limited. ", "bbox": [ 174, 637, 825, 720 ], "page_idx": 8 }, { "type": "text", "text": "6 CONCLUSION ", "text_level": 1, "bbox": [ 174, 729, 320, 744 ], "page_idx": 8 }, { "type": "text", "text": "In this work, we propose a simple framework of activation compressed training. Our framework is motivated by an instructive observation: DNN backward propagation mainly depends on the LFC of the activation maps, while the majority of memory is for the storage of HFC during the training. This indicates back-propagation mainly utilizes the LFC to estimate the gradient, while the HFC is highly redundant and compressible. Following this direction, our proposed DIVISION compresses the activation maps into dual precision representations: high-precision LFC and low-precision HFC, according to their contributions to the back-propagation. This dual precision compression can significantly reduce the memory cost of activation maps without disturbing the training. ", "bbox": [ 174, 750, 825, 861 ], "page_idx": 8 }, { "type": "text", "text": "Different from the existing work of ACT, DIVISION is a simple and transparent framework, where the simplicity enables efficient compression and decompression; and transparency allows us to understand the compressible (HFC) and non-compressible factors (LFC) during DNN training. To this end, we hope our work could provide some inspiration for the compression of DNN training. ", "bbox": [ 174, 867, 823, 924 ], "page_idx": 8 }, { "type": "text", "text": "REFERENCES ", "text_level": 1, "bbox": [ 176, 102, 285, 117 ], "page_idx": 9 }, { "type": "text", "text": "Ayan Chakrabarti and Benjamin Moseley. Backprop with approximate activations for memoryefficient network training. Advances in Neural Information Processing Systems, 32, 2019. ", "bbox": [ 173, 126, 821, 155 ], "page_idx": 9 }, { "type": "text", "text": "Jianfei Chen, Yu Gai, Zhewei Yao, Michael W Mahoney, and Joseph E Gonzalez. A statistical framework for low-bitwidth training of deep neural networks. Advances in Neural Information Processing Systems, 33:883–894, 2020. ", "bbox": [ 173, 161, 821, 205 ], "page_idx": 9 }, { "type": "text", "text": "Jianfei Chen, Lianmin Zheng, Zhewei Yao, Dequan Wang, Ion Stoica, Michael Mahoney, and Joseph Gonzalez. Actnn: Reducing training memory footprint via 2-bit activation compressed training. In International Conference on Machine Learning, pp. 1803–1813. PMLR, 2021. ", "bbox": [ 176, 213, 823, 257 ], "page_idx": 9 }, { "type": "text", "text": "Tianqi Chen, Bing Xu, Chiyuan Zhang, and Carlos Guestrin. Training deep nets with sublinear memory cost. arXiv preprint arXiv:1604.06174, 2016. ", "bbox": [ 169, 265, 823, 294 ], "page_idx": 9 }, { "type": "text", "text": "Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248–255. Ieee, 2009. ", "bbox": [ 174, 301, 823, 344 ], "page_idx": 9 }, { "type": "text", "text": "Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018. ", "bbox": [ 169, 352, 821, 382 ], "page_idx": 9 }, { "type": "text", "text": "Paulo SR Diniz, Eduardo AB Da Silva, and Sergio L Netto. Digital signal processing: system analysis and design. Cambridge University Press, 2010. ", "bbox": [ 171, 390, 823, 419 ], "page_idx": 9 }, { "type": "text", "text": "Dheeru Dua and Casey Graff. UCI machine learning repository, 2017. URL http://archive. ics.uci.edu/ml. ", "bbox": [ 173, 426, 820, 455 ], "page_idx": 9 }, { "type": "text", "text": "R David Evans and Tor Aamodt. Ac-gc: Lossy activation compression with guaranteed convergence. Advances in Neural Information Processing Systems, 34:27434–27448, 2021. ", "bbox": [ 171, 464, 821, 493 ], "page_idx": 9 }, { "type": "text", "text": "Fangcheng Fu, Yuzheng Hu, Yihan He, Jiawei Jiang, Yingxia Shao, Ce Zhang, and Bin Cui. Don’t waste your bits! squeeze activations and gradients for deep neural networks via tinyscript. In International Conference on Machine Learning, pp. 3304–3314. PMLR, 2020. ", "bbox": [ 176, 501, 821, 545 ], "page_idx": 9 }, { "type": "text", "text": "Georgios Georgiadis. Accelerating convolutional neural networks via activation map compression. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 7085–7095, 2019. ", "bbox": [ 174, 551, 823, 594 ], "page_idx": 9 }, { "type": "text", "text": "Priya Goyal, Piotr Dollar, Ross Girshick, Pieter Noordhuis, Lukasz Wesolowski, Aapo Kyrola, An-´ drew Tulloch, Yangqing Jia, and Kaiming He. Accurate, large minibatch sgd: Training imagenet in 1 hour. arXiv preprint arXiv:1706.02677, 2017. ", "bbox": [ 176, 603, 823, 646 ], "page_idx": 9 }, { "type": "text", "text": "Audrunas Gruslys, Remi Munos, Ivo Danihelka, Marc Lanctot, and Alex Graves. Memory-efficient ´ backpropagation through time. Advances in Neural Information Processing Systems, 29, 2016. ", "bbox": [ 171, 654, 823, 683 ], "page_idx": 9 }, { "type": "text", "text": "Suyog Gupta, Ankur Agrawal, Kailash Gopalakrishnan, and Pritish Narayanan. Deep learning with limited numerical precision. In International conference on machine learning, pp. 1737–1746. PMLR, 2015. ", "bbox": [ 174, 690, 823, 733 ], "page_idx": 9 }, { "type": "text", "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. ", "bbox": [ 174, 742, 823, 785 ], "page_idx": 9 }, { "type": "text", "text": "Roger A Horn and Charles R Johnson. Matrix analysis. Cambridge university press, 2012. ", "bbox": [ 171, 792, 769, 809 ], "page_idx": 9 }, { "type": "text", "text": "Chien-Chin Huang, Gu Jin, and Jinyang Li. Swapadvisor: Pushing deep learning beyond the gpu memory limit via smart swapping. In Proceedings of the Twenty-Fifth International Conference on Architectural Support for Programming Languages and Operating Systems, pp. 1341–1355, 2020. ", "bbox": [ 174, 815, 825, 872 ], "page_idx": 9 }, { "type": "text", "text": "Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4700–4708, 2017. ", "bbox": [ 176, 881, 823, 924 ], "page_idx": 9 }, { "type": "text", "text": "Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009. ", "bbox": [ 173, 103, 823, 132 ], "page_idx": 10 }, { "type": "text", "text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. Advances in neural information processing systems, 25, 2012. ", "bbox": [ 174, 140, 821, 170 ], "page_idx": 10 }, { "type": "text", "text": "Xiaofan Lin, Cong Zhao, and Wei Pan. Towards accurate binary convolutional neural network. Advances in neural information processing systems, 30, 2017. ", "bbox": [ 173, 178, 821, 208 ], "page_idx": 10 }, { "type": "text", "text": "Xiaoxuan Liu, Lianmin Zheng, Dequan Wang, Yukuo Cen, Weize Chen, Xu Han, Jianfei Chen, Zhiyuan Liu, Jie Tang, Joey Gonzalez, et al. Gact: Activation compressed training for generic network architectures. In International Conference on Machine Learning, pp. 14139–14152. PMLR, 2022. ", "bbox": [ 173, 215, 825, 272 ], "page_idx": 10 }, { "type": "text", "text": "Ze Liu, Yutong Lin, Yue Cao, Han Hu, Yixuan Wei, Zheng Zhang, Stephen Lin, and Baining Guo. Swin transformer: Hierarchical vision transformer using shifted windows. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 10012–10022, 2021a. ", "bbox": [ 174, 281, 825, 325 ], "page_idx": 10 }, { "type": "text", "text": "Zirui Liu, Kaixiong Zhou, Fan Yang, Li Li, Rui Chen, and Xia Hu. Exact: Scalable graph neural networks training via extreme activation compression. In International Conference on Learning Representations, 2021b. ", "bbox": [ 174, 333, 825, 376 ], "page_idx": 10 }, { "type": "text", "text": "Vijay Madisetti. The digital signal processing handbook. CRC press, 1997. ", "bbox": [ 174, 385, 669, 401 ], "page_idx": 10 }, { "type": "text", "text": "Paulius Micikevicius, Sharan Narang, Jonah Alben, Gregory Diamos, Erich Elsen, David Garcia, Boris Ginsburg, Michael Houston, Oleksii Kuchaiev, Ganesh Venkatesh, et al. Mixed precision training. arXiv preprint arXiv:1710.03740, 2017. ", "bbox": [ 174, 409, 825, 452 ], "page_idx": 10 }, { "type": "text", "text": "Zizheng Pan, Peng Chen, Haoyu He, Jing Liu, Jianfei Cai, and Bohan Zhuang. Mesa: A memorysaving training framework for transformers. arXiv preprint arXiv:2111.11124, 2021. ", "bbox": [ 173, 460, 823, 489 ], "page_idx": 10 }, { "type": "text", "text": "K Ramamohan Rao and Ping Yip. Discrete cosine transform: algorithms, advantages, applications. Academic press, 2014. ", "bbox": [ 174, 497, 825, 526 ], "page_idx": 10 }, { "type": "text", "text": "Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 779–788, 2016. ", "bbox": [ 173, 535, 825, 579 ], "page_idx": 10 }, { "type": "text", "text": "Mohammad Shoeybi, Mostofa Patwary, Raul Puri, Patrick LeGresley, Jared Casper, and Bryan Catanzaro. Megatron-lm: Training multi-billion parameter language models using model parallelism. arXiv preprint arXiv:1909.08053, 2019. ", "bbox": [ 176, 587, 825, 631 ], "page_idx": 10 }, { "type": "text", "text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. ", "bbox": [ 171, 638, 823, 667 ], "page_idx": 10 }, { "type": "text", "text": "Duraisamy Sundararajan. The discrete Fourier transform: theory, algorithms and applications. World Scientific, 2001. ", "bbox": [ 171, 676, 823, 705 ], "page_idx": 10 }, { "type": "text", "text": "Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1–9, 2015. ", "bbox": [ 174, 714, 825, 758 ], "page_idx": 10 }, { "type": "text", "text": "Mingxing Tan and Quoc Le. Efficientnet: Rethinking model scaling for convolutional neural networks. In International conference on machine learning, pp. 6105–6114. PMLR, 2019. ", "bbox": [ 169, 765, 821, 796 ], "page_idx": 10 }, { "type": "text", "text": "Han Vanholder. Efficient inference with tensorrt. In GPU Technology Conference, volume 1, pp. 2, 2016. ", "bbox": [ 171, 804, 823, 833 ], "page_idx": 10 }, { "type": "text", "text": "Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017. ", "bbox": [ 176, 842, 823, 885 ], "page_idx": 10 }, { "type": "text", "text": "APPENDIX ", "text_level": 1, "bbox": [ 176, 102, 264, 117 ], "page_idx": 11 }, { "type": "text", "text": "A IMPLEMENTATION DETAILS OF SECTION 3 ", "text_level": 1, "bbox": [ 174, 137, 563, 155 ], "page_idx": 11 }, { "type": "text", "text": "We give the details of the experiment in Section 3. Without loss of generality, the experiment is conducted on the CIFAR-10 dataset using ResNet-18, DenseNet-121 and ShuffleNet-V2. During the backward propagation of normal training, the gradient of each layer $l$ is estimated by ", "bbox": [ 173, 171, 825, 213 ], "page_idx": 11 }, { "type": "equation", "img_path": "images/0e9b9a1c3c30500af8a0cc367141f8988c246a846088200edc19bef036593606.jpg", "text": "$$\n[ \\hat { \\nabla } _ { \\mathbf { H } _ { l - 1 } } , \\hat { \\nabla } _ { \\mathbf { W } _ { l } } ] = \\operatorname { b a c k w a r d } ( \\hat { \\nabla } _ { \\mathbf { H } _ { l } } , \\mathbf { H } _ { l } , \\mathbf { W } _ { l } )\n$$", "text_format": "latex", "bbox": [ 352, 215, 643, 236 ], "page_idx": 11 }, { "type": "text", "text": "For LFC-ACT, the gradient is estimated by ", "bbox": [ 174, 236, 464, 251 ], "page_idx": 11 }, { "type": "equation", "img_path": "images/905f9c0c26d3eee08102bbc573042fdc1c7e32f774943474ddfe63cdec425395.jpg", "text": "$$\n[ \\hat { \\nabla } _ { \\mathbf { H } _ { l - 1 } } , \\hat { \\nabla } _ { \\mathbf { W } _ { l } } ] = \\operatorname { b a c k w a r d } ( \\hat { \\nabla } _ { \\mathbf { H } _ { l } } , \\mathbf { H } _ { l } ^ { \\perp } , \\mathbf { W } _ { l } ) ,\n$$", "text_format": "latex", "bbox": [ 349, 252, 647, 272 ], "page_idx": 11 }, { "type": "text", "text": "where HFC-ACT denotes the HFC of $\\mathbf { H } _ { l }$ ; for HFC-ACT, the gradient is estimated by ", "bbox": [ 171, 272, 745, 287 ], "page_idx": 11 }, { "type": "equation", "img_path": "images/a67d1910ee05fd0b0b0c7af1c247554926d4c93cd38c16864d7e6be9363535dd.jpg", "text": "$$\n[ \\hat { \\nabla } _ { \\mathbf { H } _ { l - 1 } } , \\hat { \\nabla } _ { \\mathbf { W } _ { l } } ] = \\operatorname { b a c k w a r d } ( \\hat { \\nabla } _ { \\mathbf { H } _ { l } } , \\mathbf { H } _ { l } ^ { \\mathrm { H } } , \\mathbf { W } _ { l } ) ,\n$$", "text_format": "latex", "bbox": [ 348, 289, 647, 309 ], "page_idx": 11 }, { "type": "text", "text": "where $\\mathbf { H } _ { l } ^ { \\mathsf { H } }$ denotes the HFC of $\\mathbf { H } _ { l }$ . Note that Equations (13) and (14) causes the distortion of backward propagation in LFC-ACT and HFC-ACT, respectively. The objective of this experiment is to investigate whether this distortion of back-propagation may be powerful enough to lead training to a non-optimal solution. The hyper-parameter setting of the training is given in Table 2. ", "bbox": [ 173, 311, 825, 369 ], "page_idx": 11 }, { "type": "table", "img_path": "images/6b85f8ff26acc25d781133dc5065a805d98a7ccdb4246276b3a49c18a23b46aa.jpg", "table_caption": [ "Table 2: Hyper-parameter setting. " ], "table_footnote": [], "table_body": "
ArchitectureResNet-18DenseNet-121ShuffleNet-V2
Epoch100100100
Batch-size256256256
Initial LR0.10.10.1
LR schedulerStep LRStep LRStep LR
Weight-decay0.00050.00050.0005
OptimizerSGDSGDSGD
SGD Momentum0.90.90.9
Ratio of LFC (W/N)0.30.30.5
", "bbox": [ 256, 411, 740, 542 ], "page_idx": 11 }, { "type": "text", "text": "B PROOF OF THEOREM 1 ", "text_level": 1, "bbox": [ 174, 578, 397, 594 ], "page_idx": 11 }, { "type": "text", "text": "We prove Theorem 1 in this section. ", "bbox": [ 176, 611, 411, 627 ], "page_idx": 11 }, { "type": "text", "text": "Theorem 1 During the backward pass of a convolutional layer $l$ , $\\mathrm { G E B } _ { l } ^ { \\mathsf { L } }$ and $\\mathrm { G E B } _ { l } ^ { \\mathsf { H } }$ satisfy ", "bbox": [ 169, 633, 774, 650 ], "page_idx": 11 }, { "type": "equation", "img_path": "images/c2076018208474f79f6ed64ffbf390e8a0f7ba19a084c004b9320cedc66f5658.jpg", "text": "$$\n\\mathbf { G E B } _ { l } ^ { \\mathbf { L } } - \\mathbf { G E B } _ { l } ^ { \\mathsf { H } } = \\left( \\alpha _ { l , l } | | \\mathbf { H } _ { l - 1 } ^ { \\mathsf { T } } | | _ { F } + \\beta _ { l } \\right) ( \\lambda _ { l } ^ { \\mathsf { H } } - \\lambda _ { l } ^ { \\mathsf { L } } ) + | | \\mathbf { H } _ { l - 1 } ^ { \\mathsf { T } } | | _ { F } \\sum _ { i = l + 1 } ^ { L } \\alpha _ { l , i } ( \\lambda _ { i } ^ { \\mathsf { H } } - \\lambda _ { i } ^ { \\mathsf { L } } ) \\prod _ { j = l } ^ { i - 1 } \\gamma _ { j } ,\n$$", "text_format": "latex", "bbox": [ 202, 660, 766, 705 ], "page_idx": 11 }, { "type": "text", "text": "where $\\alpha _ { l , i } , \\beta _ { l } , \\gamma _ { l } \\ > \\ 0$ for $1 \\leq l , i \\leq L$ are given by Equation (24); $\\lambda _ { l } ^ { \\mathbf { L } } = | | \\widetilde { \\mathbf { H } } _ { l } \\odot \\mathbf { M } | | _ { F }$ ; $\\lambda _ { l } ^ { \\mathsf { H } } =$ \n$| | \\widetilde { \\mathbf { H } } _ { l } \\odot ( \\mathbf { 1 } - \\mathbf { M } ) | | _ { F } ; \\widetilde { \\mathbf { H } } _ { l } = \\mathrm { D C T } ( \\mathbf { H } _ { l } )$ ; and M denotes the loss-pass mask given by Equation (4). ", "bbox": [ 174, 715, 826, 751 ], "page_idx": 11 }, { "type": "text", "text": "Proof. For simplicity of derivation, we study the case with a single input channel and output channel number. In this case, $\\mathbf { H } _ { l }$ and $\\mathbf { W } _ { l }$ are 2-D matrix for each layer $l$ , where $1 \\le l \\le L$ . The backward propagation of a convolutional layer is given by ", "bbox": [ 173, 775, 826, 818 ], "page_idx": 11 }, { "type": "equation", "img_path": "images/5ac7325793389868bf4dc131a9ca11ca98f280a3d69be2f5979a1bf3e7bd2458.jpg", "text": "$$\n\\begin{array} { r l } & { \\hat { \\nabla } _ { \\mathbf Z _ { l } } = \\hat { \\nabla } _ { \\mathbf Z _ { l + 1 } } * \\mathbf W _ { l + 1 } ^ { \\mathrm { r o t } } \\odot \\sigma ^ { \\prime } ( \\hat { \\mathbf Z } _ { l } ) , } \\\\ & { \\hat { \\nabla } _ { \\mathbf W _ { l } } = \\hat { \\nabla } _ { \\mathbf Z _ { l } } * \\hat { \\mathbf H } _ { l - 1 } ^ { \\mathrm { T } } , } \\end{array}\n$$", "text_format": "latex", "bbox": [ 383, 825, 611, 872 ], "page_idx": 11 }, { "type": "text", "text": "where $^ *$ denotes a convolutional operation; $\\hat { \\mathbf { Z } } _ { l } = \\mathbf { W } _ { l } * \\hat { \\mathbf { H } } _ { l - 1 } + b _ { l } ; b _ { l }$ denotes the bias of layer $l$ ; and $\\mathbf { W } _ { l } ^ { \\mathsf { r o t } }$ denotes to rotate $\\mathbf { W } _ { l }$ by $1 8 0 ^ { \\circ }$ . The case of multiple input and output channels can be proved in an analogous way, which is omitted in this work. ", "bbox": [ 174, 880, 823, 924 ], "page_idx": 11 }, { "type": "text", "text": "According to Equation (16), we have the gradient of $\\mathbf { Z } _ { l }$ given by ", "bbox": [ 173, 103, 598, 119 ], "page_idx": 12 }, { "type": "equation", "img_path": "images/781abd1e7fd1daeacca27d355a6715caeb4c5b1ea1d7bf80d07f8e424ef19bd9.jpg", "text": "$$\n\\begin{array} { r l } & { \\hat { \\nabla } _ { \\mathbf { Z } _ { l } } - \\nabla _ { \\mathbf { Z } _ { l } } } \\\\ & { = \\hat { \\nabla } _ { \\mathbf { Z } _ { l + 1 } } * \\mathbf { W } _ { l + 1 } ^ { \\mathrm { r o t } } \\odot \\boldsymbol { \\sigma } ^ { \\prime } ( \\hat { \\mathbf { Z } } _ { l } ) - \\nabla _ { \\mathbf { Z } _ { l + 1 } } * \\mathbf { W } _ { l + 1 } ^ { \\mathrm { r o t } } \\odot \\boldsymbol { \\sigma } ^ { \\prime } ( \\mathbf { Z } _ { l } ) , } \\\\ & { = \\hat { \\nabla } _ { \\mathbf { Z } _ { l + \\frac { 1 } { 7 } } } \\mathbf { W } _ { l + 1 } ^ { \\mathrm { r o t } } \\odot \\boldsymbol { \\sigma } ^ { \\prime } ( \\hat { \\mathbf { Z } } _ { l } ) - \\hat { \\nabla } _ { \\mathbf { Z } _ { l + \\frac { 1 } { 7 } } } \\mathbf { W } _ { l + 1 } ^ { \\mathrm { r o t } } \\odot \\boldsymbol { \\sigma } ^ { \\prime } ( \\mathbf { Z } _ { l } ) + \\hat { \\nabla } _ { \\mathbf { Z } _ { l + \\frac { 1 } { 7 } } } \\mathbf { W } _ { l + 1 } ^ { \\mathrm { r o t } } \\odot \\boldsymbol { \\sigma } ^ { \\prime } ( \\mathbf { Z } _ { l } ) - \\nabla _ { \\mathbf { Z } _ { l + 1 } } * \\mathbf { W } _ { l + 1 } ^ { \\mathrm { r o t } } \\odot \\boldsymbol { \\sigma } ^ { \\prime } ( \\mathbf { Z } _ { l } ) } \\\\ & { = \\hat { \\nabla } _ { \\mathbf { Z } _ { l + 1 } } * \\mathbf { W } _ { l + 1 } ^ { \\mathrm { r o t } } \\odot \\left[ \\boldsymbol { \\sigma } ^ { \\prime } ( \\hat { \\mathbf { Z } } _ { l } ) - \\boldsymbol { \\sigma } ^ { \\prime } ( \\mathbf { Z } _ { l } ) \\right] + ( \\hat { \\nabla } _ { \\mathbf { Z } _ { l + 1 } } - \\nabla _ { \\mathbf { Z } _ { l + 1 } } ) * \\mathbf { W } _ { l + 1 } ^ { \\mathrm { r o t } } \\odot \\boldsymbol { \\sigma } ^ { \\prime } ( \\mathbf { Z } _ { l } ) . } \\end{array}\n$$", "text_format": "latex", "bbox": [ 171, 125, 816, 212 ], "page_idx": 12 }, { "type": "text", "text": "For the activation functions $\\mathrm { R e L u } ( \\cdot )$ , LeakyReLu $( \\cdot )$ , Sigmoid $( \\cdot )$ , $\\operatorname { T a n h } ( { \\cdot } )$ and SoftPlus(·), the gradient $\\sigma ^ { \\prime } ( \\cdot )$ satisfies $| \\sigma ^ { \\prime \\prime } ( \\cdot ) | \\leq 1$ in the differentable domains. Note that we have $| | \\mathbf { W } _ { l ^ { * } } \\mathbf { H } _ { l - 1 } | | _ { F } \\leq$ $( K _ { l } + N _ { l } - 1 ) | | \\mathbf { W } _ { l } | | _ { F } | | \\mathbf { H } _ { l - 1 } | | _ { F }$ according to Corollary 1. $| | \\boldsymbol { \\sigma } ^ { \\prime } ( \\hat { \\mathbf { Z } } _ { l } ) - \\boldsymbol { \\sigma } ^ { \\prime } ( { \\mathbf { Z } } _ { l } ) | | _ { F }$ satisfies ", "bbox": [ 173, 215, 825, 263 ], "page_idx": 12 }, { "type": "equation", "img_path": "images/f88a8e87ecbcf3fa11c5802c7a739a2d8fa5e06b44cb54b600777b19c3920a22.jpg", "text": "$$\n| | \\sigma ^ { \\prime } ( \\hat { \\mathbf { Z } } _ { l } ) - \\sigma ^ { \\prime } ( \\mathbf { Z } _ { l } ) | | _ { F } \\leq | | \\hat { \\mathbf { Z } } _ { l } - \\mathbf { Z } _ { l } | | _ { F } \\leq \\left( K _ { l } + N _ { l } - 1 \\right) | | \\hat { \\mathbf { H } } _ { l - 1 } - \\mathbf { H } _ { l - 1 } | | _ { F } | | \\mathbf { W } _ { l } ^ { \\prime } | | _ { F } ,\n$$", "text_format": "latex", "bbox": [ 227, 268, 769, 289 ], "page_idx": 12 }, { "type": "text", "text": "where $K _ { l }$ and $N _ { l }$ denote the size of convolutional kernel $\\mathbf { W } _ { l }$ and activation map $\\mathbf { H } _ { l }$ in layer $l$ , respectively. After taking Equation (18) into Equation (17), we have ", "bbox": [ 173, 296, 825, 325 ], "page_idx": 12 }, { "type": "equation", "img_path": "images/aaaa4bc6c492c9611fc203085fd515ceb05106ec7b2663ab7ec774e537fa98ff.jpg", "text": "$$\n\\begin{array} { r l } & { \\| \\hat { \\nabla } _ { \\mathbf { Z } _ { l } } - \\nabla _ { \\mathbf { Z } _ { l } } \\| _ { F } \\leq ( K _ { l } + N _ { l } - 1 ) \\| \\hat { \\nabla } _ { \\mathbf { Z } _ { l + 1 } } \\vert \\vert \\hat { \\mathbf { V } } \\mathbf { Z } _ { l + 1 } \\vert \\vert _ { F } \\vert \\vert \\boldsymbol { \\sigma } ^ { \\prime } ( \\hat { \\mathbf { Z } } _ { l } ) - \\boldsymbol { \\sigma } ^ { \\prime } ( \\mathbf { Z } _ { l } ) \\vert \\vert _ { F } } \\\\ & \\phantom { \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad + ( K _ { l } + N _ { l } - 1 ) \\vert \\vert \\hat { \\nabla } _ { \\mathbf { Z } _ { l + 1 } } - \\nabla _ { \\mathbf { Z } _ { l + 1 } } \\vert \\vert _ { F } \\vert \\vert \\mathbf { W } _ { l + 1 } ^ { \\mathrm { r o t } } \\vert \\vert _ { F } \\vert \\vert \\boldsymbol { \\sigma } ^ { \\prime } ( \\mathbf { Z } _ { l } ) \\vert \\vert _ { F } , } \\\\ & \\phantom { \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad } \\\\ & \\phantom { \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad } \\\\ & \\phantom { \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad + ( K _ { l } + N _ { l } - 1 ) \\vert \\vert \\hat { \\mathbf { V } } \\mathbf { Z } _ { l + 1 } \\vert \\vert _ { F } \\vert \\vert \\mathbf { W } _ { l + 1 } ^ { \\mathrm { r o t } } \\vert \\vert _ { F } \\vert \\vert \\mathbf { H } _ { l - 1 } - \\mathbf { H } _ { l - 1 } \\vert \\vert _ { F } \\vert \\vert \\mathbf { W } _ { l } ^ { \\prime } \\vert \\vert _ { F } } \\\\ & \\phantom \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\end{array}\n$$", "text_format": "latex", "bbox": [ 223, 330, 772, 440 ], "page_idx": 12 }, { "type": "text", "text": "where $\\eta _ { l }$ and $\\gamma _ { l }$ are given by ", "bbox": [ 174, 444, 362, 459 ], "page_idx": 12 }, { "type": "equation", "img_path": "images/0bb8aba36de9bd91007e943e2f6f5af73516ed29c080cd4721423fb477283d78.jpg", "text": "$$\n\\begin{array} { r l } & { \\eta _ { l } = ( K _ { l } + N _ { l } - 1 ) ^ { 2 } | | \\hat { \\nabla } _ { \\mathbf { Z } _ { l + 1 } } | | _ { F } | | \\mathbf { W } _ { l + 1 } | | _ { F } | | \\mathbf { W } _ { l } ^ { \\prime } | | _ { F } ; } \\\\ & { \\gamma _ { l } = ( K _ { l } + N _ { l } - 1 ) | | \\mathbf { W } _ { l + 1 } | | _ { F } | | \\sigma ^ { \\prime } ( \\mathbf { Z } _ { l } ) | | _ { F } ; } \\end{array}\n$$", "text_format": "latex", "bbox": [ 326, 465, 669, 508 ], "page_idx": 12 }, { "type": "text", "text": "the value $\\eta _ { l }$ and $\\gamma _ { l }$ depend on the model weight before backward propagation, which is constant with respect to the gradient. Iterate Equation (19) until $l = L$ where $| | \\hat { \\nabla } _ { \\mathbf { Z } _ { L } } - \\nabla _ { \\mathbf { Z } _ { L } } | | _ { F } \\leq \\eta _ { L } | | \\hat { \\mathbf { H } } _ { L - 1 } - $ $\\mathbf { H } _ { L - 1 } | | _ { F }$ . In this way, we have ", "bbox": [ 174, 512, 825, 558 ], "page_idx": 12 }, { "type": "equation", "img_path": "images/fdd10e0fd1d7bc5c56431d6f690a225c9d1a73e06cb204ae263761da5dc7cc56.jpg", "text": "$$\n\\vert \\vert \\hat { \\nabla } _ { \\mathbf { Z } _ { l } } - \\nabla _ { \\mathbf { Z } _ { l } } \\vert \\vert _ { F } \\leq \\eta _ { l } \\vert \\vert \\hat { \\mathbf { H } } _ { l - 1 } - \\mathbf { H } _ { l - 1 } \\vert \\vert _ { F } + \\sum _ { i = l + 1 } ^ { L } \\eta _ { i } \\vert \\vert \\hat { \\mathbf { H } } _ { i - 1 } - \\mathbf { H } _ { i - 1 } \\vert \\vert _ { F } \\prod _ { j = l } ^ { i - 1 } \\gamma _ { j } .\n$$", "text_format": "latex", "bbox": [ 256, 565, 730, 611 ], "page_idx": 12 }, { "type": "text", "text": "According to Equation (16), we have the gradient of $\\mathbf { W } _ { l }$ given by ", "bbox": [ 174, 625, 606, 640 ], "page_idx": 12 }, { "type": "equation", "img_path": "images/30cf89424935f4a298e2c277c99b5cc18a4be840933e72dc43d665a40549af1b.jpg", "text": "$$\n\\begin{array} { r l } & { \\hat { \\nabla } _ { \\mathbf { W } _ { l } } - \\nabla _ { \\mathbf { W } _ { l } } = \\hat { \\nabla } _ { \\mathbf { Z } _ { l } } * \\hat { \\mathbf { H } } _ { l - 1 } ^ { \\mathsf { T } } - \\nabla _ { \\mathbf { Z } _ { l } } * \\mathbf { H } _ { l - 1 } ^ { \\mathsf { T } } , } \\\\ & { \\quad \\quad \\quad \\quad = \\hat { \\nabla } _ { \\mathbf { Z } _ { l } } * \\hat { \\mathbf { H } } _ { l - 1 } ^ { \\mathsf { T } } - \\hat { \\nabla } _ { \\mathbf { Z } _ { l } } * \\mathbf { H } _ { l - 1 } ^ { \\mathsf { T } } + \\hat { \\nabla } _ { \\mathbf { Z } _ { l } } * \\mathbf { H } _ { l - 1 } ^ { \\mathsf { T } } - \\nabla _ { \\mathbf { Z } _ { l } } * \\mathbf { H } _ { l - 1 } ^ { \\mathsf { T } } , } \\\\ & { \\quad \\quad \\quad \\quad = \\hat { \\nabla } _ { \\mathbf { Z } _ { l } } * ( \\hat { \\mathbf { H } } _ { l - 1 } ^ { \\mathsf { T } } - \\mathbf { H } _ { l - 1 } ^ { \\mathsf { T } } ) + ( \\hat { \\nabla } _ { \\mathbf { Z } _ { l } } - \\nabla _ { \\mathbf { Z } _ { l } } ) * \\mathbf { H } _ { l - 1 } ^ { \\mathsf { T } } . } \\end{array}\n$$", "text_format": "latex", "bbox": [ 248, 646, 746, 713 ], "page_idx": 12 }, { "type": "text", "text": "Taking Equation (21) into Equation (22), we have ", "bbox": [ 173, 723, 501, 739 ], "page_idx": 12 }, { "type": "equation", "img_path": "images/57839fabcacbedd3e8d8143471d16d02843c828eb3731beed03080bd4c862af0.jpg", "text": "$$\n\\begin{array} { r l } & { \\| \\hat { \\nabla } _ { \\mathbf { W } _ { l } } - \\nabla _ { \\mathbf { W } _ { l } } \\| _ { F } } \\\\ & { \\leq ( K _ { l } + N _ { l } - 1 ) \\| \\hat { \\nabla } _ { \\mathbf { Z } _ { \\mathit { t } } } | | \\hat { \\mathbf { H } } _ { l - 1 } ^ { \\mathsf { T } } - \\mathbf { H } _ { l - 1 } ^ { \\mathsf { T } } | | _ { F } + ( K _ { l } + N _ { l } - 1 ) | | \\hat { \\nabla } _ { \\mathbf { Z } _ { \\mathit { t } } } - \\nabla _ { \\mathbf { Z } _ { \\mathit { t } } } | | \\mathcal { F } | | \\mathbf { H } _ { l - 1 } ^ { \\mathsf { T } } | | _ { F } , } \\\\ & { \\leq ( K _ { l } + N _ { l } - 1 ) \\bigg ( \\| \\hat { \\nabla } _ { \\mathbf { Z } _ { \\mathit { t } } } | | \\mathcal { F } | \\hat { \\mathbf { H } } _ { l - 1 } ^ { \\mathsf { T } } - \\mathbf { H } _ { l - 1 } ^ { \\mathsf { T } } | | _ { F } + | | \\mathbf { H } _ { l - 1 } ^ { \\mathsf { T } } | | _ { F } \\Big | | \\hat { \\mathbf { H } } _ { l - 1 } - \\mathbf { H } _ { l - 1 } | | _ { F } + \\underset { i = l + 1 } { \\sum } _ { \\eta _ { i } } | | \\hat { \\mathbf { H } } _ { i - 1 } - \\mathbf { H } _ { i - 1 } | | _ { F } \\prod _ { j = l } ^ { \\mathsf { T } } \\bigg ) } \\\\ & { \\qquad \\quad = ( K _ { l } + N _ { l } - 1 ) \\bigg [ ( \\| \\hat { \\nabla } _ { \\mathbf { Z } _ { \\mathit { t } } } | | _ { F } + \\eta _ { l } | | \\mathbf { H } _ { l - 1 } ^ { \\mathsf { T } } | | _ { F } ) | | \\hat { \\mathbf { H } } _ { l - 1 } ^ { \\mathsf { T } } - \\mathbf { H } _ { l - 1 } ^ { \\mathsf { T } } | | _ { F } + | | \\mathbf { H } _ { l - 1 } ^ { \\mathsf { T } } | | _ { F } \\displaystyle \\sum _ { i = l + 1 } ^ { L } | | \\hat { \\mathbf { H } } _ { i - 1 } - \\mathbf { H } _ { i - 1 } | | _ { F } \\displaystyle \\prod _ { j = l } ^ { i - 1 } \\gamma _ { j } \\bigg ] , } \\\\ & \\qquad = \\big ( \\beta _ { l } + \\alpha _ { l } , \\boldsymbol { l } | | \\mathbf \\end{array}\n$$", "text_format": "latex", "bbox": [ 181, 746, 839, 929 ], "page_idx": 12 }, { "type": "text", "text": "where ", "bbox": [ 173, 104, 217, 117 ], "page_idx": 13 }, { "type": "equation", "img_path": "images/342fc80d5124d9b998acbbe6f0a1dccd1d65dc6de4c78ba9c52ff9512485e463.jpg", "text": "$$\n\\begin{array} { r l } & { \\alpha _ { l , i } = ( K _ { l } + N _ { l } - 1 ) ( K _ { i } + N _ { i } - 1 ) ^ { 2 } | | \\hat { \\nabla } _ { \\mathbf { Z } _ { i + 1 } } | | _ { F } | | \\mathbf { W } _ { i + 1 } | | _ { F } | | \\mathbf { W } _ { i } ^ { \\prime } | | _ { F } ; } \\\\ & { \\quad \\beta _ { l } = ( K _ { l } + N _ { l } - 1 ) | | \\hat { \\nabla } _ { \\mathbf { Z } _ { l } } | | _ { F } ; } \\\\ & { \\quad \\gamma _ { l } = ( K _ { l } + N _ { l } - 1 ) | | \\mathbf { W } _ { l + 1 } | | _ { F } | | \\sigma ^ { \\prime } ( \\mathbf { Z } _ { l } ) | | _ { F } ; } \\end{array}\n$$", "text_format": "latex", "bbox": [ 272, 114, 723, 178 ], "page_idx": 13 }, { "type": "text", "text": "$K _ { l }$ and $N _ { l }$ denote the size of convolutional kernel $\\mathbf { W } _ { l }$ and activation map $\\mathbf { H } _ { l }$ in layer $l$ , respectively. ", "bbox": [ 171, 181, 823, 196 ], "page_idx": 13 }, { "type": "text", "text": "During the LFC-ACT and HFC-ACT trainings, the activation map of a convolutional layer satisfies ", "bbox": [ 174, 202, 823, 218 ], "page_idx": 13 }, { "type": "equation", "img_path": "images/c6ac3ce26f259cf827b89b3388057bb0735f9881a7f3d77b9e35c626aba3cafc.jpg", "text": "$$\n\\begin{array} { r l } & { \\lvert | \\mathbf { H } _ { l } - \\mathbf { H } _ { l } ^ { \\mathtt { L } } \\rvert | _ { F } = \\lvert | \\widetilde { \\mathbf { H } } _ { l } - \\widetilde { \\mathbf { H } } _ { l } ^ { \\mathtt { L } } \\rvert | _ { F } = \\lvert | \\widetilde { \\mathbf { H } } _ { l } \\odot ( \\mathbf { 1 } - \\mathbf { M } ) \\rvert | _ { F } \\triangleq \\lambda _ { l } ^ { \\mathtt { H } } , } \\\\ & { \\lvert | \\mathbf { H } _ { l } - \\mathbf { H } _ { l } ^ { \\mathtt { H } } \\rvert | _ { F } = \\lvert | \\widetilde { \\mathbf { H } } _ { l } - \\widetilde { \\mathbf { H } } _ { l } ^ { \\mathtt { H } } \\rvert | _ { F } = \\lvert | \\widetilde { \\mathbf { H } } _ { l } \\odot \\mathbf { M } \\rvert | _ { F } \\triangleq \\lambda _ { l } ^ { \\mathtt { L } } . } \\end{array}\n$$", "text_format": "latex", "bbox": [ 297, 223, 700, 270 ], "page_idx": 13 }, { "type": "text", "text": "Taking Equations (25) and (26) into (23), we have $\\mathrm { G E B } _ { l } ^ { \\mathsf { L } }$ and $\\mathrm { G E B } _ { l } ^ { \\mathsf { H } }$ of a convolutional layer by ", "bbox": [ 171, 275, 805, 294 ], "page_idx": 13 }, { "type": "equation", "img_path": "images/4964472353baf6a691cdf2cc04d0cbf843291155f28ac9ee00546f0f669790bc.jpg", "text": "$$\n\\begin{array} { r l } & { \\displaystyle | | \\hat { \\nabla } _ { \\mathbf { W } _ { l } } - \\nabla _ { \\mathbf { W } _ { l } } ^ { \\ L } | | _ { F } \\leq \\left( \\alpha _ { l , l } | | \\mathbf { H } _ { l - 1 } ^ { \\top } | | _ { F } + \\beta _ { l } \\right) \\lambda _ { l } ^ { \\sf H } + | | \\mathbf { H } _ { l - 1 } ^ { \\top } | | _ { F } \\sum _ { i = l + 1 } ^ { L } \\alpha _ { l , i } \\lambda _ { i } ^ { \\sf H } \\prod _ { j = l } ^ { i - 1 } \\gamma _ { j } \\triangleq \\operatorname { G E B } _ { l } ^ { \\lfloor } , } \\\\ & { \\displaystyle | | \\hat { \\nabla } _ { \\mathbf { W } _ { l } } - \\nabla _ { \\mathbf { W } _ { l } } ^ { \\sf H } | | _ { F } \\leq \\left( \\alpha _ { l , l } | | \\mathbf { H } _ { l - 1 } ^ { \\top } | | _ { F } + \\beta _ { l } \\right) \\lambda _ { l } ^ { \\lfloor } + | | \\mathbf { H } _ { l - 1 } ^ { \\top } | | _ { F } \\sum _ { i = l + 1 } ^ { L } \\alpha _ { l , i } \\lambda _ { i } ^ { \\lfloor } \\prod _ { j = l } ^ { i } \\gamma _ { j } \\triangleq \\operatorname { G E B } _ { l } ^ { \\sf H } . } \\end{array}\n$$", "text_format": "latex", "bbox": [ 204, 300, 767, 395 ], "page_idx": 13 }, { "type": "text", "text": "Given the expression of $\\mathrm { G E B } _ { l } ^ { \\mathsf { L } }$ and $\\mathrm { G E B } _ { l } ^ { \\mathsf { H } }$ by Equations (27) and (28), respectively, we have the GEB for a convolutional layer given by ", "bbox": [ 174, 409, 826, 440 ], "page_idx": 13 }, { "type": "equation", "img_path": "images/c4660655d5089cac7d29cc7bf2f1dbf880401e8ebad35872594c802ad44bdcbf.jpg", "text": "$$\n\\mathbf { G E B } _ { l } ^ { \\mathbf { L } } - \\mathbf { G E B } _ { l } ^ { \\mathsf { H } } = \\left( \\alpha _ { l , l } | | \\mathbf { H } _ { l - 1 } ^ { \\mathsf { T } } | | _ { F } + \\beta _ { l } \\right) ( \\lambda _ { l } ^ { \\mathsf { H } } - \\lambda _ { l } ^ { \\mathsf { L } } ) + | | \\mathbf { H } _ { l - 1 } ^ { \\mathsf { T } } | | _ { F } \\sum _ { i = l + 1 } ^ { L } \\alpha _ { l , i } ( \\lambda _ { i } ^ { \\mathsf { H } } - \\lambda _ { i } ^ { \\mathsf { L } } ) \\prod _ { j = l } ^ { i - 1 } \\gamma _ { j } .\n$$", "text_format": "latex", "bbox": [ 215, 446, 781, 492 ], "page_idx": 13 }, { "type": "text", "text": "Corollary 1. For a $K \\times K$ convolutional kernel and a $N \\times N$ square matrix $\\mathbf { H }$ , we have the ", "bbox": [ 171, 535, 787, 550 ], "page_idx": 13 }, { "type": "equation", "img_path": "images/e54387d1fe181b6404b73ffd9b64b29b5ae2de35e09f715e5829c546a462c10f.jpg", "text": "$$\n| | \\mathbf { W } * \\mathbf { H } | | _ { F } \\leq ( K + N - 1 ) | | \\mathbf { W } | | _ { F } | | \\mathbf { H } | | _ { F }\n$$", "text_format": "latex", "bbox": [ 354, 558, 642, 575 ], "page_idx": 13 }, { "type": "text", "text": "Proof. According to the relations between convolutional operation and Discrete Fourier Transformation (Sundararajan, 2001), $\\mathbf { W } * \\mathbf { H }$ satisfies ", "bbox": [ 174, 594, 823, 623 ], "page_idx": 13 }, { "type": "equation", "img_path": "images/2dbe6dd1d5d1938c15d42dc8f2f07d5469f9948488f2b477fbc7111d0d2c1ee7.jpg", "text": "$$\n\\mathrm { F F T } ( \\mathbf { W } * \\mathbf { H } ) = \\mathrm { F F T } ( \\mathrm { Z P } ( \\mathbf { W } ) ) \\odot \\mathrm { F F T } ( \\mathrm { Z P } ( \\mathbf { H } ) ) ,\n$$", "text_format": "latex", "bbox": [ 328, 631, 668, 650 ], "page_idx": 13 }, { "type": "text", "text": "where $\\mathrm { F F T } ( \\cdot )$ denotes the discrete Fourier transformation; $\\mathrm { Z P ( W ) }$ denotes zero-padding $\\mathbf { W }$ into a $( K + N - 1 ) \\times ( K + N - 1 )$ matrix. According to the Parseval’s theorem (Diniz et al., 2010), $\\mathrm { F F T } ( \\mathrm { Z P } ( \\mathbf { W } ) )$ and $\\mathrm { F F T } ( \\mathrm { Z P } ( \\mathbf { H } ) )$ and FF $\\mathrm { T } ( \\mathbf { W } * \\mathbf { H } )$ satisfy ", "bbox": [ 173, 656, 825, 700 ], "page_idx": 13 }, { "type": "equation", "img_path": "images/d0252fb9487d8a98c736ad29882aa16d2cfef139f1429c86186f9f9e1ce5e986.jpg", "text": "$$\n\\begin{array} { r l } & { | | \\mathrm { F F T } ( \\mathrm { Z P } ( \\mathbf { W } ) ) | | _ { F } = ( K + N - 1 ) | | \\mathbf { W } | | _ { F } , } \\\\ & { | | \\mathrm { F F T } ( \\mathrm { Z P } ( \\mathbf { H } ) ) | | _ { F } = ( K + N - 1 ) | | \\mathbf { H } | | _ { F } , } \\\\ & { | | \\mathrm { F F T } ( \\mathbf { W } * \\mathbf { H } ) | | _ { F } = ( K + N - 1 ) | | \\mathbf { W } * \\mathbf { H } | | _ { F } . } \\end{array}\n$$", "text_format": "latex", "bbox": [ 333, 707, 663, 762 ], "page_idx": 13 }, { "type": "text", "text": "Taking $| | \\mathbf { A } _ { 1 } \\odot \\mathbf { A } _ { 2 } | | _ { F } \\leq | | \\mathbf { A } _ { 1 } | | _ { F } | | \\mathbf { A } _ { 2 } | | _ { F }$ into Equation (31), we have ", "bbox": [ 173, 768, 625, 786 ], "page_idx": 13 }, { "type": "equation", "img_path": "images/315954a4075929d2007e5d21081b01e28d39206cfcb2989136df2ab6e2d3f4b6.jpg", "text": "$$\n\\mathrm { F F T } ( \\mathrm { Z P } ( \\mathbf { W } ) ) \\odot \\mathrm { F F T } ( \\mathrm { Z P } ( \\mathbf { H } ) ) \\le | | \\mathrm { F F T } ( \\mathbf { W } ) | | _ { F } | | \\mathrm { F F T } ( \\mathbf { H } ) | | _ { F }\n$$", "text_format": "latex", "bbox": [ 285, 792, 710, 810 ], "page_idx": 13 }, { "type": "text", "text": "Taking Equation (31) into Equation (32), we have ", "bbox": [ 174, 818, 501, 833 ], "page_idx": 13 }, { "type": "equation", "img_path": "images/279e598809d6e1d1e22705b80d25df4526de25362a655f69ff5171bee437c802.jpg", "text": "$$\n\\begin{array} { r l } { ( K + N - 1 ) | | \\mathbf { W } * \\mathbf { H } | | _ { F } = | | \\mathrm { F F T } ( \\mathbf { W } ) \\odot \\mathrm { F F T } ( \\mathbf { H } ) | | _ { F } } & { } \\\\ { \\leq | | \\mathrm { F F T } ( \\mathbf { W } ) | | _ { F } | | \\mathrm { F F T } ( \\mathbf { H } ) | | _ { F } } & { } \\\\ { = ( K + N - 1 ) | | \\mathbf { W } | | _ { F } ( K + N - 1 ) | | \\mathbf { H } | | _ { F } } \\end{array}\n$$", "text_format": "latex", "bbox": [ 263, 839, 733, 896 ], "page_idx": 13 }, { "type": "text", "text": "C GRADIENT ERROR BOUND (GEB) OF A LINEAR LAYER ", "text_level": 1, "bbox": [ 173, 101, 669, 119 ], "page_idx": 14 }, { "type": "text", "text": "We give the Gradient Error upper Bound (GEB) of a linear layer and proof in this section. ", "bbox": [ 173, 131, 764, 148 ], "page_idx": 14 }, { "type": "text", "text": "Theorem 1B. During the backward pass of a linear layer $l$ , $\\mathrm { G E B } _ { l } ^ { \\mathsf { L } }$ and $\\mathrm { G E B } _ { l } ^ { \\mathsf { H } }$ satisfy ", "bbox": [ 173, 154, 736, 171 ], "page_idx": 14 }, { "type": "equation", "img_path": "images/4830733b377aee6695898adc73a31048b66efea9aca33f8420013a96c4754343.jpg", "text": "$$\n\\mathrm { G E B } _ { l } ^ { \\mathrm { L } } - \\mathrm { G E B } _ { l } ^ { \\mathsf { H } } = \\left( \\alpha _ { l } \\lvert \\lvert { \\bf H } _ { l - 1 } ^ { \\mathsf { T } } \\rvert \\rvert _ { F } + \\beta _ { l } \\right) ( \\lambda _ { l } ^ { \\mathsf { H } } - \\lambda _ { l } ^ { \\mathrm { L } } ) + \\lvert \\lvert { \\bf H } _ { l - 1 } ^ { \\mathsf { T } } \\rvert \\rvert _ { F } \\sum _ { i = l + 1 } ^ { L } \\alpha _ { i } ( \\lambda _ { i } ^ { \\mathsf { H } } - \\lambda _ { i } ^ { \\mathrm { L } } ) \\prod _ { j = l } ^ { i - 1 } \\gamma _ { j } ,\n$$", "text_format": "latex", "bbox": [ 232, 174, 763, 218 ], "page_idx": 14 }, { "type": "text", "text": "where $\\alpha _ { l } , \\beta _ { l } , \\gamma _ { l } > 0$ for $1 \\leq l \\leq L$ are given by Equation (42); $\\lambda _ { l } ^ { \\mathbf { L } } = | | \\widetilde { \\mathbf { H } } _ { l } \\odot \\mathbf { M } | | _ { F }$ ; $\\lambda _ { l } ^ { \\mathsf { H } } = | | \\widetilde { \\mathbf { H } } _ { l } \\odot ( \\mathbf { 1 } -$ \n$\\mathbf { M } ) | | _ { F } ; \\widetilde { \\mathbf { H } } _ { l } = \\mathrm { D C T } ( \\mathbf { H } _ { l } ) ,$ ; and M denotes the 1-D loss-pass mask. ", "bbox": [ 171, 223, 825, 258 ], "page_idx": 14 }, { "type": "text", "text": "Proof. For simplicity of derivation, we consider the case MiniBatch ${ } = 1$ . In this case, $\\mathbf { H } _ { l }$ is a vector; and $\\mathbf { W } _ { l }$ is a 2-D matrix, for $1 \\leq l \\leq L$ . The backward propagation of a linear layer is given by ", "bbox": [ 173, 271, 823, 301 ], "page_idx": 14 }, { "type": "equation", "img_path": "images/4700ab1b0b745588b4f327b7f80f07cfabe17858c3cf7e1c04b754c70315817c.jpg", "text": "$$\n\\begin{array} { r l } & { \\hat { \\nabla } _ { \\mathbf { Z } _ { l } } = ( \\mathbf { W } _ { l + 1 } \\hat { \\nabla } _ { \\mathbf { Z } _ { l + 1 } } ) \\odot \\sigma ^ { \\prime } ( \\hat { \\mathbf { Z } } _ { l } ) , } \\\\ & { \\hat { \\nabla } _ { \\mathbf { W } _ { l } } = \\hat { \\nabla } _ { \\mathbf { Z } _ { l } } \\hat { \\mathbf { H } } _ { l - 1 } ^ { \\top } , } \\end{array}\n$$", "text_format": "latex", "bbox": [ 385, 303, 609, 348 ], "page_idx": 14 }, { "type": "text", "text": "where $\\hat { \\mathbf { Z } } _ { l } = \\mathbf { W } _ { l } ^ { \\mathsf { T } } \\hat { \\mathbf { H } } _ { l - 1 } + b _ { l }$ ; and $b _ { l }$ denotes the bias of layer $l$ . The case of $\\mathrm { M i n i B a t c h } \\geq 2$ can be proved in an analogous way, which is omitted in this work. ", "bbox": [ 171, 351, 825, 380 ], "page_idx": 14 }, { "type": "text", "text": "According to Equation (34), we have the gradient of $\\mathbf { Z } _ { l }$ given by ", "bbox": [ 173, 386, 598, 401 ], "page_idx": 14 }, { "type": "equation", "img_path": "images/a3d4a4e64dc0eef7543fbbc288fea2a1b47deb68bebe33608ca9b0839fdf8427.jpg", "text": "$$\n\\begin{array} { r l } & { \\nabla \\mathbf { z } _ { l } - \\mathbf { v } \\mathbf { z } _ { l } } \\\\ & { = \\mathbf { W } _ { l + 1 } \\hat { \\nabla } \\mathbf { z } _ { l + 1 } \\odot \\boldsymbol \\sigma ^ { \\prime } ( \\hat { \\mathbf { Z } } _ { l } ) - \\mathbf { W } _ { l + 1 } \\nabla \\mathbf { z } _ { l + 1 } \\odot \\boldsymbol \\sigma ^ { \\prime } ( \\mathbf { Z } _ { l } ) , } \\\\ & { = \\mathbf { W } _ { l + 1 } \\hat { \\nabla } \\mathbf { z } _ { l + 1 } \\odot \\boldsymbol \\sigma ^ { \\prime } ( \\hat { \\mathbf { Z } } _ { l } ) - \\mathbf { W } _ { l + 1 } \\hat { \\nabla } \\mathbf { z } _ { l + 1 } \\odot \\boldsymbol \\sigma ^ { \\prime } ( \\mathbf { Z } _ { l } ) + \\mathbf { W } _ { l + 1 } \\hat { \\nabla } \\mathbf { z } _ { l + 1 } \\odot \\boldsymbol \\sigma ^ { \\prime } ( \\mathbf { Z } _ { l } ) - \\mathbf { W } _ { l + 1 } \\nabla \\mathbf { z } _ { l + 1 } \\odot \\boldsymbol \\sigma ^ { \\prime } ( \\mathbf { Z } _ { l } ) , } \\\\ & { = \\mathbf { W } _ { l + 1 } \\hat { \\nabla } \\mathbf { z } _ { l + 1 } \\odot \\left[ \\boldsymbol \\sigma ^ { \\prime } ( \\hat { \\mathbf { Z } } _ { l } ) - \\boldsymbol \\sigma ^ { \\prime } ( \\mathbf { Z } _ { l } ) \\right] + \\left( \\hat { \\nabla } _ { \\mathbf { Z } _ { l + 1 } } - \\mathbf { W } _ { l + 1 } \\nabla \\mathbf { z } _ { l + 1 } \\right) \\odot \\boldsymbol \\sigma ^ { \\prime } ( \\mathbf { Z } _ { l } ) . } \\end{array}\n$$", "text_format": "latex", "bbox": [ 181, 414, 812, 489 ], "page_idx": 14 }, { "type": "text", "text": "For activation functions $\\mathrm { R e L u } ( \\cdot )$ , LeakyReLu(·), Sigmoid $( \\cdot )$ , $\\operatorname { T a n h } ( { \\cdot } )$ and $\\operatorname { S o f t P l u s } ( \\cdot )$ , the gradient $\\sigma ^ { \\prime } ( \\cdot )$ satisfies $| \\sigma ^ { \\prime \\prime } ( \\cdot ) | \\leq 1$ in each differentiable domain. Combined with Cauchy–Schwarz inequality $| | \\mathbf { A } _ { 1 } \\mathbf { A } _ { 2 } | | _ { F } \\leq | | \\mathbf { A } _ { 1 } | | _ { F } | | \\mathbf { A } _ { 2 } | | _ { F }$ (Horn & Johnson, 2012), we have ", "bbox": [ 174, 489, 825, 534 ], "page_idx": 14 }, { "type": "equation", "img_path": "images/cda092050f193f012a2610f10a0f7d3da1ad605c79d0489ddbdbe11f3e7338f0.jpg", "text": "$$\n| | \\sigma ^ { \\prime } ( \\hat { \\mathbf { Z } } _ { l } ) - \\sigma ^ { \\prime } ( \\mathbf { Z } _ { l } ) | | _ { F } \\leq | | \\hat { \\mathbf { Z } } _ { l } - \\mathbf { Z } _ { l } | | _ { F } \\leq | | \\mathbf { W } _ { l } | | _ { F } | | \\hat { \\mathbf { H } } _ { l - 1 } - \\mathbf { H } _ { l - 1 } | | _ { F } .\n$$", "text_format": "latex", "bbox": [ 274, 536, 720, 556 ], "page_idx": 14 }, { "type": "text", "text": "According to inequality $| | \\mathbf { A } _ { 1 } \\odot \\mathbf { A } _ { 2 } | | _ { F } \\le | | \\mathbf { A } _ { 1 } | | _ { F } | | \\mathbf { A } _ { 2 } | | _ { F }$ (Horn & Johnson, 2012), we have the upper bound of $\\| \\hat { \\nabla } _ { \\mathbf { Z } _ { l } } - \\nabla _ { \\mathbf { Z } _ { l } } \\| _ { F }$ given by ", "bbox": [ 171, 558, 826, 590 ], "page_idx": 14 }, { "type": "equation", "img_path": "images/115b1ead07053c077b4eb4448f089b70770b30d1ad0384f4e79b702f5fda0cf7.jpg", "text": "$$\n\\begin{array} { r l r } { { \\| \\hat { \\nabla } \\mathbf { \\tilde { z } } _ { t } - \\nabla \\mathbf { z } _ { t } \\| _ { F } } } \\\\ & { \\leq \\| \\mathbf { W } _ { l + 1 } \\| _ { F } \\| | \\hat { \\nabla } \\mathbf { z } _ { t + 1 } \\| _ { F } \\| | \\sigma ^ { \\prime } ( \\hat { \\mathbf { z } } _ { l } ) - \\sigma ^ { \\prime } ( \\mathbf { \\mathbf { z } } _ { l } ) \\| _ { F } + \\| \\mathbf { W } _ { l + 1 } \\| _ { F } \\| | \\hat { \\nabla } \\mathbf { z } _ { t + 1 } - \\nabla \\mathbf { z } _ { t + 1 } \\| _ { F } \\| | \\sigma ^ { \\prime } ( \\mathbf { Z } _ { l } ) \\| _ { F } , } \\\\ & { = \\| \\mathbf { W } _ { l + 1 } \\| _ { F } \\| | \\hat { \\mathbf { Y } } \\mathbf { z } _ { t + 1 } \\| _ { F } \\| | \\hat { \\mathbf { H } } _ { l - 1 } - \\mathbf { H } _ { l - 1 } \\| _ { F } \\| | \\mathbf { W } _ { l } ^ { \\prime } \\| _ { F } + \\| \\mathbf { W } _ { l + 1 } \\| _ { F } \\| | \\hat { \\mathbf { Y } } \\mathbf { z } _ { t + 1 } - \\nabla \\mathbf { z } _ { t + 1 } \\| _ { F } \\| | \\sigma ^ { \\prime } ( \\mathbf { Z } _ { l } ) \\| _ { F } , } \\\\ & { = \\alpha _ { l } \\| \\hat { \\mathbf { H } } _ { l - 1 } - \\mathbf { H } _ { l - 1 } \\| _ { F } + \\gamma _ { l } \\| \\hat { \\mathbf { Y } } \\mathbf { z } _ { l + 1 } - \\nabla \\mathbf { z } _ { l + 1 } \\| _ { F } , } & { ( 3 ) ^ { \\prime } } \\end{array}\n$$", "text_format": "latex", "bbox": [ 183, 593, 812, 679 ], "page_idx": 14 }, { "type": "text", "text": "where $\\alpha _ { l }$ and $\\gamma _ { l }$ are given by ", "bbox": [ 174, 679, 364, 694 ], "page_idx": 14 }, { "type": "equation", "img_path": "images/3fe1f0b5e5d91ea1d53c489736b2fa6d216674ca48214bec0a08b9928c117b3c.jpg", "text": "$$\n\\begin{array} { r l } & { \\alpha _ { l } = | | \\mathbf { W } _ { l + 1 } | | _ { F } | | \\hat { \\nabla } _ { \\mathbf { Z } _ { l + 1 } } | | _ { F } | | \\mathbf { W } _ { l } ^ { \\prime } | | _ { F } ; } \\\\ & { \\gamma _ { l } = | | \\mathbf { W } _ { l + 1 } | | _ { F } | | \\boldsymbol { \\sigma } ^ { \\prime } ( \\mathbf { Z } _ { l } ) | | _ { F } ; } \\end{array}\n$$", "text_format": "latex", "bbox": [ 379, 695, 617, 738 ], "page_idx": 14 }, { "type": "text", "text": "the value $\\alpha _ { l }$ and $\\gamma _ { l }$ depend on the model weight before backward propagation, which are constant with respect to the gradient. Iterate Equation (37) until $l = L$ where $| | \\hat { \\nabla } _ { \\mathbf { Z } _ { L } } - \\nabla _ { \\mathbf { Z } _ { L } } | | _ { F } \\leq \\alpha _ { l } | | \\hat { \\mathbf { H } } _ { L - 1 } -$ $\\left. \\mathbf { H } _ { L - 1 } \\right| \\overset { - } { | F | }$ . In such a manner, we have ", "bbox": [ 174, 738, 823, 784 ], "page_idx": 14 }, { "type": "equation", "img_path": "images/b30d56126f8e75910c701e5fcdfb8adfe2ea7cbe76942349fbd1d94b296c08af.jpg", "text": "$$\n\\| \\hat { \\nabla } _ { \\mathbf { Z } _ { l } } - \\nabla _ { \\mathbf { Z } _ { l } } \\| _ { F } \\leq \\alpha _ { l } \\| \\hat { \\mathbf { H } } _ { l - 1 } - \\mathbf { H } _ { l - 1 } \\| _ { F } + \\sum _ { i = l + 1 } ^ { L } \\alpha _ { i } \\| \\hat { \\mathbf { H } } _ { i - 1 } - \\mathbf { H } _ { i - 1 } \\| _ { F } \\prod _ { j = l } ^ { i - 1 } \\gamma _ { j } .\n$$", "text_format": "latex", "bbox": [ 253, 786, 743, 832 ], "page_idx": 14 }, { "type": "text", "text": "According to Equation (34), we have the gradient of $\\mathbf { W } _ { l }$ given by ", "bbox": [ 174, 840, 606, 857 ], "page_idx": 14 }, { "type": "equation", "img_path": "images/9a96af2a8e77bc21a92943d5f58c962fc21b87c6208f5369b0ef228b13a3e66f.jpg", "text": "$$\n\\begin{array} { r l } & { \\hat { \\nabla } _ { \\mathbf { W } _ { l } } - \\nabla _ { \\mathbf { W } _ { l } } = \\hat { \\nabla } _ { \\mathbf { Z } _ { l } } \\hat { \\mathbf { H } } _ { l - 1 } ^ { \\top } - \\nabla _ { \\mathbf { Z } _ { l } } \\mathbf { H } _ { l - 1 } ^ { \\top } , } \\\\ & { \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad } \\\\ & { \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad } \\\\ & { \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad } \\\\ & { \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad } \\\\ & { \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad } \\\\ & { \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad } \\\\ & { \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad } \\\\ & { \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad } \\\\ & { \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad } \\\\ & { \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad } \\\\ & { \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad } \\\\ & \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\end{array}\n$$", "text_format": "latex", "bbox": [ 279, 858, 715, 925 ], "page_idx": 14 }, { "type": "text", "text": "Taking Equation (39) into Equation (40), we have ", "bbox": [ 174, 103, 500, 119 ], "page_idx": 15 }, { "type": "equation", "img_path": "images/b45e44bbb075917423300ef788f00143041b12fff981ba442a0963701f01390b.jpg", "text": "$$\n\\begin{array} { r l } { { \\| \\hat { \\nabla } _ { \\mathbf { W } _ { l } } - \\nabla _ { \\mathbf { W } _ { l } } \\| _ { F } } } \\\\ & { \\le \\| \\hat { \\nabla } _ { \\mathbf { Z } _ { l } } \\| _ { F } \\| \\hat { \\mathbf { H } } _ { l - 1 } ^ { \\top } - \\mathbf { H } _ { l - 1 } ^ { \\top } \\| _ { F } + \\| \\hat { \\nabla } _ { \\mathbf { Z } _ { l } } - \\nabla _ { \\mathbf { Z } _ { l } } \\| _ { F } \\| \\mathbf { H } _ { l - 1 } ^ { \\top } \\| _ { F } , } \\\\ & { \\le \\| \\hat { \\nabla } _ { \\mathbf { Z } _ { l } } \\| _ { F } \\| \\hat { \\mathbf { H } } _ { l - 1 } ^ { \\top } - \\mathbf { H } _ { l - 1 } ^ { \\top } \\| _ { F } + \\| \\mathbf { H } _ { l - 1 } ^ { \\top } \\| _ { F } \\Big [ \\alpha _ { l } \\| \\hat { \\mathbf { H } } _ { l - 1 } - \\mathbf { H } _ { l - 1 } \\| _ { F } + \\sum _ { i = l + 1 } ^ { L } \\alpha _ { i } \\| \\hat { \\mathbf { H } } _ { i - 1 } - \\mathbf { H } _ { i - 1 } \\| _ { F } \\prod _ { j = l } ^ { i - 1 } \\gamma _ { j } \\Big ] , } \\\\ & { = \\Big ( \\beta _ { l } + \\alpha _ { l } \\| \\mathbf { H } _ { l - 1 } ^ { \\top } \\| _ { F } \\Big ) \\| \\hat { \\mathbf { H } } _ { l - 1 } ^ { \\top } - \\mathbf { H } _ { l - 1 } ^ { \\top } \\| _ { F } + \\big \\| \\mathbf { H } _ { l - 1 } ^ { \\top } \\| _ { F } \\sum _ { i = l + 1 } ^ { L } \\alpha _ { i } \\big \\| \\hat { \\mathbf { H } } _ { i - 1 } ^ { \\top } - \\mathbf { H } _ { i - 1 } ^ { \\top } \\| _ { F } \\prod _ { j = l } ^ { i - 1 } \\gamma _ { j } , \\qquad ( 4 1 ) } \\end{array}\n$$", "text_format": "latex", "bbox": [ 181, 123, 820, 260 ], "page_idx": 15 }, { "type": "text", "text": "where $\\beta _ { l }$ is given by ", "bbox": [ 174, 263, 310, 279 ], "page_idx": 15 }, { "type": "equation", "img_path": "images/a53cd6b469d431471f6a397cab278a367b0d7eb73128dc25ac26ff400eea2ff5.jpg", "text": "$$\n\\begin{array} { r l } & { \\alpha _ { l } = | | \\mathbf { W } _ { l + 1 } | | _ { F } | | \\hat { \\nabla } _ { \\mathbf { Z } _ { l + 1 } } | | _ { F } | | \\mathbf { W } _ { l } ^ { \\prime } | | _ { F } ; } \\\\ & { \\beta _ { l } = | | \\hat { \\nabla } _ { \\mathbf { Z } _ { l } } | | _ { F } ; } \\\\ & { \\gamma _ { l } = | | \\mathbf { W } _ { l + 1 } | | _ { F } | | \\boldsymbol { \\sigma } ^ { \\prime } ( \\mathbf { Z } _ { l } ) | | _ { F } . } \\end{array}\n$$", "text_format": "latex", "bbox": [ 379, 275, 619, 339 ], "page_idx": 15 }, { "type": "text", "text": "During the LFC-ACT and HFC-ACT trainings, the activation map of a linear layer satisfies ", "bbox": [ 169, 344, 781, 361 ], "page_idx": 15 }, { "type": "equation", "img_path": "images/f6c21155238d52fe775b6603e75c2e7b6068ec85cf3524369f7651e0a06dffda.jpg", "text": "$$\n\\begin{array} { r l } & { \\lvert | \\mathbf { H } _ { l } - \\mathbf { H } _ { l } ^ { \\mathsf { L } } \\rvert | _ { F } = \\lvert | \\widetilde { \\mathbf { H } } _ { l } - \\widetilde { \\mathbf { H } } _ { l } ^ { \\mathsf { L } } \\rvert | _ { F } = \\lvert | \\widetilde { \\mathbf { H } } _ { l } \\odot ( \\mathbf { 1 } - \\mathbf { M } ) \\rvert | _ { F } \\triangleq \\lambda _ { l } ^ { \\mathsf { H } } , } \\\\ & { \\lvert | \\mathbf { H } _ { l } - \\mathbf { H } _ { l } ^ { \\mathsf { H } } \\rvert | _ { F } = \\lvert | \\widetilde { \\mathbf { H } } _ { l } - \\widetilde { \\mathbf { H } } _ { l } ^ { \\mathsf { H } } \\rvert | _ { F } = \\lvert | \\widetilde { \\mathbf { H } } _ { l } \\odot \\mathbf { M } \\rvert | _ { F } \\triangleq \\lambda _ { l } ^ { \\mathsf { L } } . } \\end{array}\n$$", "text_format": "latex", "bbox": [ 297, 364, 699, 411 ], "page_idx": 15 }, { "type": "text", "text": "Taking Equations (43) and (44) into (41), we have the $\\mathrm { G E B } _ { l } ^ { \\mathsf { L } }$ and $\\mathrm { G E B } _ { l } ^ { \\mathsf { H } }$ of a linear layer given by ", "bbox": [ 176, 415, 818, 433 ], "page_idx": 15 }, { "type": "equation", "img_path": "images/7dc8ae4d22b0a7040f9c8e2a43cdd7a2fdf187704d1ebd8eabd36d5f675e0065.jpg", "text": "$$\n\\begin{array} { r l } & { \\displaystyle | | \\hat { \\nabla } _ { \\mathbf { W } _ { l } } - \\nabla _ { \\mathbf { W } _ { l } } ^ { \\mathsf { L } } | | _ { F } \\leq \\Big ( \\alpha _ { l } | | \\mathbf { H } _ { l - 1 } ^ { \\mathsf { T } } | | _ { F } + \\beta _ { l } \\Big ) \\lambda _ { l } ^ { \\mathsf { H } } + | | \\mathbf { H } _ { l - 1 } ^ { \\mathsf { T } } | | _ { F } \\sum _ { i = l + 1 } ^ { L } \\alpha _ { i } \\lambda _ { i } ^ { \\mathsf { H } } \\prod _ { j = l } ^ { i - 1 } \\gamma _ { j } \\triangleq \\mathrm { G E B } _ { l } ^ { \\mathsf { L } } , } \\\\ & { \\displaystyle | | \\hat { \\nabla } _ { \\mathbf { W } _ { l } } - \\nabla _ { \\mathbf { W } _ { l } } ^ { \\mathsf { H } } | | _ { F } \\leq \\Big ( | | \\alpha _ { l } | | \\mathbf { H } _ { l - 1 } ^ { \\mathsf { T } } | | _ { F } + \\beta _ { l } \\Big ) \\lambda _ { l } ^ { \\mathsf { L } } + | | \\mathbf { H } _ { l - 1 } ^ { \\mathsf { T } } | | _ { F } \\sum _ { i = l + 1 } ^ { L } \\alpha _ { i } \\lambda _ { i } ^ { \\mathsf { L } } \\prod _ { j = l } ^ { i - 1 } \\gamma _ { j } \\triangleq \\mathrm { G E B } _ { l } ^ { \\mathsf { H } } . } \\end{array}\n$$", "text_format": "latex", "bbox": [ 204, 438, 764, 531 ], "page_idx": 15 }, { "type": "text", "text": "Given the expression of $\\mathrm { G E B } _ { l } ^ { \\mathsf { L } }$ and $\\mathrm { G E B } _ { l } ^ { \\mathsf { H } }$ by Equations (45) and (46), we have the GEB difference for a linear layer given by ", "bbox": [ 174, 542, 825, 574 ], "page_idx": 15 }, { "type": "equation", "img_path": "images/01f1a2134fd928f8886561fce4c05b5e9f462f2a9ee09dd9c1de9b91938e2b8b.jpg", "text": "$$\n\\mathbf { G E B } _ { l } ^ { \\mathbf { L } } - \\mathbf { G E B } _ { l } ^ { \\mathbf { H } } = \\left( | | \\alpha _ { l } | | \\mathbf { H } _ { l - 1 } ^ { \\mathsf { T } } | | _ { F } + \\beta _ { l } \\right) { ( \\lambda _ { l } ^ { \\mathsf { H } } - \\lambda _ { l } ^ { \\mathbf { L } } ) } + | | \\mathbf { H } _ { l - 1 } ^ { \\mathsf { T } } | | _ { F } \\sum _ { i = l + 1 } ^ { L } \\alpha _ { i } { ( \\lambda _ { i } ^ { \\mathsf { H } } - \\lambda _ { i } ^ { \\mathsf { L } } ) } \\prod _ { j = l } ^ { i - 1 } \\gamma _ { j } .\n$$", "text_format": "latex", "bbox": [ 215, 579, 779, 623 ], "page_idx": 15 }, { "type": "text", "text": "D $\\lambda _ { l } ^ { L }$ VERSUS $\\lambda _ { l } ^ { H }$ IN DENSENET-121 ", "text_level": 1, "bbox": [ 174, 679, 491, 698 ], "page_idx": 15 }, { "type": "text", "text": "A further experiment is conducted to study whether $\\lambda _ { l } ^ { L } > \\lambda _ { l } ^ { H }$ can be guaranteed for DenseNet-121. Specifically, the values of $\\lambda _ { l } ^ { L }$ and $\\lambda _ { l } ^ { H }$ in the training (epoches 20, 40, and 60) of DenseNet-121 are given in Tables 3 and 4, where the low-pass $M$ mask satisfies $W / N = \\ 0 . 1$ and $W / N =$ 0.2, respectively; and $\\lambda _ { l } ^ { L }$ and $\\lambda _ { l } ^ { H }$ are estimated based on the input activation maps of the four DenseBlocks. It is consistently observed that $\\lambda _ { l } ^ { L } > \\lambda _ { l } ^ { H }$ for $W / N = \\ 0 . 1$ and $W / N = \\ 0 . 2$ in different training epochs. This indicates our proposed Theorem 1 holds without loss of generality. ", "bbox": [ 173, 713, 825, 801 ], "page_idx": 15 }, { "type": "text", "text": "E PROOF OF THEOREM 2 ", "text_level": 1, "bbox": [ 174, 820, 398, 837 ], "page_idx": 15 }, { "type": "text", "text": "We give the proof of Theorem 2 in this section. ", "bbox": [ 174, 852, 482, 867 ], "page_idx": 15 }, { "type": "text", "text": "Theorem 2. For any real-valued function f(x) and its moving average ¯f(x) = 12B $\\begin{array} { r } { \\bar { f } ( x ) = \\frac { 1 } { 2 B } \\int _ { x } ^ { x + 2 B } f ( t ) \\mathrm { d } t , } \\end{array}$ , let $F ( \\omega )$ and $\\overline { { F } } ( \\omega )$ denote the Fourier transformation (Madisetti, 1997) of $f ( x )$ and ${ \\bar { f } } ( x )$ , respectively. Generally, we have $\\overline { { F } } ( \\omega ) = H ( \\omega ) F ( \\omega )$ , where $\\begin{array} { r } { | H ( \\omega ) | = | \\frac { \\sin \\omega B } { \\omega B } | } \\end{array}$ ", "bbox": [ 174, 875, 825, 926 ], "page_idx": 15 }, { "type": "table", "img_path": "images/1d4954536c04723a9e77ee7aaea780f75acaa037fe510f1bc38aa4cb7022a264.jpg", "table_caption": [ "Table 3: $W / N = 0 . 1$ . " ], "table_footnote": [], "table_body": "
Epoch204060Average入LH
DenseBlock-1入= 298.281入= 218.605入= 184.913Ⅱ138.069入= 142.668Ⅱ104.7551.36
DenseBlock-2入Ⅱ3.245川1.713X= 1.284=:0.689VⅡ0.687=0.3721.87
DenseBlock-3入=0.387XⅡ0.260入= 0.160Ⅱ: 0.086交Ⅱ0.084X=:0.0481.70
DenseBlock-4X= 0.062= 0.009= 0.011入= 0.001X= 0.006临= 0.0017.56
Average X/λ2.953.123.303.12
", "bbox": [ 207, 128, 789, 284 ], "page_idx": 16 }, { "type": "table", "img_path": "images/3be58e298dee8a0ab0004311dc1b13575a02cba1fdfb8d96ed1690bb0fc78a19.jpg", "table_caption": [ "Table 4: $W / N = 0 . 2$ . " ], "table_footnote": [], "table_body": "
Epoch204060Average X /λH
DenseBlock-1 362.672X=154.214X = 225.543XⅡ: 97.439入F= 173.595XⅡ73.8282.34
DenseBlock-2XⅡ3.632YⅡ1.326X= 1.440XⅡ: 0.533XⅡ:0.774又Ⅱ:0.2852.72
DenseBlock-3交Ⅱ:0.445=0.202入Ⅱ:0.179入Ⅱ:0.067入Ⅱ:0.095X= 0.0372.49
DenseBlock-4入=:0.062入H= 0.009入= 0.011海= 0.001广= 0.006入= 0.0017.56
Average λ/λH3.583.783.973.78
", "bbox": [ 197, 321, 799, 474 ], "page_idx": 16 }, { "type": "text", "text": "Proof. We adopt the limit operator to reformulate ${ \\bar { f } } ( x )$ into ", "bbox": [ 173, 497, 566, 513 ], "page_idx": 16 }, { "type": "equation", "img_path": "images/9d3c88698db1ec41220f982155dbf42cdbb31fcd3354ffcd2496e6eaabe95ee8.jpg", "text": "$$\n\\bar { f } ( x ) = \\frac { 1 } { 2 B } \\int _ { x } ^ { x + 2 B } f ( t ) \\mathrm { d } t = \\frac { 1 } { 2 B } \\operatorname* { l i m } _ { N \\to \\infty } \\sum _ { n = 0 } ^ { N - 1 } \\frac { 2 B } { N } f ( x + \\frac { 2 B n } { N } ) = \\operatorname* { l i m } _ { N \\to \\infty } \\sum _ { n = 0 } ^ { N - 1 } \\frac { 1 } { N } f ( x + \\frac { 2 B n } { N } )\n$$", "text_format": "latex", "bbox": [ 191, 517, 779, 560 ], "page_idx": 16 }, { "type": "text", "text": "Taking Equation (47) into the Fourier Transform of ${ \\bar { f } } ( x )$ , we have ", "bbox": [ 173, 570, 607, 588 ], "page_idx": 16 }, { "type": "equation", "img_path": "images/4efab145d0eed0c340d550f6dceee795852bee49766925b3088871c90448a78c.jpg", "text": "$$\n\\begin{array} { l } { { \\displaystyle F ^ { \\prime } ( \\omega ) = \\int _ { - \\infty } ^ { \\infty } \\bar { f } ( x ) e ^ { - i \\omega x } \\mathrm { d } x = \\int _ { - \\infty } ^ { \\infty } \\frac { 1 } { N } \\operatorname* { l i m } _ { N \\to \\infty } \\sum _ { n = 0 } ^ { N - 1 } f ( x + \\frac { 2 B n } { N } ) e ^ { - i \\omega x } \\mathrm { d } x } } \\\\ { { \\displaystyle \\qquad = \\operatorname* { l i m } _ { N \\to \\infty } \\frac { 1 } { N } \\sum _ { n = 0 } ^ { N - 1 } \\int _ { - \\infty } ^ { \\infty } f ( x + \\frac { 2 B n } { N } ) e ^ { - i \\omega x } \\mathrm { d } x } } \\\\ { { \\displaystyle \\qquad = \\operatorname* { l i m } _ { N \\to \\infty } \\frac { 1 } { N } \\sum _ { n = 0 } ^ { N - 1 } e ^ { i \\omega \\frac { 2 B n } { N } } \\int _ { - \\infty } ^ { \\infty } f ( x ) e ^ { - i \\omega x } \\mathrm { d } x = F ( \\omega ) \\operatorname* { l i m } _ { N \\to \\infty } \\frac { 1 } { N } \\sum _ { n = 0 } ^ { N - 1 } e ^ { i \\omega \\frac { 2 B n } { N } } } } \\\\ { { \\displaystyle \\qquad = F ( \\omega ) ( 1 - e ^ { i \\omega 2 B } ) \\operatorname* { l i m } _ { N \\to \\infty } \\frac { 1 } { N ( 1 - e ^ { i \\omega \\frac { 2 B n } { N } } ) } = F ( \\omega ) \\frac { 1 - \\mathrm { \\it ~ } e ^ { i \\omega 2 B } } { - i \\omega 2 B } , } } \\end{array}\n$$", "text_format": "latex", "bbox": [ 230, 592, 764, 761 ], "page_idx": 16 }, { "type": "text", "text": "where $i$ denotes the imaginary unit. ", "bbox": [ 174, 763, 406, 779 ], "page_idx": 16 }, { "type": "text", "text": "Let H(ω) = 1−eiω2B . The magnitude of $H ( \\omega )$ is given by ", "bbox": [ 171, 784, 560, 804 ], "page_idx": 16 }, { "type": "equation", "img_path": "images/81ec568ab740644ba5ed6ca4183920c27be9f9afaa368e1b984cb682abcf8fc3.jpg", "text": "$$\n\\begin{array} { r l } & { | H ( \\omega ) | = \\frac { | 1 - \\cos \\omega 2 B + i \\sin \\omega 2 B | } { | \\omega 2 B | } = \\frac { \\sqrt { ( 1 - \\cos \\omega 2 B ) ^ { 2 } + \\sin ^ { 2 } \\omega 2 B | } } { | \\omega 2 B | } } \\\\ & { \\quad = \\frac { \\sqrt { 4 \\sin ^ { 4 } \\omega B + 4 \\sin ^ { 2 } \\omega B \\cos ^ { 2 } \\omega B } } { | \\omega 2 B | } = \\frac { \\sqrt { 4 \\sin ^ { 2 } \\omega B ( \\sin ^ { 2 } \\omega B + \\cos ^ { 2 } \\omega B ) } } { | \\omega 2 B | } } \\\\ & { \\quad = | \\frac { \\sin \\omega B } { \\omega B } | } \\end{array}\n$$", "text_format": "latex", "bbox": [ 207, 809, 761, 931 ], "page_idx": 16 }, { "type": "text", "text": "F COMPRESSION OF 1D AND 3D ACTIVATION MAPS BY DIVISION ", "text_level": 1, "bbox": [ 169, 148, 751, 166 ], "page_idx": 17 }, { "type": "text", "text": "We give more details about DIVISION considering 1D, 2D and 3D activation maps in this section. ", "bbox": [ 171, 181, 816, 196 ], "page_idx": 17 }, { "type": "text", "text": "F.1 ACTIVATION MAP COMPRESSION ", "text_level": 1, "bbox": [ 176, 213, 446, 228 ], "page_idx": 17 }, { "type": "text", "text": "DIVISION adopts average pooling to estimate the LFC by $\\mathbf { H } _ { l } ^ { \\mathrm { L } } = \\mathrm { A v e r a g e P o o l i n g } ( \\mathbf { H } _ { l } )$ . The value of block-size and moving stride is a unified hyper-parameter $B$ , which controls the memory of $\\mathbf { H } _ { l } ^ { \\mathrm { L } }$ . The average pooling of 1D, 2D and 3D activation maps are considered as follows, ", "bbox": [ 174, 238, 825, 284 ], "page_idx": 17 }, { "type": "equation", "img_path": "images/76daab654ae2cea3fdb8c086f198e98dff6bfe03c136a95853d097c82d112fbe.jpg", "text": "$$\n\\begin{array} { r l r } & { ~ } & { \\mathrm { M i n i b a t c h \\times C h a n n e l \\times N } \\times N ^ { \\mathrm { \\ A v e r a g e P o o i i n g \\underline { { 1 } } D } } \\mathrm { M i n i b a t c h \\times C h a n n e l \\times } \\left\\lfloor N / B \\right\\rfloor \\qquad ( 5 0 ) } \\\\ & { ~ } & { \\mathrm { M i n i b a t c h \\times C h a n n e l \\times N \\times N } \\stackrel { \\mathrm { A v e r a g e P o o i n g \\underline { { 2 } } D } } { \\longrightarrow } \\mathrm { M i n i b a t c h \\times C h a n n e l \\times } \\left\\lfloor N / B \\right\\rfloor \\times \\left\\lfloor N / B \\right\\rfloor } \\\\ & { ~ } & { \\mathrm { M i n i b a t c h \\times C h a n n e l \\times } N \\times N \\times N \\stackrel { \\mathrm { A v e r a g e P o o i n g \\underline { { 2 } } D } } { \\longrightarrow } \\mathrm { M i n i b a t c h \\times C h a n n e l \\times } \\left\\lfloor N / B \\right\\rfloor \\times \\left\\lfloor N / B \\right\\rfloor \\times \\left\\lfloor N / B \\right\\rfloor } \\end{array}\n$$", "text_format": "latex", "bbox": [ 174, 291, 826, 366 ], "page_idx": 17 }, { "type": "text", "text": "To estimate the HFC, DIVISION calculates the residual value $\\mathbf { H } _ { l } ^ { \\mathsf { H } } = \\mathbf { H } _ { l } - \\mathrm { U p S a m p l i n g } ( \\mathbf { H } _ { l } ^ { \\mathsf { L } } )$ , where the UpSampling $( \\cdot )$ enlarges $\\mathbf { H } _ { l } ^ { \\mathrm { L } }$ to the shape of $\\mathbf { H } _ { l }$ via nearest interpolation. The up sampling of 1D, 2D and 3D activation maps are considered as follows, ", "bbox": [ 176, 378, 825, 424 ], "page_idx": 17 }, { "type": "equation", "img_path": "images/3544afc617c7a7e2984848179615fb3be63153656d81074ac33db91a232a2081.jpg", "text": "$$\n\\begin{array} { r l r } & { } & { \\mathrm { M i n i b a t c h } \\times \\mathrm { C h a n n e l } \\times \\left\\lfloor N / B \\right\\rfloor \\stackrel { \\mathrm { U p S a m p l i n g 1 } D } { \\longrightarrow } \\mathrm { M i n i b a t c h } \\times \\mathrm { C h a n n e l } \\times N \\quad ( 5 1 ) } \\\\ & { } & { \\mathrm { M i n i b a t c h } \\times \\mathrm { C h a n n e l } \\times \\left\\lfloor N / B \\right\\rfloor \\times \\left\\lfloor N / B \\right\\rfloor \\stackrel { \\mathrm { U p S a m p l i n g 2 } D } { \\longrightarrow } \\mathrm { M i n i b a t c h } \\times \\mathrm { C h a n n e l } \\times N \\times N } \\\\ & { } & { \\mathrm { M i n i b a t c h } \\times \\mathrm { C h a n n e l } \\times \\left\\lfloor N / B \\right\\rfloor \\times \\left\\lfloor N / B \\right\\rfloor \\stackrel { \\mathrm { U p S a m p l i n g 3 } D } { \\longrightarrow } \\mathrm { M i n i b a t c h } \\times \\mathrm { C h a n n e l } \\times N \\times N } \\end{array}\n$$", "text_format": "latex", "bbox": [ 186, 431, 818, 506 ], "page_idx": 17 }, { "type": "text", "text": "Then, DIVISION adopts $Q$ -bit per-channel quantization for the compression, where the bit-width $Q$ controls the precision and memory cost of HFC after the compression. Let $\\mathbf { V } _ { l } ^ { \\mathsf { H } }$ denote a $Q$ -bit integer matrix, as the low-precision representation of $\\mathbf { H } _ { l } ^ { \\mathsf { H } }$ . The detailed procedure of compressing $\\mathbf { H } _ { l } ^ { \\mathsf { H } }$ into $\\mathbf { V } _ { l } ^ { \\mathsf { H } }$ is given by ", "bbox": [ 173, 517, 825, 577 ], "page_idx": 17 }, { "type": "equation", "img_path": "images/82584d527c174008f84df34dd4876ef7c0de3ebea2fe6afec0c83b26e95c596d.jpg", "text": "$$\n\\mathbf { V } _ { l } ^ { \\mathsf { H } } = \\mathrm { Q u a n t } ( \\mathbf { H } _ { l } ^ { \\mathsf { H } } ) = \\big [ \\Delta _ { l } ^ { - 1 } ( \\mathbf { H } _ { l } ^ { \\mathsf { H } } - \\delta _ { l } ) \\big ] ,\n$$", "text_format": "latex", "bbox": [ 362, 575, 633, 595 ], "page_idx": 17 }, { "type": "text", "text": "where $\\delta _ { l }$ denotes the minimum element in $\\mathbf { f } _ { l } ^ { \\mathsf { H } } ; \\Delta _ { l } = ( h _ { \\operatorname* { m a x } } - \\delta _ { l } ) / ( 2 ^ { Q } - 1 )$ denotes the quantization step; $h _ { \\mathrm { m a x } }$ denotes the maximum element in $\\mathbf { H } _ { l } ^ { \\mathsf { H } }$ ; $\\lfloor \\bullet \\rceil$ denotes the stochastic rounding. ", "bbox": [ 174, 599, 826, 632 ], "page_idx": 17 }, { "type": "text", "text": "After the compression, as the representation of $\\mathbf { H } _ { l }$ , the tuple of $( \\mathbf { H } _ { l } ^ { \\mathsf { L } } , \\mathbf { V } _ { l } ^ { \\mathsf { H } } , \\Delta _ { l } , \\delta _ { l } )$ is cached to the memory for reconstructing the activation maps during the backward pass. ", "bbox": [ 174, 638, 825, 667 ], "page_idx": 17 }, { "type": "text", "text": "F.2 ACTIVATION MAP DECOMPRESSION ", "text_level": 1, "bbox": [ 178, 685, 464, 699 ], "page_idx": 17 }, { "type": "text", "text": "During the backward pass, DIVISION adopts the cached tuples of $\\{ ( \\mathbf { H } _ { l } ^ { \\mathsf { L } } , \\mathbf { V } _ { l } ^ { \\mathsf { H } } , \\Delta _ { l } , \\delta _ { l } ) \\mid 0 \\leq l \\leq$ $L - 1 \\}$ to reconstruct the activation map layer-by-layer. Specifically, for each layer $l$ , DIVISION dequantizes the HFC via $\\hat { \\mathbf { H } } _ { l } ^ { \\mathsf { H } } = \\Delta _ { l } \\mathbf { V } _ { l } ^ { \\mathsf { H } } + \\delta _ { l }$ , which is the inverse process of Equation (52). Then, the activation map is reconstructed via $\\hat { \\mathbf { H } } _ { l } = \\mathrm { U p S a m p l i n g } ( \\mathbf { H } _ { l } ^ { \\mathsf { L } } ) + \\hat { \\mathbf { H } } _ { l } ^ { \\mathsf { H } }$ , where UpSampling $( \\cdot )$ enlarges $\\mathbf { H } _ { l } ^ { \\mathrm { L } }$ to the shape of $\\mathbf { H } _ { l }$ via nearest interpolation. The cases of 1D, 2D and 3D activation maps are considered in Equation (51). ", "bbox": [ 174, 710, 825, 803 ], "page_idx": 17 }, { "type": "text", "text": "After the decompression, DIVISION frees the caching of $( \\mathbf { H } _ { l } ^ { \\mathsf { L } } , \\mathbf { V } _ { l } ^ { \\mathsf { H } } , \\Delta _ { l } , \\delta _ { l } )$ , and takes $\\hat { \\mathbf { H } } _ { l }$ into $[ \\hat { \\nabla } _ { \\mathbf { H } _ { l - 1 } } , \\hat { \\nabla } _ { \\mathbf { W } _ { l } } ] = \\mathrm { b a c k w a r d } ( \\hat { \\nabla } _ { \\mathbf { H } _ { l } } , \\hat { \\mathbf { H } } _ { l - 1 } , \\mathbf { W } _ { l } )$ to estimate the gradient for backward propagation. ", "bbox": [ 174, 810, 825, 844 ], "page_idx": 17 }, { "type": "text", "text": "G THEORETICAL COMPRESSION RATE OF DIVISION ", "text_level": 1, "bbox": [ 174, 862, 637, 880 ], "page_idx": 17 }, { "type": "text", "text": "The compression rate of DIVISION is estimated in this section. A general case of convolutional neural networks (CNN) and multi-layer perceptron (MLP) are considered for the estimation. ", "bbox": [ 173, 895, 823, 924 ], "page_idx": 17 }, { "type": "text", "text": "G.1 COMPRESSION RATE OF CNN TRAINING ", "text_level": 1, "bbox": [ 176, 103, 500, 117 ], "page_idx": 18 }, { "type": "text", "text": "Without loss of generality, we estimate the compression rate for a block of convolutional layer (conv), batch normalization layer (BN) and Relu activation. Most of existing backbones purely stacks conv-BN-Relu blocks (He et al., 2016; Huang et al., 2017; Szegedy et al., 2015; Tan & Le, 2019; Simonyan & Zisserman, 2014), which makes our estimated compression rate hold in practice. Generally, the compression rate is defined as the memory reduction ratio after the compression. To be concrete, let Minibatch $\\times$ Channel $. { \\times } N { \\times } N$ denote the shape of activaition maps for a conv-BN-Relu block; given the block-size $B$ and bit-width $Q$ , DIVISION has the compression rate of activation maps given by Theorem 3A. ", "bbox": [ 173, 130, 825, 242 ], "page_idx": 18 }, { "type": "text", "text": "Theorem 3A. DIVISION has average activation map compression rate for a conv-BN-Relu block given by ", "bbox": [ 171, 247, 825, 276 ], "page_idx": 18 }, { "type": "equation", "img_path": "images/0e037e3422d9818245ee40b210329c725d476abead31ee59e6e4090545004b81.jpg", "text": "$$\nR = { \\frac { M e m \\ o f { \\bf H } } { M e m \\ o f ( { \\bf H } ^ { \\mathrm { L } } , { \\bf V } ^ { \\mathrm { H } } , \\Delta , \\delta ) } } = { \\frac { 9 } { { \\frac { 4 } { \\operatorname* { m i n } \\{ B ^ { 2 } , N ^ { 2 } \\} } } + { \\frac { Q } { 4 } } + { \\frac { 8 } { N ^ { 2 } } } + { \\frac { 1 } { 8 } } } } ,\n$$", "text_format": "latex", "bbox": [ 292, 276, 702, 315 ], "page_idx": 18 }, { "type": "text", "text": "where Minibatc $\\mathrm { h } \\times \\mathrm { C h a n n e l } \\times N \\times N$ is the shape of activation map $\\pmb { H } _ { l }$ ; $B$ denotes the block-size of LFC average pooling; and $Q$ denotes the bit-width of HFC quantization. ", "bbox": [ 174, 319, 823, 349 ], "page_idx": 18 }, { "type": "text", "text": "Proof. For each mini-batch updating of normal training, a conv-layer or BN-layer caches $N ^ { 2 }$ float $3 2 \\times $ 4byte/float $\\dot { 3 } 2 = \\hat { 4 } N ^ { 2 }$ byte activation map; a Relu operator caches ${ \\dot { N } } ^ { 2 } { \\dot { \\mathrm { 1 } } } \\mathrm { n t } 8 \\ \\times$ 1byte/int $8 = N ^ { 2 }$ byte activation map. For each mini-batch updating of DIVISION, a conv-layer or BN-layer caches $\\frac { N ^ { 2 } } { \\operatorname* { m i n } \\{ B ^ { 2 } , N ^ { 2 } \\} }$ bfloat1 $6 ~ \\times$ 2byte/bfloat1 2N2min{B2,N2} byte LFC; and $\\begin{array} { r } { Q N ^ { 2 } \\mathrm { b i t } \\times \\frac { 1 } { 8 } \\mathrm { b i t } / \\mathrm { b y t e } = \\frac { Q } { 8 } N ^ { 2 } } \\end{array}$ byte HFC; and spends 2bfloat1 $6 \\times 2$ byte/bfloat1 $6 = 4$ byte for $\\Delta _ { l }$ and $\\delta _ { l }$ 8 . Moreover, a Relu operator caches $\\begin{array} { r } { N ^ { 2 } \\mathrm { b i t } \\times \\frac { 1 } { 8 } \\mathrm { b y t e } / \\mathrm { b i t } = \\frac { N ^ { 2 } } { 8 } . } \\end{array}$ byte activation map. 8 8Therefore, the average activation map compression rate of a conv-BN-Relu block is given by ", "bbox": [ 173, 367, 826, 481 ], "page_idx": 18 }, { "type": "equation", "img_path": "images/d5fabb1b627e275af8be7919f708aa9d4e3b22f425f31a69a39adb0b6ffccb74.jpg", "text": "$$\nR = { \\frac { 4 N ^ { 2 } \\times 2 + N ^ { 2 } } { \\left( { \\frac { 2 N ^ { 2 } } { \\operatorname* { m i n } \\{ B ^ { 2 } , N ^ { 2 } \\} } } + { \\frac { Q } { 8 } } N ^ { 2 } + 4 \\right) \\times 2 + { \\frac { 1 } { 8 } } N ^ { 2 } } } = { \\frac { 9 } { { \\frac { 4 } { \\operatorname* { m i n } \\{ B ^ { 2 } , N ^ { 2 } \\} } } + { \\frac { Q } { 4 } } + { \\frac { 8 } { N ^ { 2 } } } + { \\frac { 1 } { 8 } } } } .\n$$", "text_format": "latex", "bbox": [ 241, 487, 758, 529 ], "page_idx": 18 }, { "type": "text", "text": "A higher compression rate indicates more effective compression. It is observed that the compression rate grows with $B$ and $N$ , and decreases with $Q$ . In our experiments, we found $B { = } 8$ and $Q = 2$ can provide loss-less model accuracy. In this condition, the shape of activation maps satisfies $N \\geq 7$ for ResNet-50 and WRN-50-2 on the ImageNet dataset (He et al., 2016). According to Equation (53), we have $R _ { \\mathrm { R e s N e t - } 5 0 }$ , $R _ { \\mathrm { W R N - } 5 0 - 2 } \\geq 1 0 . 3 5$ . ", "bbox": [ 173, 577, 825, 648 ], "page_idx": 18 }, { "type": "text", "text": "G.2 COMPRESSION RATE OF MLP TRAINING ", "text_level": 1, "bbox": [ 178, 665, 501, 681 ], "page_idx": 18 }, { "type": "text", "text": "We estimate the compression rate for a linear-Relu block in Theorem 3B. An MLP simply stacks multiple linear-Relu blocks, such that our estimated compression rate holds for MLP models. ", "bbox": [ 174, 693, 825, 722 ], "page_idx": 18 }, { "type": "text", "text": "Theorem 3B. DIVISION has average activation map compression rate for a linear-Relu block given by ", "bbox": [ 171, 728, 823, 756 ], "page_idx": 18 }, { "type": "equation", "img_path": "images/e851ced6f497b6a51b2a27b62d83d3cfd59425d44c59235a72f970058c9fa0b9.jpg", "text": "$$\nR = \\frac { M e m \\ o f { \\bf H } } { M e m \\ o f { ( { \\bf H } ^ { \\mathrm { L } } , { \\bf V } ^ { \\mathrm { H } } , \\Delta , \\delta ) } } = \\frac { 5 } { \\frac { 2 } { \\operatorname* { m i n } \\{ B , N \\} } + \\frac { Q } { 8 } + \\frac { 4 } { N } + \\frac { 1 } { 8 } } ,\n$$", "text_format": "latex", "bbox": [ 302, 756, 694, 795 ], "page_idx": 18 }, { "type": "text", "text": "where Minibatch $\\times N$ is the shape of activation map $\\pmb { H } _ { l }$ ; $B$ denotes the block-size of LFC average pooling; and $Q$ denotes the bit-width of HFC quantization. ", "bbox": [ 171, 799, 825, 828 ], "page_idx": 18 }, { "type": "text", "text": "Proof. For each mini-batch updating of normal training, a linear-layer caches $N$ float $3 2 \\ \\times$ 4byte/float $3 2 \\ : = \\ : 4 N$ byte activation map; a Relu operator caches $N { \\mathrm { i n t } } 8 \\times 1 { \\mathrm { b y t e / i n t } } 8 =$ $N$ byte activation map. For each mini-batch updating of DIVISION, a linear-layer caches $\\frac { \\mathrm { ~ \\bar { ~ } { ~ N ~ } ~ } } { \\operatorname* { m i n } \\{ B , N \\} }$ bfloat1 $6 \\times 2$ byte/bfloat1 $\\begin{array} { r } { \\hat { \\varsigma } = \\frac { - 2 N } { \\operatorname* { m i n } \\left\\{ B , N \\right\\} } } \\end{array}$ byte LFC; and $Q N _ { \\mathrm { { b i t } } } \\times \\mathsf { \\Pi } _ { 8 } ^ { \\mathrm { { 1 } } } \\mathrm { { b i t / b y t e } } =$ $\\frac { Q } { 8 }$ Nbyte HFC; and spends 2bfloat1 $6 \\times 2$ byte/bfloat1 $6 =$ 4byte for $\\Delta _ { l }$ and $\\delta _ { l }$ . Moreover, a Relu operator caches $\\begin{array} { r } { N { \\mathrm { b i t } } \\times \\frac { 1 } { 8 } { \\mathrm { b y t e / b i t } } = \\frac { N } { 8 } { \\mathrm { b y } } } \\end{array}$ te activation map. Therefore, the average activation map compression rate of a linear-Relu block given by ", "bbox": [ 173, 847, 825, 925 ], "page_idx": 18 }, { "type": "text", "text": "", "bbox": [ 169, 102, 823, 133 ], "page_idx": 19 }, { "type": "equation", "img_path": "images/4153fe702494f5e5931e3afd52c5e09d40cb4ff1a165297e633f2f26334470d2.jpg", "text": "$$\nR = { \\frac { 4 N + N } { { \\frac { 2 N } { \\operatorname* { m i n } \\{ B , N \\} } } + { \\frac { Q } { 8 } } N + 4 + { \\frac { 1 } { 8 } } N } } = { \\frac { 5 } { { \\frac { 2 } { \\operatorname* { m i n } \\{ B , N \\} } } + { \\frac { Q } { 8 } } + { \\frac { 4 } { N } } + { \\frac { 1 } { 8 } } } } .\n$$", "text_format": "latex", "bbox": [ 285, 140, 712, 179 ], "page_idx": 19 }, { "type": "text", "text": "H EXPERIMENT SETTING ", "text_level": 1, "bbox": [ 174, 223, 400, 239 ], "page_idx": 19 }, { "type": "text", "text": "We give the experiment setting including the datasets, baseline methods and model architectures in this section. ", "bbox": [ 173, 256, 823, 284 ], "page_idx": 19 }, { "type": "text", "text": "Datasets. We consider CIFAR-10, CIFAR-100 (Krizhevsky et al., 2009) and ImageNet (Deng et al., 2009) datasets in our experiments. CIFAR-10: An image dataset with 60,000 color images in 10 different classes, where each image has $3 2 \\times 3 2$ pixels. CIFAR-100: An image dataset with 60,000 color images in 100 different classes, where each image has $3 2 \\times 3 2$ pixels. ImageNet: A large scale image dataset which has over one million color images covering 1000 categories, where each image has $2 2 4 \\times 2 2 4$ pixels. ", "bbox": [ 173, 291, 825, 375 ], "page_idx": 19 }, { "type": "text", "text": "Baseline Methods. Normal: Caching the exact activation map for backward propagation. BLPA: A systemic implementation of ACT by (Chakrabarti & Moseley, 2019), which only supports ResNetrelated architectures. AC-GC: A framework of ACT with automatic searched bit-width for the quantization of activation maps (Evans & Aamodt, 2021). ActNN: Activation compression training with dynamic bit-width quantization, where the bit-allocation minimizes the variance of activation maps via dynamic processing (Chen et al., 2021). Checkpoint: Caching some key activation maps to reconstruct other activation maps via replaying parts of the forward pass during the backward pass (Chen et al., 2016). SWAP: Swapping the activation maps to the CPU during the forward pass the memory consumption of GPU, and reload the activation maps to GPU during the backward pass (Huang et al., 2020). ", "bbox": [ 174, 382, 825, 520 ], "page_idx": 19 }, { "type": "text", "text": "DNN Architectures. For benchmarking the model accuracy, we consider ResNet-18 (top-1 accuracy $9 4 . 8 9 \\%$ ) and ResNet-164 (top-1 accuracy $9 4 . 9 \\% )$ ) on the CIFAR-10 dataset; DenseNet121 (top-1 accuracy $7 9 . 7 5 \\% )$ and ResNet-164 (top-1 accuracy $7 7 . 3 \\%$ ) on the CIFAR-100 dataset; and ResNet-50 (top-1 accuracy $7 6 . 1 5 \\%$ ) as well as DenseNet-161 (top-1 accuracy $7 7 . 6 5 \\%$ ) on the ImageNet dataset. Our reproduced validating accuracy is consistent with the official results of torchvision12. Moreover, for benchmarking the memory cost and training throughput, we consider the large models ResNet-50 and WRN-50-2 on the ImageNet dataset. ", "bbox": [ 173, 527, 825, 625 ], "page_idx": 19 }, { "type": "text", "text": "I IMPLEMENTATION DETAILS ABOUT DIVISION AND BASELINE METHODS", "text_level": 1, "bbox": [ 173, 647, 813, 664 ], "page_idx": 19 }, { "type": "text", "text": "DIVISION: DIVISION adopts block-size 8 $B = 8 ,$ ) and 2-bit quantization $Q = 2 { \\it \\Psi }$ ) to compress the activation maps of linear, convolutional and BatchNorm layers, where the theoretical compression rate is not less than $1 0 . 3 5 \\times$ . For the operators without quantization error during backward propagation such as pooling layers, ReLu activation, and Dropout, DIVISION follows the algorithms in Appendix J to compress the activation maps. Other hyper-parameter settings are given in Table 5. ", "bbox": [ 174, 680, 823, 751 ], "page_idx": 19 }, { "type": "text", "text": "BLPA: Existing work (Chakrabarti & Moseley, 2019) has shown that BLPA requires at least 4-bit ACT for loss-less DNN training. We follow this setting for BLPA, where the compression rate of activation maps is not more than $8 \\times$ . AC-GC: AC-GC follows existing work (Evans & Aamodt, 2021) to take the multiplicative error $( 1 + e _ { \\mathrm { A C - G C } } ^ { 2 } ) = 1 . 5$ , where the searched bit-width enables ACGC to satisfy this loss bound (training loss not more than $1 5 0 \\%$ of normal training). In this setting, AC-GC finalizes the bit-with as 7.01 after the searching, which has a nearly $4 . 5 7 \\times$ compression rate of activation maps. ActNN: ActNN adopts 2-bit ACT and dynamic programming for searching the optimal bit-width specific for each layer, and uses per-group quantization for compressing the activation map, which has approximately $1 0 . 5 \\times$ compression rate of activation maps. Such experimentally setting is denoted as L3 strategy in the original work (Chen et al., 2021), and we follow this setting in this section. Checkpoint: Checkpoint relies on the model-specific design of the checkpointed layers. We find that it provides a good trade-off between memory cost and running speed to checkpoint the activation map of each Botteneck block in ResNet-50 and WRN-50-2 (a ResNet-50 or WRN-50-2 has four Botteneck blocks). To implement the checkpointing of inter-media layers, we revised the forward function of the ResNet-50 and WRN-50-2 as Figure 8. SWAP: For the SWAP method, the memory utilization is considered both GPU and CPU because the activation maps are stored on both GPU and CPU in SWAP. ", "bbox": [ 174, 757, 825, 896 ], "page_idx": 19 }, { "type": "table", "img_path": "images/d404fc9df72d8233b6bc7b0ad4d10589eb43496607347b05ad989ace248dc51e.jpg", "table_caption": [ "Table 5: Hyper-parameter setting. " ], "table_footnote": [], "table_body": "
DatasetCIFAR-10CIFAR-100ImageNet
ArchitectureResNet-18ResNet-164ResNet-164DenseNet-121ResNet-50DenseNet-161
Epoch100100200100120120
Batch-size2562562562562562560.1Cos LR0.0001SGD0.982
Initial LRLR schedulerWeight-decay0.10.10.150.10.1Cos LR0.0001
Cos LR0.0005Cos LR0.0005Cos LR0.0005Cos LR0.0005
OptimizerSGDSGDSGDSGDSGD
SGD MomentumBlock-size B0.90.90.90.90.9
88888
Bit-width Q22222
", "bbox": [ 186, 117, 807, 262 ], "page_idx": 20 }, { "type": "image", "img_path": "images/c9121f542bec996c866be63283d3da6a4ff739148a9f99048bc30ddbe4db423b.jpg", "image_caption": [ "Figure 8: Implementation of checkpointed ResNet-50 and WRN-50-2. " ], "image_footnote": [], "bbox": [ 171, 315, 694, 583 ], "page_idx": 20 }, { "type": "text", "text": "", "bbox": [ 173, 648, 825, 746 ], "page_idx": 20 }, { "type": "text", "text": "J COMPRESSION OF POOLING LAYERS, RELU ACTIVATIONS, AND DROPOUT ", "bbox": [ 169, 810, 815, 827 ], "page_idx": 20 }, { "type": "text", "text": "DIVISION follows Algorithms 2, 3, 4 and 5 to compresse the activation map of a Max-Pooling layer, Average-Pooling layer, Relu activation and Dropout operator, respectively. For the pooling layers, we consider a simple case kernelsize $=$ movingstride $= k$ . General cases with different kernelsize and movingstride can be designed in analogous ways. ", "bbox": [ 174, 867, 825, 924 ], "page_idx": 20 }, { "type": "table", "img_path": "images/74d287896c5c8ed33749ef6f63c0b8a06ae13389e425f609626dd91b4411bf80.jpg", "table_caption": [], "table_footnote": [], "table_body": "
Algorithm2 Max-Pooling layer.Algorithm 3 Average-Pooling layer.
1:Function Forward (Hl-1,k, **kwargs)H,Vl-112=Max-Pooling(Hl-1,k,kwargs)1:Function Forward (Hl-1,k, **kwargs) H =Avg-Pooling(Hl-1,k,kwargs)
2: 3:Pack & CacheVt-1 using Int8.2: 3: return H
4: return H4:
5:5:
6:Function Backward(VH )6:
7: Load Vl-1 and k.7: Function Backward(VHl)
8:VH =1kxk VH8: VH =1k×k VHl
9:VH-1 =Vi-1OVH9: VHl-1=k-²VH
10:return VHl-110: return VHl-1
", "bbox": [ 174, 117, 818, 271 ], "page_idx": 21 }, { "type": "table", "img_path": "images/79675f09fa7e577cd81b983a7c4f6a114d47427c31d8113bf364099fbc9ee6f3.jpg", "table_caption": [], "table_footnote": [], "table_body": "
Algorithm 4Relu operator.Algorithm 5 Dropout operator.
1:Function Forward (Hl-1)1:Function Forward (Hl-1)
2: Vt-1 = sgn(Hl-1)2:Generate a Minibatch× Channel × N ×N binary matrix Vl-1
3:H=V-1H-1 3:following the Bernouli distribution with dropout probability p.
4: Pack & Cache Vl-1 using Int84:H=V-1OH-1
5: return H5:Pack & Cache Vl-1 using Int8.
6:6:return H
7:7:
8:Function Backward(VH )8: Function Backward(VHl)
9: Load Vt-1.9:Load Vl-1.
10:VHl-1 =Vl-1OVHt 10:VHl-1 =Vi-1 VH
11:return VHl-1 11:return VHl-1
", "bbox": [ 176, 294, 820, 458 ], "page_idx": 21 }, { "type": "text", "text": "K EVALUATION OF DIVISION ON MULTI-LAYER PERCEPTRONS (MLPS) ", "text_level": 1, "bbox": [ 174, 479, 797, 496 ], "page_idx": 21 }, { "type": "text", "text": "We conduct experiments on the GAS dataset (Dua & Graff, 2017) (128-dimensional features, 13910 instances, 6 classification task). The classification model is a 4-layer MLP (128 neuros in the input layer, 6 neuros in the output layer, and 64 neuros in the hidden layer); The setting of DIVISION is $B = 1 6$ and $Q = 2$ . The model accuracy and memory cost of activation map are given in Table 6. It is observed that DIVISION has $7 . 3 \\times$ compression rate with only $0 . 0 7 \\%$ degradation of model accuracy. This indicates the effectiveness of DIVISION on the MLP models. ", "bbox": [ 173, 513, 825, 598 ], "page_idx": 21 }, { "type": "table", "img_path": "images/e19d0f686282125cd29332713f5fca21e64e7d8b232253f97cd1d35b5b8ad97b.jpg", "table_caption": [ "Table 6: Model Accuracy on the GAS dataset. " ], "table_footnote": [], "table_body": "
TrainingTesting Accuracy (%)Memory (KB)Compression Rate
Normal TrainingDIVISION98.9298.8525034.2N/A7.3×
", "bbox": [ 223, 642, 772, 686 ], "page_idx": 21 }, { "type": "text", "text": "L EVALUATION OF DIVISION ON VISION TRANSFORMERS ", "text_level": 1, "bbox": [ 176, 723, 681, 739 ], "page_idx": 21 }, { "type": "text", "text": "We conduct experiments to study the performance of DIVISION on Swin Transformer (Liu et al., 2021a). In this experiment, a Swin Transformer-T is trained on the ImageNet datset, where DIVISION is compared with Mesa (Pan et al., 2021), an ACT framework for visual transformer. The model accuracy and memory cost (with batch-size 128) are given in Table 7. It is observed that DIVISION achieves almost the same model accuracy compared with normal training. This indicates DIVISION can effectively compress the training of the vision Transformer. ", "bbox": [ 174, 757, 825, 842 ], "page_idx": 21 }, { "type": "text", "text": "Although DIVISION shows slightly lower accuracy lower than Mesa, the compression rate is significantly higher than Mesa. Moreover, DIVISION can be applied to general vision models, including MLPs, CNNs, and vision transformers; while Mesa is explicitly designed for vision transformers. ", "bbox": [ 174, 849, 825, 891 ], "page_idx": 21 }, { "type": "table", "img_path": "images/d55d8a353013289178405c37dd86497334dd6b743b53edafbc4b1c3585a0ed74.jpg", "table_caption": [ "Table 7: Accuracy of Swin Transformer-T on the ImageNet dataset. " ], "table_footnote": [], "table_body": "
MethodAccuracy (%)Memory (GB)Compression Rate
Normal TrainingDIVISIONMesa81.281.081.311.814.195.37N/A2.8×2.2×
", "bbox": [ 250, 127, 746, 185 ], "page_idx": 22 }, { "type": "text", "text": "M EVALUATION OF DIVISION ON DEPTHWISE AND POINTWISE CONVOLUTIONAL LAYERS ", "text_level": 1, "bbox": [ 174, 210, 725, 244 ], "page_idx": 22 }, { "type": "text", "text": "To evaluate DIVISION on the depthwise convlution and pointwise convulution layers, we conduct experiments of MobileNet-V2 on the CIFAR-10 and CIFAR-100 datasets, where the model accuracy are given Table 8. It is observed that DIVISION achieve nearly the same accuracy compared with normal training. This indicates the effectiveness of DIVISION for the depthwise convlution and pointwise convulution layers. ", "bbox": [ 174, 262, 825, 333 ], "page_idx": 22 }, { "type": "table", "img_path": "images/60f7e859db8fc552a1de5a60e991b02440466fcd95b412881614723e1ab8334d.jpg", "table_caption": [ "Table 8: Accuracy of MoblieNet-V2 on the CIFAR-10 and CIFAR-100 datasets. " ], "table_footnote": [], "table_body": "
MethodMobileNet-V2 (CIFAR-10)MoblieNet-V2 (CIFAR-100)
Normal TrainingDIVISION91.991.871.070.6
", "bbox": [ 230, 375, 766, 419 ], "page_idx": 22 }, { "type": "text", "text": "N RE-UTILIZATION OF HYPER-PARAMETER SETTINGS ACROSS DIFFERENT MODEL ARCHITECTURES AND DATASESTS ", "text_level": 1, "bbox": [ 178, 452, 808, 486 ], "page_idx": 22 }, { "type": "text", "text": "We conduct the follow-up experiments to study whether the hyper-parameter setting of DIVISION has a consistent effect on different model architectures and datasets. Specifically, the hyperparameters of DIVISION are selected from $B \\in \\{ 8 , 1 8 \\}$ and $Q \\in \\{ 2 , 8 \\}$ to train ResNet-18 and MobileNet-V2 on the CIFAR-10 and CIFAR-100 datasets. The model accuracy is given in Table 9. It is observed $B$ and $Q$ have a consistent impact on different model architectures and datasets: the accuracy slightly grows with $Q$ and considerably reduces with $B$ . This indicates we can reuse the hyper-parameter setting of DIVISION on CIFAR-10 to CIFAR-100 with the same model architecture, or we can reuse the setting with ResNet-18 and MobileNet-V2 on the same dataset. ", "bbox": [ 173, 503, 825, 614 ], "page_idx": 22 }, { "type": "table", "img_path": "images/49a5f35faebf19a5b9c16741584cce47b0324dcded68cd21f9b1d20bc92a6d20.jpg", "table_caption": [ "Table 9: Accuracy of ResNet-18 and MoblieNet-V2 with different hyper-parameter settings. " ], "table_footnote": [], "table_body": "
B=18Q=2B=8Q=2B=8Q=8
ResNet-18 CIFAR-10ResNet-18 CIFAR-100MobileNet-V2CIFAR-10MobileNet-V2 CIFAR-10078.773.294.694.977.091.0
73.276.9
10.010.091.7
62.470.671.6
", "bbox": [ 230, 656, 767, 728 ], "page_idx": 22 }, { "type": "text", "text": "O COMPARISON OF DIVISION WITH CHECKPOINT STRATEGY OF MEGATRON-LM ", "text_level": 1, "bbox": [ 178, 761, 736, 795 ], "page_idx": 22 }, { "type": "text", "text": "DIVISION is compared with the checkpointing strategy of Megatron-LM (Shoeybi et al., 2019). According to the official guideline, Megatron-LM checkpoints the activation map after each transformer block. We follow this strategy to checkpoint the activation map after each transformer block in the Swin Transformer, and after each Bottleneck block in the ResNet-50. The memory cost (on the ImageNet dataset with batch-size 128) is given in Table 10. It is observed DIVISION has a higher compression rate $2 . 8 \\times$ for Swin Transformer-T and $7 . 9 \\times$ for ResNet-50) than the Checkpoint strategy of Megatron-LM $2 . 3 \\times$ for Swin Transformer-T and $2 . 2 7 \\times$ for ResNet-50). This indicates the effectiveness of DIVISION over the checkpoint strategy of Megatron-LM. ", "bbox": [ 173, 811, 825, 924 ], "page_idx": 22 }, { "type": "table", "img_path": "images/3d771e0976bcea0b37645c99d8d81593c7b26d67c80e40ebecfdcb2953643023.jpg", "table_caption": [ "Table 10: Memory cost of DIVISION and Checkpoint strategy of Megatron-LM. " ], "table_footnote": [], "table_body": "
Memory cost (GB) Normal TrainingDIVISIONCheckpoint strategy of Megatron-LM
Swin Transformer-TResNet-5011.8110.624.19 (2.8×)1.35 (7.9x)5.14 (2.3x)4.68 (2.27×)
", "bbox": [ 173, 126, 828, 171 ], "page_idx": 23 }, { "type": "text", "text": "P EFFECT OF BIT-WIDTH ON THE FIXED QUANTIZATION ", "text_level": 1, "bbox": [ 176, 202, 656, 218 ], "page_idx": 23 }, { "type": "text", "text": "To demonstrate the effectiveness of dual activation precision, DIVISION $\\boldsymbol { B } = \\boldsymbol { 8 }$ , $Q = 2 { \\it \\Psi }$ ) is compared with the fixed quantization under different bit-width. The model accuracy of ResNet-50 on the ImageNet dataset is given in Table 11. It is observed the training fails to converge to an optimal solution under 2-bit quantization, even though it performs favorably under 4-bit and 8-bit quantization. This result is consistent with existing work (Chen et al., 2021) (Table 3 in (Chen et al., 2021)). In contrast, DIVISION achieves $7 5 . 9 \\%$ accuracy when adopting 2-bit quantization to compress the HFC. This indicates the effectiveness of dual activation precision in terms of the model accuracy under low bit-width quantization. ", "bbox": [ 173, 236, 825, 348 ], "page_idx": 23 }, { "type": "table", "img_path": "images/15c401ccf795880882328030d7349558640910f525d09a022221dd5231a28b5a.jpg", "table_caption": [ "Table 11: Model accuracy of fixed quantization under different bit-width. " ], "table_footnote": [], "table_body": "
Bit-width248
Fixed QuantizationDIVISION0.175.976.05omit76.35omit
", "bbox": [ 343, 393, 653, 438 ], "page_idx": 23 }, { "type": "text", "text": "Q EFFECT OF MINI-BATCH SIZE ON THE THROUGHPUT ", "text_level": 1, "bbox": [ 173, 478, 642, 494 ], "page_idx": 23 }, { "type": "text", "text": "As a supplementary of Section 5.5, a follow-up experiment is conducted to study the effect of batchsize on the training throughput. The result on the CIFAR-10 dataset is given in Table 12. It is observed: for the experiment w/o AMP, the throughput significantly grows as the batch-size grows from 64 to 128, but is almost unchanged when the batch-size $\\geq 1 2 8$ ; for the experiment w/ AMP, it grows continuously when the batch-size grows from 64 to 256, and becomes stable when the batch-size $\\geq 2 5 6$ . ", "bbox": [ 173, 513, 825, 598 ], "page_idx": 23 }, { "type": "table", "img_path": "images/b940af153b1bd2f7dee71e7c791450592261d704a4459fb7bdac269e3937dac8.jpg", "table_caption": [ "Table 12: Traininig throughput versus the batch-size. " ], "table_footnote": [], "table_body": "
images/sBatchsize=64Batchsize=128Batchsize=256Batchsize=512Batchsize=1024
w/o AMP1185.272184.362335.412394.842409.99
w/ AMP1273.462285.873753.063981.954068.67
", "bbox": [ 173, 641, 841, 686 ], "page_idx": 23 }, { "type": "text", "text": "Intuitively, as the batch-size grows, the GPU can parallel process more images per second, until the GPU is $100 \\%$ utilized (Goyal et al., 2017). In the experiment w/o AMP, the GPU is almost $100 \\%$ utilized when batch-size $\\geq 1 2 8$ ; while this happens when batch-size $\\geq 2 5 6$ in the experiment w/ AMP. More images can be processed in the experiment w/ AMP, since it employs bfloat16 operations in the training, in contrast with the float32 operations in the training w/o AMP, where a bfloat16 operation has nearly half of the computation cost of a float32 operation. Therefore, the training throughput significantly grows from 2086 (images/s) to 3753 (images/s) as the batch-size grows from 128 to 256 in the experiment w/ AMP, but is almost unchanged (2184 images/s vs 2335 images/s) in the same condition in the experiment w/o AMP. ", "bbox": [ 173, 707, 825, 833 ], "page_idx": 23 }, { "type": "text", "text": "R DETAILS ABOUT THE COMPUTATION INFRASTRUCTURE ", "text_level": 1, "bbox": [ 176, 859, 669, 876 ], "page_idx": 23 }, { "type": "text", "text": "The details about our physical computing infrastructure for testing the training memory cost and throughput are given in Table 13. ", "bbox": [ 174, 895, 823, 924 ], "page_idx": 23 }, { "type": "table", "img_path": "images/b91a0ff0edf90bcfd2db6aac3168fbca3d6599cf9a3073d28c644699c9cb7920.jpg", "table_caption": [ "Table 13: Computing infrastructure for the experiments. " ], "table_footnote": [], "table_body": "
Device AttributeValue
Computing infrastructureGPU
GPU modelNvidia-RTX3090
GPU number1
GPUMemory24567 MB
", "bbox": [ 336, 128, 658, 204 ], "page_idx": 24 }, { "type": "text", "text": "S IMPLEMENTATION DETAILS OF THE EXPERIMENT IN SECTION 5.4 ", "text_level": 1, "bbox": [ 173, 218, 753, 234 ], "page_idx": 24 }, { "type": "text", "text": "We give the implementation details of the experiment in Section 5.4. Specifically, DIVISION w/o $H F C$ takes block-size $B = 4$ for estimating LFC; DIVISION w/o LFC takes the bit-width $Q = 2$ for the quantization of HFC; DIVISION combines these settings for the training; and Fixed Quant has a 2-bit per-group quantization of activation maps during the backward pass of the training, where the group size of quantization is 256. Other training hyper-parameters are given in Table 5. ", "bbox": [ 173, 250, 826, 320 ], "page_idx": 24 } ]