Adaptive Neural Networks for Efficient Inference

2017·arXiv

Abstract

1. Introduction

Deep neural networks (DNNs) are among the most powerful and versatile machine learning techniques, achieving state-of-the-art accuracy in a variety of important applications, such as visual object recognition (He et al., 2016), speech recognition (Hinton et al., 2012), and machine translation (Sutskever et al., 2014). However, the power of DNNs comes at a considerable cost, namely, the computational cost of applying them to new examples. This cost, often called the test-time cost, has increased rapidly for many tasks (see Fig. 1) with ever-growing demands for improved performance in state-of-the-art systems. As a point of fact, the Resnet152 (He et al., 2016) architecture with 152 layers, realizes a substantial 4.4% accuracy gain in top-5 performance over GoogLeNet (Szegedy et al., 2015) on the large-scale ImageNet dataset (Russakovsky et al., 2015) but is about 14X slower at test-time. The high test-time cost of state-of-the-art DNNs means that they can only be deployed on powerful computers, equipped with massive GPU accelerators. As a result, technology companies spend billions of dollars a year on expensive and power-hungry computer hardware. Moreover, high test-time cost prevents DNNs from being deployed on resource constrained platforms, such as those found in Internet of Things (IoT) devices, smart phones, and wearables. This problem has given rise to a concentrated research effort to reduce the test-time cost of DNNs. Most of the work on this topic focuses on designing more efficient network topologies and on compressing pre-trained models using various techniques (see related work below). We propose a different approach, which leaves the original DNN intact and instead changes the way in which we apply the DNN to new

Figure 1. Performance versus evaluation complexity of the DNN architectures that won the ImageNet challenge over past several years. The model evaluation times increase exponentially with respect to the increase in accuracy.

examples. We exploit the fact that natural data is typically a mix of easy examples and difficult examples, and we posit that the easy examples do not require the full power and complexity of a massive DNN.

We pursue two concrete variants of this idea. First, we propose an adaptive early-exit strategy that allows easy examples to bypass some of the network’s layers. Before each expensive neural network layer (e.g., convolutional layers), we train a policy that determines whether the current example should proceed to the next layer, or be diverted to a simple classifier for immediate classification. Our second approach, an adaptive network selection method, takes a set of pre-trained DNNs, each with a different cost/accuracy trade-off, and arranges them in a directed acyclic graph (Trapeznikov & Saligrama, 2013; Wang et al., 2015), with the the cheapest model first and the most expensive one last. We then train an exit policy at each node in the graph, which determines whether we should rely on the current model’s predictions or predict the most beneficial next branch to forward the example to. In this context we pose a global objective for learning an adaptive early exit or network selection policy and solve it by reducing the policy learning problem to a layer-by-layer weighted binary classification problem.

We demonstrate the merits of our techniques on the ImageNet object recognition task, using a number of popular pretrained DNNs. The early exit technique speeds up the average test-time evaluation of GoogLeNet (Szegedy et al., 2015), and Resnet50 (He et al., 2016) by 20-30% within reasonable accuracy margins. The network cascade achieves 2.8x speed-up compared to pure Resnet50 model at 1% top-5 accuracy loss and 1.9x speed-up with no change in model accuracy. We also show that our method can approximate a oracle policy that can see true errors suffered for each instance.

In addition to reducing the average test-time cost of DNNs, it is worth noting that our techniques are compatible with the common design of large systems of mobile devices, such as smart phone networks or smart surveillance-camera networks. These systems typically include a large number of resource-constrained edge devices that are connected to a central and resource-rich cloud. One of the main challenges involved in designing these systems is determining whether the machine-learned models will run in the devices or in the cloud. Offloading all of the work to the cloud can be problematic due to network latency, limited cloud ingress bandwidth, cloud availability and reliability issues, and privacy concerns. Our approach can be used to design such a system, by deploying a small inaccurate model and an exit policy on each device and a large accurate model in the cloud. Easy examples would be handled by the devices, while difficult ones would be forwarded to the cloud. Our approach naturally generalizes to a fog computing topology (where resource constrained edge devices are connected to a more powerful local gateway computer, which in turn is connected to a sequence of increasingly powerful computers along the path to the data-center). Such designs allow our method to be used in memory constrained settings as well due to offloading of complex models from the device.

