Code Monkey home page Code Monkey logo

weighted-entropy-based-quantization-for-deep-neural-networks's Introduction

基于加权熵对深度神经网络进行量化的方法

原文链接

作者:

摘要

当使用嵌入式或移动设备进行开发时,由于硬件资源的限制,将原始神经网络进行量化(优化前向预测的开销)成为一种高效的优化手段。量化时需要对其进度损失进行严格的控制。本文旨在提供一种新颖的量化权重和激活输出的方式(基于加权熵)。与二值神经网络不同,我们的方法是进行多位(bit)量化,也就是将权重和激活输出可以被量化到对应位数,从而达到对应的精度。这有利于更灵活地利用不同级别的量化,达到精度和性能的折衷。此外,我们的方案提供了一种基于传统训练算法的自动化量化流程,从而节省了为量化网络所花费的时间。根据对实际神经网络模型的评估:图像分类(AlexNet, GoogLeNetResNet-50/101),物体检测(基于_ResNet-50_的_R-FCN_)和语言建模(一种 LSTM 网络),我们的方法在损失很小精度的前提下,对模型大小和计算量都有大幅度的消减。同样,与目前已知的量化方式相比,我们的方式在工作量更低和相同的资源约束的前提下,具有更高的精度。

weighted-entropy-based-quantization-for-deep-neural-networks's People

Contributors

xiaoweichen avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.