已入深夜,您辛苦了!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!祝你早点完成任务,早点休息,好梦!

Quantizing deep convolutional networks for efficient inference: A whitepaper

量化(信号处理) 计算机科学 浮点型 卷积神经网络 加速 推论 算法 SIMD公司 计算机工程 深度学习 并行计算
作者
Raghuraman Krishnamoorthi
出处
期刊:Cornell University - arXiv [Cornell University]
被引量:764
标识
DOI:10.48550/arxiv.1806.08342
摘要

We present an overview of techniques for quantizing convolutional neural networks for inference with integer weights and activations. Per-channel quantization of weights and per-layer quantization of activations to 8-bits of precision post-training produces classification accuracies within 2% of floating point networks for a wide variety of CNN architectures. Model sizes can be reduced by a factor of 4 by quantizing weights to 8-bits, even when 8-bit arithmetic is not supported. This can be achieved with simple, post training quantization of weights.We benchmark latencies of quantized networks on CPUs and DSPs and observe a speedup of 2x-3x for quantized implementations compared to floating point on CPUs. Speedups of up to 10x are observed on specialized processors with fixed point SIMD capabilities, like the Qualcomm QDSPs with HVX. Quantization-aware training can provide further improvements, reducing the gap to floating point to 1% at 8-bit precision. Quantization-aware training also allows for reducing the precision of weights to four bits with accuracy losses ranging from 2% to 10%, with higher accuracy drop for smaller networks.We introduce tools in TensorFlow and TensorFlowLite for quantizing convolutional networks and review best practices for quantization-aware training to obtain high accuracy with quantized weights and activations. We recommend that per-channel quantization of weights and per-layer quantization of activations be the preferred quantization scheme for hardware acceleration and kernel optimization. We also propose that future processors and hardware accelerators for optimized inference support precisions of 4, 8 and 16 bits.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
春茶完成签到,获得积分10
刚刚
安详的冬瓜完成签到,获得积分10
刚刚
刚刚
计划逃跑完成签到 ,获得积分10
3秒前
脑洞疼的应助被仙成一条鱼采纳,获得10
4秒前
真实的芯完成签到,获得积分10
5秒前
春茶发布了新的文献求助10
5秒前
5秒前
7秒前
7秒前
马钢钢完成签到 ,获得积分10
8秒前
田様的应助被青橙采纳,获得10
8秒前
9秒前
CHI发布了新的文献求助20
10秒前
10秒前
CYJ发布了新的文献求助10
11秒前
12秒前
烊羊完成签到 ,获得积分10
12秒前
13秒前
13秒前
雨安完成签到,获得积分10
14秒前
daomaihu发布了新的文献求助100
14秒前
舒书发布了新的文献求助10
16秒前
圆小异发布了新的文献求助10
16秒前
17秒前
烊烊发布了新的文献求助10
18秒前
19秒前
毕烨华发布了新的文献求助10
19秒前
蓝灵完成签到,获得积分10
23秒前
23秒前
Nole的应助被sml采纳,获得10
23秒前
手抓饼啊发布了新的文献求助10
23秒前
23秒前
渡人舟的应助被土书采纳,获得10
23秒前
dan1029发布了新的文献求助10
24秒前
24秒前
36完成签到 ,获得积分10
24秒前
26秒前
小王完成签到,获得积分10
26秒前
26秒前
高分求助中
(应助此贴封号)通过应助OA文献获取积分 10000
Rosenblum, Global Change Biology 800
The Dawn of Philology 520
Organizational Behavior 510
Management and the Arts 510
Production Logging: Theoretical and Interpretive Elements 400
A primer on partial least squares structural equation modeling (PLS-SEM) (4th ed.) 310
热门求助领域 (近24小时)
化学 材料科学 医学 生物 计算机科学 工程类 纳米技术 内科学 物理 有机化学 化学工程 生物化学 复合材料 光电子学 细胞生物学 心理学 量子力学 催化作用 物理化学 电极
热门帖子
关注 科研通微信公众号,转发送积分 7819825
求助须知:如何正确求助?哪些是违规求助? 9347467
关于积分的说明 20541713
捐赠科研通 7412301
什么是DOI,文献DOI怎么找? 3332448
关于科研通互助平台的介绍 2478450
邀请新用户注册赠送积分活动 2352310