Title: DYVEDEEP: DYNAMIC VARIABLE EFFORT DEEP NEURAL NETWORKS

Abstract: Deep Neural Networks (DNNs) have advanced the state-of-the-art in a variety of machine learning tasks and are deployed in increasing numbers of products and services. However, the computational requirements of training and evaluating large-scale DNNs are growing at a much faster pace than the capabilities of the underlying hardware platforms that they are executed upon. In this work, we propose Dynamic Variable Effort Deep Neural Networks (DyVEDeep) to reduce the computational requirements of DNNs during inference. Previous efforts propose specialized hardware implementations for DNNs, statically prune the network, or compress the weights. Complementary to these approaches, DyVEDeep is a dynamic approach that exploits the heterogeneity in the inputs to DNNs to improve their compute efficiency with comparable classification accuracy. DyVEDeep equips DNNs with dynamic effort mechanisms that, in the course of processing an input, identify how critical a group of computations are to classify the input. DyVEDeep dynamically focuses its compute effort only on the critical computations, while skipping or approximating the rest. We propose 3 effort knobs that operate at different levels of granularity viz. neuron, feature and layer levels. We build DyVEDeep versions for 5 popular image recognition benchmarks -one for CIFAR-10 and four for ImageNet (AlexNet, weightcompressed AlexNet). Across all benchmarks, DyVEDeep achieves 2.1×-2.6× reduction in the number of scalar operations, which translates to 1.8×-2.3× performance improvement over a Caffe-based implementation, with < 0.5% loss in accuracy.

1. INTRODUCTION:

Deep Neural Networks (DNNs) have greatly advanced the state-of-the-art on a variety of machine learning tasks from different modalities including image, video, text, and natural language processing. However, from a computational standpoint, DNNs are highly compute and data intensive workloads. For example, DNN topologies that have won the ImageNet Large-Scale Visual Recognition Contest (ILSVRC) for the past 5 years, contain between 60-150 million parameters and require 2-20 giga operations of compute to classify a single image. These requirements are only projected to increase in the future, as data sets of larger sizes and topologies of larger complexity (more layers, features and feature sizes) are actively explored. Indeed, the growth in computational requirements of DNNs has far outpaced improvements in the capabilities of commodity computational platforms in recent years.

Two key scenarios exemplify the computational challenges imposed by DNNs: (i) Large-scale training, in which DNNs are trained on massive data-sets using high-performance server clusters or in the cloud, and (ii) Low-power inference, in which DNN models are evaluated on energy-constrained platforms such as mobile and deeply-embedded (Internet-of-Things) devices. Towards addressing the latter challenge, we propose Dynamic Variable Effort Deep neural networks (DyVEDeep), a new dynamic approach to improve the computational efficiency of DNN inference.

Related Research Directions. Prior research efforts to improve the computational efficiency of DNNs can be classified into 4 broad directions. The first comprises parallel implementations of DNNs on commercial multi-core and GPGPU platforms. Parallelization strategies such as model, data and hybrid parallelism (Krizhevsky (2014) ; Das et al. (2016) ), techniques such as asynchronous SGD (Dean et al. (2012) ) and 1-bit SGD (Seide et al. (2014) ) to alleviate communication overheads are representative examples. The next set of efforts design specialized hardware accelerators to realize DNNs, trading off programmability, the cost of specialized hardware and design effort for efficiency. A spectrum of architectures ranging from low-power IP cores to large-scale systems have been proposed (Farabet et al. (2011) ; Chen et al. (2014) ; Jouppi) . The third set of efforts focus on developing new device technologies whose characteristics intrinsically match the computational primitives in neural networks, leading to improvements in energy efficiency (Liu et al. (2015b) ; Ramasubramanian et al. (2014) ). The final set of efforts exploit the fact that DNNs are typically over-parametrized (Denil et al. (2013) ) due to the non-convex nature of the optimization space (Hinton et al. (2012) ). Therefore, they approximate DNNs by statically pruning network connections, representing weights with reduced bit precision and/or in a compressed format, thereby improving compute efficiency for a negligible loss in classification accuracy (LeCun et al. (1989) ; Han et al. (2015b) ; Liu et al. (2014) ; Venkataramani et al. (2014) ; Anwar et al. (2015) ; Tan & Sim (2016) ).

