Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Learning both Weights and Connections for Efficient Neural Networks

Pruning and retraining shrink AlexNet and VGG-16 without losing accuracy

  • Problem Neural networks are too large and memory-hungry for embedded and mobile devices. Their architecture is fixed before training, so training cannot trim connections that turn out to be unimportant.
  • Method The authors learn which connections matter, prune the weak ones, and then retrain the sparse network that remains. Retraining keeps the surviving weights, so the network recovers its accuracy after pruning.
  • Results On AlexNet, pruning cut parameters from 61 million to 6.7 million with no accuracy loss. VGG-16 went from 138 million to 10.3 million parameters.

Why large networks are hard to run on mobile devices

The authors ask whether most of these connections can be removed without losing accuracy, which would make such networks practical on mobile devices.

Large networks do not fit in on-chip storage, so they keep paying for DRAM accesses, and shrinking the model is the lever the authors use.

Learning connections first, then pruning and retraining

The key idea is to use the first training run to find which connections matter, not to settle the final weights. After that run, every connection whose weight falls below a threshold is removed, which turns a dense layer into a sparse one.

Retraining then learns the final values of the surviving connections, and the authors treat this step as critical. If the pruned network runs without retraining, its accuracy drops considerably. Pruning and retraining can be repeated, which the authors liken to synapses that are created early in life and then pruned back to adult levels.

Choosing regularization and dropout for retraining

The choice of regularizer shapes both what pruning leaves behind and what retraining can recover. L1 regularization pushes more parameters near zero, so it gives better accuracy right after pruning but worse accuracy after retraining. L2 regularization gives the best pruning results overall, which is why the authors use it for both phases.

Dropout normally drops parameters at random during training and lets them return at inference, but pruned parameters never return. Because the pruned model has less capacity, the retraining dropout ratio should be smaller, and the authors tie the new ratio to the connection count. Connections in layer \( i \) follow \( C_i = N_i N_{i-1} \), so they change quadratically with the neuron count, and the dropout ratio is set by \[ D_r = D_o \sqrt{\frac{C_i^r}{C_i^o}} \] where \( D_o \) is the original dropout rate and \( D_r \) the rate during retraining.

Keeping surviving weights and freezing layers during retraining

During retraining the authors keep the weights of surviving connections instead of re-initializing the pruned layers. The reason is that CNN features are fragile and co-adapted, so gradient descent can find a good solution at first but may not recover after layers are re-initialized.

Retraining from retained weights needs less computation, because backpropagation does not have to cover the whole network. Deep networks suffer from vanishing gradients, which makes pruning errors harder to recover, so the authors fix the CONV parameters and retrain only the FC layers after pruning FC layers, and the reverse for CONV layers.

Neurons left with zero input or zero output connections can be removed, and the authors report that retraining drives such neurons to that state.

LeNet results on MNIST

The authors pruned LeNet-300-100 and LeNet-5 on MNIST and retrained them with 1/10 of the original learning rate. For LeNet-300-100 the top-1 error went from 1.64% to 1.59%, and for LeNet-5 it went from 0.80% to 0.77%, both at 12× fewer parameters. The reference numbers come from the Caffe model zoo and are measured without data augmentation.

For LeNet-5 the weights fell 12×, but computation fell only 6×, because the convolutional layer conv1 keeps 66% of its operations. In the first FC layer of LeNet-300-100, the surviving connections form 28 bands, each 28 pixels wide, that line up with the central pixels of the input. The authors read this as pruning finding the central image region more important, since digits are written there.

AlexNet results on ImageNet

Pruning cut the parameters from 61M to 6.7M, a 9× reduction, with top-1 error of 42.77% compared to 42.78% for the reference.

The authors report that computation falls by 3×, and the table's FLOP column keeps 30% of the required operations. The pattern differs by layer: conv1 keeps 84% of its weights, while fc1 keeps 9%.

Iterative pruning and the accuracy trade-off

On AlexNet, iterative pruning raised the pruning rate from 5× to 9× without accuracy loss, compared to single-step aggressive pruning. Each iteration is a greedy search for the best connections, and probabilistic pruning based on absolute value gave worse results.

Figure 5 plots top-5 accuracy loss against parameters pruned away for several settings. Without retraining, accuracy starts to drop at 1/3 of the original connections, while with retraining the drop starts at 1/10 of them.

With iterative pruning and L2 regularization, the curve shows no accuracy loss at 9×, and accuracy begins to drop sharply at 10×. Two green points score slightly above the original model, which the authors attribute to pruning finding a better capacity and reducing over-fitting. A proposed extension, L1 for pruning and then L2 for retraining, did not beat using L2 for both phases.

VGG-16 results on ImageNet

Parameters fell from 138M to 10.3M, a 13× reduction, with top-1 error of 31.34% compared to 31.50% for the reference.

Overall the network keeps 7.5% of its weights, and fc6 and fc7 each keep 4% in the table. The text says both FC layers fall below 4%, while the table rounds them to 4%. The authors stress this because real-time image processing reuses FC layers little across images, unlike batch training.

Layer sensitivity, index storage and weight distribution

The authors suspect this is because the input layer has only 3 channels and so less redundancy. They set each layer's threshold from this sensitivity, applying the smallest threshold to the first convolutional layer.

Storing pruned layers as sparse matrices adds a storage overhead of 15.6%. Relative rather than absolute indices cut the FC layer indices to 5 bits, and CONV layer indices can use 8 bits.

The weights of the first FC layer of AlexNet are centered on zero, with almost all between [−0.015, 0.015] before pruning. After pruning and retraining the weights form a bimodal distribution spread between [−0.025, 0.025]. The authors argue that the pruned models are small enough to keep on chip, which avoids the DRAM accesses that cost the most energy.

Comparison with other reduction methods on AlexNet

The rows for other methods are numbers from the cited works, so they are not a controlled comparison with this paper's runs.

Limitations

Retraining the pruned AlexNet took 173 hours, compared to 75 hours to train the original on an NVIDIA Titan X. Only four networks were pruned, and the experiments report parameter and FLOP counts rather than measured energy for the pruned networks.

Paper info

Authors
Song Han, Jeff Pool, John Tran, William J. Dally
Venue
arXiv · Preprint
First published
2015-6-8
Added
2026-11-12
Updated
2015-10-30
Version
v3
arXiv
1506.02626
Category
cs.NE · cs.CV · cs.LG
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

Song Han, Jeff Pool, John Tran, William J. Dally (2015). Learning both Weights and Connections for Efficient Neural Networks. arXiv:1506.02626v3. https://arxiv.org/abs/1506.02626v3

BibTeX
@misc{han2015learning,
  title = {{Learning both Weights and Connections for Efficient Neural Networks}},
  author = {Song Han and Jeff Pool and John Tran and William J. Dally},
  year = {2015},
  eprint = {1506.02626},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1506.02626v3}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up