arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.00133cs.LGcs.CV
收藏

PokeBNN:追求轻量化精度的二元组合

PokeBNN: A Binary Pursuit of Lightweight Accuracy

Cornell University(康奈尔大学);Google Research(谷歌研究院)

Yichi Zhang, Zhiru Zhang, Lukasz Lew

摘要:

Top-1 ImageNet的优化促进了在推理设置中可能不切实际的巨大网络。二进制神经网络(BNN)有可能显着降低计算强度,但现有的模型遭受低质量。为了克服这一缺陷,我们提出了PokeConv,一个二进制卷积块,它通过添加多个残差路径和调整激活函数等技术提高了BNN的质量。我们将其应用于ResNet-50,并优化了ResNet的初始卷积层,这是很难二进制化的。我们将得到的网络家族命名为PokeBNN。选择这些技术以在前1精度和网络成本方面产生有利的改进。为了实现成本与准确性的联合优化,我们定义了算术计算工作量(ACE),这是量化和二进制化网络的硬件和能量成本度量。我们还确定需要优化一个未被充分探索的超参数控制二值化梯度近似。我们建立了一个新的,强大的最先进的(SOTA)的顶级1精度与常用的CPU 64成本,ACE成本和网络规模的指标。ReActNet-Adam,BNN中的前SOTA,以7.9 ACE实现了70.5%的top-1准确率。PokeBNN的一个小变体在2.6 ACE的情况下实现了70.5%的top-1,成本降低了3倍以上;一个更大的PokeBNN在7.8 ACE的情况下实现了75.6%的top-1,准确率提高了5%以上,而不增加成本。PokeBNN在JAX/Flax中的实现和再现说明可在AQT存储库中获得:https://github.com/google/aqt

英文摘要:

Optimization of Top-1 ImageNet promotes enormous networks that may be impractical in inference settings. Binary neural networks (BNNs) have the potential to significantly lower the compute intensity but existing models suffer from low quality. To overcome this deficiency, we propose PokeConv, a binary convolution block which improves quality of BNNs by techniques such as adding multiple residual paths, and tuning the activation function. We apply it to ResNet-50 and optimize ResNet's initial convolutional layer which is hard to binarize. We name the resulting network family PokeBNN. These techniques are chosen to yield favorable improvements in both top-1 accuracy and the network's cost. In order to enable joint optimization of the cost together with accuracy, we define arithmetic computation effort (ACE), a hardware- and energy-inspired cost metric for quantized and binarized networks. We also identify a need to optimize an under-explored hyper-parameter controlling the binarization gradient approximation. We establish a new, strong state-of-the-art (SOTA) on top-1 accuracy together with commonly-used CPU64 cost, ACE cost and network size metrics. ReActNet-Adam, the previous SOTA in BNNs, achieved a 70.5% top-1 accuracy with 7.9 ACE. A small variant of PokeBNN achieves 70.5% top-1 with 2.6 ACE, more than 3x reduction in cost; a larger PokeBNN achieves 75.6% top-1 with 7.8 ACE, more than 5% improvement in accuracy without increasing the cost. PokeBNN implementation in JAX/Flax and reproduction instructions are available in AQT repository: https://github.com/google/aqt

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

↑