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

使用局部重参数化技巧学习离散权重与激活

Learning Discrete Weights and Activations Using the Local Reparameterization Trick

Bar-Ilan University(巴伊兰大学)

Guy Berger, Aviv Navon, Ethan Fetaya

AI总结:

本文扩展局部重参数化技巧,在离散权重基础上进一步支持离散激活训练,利用概率建模与中心极限定理近似预激活,降低推理计算和内存开销,并在二值激活网络上取得最先进结果。

摘要:

在计算机视觉和机器学习中,一个关键挑战是降低神经网络推理的计算和内存需求。解决这一挑战的常见方案是使用二值化。通过对网络权重和激活进行二值化,可以用更快的按位运算替代计算代价高昂的浮点运算,从而显著降低计算复杂度。这使得神经网络推理更加高效,可以部署在低资源设备上。在本工作中,我们扩展了先前使用局部重参数化技巧训练具有离散权重网络的方法,使其同样支持离散激活。原始方法优化离散权重上的分布,并利用中心极限定理将预激活近似为连续高斯分布。这里我们表明,这种概率建模也能够有效训练具有离散激活的网络。这进一步减少了推理时的运行时间和内存占用,并在具有二值激活的网络上取得了最先进的结果。

英文摘要:

In computer vision and machine learning, a crucial challenge is to lower the computation and memory demands for neural network inference. A commonplace solution to address this challenge is through the use of binarization. By binarizing the network weights and activations, one can significantly reduce computational complexity by substituting the computationally expensive floating operations with faster bitwise operations. This leads to a more efficient neural network inference that can be deployed on low-resource devices. In this work, we extend previous approaches that trained networks with discrete weights using the local reparameterization trick to also allow for discrete activations. The original approach optimized a distribution over the discrete weights and uses the central limit theorem to approximate the pre-activation with a continuous Gaussian distribution. Here we show that the probabilistic modeling can also allow effective training of networks with discrete activation as well. This further reduces runtime and memory footprint at inference time with state-of-the-art results for networks with binary activations.

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

↑