arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2301.11233cs.CVcs.LG
收藏

BiBench:网络二值化的基准测试与分析

BiBench: Benchmarking and Analyzing Network Binarization

Beihang University(北京航空航天大学);ETH Zürich(苏黎世联邦理工学院);Nanyang Technological University(南洋理工大学)

Haotong Qin, Mingyuan Zhang, Yifu Ding, Aoyu Li, Zhongang Cai, Ziwei Liu, Fisher Yu, Xianglong Liu

AI总结:

提出网络二值化基准BiBench,通过严谨定义评估指标全面分析多种里程碑算法,揭示算子、任务与架构对性能的影响,并指出边缘设备上的效率潜力及未来研究范式。

摘要:

网络二值化作为一种极具前景的压缩方法,通过最小化位宽提供了卓越的计算和内存节省。然而,近期研究表明,在真实场景中将现有二值化算法应用于多样化任务、架构和硬件仍非易事。二值化面临的常见挑战(如精度下降和效率受限)表明其特性尚未被完全理解。为填补这一空白,我们提出BiBench——一个经过严谨设计、包含深入分析的网络二值化基准。我们首先仔细审查实际生产中对二值化的需求,并定义评估轨道和指标以进行全面公平的调查。随后,我们评估并分析了一系列在算子层面发挥作用且具有广泛影响力的里程碑式二值化算法。我们的基准揭示了:1)二值化算子对二值化网络的性能和可部署性有关键影响;2)二值化的精度在不同学习任务和神经架构间差异显著;3)尽管硬件支持有限,二值化在边缘设备上仍展现出可观的效率潜力。结果与分析还引出了一种实现精确高效二值化的前景范式。我们相信BiBench将推动二值化的更广泛应用,并为未来研究奠定基础。BiBench代码已发布于https://github.com/htqin/BiBench。

英文摘要:

Network binarization emerges as one of the most promising compression approaches offering extraordinary computation and memory savings by minimizing the bit-width. However, recent research has shown that applying existing binarization algorithms to diverse tasks, architectures, and hardware in realistic scenarios is still not straightforward. Common challenges of binarization, such as accuracy degradation and efficiency limitation, suggest that its attributes are not fully understood. To close this gap, we present BiBench, a rigorously designed benchmark with in-depth analysis for network binarization. We first carefully scrutinize the requirements of binarization in the actual production and define evaluation tracks and metrics for a comprehensive and fair investigation. Then, we evaluate and analyze a series of milestone binarization algorithms that function at the operator level and with extensive influence. Our benchmark reveals that 1) the binarized operator has a crucial impact on the performance and deployability of binarized networks; 2) the accuracy of binarization varies significantly across different learning tasks and neural architectures; 3) binarization has demonstrated promising efficiency potential on edge devices despite the limited hardware support. The results and analysis also lead to a promising paradigm for accurate and efficient binarization. We believe that BiBench will contribute to the broader adoption of binarization and serve as a foundation for future research. The code for our BiBench is released https://github.com/htqin/BiBench .

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

↑