2. Related Work

Past work on reducing evaluation time of deep neural networks has centered on reductions in precision and arithmetic computational cost, design of efficient network structure, and compression or sparsification of networks to reduce the number of convolutions, neurons, and edges. The approach proposed in this paper is complimentary. Our approach does not modify network structure or training and can be applied in tandem with these approaches to further reduce computational cost.

The early efforts to compress large DNNs used a large teacher model to generate an endless stream of labeled examples for a smaller student model (Bucila et al., 2006; Hinton et al., 2015). The wealth of labeled training data generated by the teacher model allowed the small student model to mimic its accuracy.

Reduced precision networks (Gong et al., 2014; Cour- bariaux et al., 2015; Chen et al., 2015; Hubara et al., 2016a; Wu et al., 2016; Rastegari et al., 2016; Hubara et al., 2016b) have been extensively studied to reduce the memory footprint of networks and their test-time cost. Similarly, computationally efficient network structures have also been proposed to reduce the computational cost of deep networks by exploiting efficient operations to approximate complex functions, such as the inception layers introduced in GoogLeNet (Szegedy et al., 2015).

Network sparsification techniques attempt to identify and prune away redundant parts of a large neural networks. A common approach is to remove unnecessary nodes/edges from the network(Liu et al., 2015; Iandola et al., 2016; Wen et al., 2016). In convolutional neural networks, the expensive convolution layers can be approximated (Bagher- inezhad et al., 2016) and redundant computation can be avoided (Figurnov et al., 2016b).

More recently, researchers have designed spatially adaptive networks (Figurnov et al., 2016a; Bengio et al., 2015) where nodes in a layer are selectively activated. Others have developed cascade approaches (Leroux et al., 2017; Odena et al., 2017) that allow early exits based on confi-dence feedback. Our approach can be seen as an instance of conditional computation, where we seek computational gains through layer-by-layer and network-level early exits. However, we propose a general framework which opti-

Figure 2. (Left) An example network selection system topology for networks Alexnet(A), GoogLeNet(G) and Resnet(R). Green denote the selection policy. The policy evaluates Alexnet, receives confidence feedback and decides to jump directly to Resnet or send the sample to GoogLeNet->Resnet cascade. (Right) An example early exit system topology (based on Alexnet). The policy chooses one of the multiple exits available to it at each stage for feedback. If the sample is easy enough, the system sends it down to exit, otherwise it sends the sample to the next layer.

mizes a novel system risk that includes computational costs as well as accuracy. Our method does not require within layer modifications and works with directed acyclic graphs that allow multiple model evaluation paths.

Our techniques for adaptive DNNs borrow ideas from the related sensor selection problem (Xu et al., 2013; Kus- ner et al., 2014; Wang et al., 2014; 2015; Trapeznikov & Saligrama, 2013; Nan et al., 2016; Wang & Saligrama, 2012). The goal of sensor selection is to adaptively choose sensor measurements or features for each example.

3. Adaptive Early Exit Networks

Our first approach to reducing the test-time cost of deep neural networks is an early exit strategy. We first frame a global objective function and reduce policy training for optimizing the system-wide risk to a layer-by-layer weighted binary classification (WBC). We denote a labeled example as , where d is the dimension of the data and {1, . . . , L} is the set of classes represented in the data. We define the distribution generating the examples as . For a predicted label , we denote the loss . In this paper, we focus on the task of classification and, for exposition, focus on the indicator loss , in this section. In practice we upper bound the indicator functions with logistic loss for computational efficiency.

As a running DNN example, we consider the AlexNet architecture (Krizhevsky et al., 2012), which is composed of 5 convolutional layers followed 3 fully connected layers. During evaluation of the network, computing each convolutional layer takes more than 3 times longer than computing a fully connected layer, so we consider a system that allows an example to exit the network after each of the first 4 convolutional layers. Let denote the label predicted by the network for example x and assume that computing this prediction takes a constant time of T. Moreover, let denote the output of the convolutional layer for example x and let denote the time it takes to compute this value (from the time that x is fed to the input layer). Finally, let be the predicted label if we exit after the layer.

After computing the convolutional layer, we introduce a decision function that determines whether the example should exit the network with a label of or proceed to the next layer for further evaluation. The input to this decision function is the output of the corresponding convolutional layer , and the value of is either (indicating an early exit) or 1. This architecture is depicted on the right-hand side of Fig. 2.

