CNN网络量化--Two-Step Quantization for Low-bit Neural Networks

Two-Step Quantization for Low-bit Neural Networks
CVPR2018
https://github.com/wps712/Two-Step-Quantization-AlexNet
https://github.com/HolmesShuan/Optimal-Ternary-Weights-Approximation

本文的思路很简单:将CNN网络模型的 weight quantization 和 activation quantization 分开做。

这里将 activations 的量化看做一个 encodings 过程;weights 量化 看做一个 learn transformations。 针对 activations 量化,我们提出 sparse quantization method for code learning。 weight 量化 可以看做一个 a non-linear least square regression problem with low-bit constraints

这里的 sparse quantization 就是 只量化重要的值,不重要的 activations 全部清零。这里我们假定大的 activations 比较重要。

only quantize important values while set other unimportant values to zeros Here we explore the sparsity of activations,we assume big activations are more important than small activations. Thus the sparsity is introduced by setting all activations below a threshold to zeros.

对于 weight 量化,这里看做一个 non-linear least square regression problem with low-bit constraints 使用 低精度网络来近似高精度网络,看做一个函数逼近问题,将量化问题变为一个数学迭代优化问题

实验部分 只用了 AlexNet and VGG-16 网络,没有使用残差网络

11

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值