Paper commentary
Efficient Processing of Deep Neural Networks: A Tutorial and Survey
Researchers survey hardware and algorithm techniques that make deep neural networks cheaper to run
- Problem DNN accuracy comes at a high computational cost. AlexNet alone needs 61M weights and 724M MACs to process one image.
- Method The authors survey DNN hardware platforms and dataflows, then cover compression methods that cut computation.
- Results The article proposes a reporting checklist covering accuracy, power, throughput, latency and cost.
Why DNN accuracy is expensive to compute
DNNs now match or exceed human accuracy in many domains, and that accuracy comes from learning features from raw data. The price is computation, because every layer repeats large numbers of multiply-and-accumulate operations. AlexNet, the 2012 ImageNet winner, needs 61M weights and 724M MACs to process one 227×227 image. So an accelerator must perform hundreds of millions of MACs for a single image.
Later networks raised the bill: VGG-16 needs 138M weights and 15.5G MACs for one 224×224 image. That gap is why specialized acceleration is attracting interest alongside GPUs, which have been the mainstay for much DNN processing.
How model cost grew from LeNet to ResNet
LeNet, the early digit classifier from 1989, needed 60k weights and 341k MACs per image. ResNet-50 needs 25.5M weights and 3.9G MACs per image. The authors draw a trend from these models: deeper networks tend to be more accurate.
Most of that computation sits in CONV layers rather than FC layers. In most recent networks the CONV layers also dominate the weight count. That is why the dataflows that follow are described mainly for CONV layers.
How dataflows decide what stays put
Each MAC needs a weight, an input activation and a partial sum, and a dataflow decides which of these stays in a PE's register file. Weight stationary keeps a weight in the PE while input activations stream through, whereas output stationary keeps the partial sums for one output value local. No local reuse removes the register file altogether and gives that area to the global buffer, so every data type crosses the array and the buffer.
Row stationary aims at reuse for weights, pixels and partial sums together, since the other two dataflows optimize only one or two of them. Each PE runs a 1-D row convolution: it holds one row of filter weights and streams input activations through, reusing overlapping inputs across sliding windows. Three PEs in a column compute one 2-D output row with partial sums accumulated vertically, and further columns cover the remaining output rows.
Eyeriss implements this dataflow with a 14×12 PE array and a 108KB global buffer. Layers rarely match the array's shape, so the mapping replicates small layers across the array and folds layers that are too tall. Unused PEs are clock gated to save energy.
Reducing weight and activation precision
Cutting bits lowers MAC cost, but the first binary networks lost a lot of accuracy. BinaryConnect and BNN, which reduce the MAC to an XNOR, show accuracy losses of 19% and 29.8%. Binary Weight Nets scale the outputs by a factor and keep the first and last layers at 32-bit floating point, which cut the loss to 0.8%. XNOR-Net needed the same kind of changes but still lost 11%.
Allowing 2-bit activations with 1-bit weights reduced HWGQ-Net's loss to 5.2%. Ternary weights add a bit but allow zeros, and TTQ reached a 0.6% loss with a separate trained scale per weight, assuming 32-bit activations.
Linear quantization spaces levels evenly, which wastes levels when weights and activations aren't uniform. Log-domain quantization spreads values more evenly across levels: 4-bit linear quantization lost 27.8% accuracy on VGG-16, versus 5% for log base-2. Weight sharing stores a small index per weight, so Deep Compression needs 8-bit indexes for convolutional layers and 4-bit indexes for fully-connected layers in AlexNet.
This cuts weight storage but leaves the precision of the MAC itself unchanged.
Exploiting zeros in activations and weights
ReLU sets negative values to zero, so the feature maps it produces are sparse. In AlexNet the sparsity of those maps ranges from 19% to 63%. Run length coding of 16-bit non-zero values and zero runs cut the external bandwidth of activations by 2.1×. Skipping the weight reads and MACs for zero-valued activations cut energy cost by 45% in Eyeriss.
The 2015 magnitude-based pruning removed about 50% of weights without fine-tuning and over 80% with it. That reduced AlexNet's weights by 9× and its MACs by 3×, with most savings in the fully-connected layers. Weights alone are a weak energy proxy, so energy-aware pruning uses an energy estimate directly.
Reporting metrics so designs can be compared
The article proposes a reporting checklist covering accuracy, power, throughput, latency and cost. Accuracy has to be measured on the same dataset, because MNIST is much easier than ImageNet. Top-5 error should come with the augmentation used, since multiple crops and ensembles raise accuracy while also multiplying MACs and weights.
For the model, the authors ask for non-zero weights and non-zero MACs, because those reflect the minimum storage and compute. In Table IV, AlexNet's total weights fall from 61M dense to 5.7M sparse, with top-5 error going from 19.6 to 20.4. They propose counting non-zero MACs on the 50,000 ImageNet validation images, since that count depends on the input data.
On the hardware side, off-chip DRAM accesses, latency and throughput, and area per multiplier should all be reported. Latency is measured in seconds and throughput in operations per second, so batching can raise throughput while adding delay. At 30 frames per second, a batch of 100 frames adds a 3 second delay.
Limits of the evidence
The precision comparison covers AlexNet and top-5 error on ImageNet only. Several methods are not applied to the first and last layers, and the table marks that difference. The table reports accuracy only, and it doesn't report energy.
The sparse numbers in Table IV come from models pruned with one method [142]. The 45% and 2.1× figures are reported as separate results for different mechanisms, so they can't be added up.
Paper info
- Authors
- Vivienne Sze, Yu-Hsin Chen, Tien-Ju Yang, Joel Emer
- Venue
- arXiv · Preprint
- First published
- 2017-3-27
- Added
- 2026-11-12
- Updated
- 2017-8-13
- Version
- v2
- arXiv
- 1703.09039
- Category
- cs.CV
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Vivienne Sze, Yu-Hsin Chen, Tien-Ju Yang, Joel Emer (2017). Efficient Processing of Deep Neural Networks: A Tutorial and Survey. arXiv:1703.09039v2. https://arxiv.org/abs/1703.09039v2
BibTeX
@misc{sze2017efficient,
title = {{Efficient Processing of Deep Neural Networks: A Tutorial and Survey}},
author = {Vivienne Sze and Yu-Hsin Chen and Tien-Ju Yang and Joel Emer},
year = {2017},
eprint = {1703.09039},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1703.09039v2}
}