Globally, our goal is to minimize the evaluation time of the network such that the error rate of the adaptive system is no more than some user-chosen value B greater than the full network:

s.t. , ..., γ, y, yB

Here, is the prediction time for example x for the adaptive system, is the label predicted by the adaptive system for example x. In practice, the time required to predict a label and the excess loss introduced by the adaptive system can be recursively defined. As in (Wang et al., 2015) we can reduce the early exit policy training for minimizing the global risk to a WBC problem. The key idea is that, for each input, a policy must identify whether or not the future reward (expected future accuracy minus comp. loss) outweighs the current-stage accuracy.

To this end, we first focus on the problem of learning the decision function , which determines if an example should exit after the fourth convolutional layer or whether it will be classified using the entire network. The time it takes to predict the label of example x depends on this de-

cision and can be written as

where is the computational time required to evaluate the function . Our goal is to learn a system that trades-off the evaluation time and the induced error:

where is the functionand is a trade-off parameter that balances between evaluation time and error. Note that the function can be expressed as a sum of indicator functions:

Substituting for allows us to reduce the problem to an importance weighted binary learning problem:

where and are the optimal decision and cost at stage 4 for the example (x, y) defined:

and

Note that the regularization term, , is important to choose the optimal functional form for the function as well as a natural mechanism to define the structure of the early exit system. Rather than limiting the family of function to a single functional form such as a linear function or a specific network architecture, we assume the family of functions is the union of multiple functional families, notably including the constant decision functions . Although this constant function does not allow for adaptive network evaluation at the spe- cific location, it additionally does not introduce any com- putational overhead, that is, . By including this constant function in , we guarantee that our technique can only decrease the test-time cost.

Empirically, we find that the most effective policies operate on classifier confidences such as classification entropy. Specifically, we consider the family of functions as the union of three functional families, the aforementioned constant functions, linear classifier on confidence features generated from linear classifiers applied to , and linear classifier on confidence features generated from deep clas-sifiers applied to .

Rather than optimizing jointly over all three networks, we leverage the fact that the optimal solution to Eqn. (4) can be found by optimizing over each of the three families of functions independently. For each family of functions, the policy evaluation time is constant, and therefore solving (4) over a single family of functions is equivalent to solving an unregularized learning problem. We exploit this by solving the three unregularized learning problems and taking the minimum over the three solutions.

In order to learn the sequence of decision functions, we consider a bottom-up training scheme, as previously proposed in sensor selection (Wang et al., 2015). In this scheme, we learn the deepest (in time) early exit block first, then fix the outputs. Fixing the outputs of this trained function, we then train the early exit function immediately preceding the deepest early exit function (in Fig. 2).

For a general early exit system, we recursively define the future time, , and the future predicted label, , as

Tx, γ

and

Using these definitions, we can generalize Eqn. (4). For a system with K early exit functions, the early exit function can be trained by solving the supervised learning problem:

where optimal decision and cost and can be

defined:

Cx, y) =

x, γif k < K , y, y

otherwise , y, y

Eqn. (5) allows for efficient training of an early exit system by sequentially training early exit decision functions from the bottom of the network upwards. Furthermore, by including constant functions in the family of functions and training early exit functions in all potential stages of the system, the early exit architecture can also naturally be discovered. Finally, in the case of single option at each exit, the layer-wise learning scheme is equivalent to jointly optimizing all the exits with respect to full system risk.

4. Network Selection

As shown in Fig. 1, the computational time has grown dramatically with respect to classification performance. Rather than attempting to reduce the complexity of the state-of-the-art networks, we instead leverage this nonlinear growth by extending the early exiting strategy to the regime of network selection. Conceptually, we seek to exploit the fact that many examples are correctly clas-sified by relatively efficient networks such as alexnet and googlenet, whereas only a small fraction of examples are correctly classified by computationally expensive networks such as resnet 152 and incorrectly classified by googlenet and alexnet.

As an example, assume we have three pre-trained networks, , and . For an example x, denote the predictions for the networks as , and . Additionally, denote the evaluation times for each of the networks as , and .

