arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1605.04711cs.CV
收藏

三重权网络

Ternary Weight Networks

Institute of Applied Math., AMSS, CAS(中国科学院数学与系统科学研究院应用数学研究所);Shanghai Jiao Tong University(上海交通大学)

Fengfu Li, Bin Liu, Xiaoxing Wang, Bo Zhang, Junchi Yan

摘要:

我们提出了一个内存和计算效率高的三元权重网络(TWN)-权重限制为+1,0和-1。在训练阶段,全精度(浮点或双精度)权重与三进制权重之间的欧几里得距离以及缩放因子被最小化。此外,基于阈值的三值函数的优化,以获得一个近似的解决方案,可以快速和易于计算。TWN比二进制精确对应物表现出更好的表达能力。同时,TWN实现了高达16个$\times$模型压缩率,并且与float 32精度对应物相比,需要更少的乘法。在MNIST、CIFAR-10和ImageNet数据集上的大量实验表明,TWN比二进制权重网络(BWN)取得了更好的结果,并且在MNIST和CIFAR-10上的分类性能非常接近全精度网络。我们还验证了我们的方法上的目标检测任务,并表明TWN显着优于BWN超过10\% mAP的PASCAL VOC数据集。pytorch版本的源代码可以在https://github.com/Thinklab-SJTU/twns上找到。

英文摘要:

We present a memory and computation efficient ternary weight networks (TWNs) - with weights constrained to +1, 0 and -1. The Euclidian distance between full (float or double) precision weights and the ternary weights along with a scaling factor is minimized in training stage. Besides, a threshold-based ternary function is optimized to get an approximated solution which can be fast and easily computed. TWNs have shown better expressive abilities than binary precision counterparts. Meanwhile, TWNs achieve up to 16$\times$ model compression rate and need fewer multiplications compared with the float32 precision counterparts. Extensive experiments on MNIST, CIFAR-10, and ImageNet datasets show that the TWNs achieve much better result than the Binary-Weight-Networks (BWNs) and the classification performance on MNIST and CIFAR-10 is very close to the full precision networks. We also verify our method on object detection task and show that TWNs significantly outperforms BWN by more than 10\% mAP on PASCAL VOC dataset. The pytorch version of source code is available at: https://github.com/Thinklab-SJTU/twns.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