DyVEDeep: Motivation and Concept. In contrast to the above efforts, our proposal, Dynamic Variable Effort Deep neural networks (DyVEDeep1 ), leverages the heterogeneity in the characteristics of inputs to a DNN to improve its compute efficiency. The motivation behind DyVEDeep stems from the following key insights.

First, in real-world data, not all inputs are created equal, i.e., inputs vary considerably in their "difficulty". Intuitively, only inputs that lie very close to the decision boundary require the full effort of the classifier, while the rest could be classified with a much simpler (e.g., linear) decision boundary. In the context of DNNs, we can see that increasing network size provides a valuable, but nevertheless diminishing increase in accuracy. For example, in the context of ImageNet, increasing network's computational requirements by over 15× (from AlexNet to VGG) yields an additional 16% increase in classification accuracy. This raises the question of whether some of the inputs can be classified with substantially fewer computations, while expending increased effort only for inputs that require it.

Second, for a given input, the effort needs to be expended across different parts of the network. For example, in an image recognition problem, the computations corresponding to neurons that operate on the image region where an object of interest is located are more critical to the classification output than the others. Also, some features may be less relevant than others in the context of a given input. For example, features that detect sharp edges may be less relevant if the current input is comprised mostly of curved surfaces.

Notwithstanding the above observations, state-of-the-art DNNs are static i.e., they are computationally agnostic to the nature of the input being processed and expend the same (worst case) computational effort on all inputs, which leads to significant inefficiency. DyVEDeep addresses this limitation by dynamically predicting which computations are critical to classify a given input and focusing compute effort only on those computations, while skipping or approximating the rest. In effect, the network expends computational effort on different subsets of computations for each input, reducing computational requirements in each case without sacrificing classification accuracy.

Dynamic Effort Knobs.:

The key to the efficiency of DyVEDeep lies in favorably navigating the trade-off between the cost of identifying critical computations vs. the benefits accrued by skipping or approximating computations. To this end, we identify three dynamic effort mechanisms at different levels of granularity viz. neuron, feature and layer-levels. These mechanisms employ run-time criteria to dynamically evaluate the criticality of groups of computations and appropriately skip or approximate those that are deemed to be less critical.

• Saturation Prediction and Early Termination (SPET) operates at the neuron-level. It monitors the intermediate output of each neuron after processing a subset of its inputs (partial dot product between a subset of inputs and corresponding weights) and predicts the likelihood of the neuron eventually saturating after applying the activation function. If the partial sum is deep within the saturation regime (e.g., a large negative value in the case of ReLU), all further computations corresponding to the neuron are deemed to be non-critical and skipped. 2015)), and storing weights in a compressed format (Han et al. (2015a) ). For example, in the context of fully connected layers, HashNets ( Chen et al. (2015) ) use a hash function to randomly group weights into bins, which share a common parameter value, thereby reducing the number of parameters needed to represent the network. Deep compression (Han et al. (2015a) ) attempts to prune connections in the network by adding a regularization term during training, and removing connections with weights below a certain threshold.

In the context of convolution layers, where the dropout probability of each neuron is estimated using a binary belief network. The dropout mask is computed for the network in one shot, conditioned on the input to the network. Bengio et al. (2015) extends a similar idea, wherein the dropout distribution of each layer is computed based on the output of the preceding layer.

The dynamic effort mechanisms proposed in DyVEDeep are qualitatively different from the aforementioned efforts. Rather than stochastically dropping computations, effort knobs in DyVEDeep exploit properties such as the saturating nature of activation to directly predict the effect of approximation on the neuron output. Further, prior dynamic approaches have only be been applied to fully-connected networks trained on small datasets. Their applicability to large-scale DNNs remains unexplored. On the other hand, DyVEDeep is naturally applicable to both convolutional and fully connected layers, and we demonstrate substantial benefits on large-scale networks for ImageNet.