As in Fig. 2, the adaptive system composed of two deci- sion functions that determine which network is evaluated for each example. First, is applied after evaluation of to determine if the classifica-tion decision from should be returned or if network or network should be evaluated for the example. For examples that are evaluated on determines if the classification decision from should be returned or if network should be evaluated.

Our goal is to learn the functions and that minimize the average evaluation time subject to a constraint on the average loss induced by adaptive network selection. As in the adaptive early exit case, we first learn to trade-off between the average evaluation time and induced error:

where is a trade-off parameter. As in the adaptive network usage case, this problem can be posed as an importance weighted supervised learning problem:

where and are the cost and optimal decision at stage 4 for the example/label pair (x, y) defined:

if τ> λ , y, yNotherwise

and

Wx, y, y, y.

Once has been trained according to Eqn. (7), the training times for examples that pass through and are routed by can be defined . As in the adaptive early exit case, we train and fix the last decision function, , then train the earlier function, . As before, we seek to trade-off between evaluation time and error:

This can be reduced to a cost sensitive learning problem:

where the costs are defined:

5. Experimental Section

We evaluate our method on the Imagenet 2012 classifica-tion dataset (Russakovsky et al., 2015) which has 1000 object classes. We train using the 1.28 million training images and evaluate the system using 50k validation images. We use the pre-trained models from Caffe Model Zoo for Alexnet, GoogLeNet and Resnet50 (Krizhevsky et al., 2012; Szegedy et al., 2015; He et al., 2016). For preprocessing we follow the same routines proposed for these networks and verify the final network performances within a small margin (< 0.1%). Note that it is common to use ensembles of networks and multiple crops to achieve maximum performance. These methods add minimal gain in accuracy while increasing the system cost dramatically. As the speedup margin increases, it becomes trivial for the policy to show significant speedups within the same accuracy tolerance. We believe such speedups are not useful in practice and focus on single crop with single model case.

Temporal measurements: We measure network times using the built-in tool in the Caffe library on a server that utilizes a Nvidia Titan X Pascal with CuDNN 5. Since our focus is on the computational cost of the networks, we ignore the data loading and preprocessing times. The reported times are actual measurements including the policy overhead.

Policy form and meta-features: In addition to the outputs of the convolutional layers of earlier networks, we augment the feature space with the entropy of prediction probabilities. We relax the indicators in equations (5) and (9) learn linear logistic regression model on these features for our policy. We experimented with pooled internal representations, but in practice, inclusion of the entropy feature with a simple linear policy significantly outperforms more complex policy functions that exclude the entropy feature.

5.1. Network Selection

Baselines: Our full system, depicted in Figure 2, starts with Alexnet. Following the evaluation of Alexnet, the system determines for each example either to return the prediction, route the example to GoogLeNet, or route the example to Resnet50. For examples that are routed to GoogLeNet, the system either returns the prediction output by GoogLeNet or routes the example to Resnet50. As baselines, we compare against a uniform policy and a myopic policy which learns a single threshold based on model confidence. We also report performance from different system topologies. To provide a bound on the achievable performance, we show the performance of a soft oracle. The soft oracle has access to classification labels and sends each example to the fastest model that correctly classifies the example. Since having access to the labels is too strong, we made the oracle softer by adding two constraints. First, it follows the same network topology, also it can not make decisions without observing the model feedback first, getting hit by the same overhead. Second, it can only exit at a cheaper model if all latter models agree on the true label. This second constraint is added due to the fact that our goal is not to improve the prediction performance of the system but to reduce the computational time, and therefore we prevent the oracle from “correcting” mistakes made by the most complex networks.

We sweep the cost trade-off parameter in the range 0.0 to 0.1 to achieve different budget points. Note that due to weights in our cost formulation, even when the pseudo labels are identical, policy behavior can differ. Conceptually, the weights balance the importance of the samples that gain in classification loss in future stages versus samples that gain in computational savings by exiting early stages.

The results are demonstrated in Figure 3. We see that both full tree and a->g->r50 cascade achieve significant (2.8x) speedup over using Resnet50 while maintaining its accuracy within 1%. The classifier feedback for the policy has a dramatic impact on its performance. Although, Alexnet introduces much less overhead compared to GoogLeNet (0.2 vs 0.7), the a->r50 policy performs significantly worse in lower budget regions. Our full tree policy learns to choose the best order for all budget regions. Furthermore, the policy matches the soft oracle performance in both the high and low budget regions.

Note that GoogLeNet is a very well positioned at 0.7ms per image budget, probably due to its efficiency oriented architectural design with inception blocks (Szegedy et al., 2015). For low budget regions, the overhead of the policy is a detriment, as even when it can learn to send al-

Figure 3. Performance of network selection policy on Imagenet (Left: top-5 error Right: top-1 error). Our full adaptive system (denoted with blue dots) significantly outperforms any individual network for almost all budget regions and is close to the performance of the oracle. The performances are reported on the validation set of ImageNet dataset.

Figure 4. (Left) Different network selection topologies that we considered. Arrows denote possible jumps allowed to the policy. A, G and R denote Alexnet, GoogLeNet and Resnet50, respectively. (Right) Statistics for proportion of total time spent on different networks and proportion of samples that exit at each network. Top row is sampled at 2.0ms and bottom row is sampled at 2.8ms system evaluation

most half the samples to Alexnet instead of GoogLeNet with marginal loss in accuracy, the extra 0.23ms Alexnet overhead brings the balance point, , very close to using only GoogLeNet at 0.7ms. The ratio between network evaluation times is a significant factor for our system. Fortunately, as mentioned before, for many applications the ratio of different models can be very high (cloud computing upload times, resnet versus Alexnet difference etc.).

We further analyzed the network usage and runtime proportion statistics for samples at different budget regions. Fig. 4 demonstrates the results at three different budget levels. Full tree policy avoids using GoogLeNet altogether for high budget regions. This is the expected behavior since the a->r50 policy performs just as well in those regions and using GoogLeNet in the decision adds too much overhead. At mid level budgets the policy distributes samples more evenly. Note that the sum of the overheads is close to useful runtime of cheaper networks in this region. This is possible

since the earlier networks are very lightweight.

5.2. Network Early Exits

To output a prediction following each convolutional layer, we train a single layer linear classifier after a global average pooling for each layer. We added global pooling to minimize the policy overhead in earlier exits. For Resnet50 we added an exit after output layers of 2a, 2c, 3a, 3d, 4a and 4f. The dimensionality of the exit features after global average pooling are 256, 256, 512, 512, 1024 and 1024 in the same order as the layer names. For GoogLeNet we added the exits after concatenated outputs of every inception layer.

Table 1 shows the early exit performance for different networks. The gains are more marginal compared to network selection. Fig 5 shows the accuracy gains per evaluation time for different layers. Interestingly, the accuracy gain per time is more linear within the same architecture com-

Table 1. Early exit performances at different accuracy/budget trade-offs for different networks. @x denotes x loss from full model accuracy and reported numbers are percentage speed-ups. pared to different network architectures. This explains why the adaptive policy works better for network selection compared to early exits.

Figure 5. The plots show the accuracy gains at different layers for early exits for networks GoogLeNet (top) and Resnet50 (bottom).

5.3. Network Error Analysis

Fig. 6 shows the distributions over examples of the networks that correctly label the example. Notably, 50% and 77% of the examples are correctly classified by all networks for top 1 and top 5 error, respectively. Similarly, 18% and 5% of the examples are incorrectly classified by all networks with respect to their top 1 and top 5 error, respectively. These results verify our hypothesis that for a large fraction of data, there is no need for costly networks. In particular, for the 68% and 82% of data with no change

Figure 6. Analysis of top-1 and top-5 errors for different networks. Majority of the samples are easily classified by Alexnet, and only a minority of them require deeper networks.

in top 1 and top 5 error, respectively, the use of any network apart from Alexnet is unnecessary and only adds unnecessary computational time.

Additionally, it is worth noting the balance between examples incorrectly classified by all networks, 18% and 5% respectively for top 1 and top 5 error, and the fraction of examples correctly classified by either GoogLeNet or Resnet but not Alexnet, 25.1% and 15.1% for top 1 and top 5 error, respectively. This behavior supports our observation that entropy of classification decisions is an important feature in making policy decisions, as examples likely to be incorrectly classified by Alexnet are likely to be classified correctly by a later network.