3. DYVEDEEP: DESIGN APPROACH AND DYNAMIC EFFORT KNOBS:

The key idea behind DyVEDeep is to improve the computational efficiency of DNNs by modulating the effort that they expend based on the input that is being processed. As shown in Figure 1 , we achieve this by equipping the DNN with dynamic effort mechanisms ("effort knobs") that dynamically predict criticality of groups of computations with very low overhead, and correspondingly skip or approximate them, thereby improving efficiency with negligible impact on classification accuracy. We identify three such dynamic effort mechanisms in DNNs that operate at different levels of granularity. We also propose a methodology to tune the hyper-parameters associated with these mechanisms so that variable effort versions of any DNN can be obtained with negligible loss in classification accuracy.

3.1. SATURATION PREDICTION AND EARLY TERMINATION:

Saturation Prediction and Early Termination (SPET) works at the finest level of granularity, which is at the level of each neuron in the DNN. In this case, we leverage the fact the almost all convolutional and fully connected layers are followed by an activation function that saturates on at least one side. For example, the commonly used Rectified Linear Unit (ReLU) activation function saturates at one end by truncating the negative inputs to zero, while passing the positive inputs as is.

The key idea in SPET is that the actual value of the weighted sum (dot product between a neuron's inputs and weights) does not impact the neuron's output, provided the sum will eventually cause the neuron's activation function to saturate. In the case of ReLU, it is unnecessary to compute the actual sum if it will eventually be a negative value, as any negative value would result in a neuron output of zero. Based on the above observation, as shown in Figure 2 , SPET monitors the partial weighted sum of a neuron after a predefined fraction of its inputs have been multiplied-and-accumulated. SPET then predicts whether the final partial sum would cause the neuron's activation function to saturate.

To this end, we introduce the following hyper-parameters:

• SP ET lT hresh and SP ET uT hresh : We set two thresholds on the partial sum value of the each neuron. At the time of prediction, as shown in Equation 1, if the partial sum is found to be smaller than SP ET lT hresh or greater than SP ET uT hresh , the partial sum computation is terminated early, and the appropriate saturated activation function value is returned as the neuron's output. If not, we continue to completely evaluate the partial sum value for the neuron. We note that if the activation function saturates in just one direction, only one of the SPET thresholds will be useful to predict saturation. For example, in the case of ReLU, only the SP ET lT hresh is used to predict saturation. To demonstrate the potential benefits from SPET, Figure 3 shows the fraction of neurons in the convolutional layers of the CIFAR-10 DNN that saturate. We find that between 50%-73% of the neuron activations are zeros due to the ReLU activation function. Figure 3 also reveals that the fraction of neurons saturating increases as we proceed deeper into the network. We observed similar trends for larger networks such as AlexNet and OverFeat. Since a majority of neuron activations saturate in typical DNNs, SPET has a potential to achieve significant improvements in processing efficiency.

SP ET:

Figure 3 : Average fraction of neurons that saturate in each layer of the CIFAR-10 DNN Saturation Prediction Interval. A key aspect of SPET is the interval at which we predict for saturation. On the one hand, predicting saturation after processing a small number of inputs to each neuron would frequently result in the prediction being incorrect, leading to a loss in classification accuracy. On the other hand, a larger prediction interval yields progressively smaller computational savings. Quantifying the above trade-off, Figure 4 illustrates, for the CIFAR-10 DNN, the fraction of neuron that were predicted to be saturated correctly at various prediction intervals. For the illustration in Figure 4 , we assume a SP ET lT hresh of 0 i.e., a neuron is predicted to saturate if its partial sum at the point of prediction is negative. We find that the fraction of neurons predicted correctly increases with the prediction interval.

The SP ET lT hresh and SP ET uT hresh hyper-parameters are determined during DNN training. We note that the prediction interval could also be learnt during the training process. However, we found that a simpler scheme where we fix the prediction interval at 50% (i.e., we predict for saturation after half the inputs to a neuron have been processed) worked quite well in practice.

Rearranging Neuron Inputs. For SPET to be most effective, the weights should be processed in decreasing order of magnitude, as larger weights are likely to have the most impact on the partial sum. However, this is not feasible in practise, as it affects the regularity in the memory access pattern, directly offsetting the savings from skipping computations. Also, in the case of convolutional layers, if the prediction interval is set to 50%, inputs from half of the feature maps are ignored at the time of prediction. To maximize the range of inputs processed before prediction, while maintaining regularity in the memory access pattern, we rearrange the neuron inputs such that all odd indexed inputs are processed first, after which the prediction is made. The even indexed inputs are computed only if the neuron was not predicted to saturate.

3.2. SIGNIFICANCE-DRIVEN SELECTIVE SAMPLING:

Significance-driven Selective Sampling (SDSS) operates the granularity of each feature in the convolutional layers of the DNN. SDSS leverages the spatial locality in neuron activations within each feature. For example, in the context of images, adjacent pixels in the input image frequently take similar values. As the neuron activations are computed by sliding the kernel over the image, the Uniform Feature Sampling. In the first step, we compute the activation values for a subset of neurons in the feature by uniformly sampling the feature. For this purpose, we define a parameter SP that denotes the periodicity of sampling in each dimension. The value of SP is chosen based on the size of the feature and the correlation between adjacent neuron activations. In our experiments, we used a sampling period of 2 across all convolutional layers in a DNN.

Significance-driven Selective Evaluation. In the second step, as shown in Figure 5 we selectively approximate activation values of neurons that were not sampled in the first step. To this end, we define the following two hyper-parameters: (i) Maximum Activation Value Threshold (M axAct thresh ), (ii) Delta Activation Value Threshold (DelAct thresh ). For each neuron in the feature that is yet to be computed, we examine the activation values of its immediate neighbors in all directions, and compute the maximum and range (difference between max and min) of the neighbors' activation values. If the maximum value is below the M axAct thresh threshold and the range is less than the DelAct thresh , then the activation value of the neuron is approximated to be the average of its neighbors. If not, the actual activation value of the neuron is evaluated. Thus, the SDSS effort knob utilizes the magnitude and variance of neighbors to gauge whether a neuron lies within a region of interest, and accordingly expends computational effort to compute its activation value.

3.3. SIMILARITY-BASED FEATURE MAP APPROXIMATION:

Similarity-based Feature Map Approximation (SFMA) also exploits the correlation between activation values in a feature, but in a very different way. In SDSS, the spatial locality was exploited in computing the neuron activations themselves. In contrast, in the case of SFMA, the spatial locality is used to approximate computations that use the feature as their input. Consider a convolutional layer in which one of the input features has all of its neuron activations similar to each other. When a convolution operation is performed on this input feature by sliding the kernel matrix, all the entries in the convolution output are likely to be close to each other. Therefore, as shown in Figure 6 , we approximate entire convolution operation as follows. First, the average value of all neuron activations in the feature is computed. Next the sum of all weights in the kernel matrix is evaluated. We note that the sum can be precomputed and stored along with the kernel matrix. We then approximate all outputs of the convolution as the product of the average input activation and the sum of all kernel weights. Mathematically, the above approximation can be expressed as follows.

Similarity-based:

ConvOut W = Σ k 2 i=0 w i * W i = µ * Σ k 2 i=0 w i + Σ k 2 i=0 w i * (W i -µ) ≈ µΣ k 2 i=0 w i

In the above equation, ConvOut W is the convolution output for a window W of size k × k, where k is the kernel size. µ is the mean of all the activation values in the feature. This approximation is valid when Σw i * (W i -µ) is negligible.

To determine on which convolutions to apply the aforementioned approximation, we define the following 2 hyper-parameters:

• Weight Significance Threshold (W Sig thresh ) -We set this threshold on the sum of absolute values of the kernel weights. This is an approximate measure of significance of the current convolution to the output feature

• Feature Variance Threshold (F eaV ar thresh ) -We set this threshold on the variance of the neuron activations in the feature.

Given the hyper-parameters, the convolution is approximated when (i) the sum of the kernel weights are below W Sig thresh , indicating that the convolution is relatively less significant to the output feature, and (ii) the variance of neuron activations in the feature is below F eaV ar thresh , indicating that the error due to replacing the entire feature with its average is tolerable.

When the feature sizes are large, we do not check for the variance across the entire feature. Instead, we split the feature into multiple regions, that overlap on each dimension by the size of the kernel window. We check for variance within each region, and if the variance is below F eaV ar thresh , the kernel windows that fit entirely within the region are approximated.

3.4. INTEGRATING EFFORT KNOBS:

We now describe how the different effort knobs-SPET, SDSS and SFMA-are combined in DyVEDeep. Since each effort knob operates at a different level of granularity, they can be easily integrated with each other. To combine SPET and SDSS, each neuron activation in the uniformly sampled features of SDSS are computed with SPET. However, we do not apply SPET to the neurons that are selectively computed in SDSS, as they are located in the midst of neurons with large activation values and/or variance, and are hence unlikely to saturate. SFMA fundamentally amounts to grouping a set of inputs (within a convolution window) to a neuron into a single input, and therefore directly fits with the process of evaluating a neuron with SPET/SDSS.

In summary, the SPET effort knob applies to both convolutional and fully connected layers of DNNs, and is most effective when majority of the neurons saturate. Since the convolutional layers towards the middle of the DNN have a large number of inputs per neuron and contain a substantial fraction of saturated neurons, we expect SPET to be most beneficial for those layers. The SDSS effort knob primarily applies only to convolutional layers, and is most effective when the features sizes are large. Therefore, the initial convolutional layers would benefit the most from SDSS. On the other hand, SFMA works best when there are a large number of features in the layer and when the feature sizes are small. Hence the middle and later convolutional layers are likely to benefit from SFMA.

3.5. HYPER-PARAMETER TUNING:

As described in the previous subsections, the dynamic effort knobs together contain 6 hyper parameters viz. SP ET lT hresh , SP ET uT hresh , M axAct thresh , DelAct thresh , W Sig thresh and F eaV ar thresh . These hyper-parameters control how aggressively the effort knobs skip or approximate computations, thereby yielding a direct trade-off between computational savings vs. classification accuracy. Using a pre-trained network and a training dataset, we systematically determine the DyVEDeep hyper-parameters before the DNN model is deployed. Ideally, we could define these parameters uniquely for each neuron in the DNN. For example, each neuron could have its unique SP ET lT hresh threshold to predict when it saturates (SPET), or F eaV ar thresh threshold to deem if an input feature map can be approximated during its partial sum evaluation (SFMA). Clearly, this results in a prohibitively large hyper-parameter search space, and adds substantial overhead to the overall size of the DNN model. Since neurons in a given layer are computationally similar (same set of inputs, number of computationsetc.), we define the hyper-parameters at a layer-wise granularity i.e., all neurons within a layer share the same set of hyper-parameters. Also, since all our benchmarks utilized the ReLU activation function, we ignored the SP ET uT hresh when identifying the hyper-parameter configuration.

Result: DyVEDeep Network N Start with pre-trained network N ; for l in ConvolutionalLayers do BinarySearch ((W Sig thresh , F eaV ar thresh ), l); BinarySearch (M axAct thresh , l); BinarySearch (DelAct thresh , l); BinarySearch (SP ET lT hresh , l); end for l in FullyConnectedLayers do BinarySearch (SP ET lT hresh , l); end Algorithm 1: Hyperparameter tuning algorithm Algorithm 1 shows the pseudocode for the hyper-parameter tuning process. Empirically, we observed that parameters corresponding to each effort knob can be independently tuned. Therefore, we adopt a strategy wherein we first identify a range of possible values for each hyper-parameter. Since computational savings monotonically increase or decrease with the value of each parameter, we perform a greedy binary search on its range. The range of each parameter can be identified as follows. The SP ET lT hresh and M axAct thresh parameters vary over the entire range of values the partial sum of neurons can take in a layer. However, we typically observe that zero is a good lower bound for these parameters, as ReLU sets all negative values to 0. The upper bound is determined by evaluating the DNN on each input in the training dataset and recording the maximum partial sum value for each layer. The other parameters DelAct thresh , W Sig thresh and F eaV ar thresh are naturally lowered bounded by 0 as they are thresholds on absolute magnitudes. Similar to SP ET lT hresh and M axAct thresh , the upper limit of the other parameters are also estimated by evaluating the DNN on the training set.

Given a hyper-parameter and its range, the highest possible value for the parameter yields the maximum computation savings but adversely affects the classification accuracy. On the other extreme, the lowest value of the parameter does not impact the classification accuracy. However, it yields no computation savings and in fact adds a penalty for criticality prediction. Therefore, we perform a binary search on the range to identify the highest value of the parameter that yields negligible loss in classification accuracy (<0.5% in our experiments). In the case of SFMA, we observed that the two hyper-parameters (F eaV ar thresh and W Sig thresh ) need to be searched together. Since the range of F eaV ar thresh is more coarser than W Sig thresh , we loop over the values of F eaV ar thresh , and search for possible values of W Sig thresh in each case.

In summary, by embedding dynamic effort knobs into DNNs, DyVEDeep seamlessly varies computational effort across inputs to achieve significant computational savings while maintaining classification accuracy.

4. EXPERIMENTAL METHODOLOGY:

In this section, we describe the methodology used in our experiments to evaluate DyVEDeep.

Benchmarks. To evaluate DyVEDeep, we utilized pre-trained DNN models available publicly on the Caffe Model Zoo (BVLC (a)) benchmark repository. This reinforces DyVEDeep's ability to adapt to any given trained network. We used the following 5 DNN benchmarks in our experiments: CIFAR-10 Caffe network (BVLC (b)) for the CIFAR-10 dataset (Krizhevsky (2009) ), and AlexNet (Krizhevsky et al. (2012) ), Overfeat-accurate (Sermanet et al.) , VGG-16 (Simonyan & Zisserman (2014) ), and compressed AlexNet (Han et al. (2015a) ) for the ImageNet ILSVRC 2012 data set (Deng et al. (2009) ). The inputs for the ImageNet dataset are generated by using a 224 × 224 center crop of the images in the test set. We randomly selected 5% of the test inputs and used it as a validation set to tune the hyper parameters. We report speedup and classification accuracy results on the remaining 95% of the test inputs.

Performance Measurement. We implemented DyVEDeep in C++ within the Caffe deep learning framework (Jia et al. (2014) ). However, we could not directly integrate DyVEDeep within Caffe, as it composes all computations within a layer for a given batch size into a single GEMM (GEneral Matrix Multiplication) operation, which is offered by BLAS (Basic Linear Algebra Subprograms) libraries. BLAS libraries specifically optimize matrix operations at the assembly level. Since DyVEDeep requires more fine-grained computation skipping/approximation, we were unable to directly incorporate it within these routines. Therefore, we prototyped our own implementation for the convolutional layers within Caffe and used it in our experiments.

Our experiments were conducted on an Intel Xeon server operating at 2.7GHz frequency and 128GB memory. We added performance counters to both DyVEDeep and the baseline DNN implementation to measure the software execution time. All our timing results are reported for a single-threaded sequential execution. Also, for our experiments, we introduced dynamic effort knobs only in the convolutional layers of the DNN, as they dominated the overall runtime for all our benchmarks. However, we note that the reported execution times and performance benefits include the time taken by all layers in the network.

In this section, we present the results of our experiments that demonstrate the benefits of DyVEDeep. We first present the reduction in scalar operations and execution time achieved by DyVEDeep in Figure 7 . Please note that the Y-axis in Figure 7 is a normalized scale to represent the benefits in both scalar operations and runtime. We find that, across all benchmarks, DyVEDeep consistently achieves substantial reduction in operation count, ranging between 2.1×-2.6×. This translates to 1.8×-2.3× benefits in software execution time. In all the above cases, the difference in classification accuracy between the baseline DNN and DyVEDeep was <0.5%. On an average, the runtime overhead of the dynamic effort knobs in DyVEDeep was 5% of the baseline DNN. Also, while the runtime benefits with DyVEDeep are quite significant, they are smaller compared to the reduction in scalar operations. This is expected as applying the knobs require us to alter memory access patterns and perform additional book keeping operations. Also, control operations, such as loop counters etc., that are inherent to any software implementation limits the fraction of runtime DyVEDeep can benefit.

5.2. LAYER-WISE AND KNOB-WISE BREAKDOWN OF COMPUTE SAVINGS:

Figure 8a shows the break down of run time savings across different layers of AlexNet, with the layers plotted on the X-axis and the average run time per layer normalized to the total baseline DNN run time on the Y-axis. We achieve 1.5× reduction in run time in the initial convolutional layers (C1,C2), which increases to 2.6× in the deeper convolutional layers (C3-C5). The C1 layer in AlexNet has a kernel size of 11×11 and operates with a stride of 4. Hence, its output is less likely to have the correlation that SSDS expects. Also, since there are very few input features, SFMA is also not very effective. Also, the fraction of neurons saturating is relatively small in the first layers, which impacts the effectiveness of SPET. Hence, we achieve better savings in the deeper convolutional layers compared to the initial ones.

Figure 8b compares the contribution of each effort knob to the overall savings for each convolutional layer in AlexNet. Over all layers, the SDSS knob yields the highest savings, reducing 31% of the total scalar operations. The SPET and SFMA knobs contribute 19% and 7% respectively. We find that the effectiveness of each knob is more pronounced in the deeper convolutional layers.

5.3. VISUALISATION OF EFFORT MAP OF DYVEDEEP:

Figures 10 and 11 illustrate the normalised effort map of DyVEDeep for all features in layer C1 for two sample images (Figure 9 ) from the CIFAR-10 data set. We use layer C1, as this is the closest layer to the actual image and allows for better visualization. The normalization is done with respect to the number of operations that would have been performed to compute the neuron, had our knobs not been in place. Darker regions represent more computations. It is remarkable to see that DyVEDeep focuses more effort on precisely the regions of the image, that contains the object of interest. We compare this with the activation map of the corresponding features. Here, the darker regions represent activated neurons. This has been done to highlight the correlation between the These effort maps corroborate our knobs' effectiveness in identifying the critical computations for the current input.

6. CONCLUSION:

Deep Neural Networks have significantly impacted the field of machine learning, by enabling stateof-the-art functional accuracies on a variety of machine learning problems involving image, video, text, speech and other modalities. However, their large-scale structure renders them compute and data intensive, which remains a key challenge. We observe that state-of-the-art DNNs are static i.e. they perform the same set of computations on all inputs. However, in many real-world datasets, there exists significant heterogeneity in the compute effort required to classify each input. Leveraging this opportunity, we propose Dynamic Variable Effort Deep Neural Networks (DyVEDeep), or DNNs that modulate their compute effort dynamically ascertaining which computations are critical to classify a given input. We build DyVEDeep versions of 4 popular image recognition benchmarks.

Our experiments demonstrate that DyVEDeep achieves 2.1×-2.6× reduction in scalar operations and 1.9×-2.3× reduction in runtime on a Caffe-based sequential software implementation, while maintaining the same level of classification accuracy. 

:

The name stems from the notion that a network should "dive deep", or expend computational effort, judiciously as and where it is needed.

Figures and Tables:

Figure 1: DNN equipped with dynamic effort knobs

Figure 2: Saturation Prediction and Early Termination

Figure 4: Saturation prediction accuracy at different prediction intervals

Figure 5: Significance-driven Selective Evaluation

Figure 6: Similarity-based Feature Map Approximation

Figure 7: Normalized improvement in scalar operations and execution time

Figure 8: (a) Layer wise breakdown of runtime benefits in AlexNet (b) Contribution of each effort knob to ops improvement

Figure 10: Comparing the activation map and effort map of DyVEDeep for features in CIFAR-10 network layer C1 for the horse input

Denton et al. (2014);Jaderberg et al. (2014) exploit the linear structure of the network to find a suitable low rank approximation. On the other hand,Liu et al.  (2015a)  propose sparse convolutional DNNs, wherein almost 90% of the parameters in the kernels are zeroed out by adding a weight sparsity term to the objective function. In contrast,Mathieu et al. (2013) demonstrate that performing convolution in the Fourier domain can yield substantial improvement in efficiency. Finally, /citeDBLP:journals/corr/FigurnovVK15 propose perforated CNNs, in which only a subset of the neurons in a feature are evaluated. The neurons to be evaluated for each feature are determined statically at training time.

Table content: <table/>



Table content: <table><tr><td>Input Features</td><td colspan="2">Find Avg, Variance</td><td>&lt;</td><td>FeaVar thresh</td></tr><tr><td/><td>Fea Avg</td><td/><td/></tr><tr><td>Kernel Weights</td><td colspan="2">Find Sum, Average</td><td>&lt;</td><td>WSig thresh</td></tr><tr><td>Output Convolution</td><td>W Sum</td><td colspan="3">(or) Evaluate Approximate AND Do Conv. X</td></tr><tr><td>Accumulation</td><td/><td/><td/></tr><tr><td>Output</td><td/><td/><td/></tr><tr><td>Feature</td><td/><td/><td/></tr></table>

Peer review (iclr2017):
The authors describe a series of techniques which can be used to reduce the total amount of computation that needs to be performed in Deep Neural Networks. The authors propose to selectively identify how important a certain set of computations is to the final DNN output, and to use this information to selectively skip certain computations in the network. As deep learning technologies become increasingly widespread on mobile devices, techniques which enable efficient inference on such devices are becoming increasingly important for practical applications. The paper is generally well-written and clear to follow. I had two main comments that concern the experimental design, and the relationship to previous work: 1. In the context of deployment on mobile devices, computational costs in terms of both system memory as well as processing are important consideration. While the proposed techniques do improve computational costs, they don’t reduce model size in terms of total number of parameters. Also, the gains obtained using the proposed method appear to be similar to other works that do allow for improvements in terms of both memory and computation (see, e.g., (Han et al., 2015)). It would have been interesting if the authors had reported results when the proposed techniques were applied to models that have been compressed in size as well. S. Han, H. Mao, and W. J. Dally. *Deep compression: Compressing deep neural network with pruning, trained quantization and huffman coding.* arXiv prepring arXiv:1510.00149 (2015). 2. The SDSS technique in the paper appears to be very similar to the “Perforated CNN” technique proposed by Figurnov et al. (2015). In that work, as in the authors work, CNN activations are approximated by interpolating responses from neighbors. The authors should comment on the similarity and differences between the proposed method and the referenced work. Figurnov, Michael, Dmitry Vetrov, and Pushmeet Kohli. *Perforatedcnns: Acceleration through elimination of redundant convolutions.* arXiv preprint arXiv:1504.08362 (2015). Other minor comments appear below: 3. A clarification question: In comparing the proposed methods to the baseline, in Section 4, the authors mention that they used their own custom implementation. However, do the baselines use the same custom implementation, or do they used the optimized BLAS libraries? 4. The authors should also consider citing the following additional references: * S. Tan and K. C. Sim, *Towards implicit complexity control using variable-depth deep neural networks for automatic speech recognition,* 2016 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Shanghai, 2016, pp. 5965-5969. * Graves, Alex. *Adaptive Computation Time for Recurrent Neural Networks.* arXiv preprint arXiv:1603.08983 (2016). 5. Please explain what the Y-axis in Figure 7 represents in the text. 6. Typographical Error: Last paragraph of Section 2: “... are qualitatively different the aforementioned ...” ? “... are qualitatively different from the aforementioned ...”