Note that our system is trained using the same data used to train the networks. Generally, the resulting evaluation error for each network on training data is significantly lower than error that arises on test data, and therefore our system is biased towards sending examples to more complex networks that generally show negligible training error. Practically, this problem is alleviated through the use of validation data to train the adaptive systems. In order to maintain the reported performance of the network without expansion of the training set, we instead utilize the same data for training both networks and adaptive systems, however we note that performance of our adaptive systems is generally better when trained on data excluded from the network training.

6. Conclusion

We proposed two different schemes to adaptively trade off model accuracy with model evaluation time for deep neural networks. We demonstrated that significant gains in computational time is possible through our novel policy with negligible loss in accuracy on ImageNet image recognition dataset. We posed a global objective for learning an adaptive early exit or network selection policy and solved it by reducing the policy learning problem to a layer-by-layer weighted binary classification problem. We believe that adaptivity is very important in the age of growing data for models with high variance in computational time and quality. We also showed that our method approximates an Oracle based policy that has benefit of access to true error for each instance from all the networks.

Acknowledgements

This material is based upon work supported in part by NSF Grants CCF: 1320566, NSF Grant CNS: 1330008 NSF CCF: 1527618, the U.S. Department of Homeland Security, Science and Technology Directorate, Office of University Programs, under Grant Award 2013-ST-061-ED0001, and by ONR contract N00014-13-C-0288. The views and conclusions contained in this document are those of the authors and should not be interpreted as necessarily representing the social policies, either expressed or implied, of the NSF, U.S. DHS, ONR or AF.

References

Bagherinezhad, Hessam, Rastegari, Mohammad, and Farhadi, Ali. Lcnn: Lookup-based convolutional neural network. arXiv preprint arXiv:1611.06473, 2016.

Bengio, Emmanuel, Bacon, Pierre-Luc, Pineau, Joelle, and Precup, Doina. Conditional computation in neural networks for faster models. arXiv preprint arXiv:1511.06297, 2015.

Bucila, Cristian, Caruana, Rich, and Niculescu-Mizil, Alexandru. Model compression. In Proceedings of the 12th ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 535–541. ACM, 2006.

Chen, Wenlin, Wilson, James T, Tyree, Stephen, Wein- berger, Kilian Q, and Chen, Yixin. Compressing neural networks with the hashing trick. In ICML, pp. 2285– 2294, 2015.

Courbariaux, Matthieu, Bengio, Yoshua, and David, Jean- Pierre. Binaryconnect: Training deep neural networks with binary weights during propagations. In Advances in Neural Information Processing Systems, pp. 3123–3131, 2015.

Figurnov, Michael, Collins, Maxwell D, Zhu, Yukun, Zhang, Li, Huang, Jonathan, Vetrov, Dmitry, and Salakhutdinov, Ruslan. Spatially adaptive computation time for residual networks. arXiv preprint arXiv:1612.02297, 2016a.

Figurnov, Mikhail, Ibraimova, Aizhan, Vetrov, Dmitry P, and Kohli, Pushmeet. Perforatedcnns: Acceleration through elimination of redundant convolutions. In Advances in Neural Information Processing Systems, pp. 947–955, 2016b.

Gong, Yunchao, Liu, Liu, Yang, Ming, and Bourdev, Lubomir. Compressing deep convolutional networks using vector quantization. arXiv preprint arXiv:1412.6115, 2014.

He, Kaiming, Zhang, Xiangyu, Ren, Shaoqing, and Sun, Jian. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 770–778, 2016.

Hinton, Geoffrey, Deng, Li, Yu, Dong, Dahl, George E, Mohamed, Abdel-rahman, Jaitly, Navdeep, Senior, Andrew, Vanhoucke, Vincent, Nguyen, Patrick, Sainath, Tara N, et al. Deep neural networks for acoustic modeling in speech recognition: The shared views of four research groups. IEEE Signal Processing Magazine, 29 (6):82–97, 2012.

Hinton, Geoffrey, Vinyals, Oriol, and Dean, Jeff. Distill- ing the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.

Hubara, Itay, Courbariaux, Matthieu, Soudry, Daniel, El- Yaniv, Ran, and Bengio, Yoshua. Binarized neural networks. In Advances in Neural Information Processing Systems, pp. 4107–4115, 2016a.

Hubara, Itay, Courbariaux, Matthieu, Soudry, Daniel, El- Yaniv, Ran, and Bengio, Yoshua. Quantized neural networks: Training neural networks with low precision weights and activations. arXiv preprint arXiv:1609.07061, 2016b.

Iandola, Forrest N, Han, Song, Moskewicz, Matthew W, Ashraf, Khalid, Dally, William J, and Keutzer, Kurt. Squeezenet: Alexnet-level accuracy with 50x fewer parameters and< 0.5 mb model size. arXiv preprint arXiv:1602.07360, 2016.

Krizhevsky, Alex, Sutskever, Ilya, and Hinton, Geoffrey E. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012.

Kusner, M, Chen, W, Zhou, Q, Xu, Z, Weinberger, K, and Chen, Y. Feature-cost sensitive learning with submodular trees of classifiers. In Twenty-Eighth AAAI Conference on Artificial Intelligence, 2014.

Leroux, Sam, Bohez, Steven, De Coninck, Elias, Verbelen, Tim, Vankeirsbilck, Bert, Simoens, Pieter, and Dhoedt, Bart. The cascading neural network: building the internet of smart things. Knowledge and Information Systems, pp. 1–24, 2017.

Liu, Baoyuan, Wang, Min, Foroosh, Hassan, Tappen, Mar- shall, and Pensky, Marianna. Sparse convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 806–814, 2015.

Nan, Feng, Wang, Joseph, and Saligrama, Venkatesh. Prun- ing random forests for prediction on a budget. In Advances in Neural Information Processing Systems 29: Annual Conference on Neural Information Processing Systems 2016, December 5-10, 2016, Barcelona, Spain, pp. 2334–2342, 2016.

Odena, Augustus, Lawson, Dieterich, and Olah, Christo- pher. Changing model behavior at test-time using reinforcement learning. arXiv preprint arXiv:1702.07780, 2017.

Rastegari, Mohammad, Ordonez, Vicente, Redmon, Joseph, and Farhadi, Ali. Xnor-net: Imagenet classi-fication using binary convolutional neural networks. In European Conference on Computer Vision, pp. 525–542. Springer, 2016.

Russakovsky, Olga, Deng, Jia, Su, Hao, Krause, Jonathan, Satheesh, Sanjeev, Ma, Sean, Huang, Zhiheng, Karpathy, Andrej, Khosla, Aditya, Bernstein, Michael, et al. Imagenet large scale visual recognition challenge. International Journal of Computer Vision, 115(3):211–252, 2015.

Sutskever, Ilya, Vinyals, Oriol, and Le, Quoc V. Sequence to sequence learning with neural networks. In Advances in neural information processing systems, pp. 3104–3112, 2014.

Szegedy, Christian, Liu, Wei, Jia, Yangqing, Sermanet, Pierre, Reed, Scott, Anguelov, Dragomir, Erhan, Dumitru, Vanhoucke, Vincent, and Rabinovich, Andrew. Going deeper with convolutions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1–9, 2015.

Trapeznikov, K and Saligrama, V. Supervised sequential classification under budget constraints. In International Conference on Artificial Intelligence and Statistics, pp. 581–589, 2013.

Wang, J., Bolukbasi, T., Trapeznikov, K., and Saligrama, V. Model selection by linear programming. In European Conference on Computer Vision, pp. 647–662, 2014.

Wang, Joseph and Saligrama, Venkatesh. Local supervised learning through space partitioning. In Advances in Neural Information Processing Systems (NIPS), pp. 91–99, 2012.

Wang, Joseph, Trapeznikov, Kirill, and Saligrama, Venkatesh. Efficient learning by directed acyclic graph for resource constrained prediction. In Advances in Neural Information Processing Systems, pp. 2152–2160, 2015.

Wen, Wei, Wu, Chunpeng, Wang, Yandan, Chen, Yiran, and Li, Hai. Learning structured sparsity in deep neural networks. In Advances in Neural Information Processing Systems, pp. 2074–2082, 2016.

Wu, Jiaxiang, Leng, Cong, Wang, Yuhang, Hu, Qinghao, and Cheng, Jian. Quantized convolutional neural networks for mobile devices. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4820–4828, 2016.

Xu, Z., Kusner, M., Chen, M., and Weinberger, K. Cost- sensitive tree of classifiers. In Proceedings of the 30th International Conference on Machine Learning, pp. 133– 141, 2013.

Designed for Accessibility and to further Open Science