具有(低精度)多项式逼近的神经网络:提升精度的新见解与技术
Neural Networks with (Low-Precision) Polynomial Approximations: New Insights and Techniques for Accuracy Improvement
AI总结:
本文首次将神经网络的多项式逼近(PANN)作为独立对象研究,揭示逼近误差与权重正则化对精度的影响,并提出组合解决方案,在相同精度下显著提升推理准确率或大幅降低所需逼近精度。
摘要:
在隐私保护机器学习中,用多项式逼近替换神经网络中的非多项式函数(例如 ReLU 等非线性激活函数)是一种标准做法。由此得到的神经网络在本文中被称为神经网络的多项式逼近(PANN),它与高级密码系统兼容,从而支持隐私保护模型推理。通过使用“高精度”逼近,最先进的 PANN 能够提供与底层骨干模型相似的推理精度。然而,关于逼近的影响却鲜为人知,现有文献通常通过经验方式确定所需的逼近精度。在本文中,我们首次将 PANN 作为一个独立对象进行研究。具体而言,我们的贡献有两方面。首先,我们对 PANN 中逼近误差的影响给出了解释。特别地,我们发现:(1) PANN 容易受到某种类型的扰动影响;(2) 权重正则化会显著降低 PANN 的精度。我们通过实验支持了这一解释。其次,基于我们研究得到的见解,我们提出了提高 PANN 推理精度的解决方案。实验表明,我们解决方案的组合非常有效:在相同精度下,我们的 PANN 比最先进方法准确 10% 到 50%;而在相同精度下,使用 CIFAR-10 数据集上的 ResNet-20 模型时,我们的 PANN 仅需要 2^{-9} 的精度,而最先进解决方案则需要 2^{-12} 的精度。
英文摘要:
Replacing non-polynomial functions (e.g., non-linear activation functions such as ReLU) in a neural network with their polynomial approximations is a standard practice in privacy-preserving machine learning. The resulting neural network, called polynomial approximation of neural network (PANN) in this paper, is compatible with advanced cryptosystems to enable privacy-preserving model inference. Using ``highly precise'' approximation, state-of-the-art PANN offers similar inference accuracy as the underlying backbone model. However, little is known about the effect of approximation, and existing literature often determined the required approximation precision empirically. In this paper, we initiate the investigation of PANN as a standalone object. Specifically, our contribution is two-fold. Firstly, we provide an explanation on the effect of approximate error in PANN. In particular, we discovered that (1) PANN is susceptible to some type of perturbations; and (2) weight regularisation significantly reduces PANN's accuracy. We support our explanation with experiments. Secondly, based on the insights from our investigations, we propose solutions to increase inference accuracy for PANN. Experiments showed that combination of our solutions is very effective: at the same precision, our PANN is 10% to 50% more accurate than state-of-the-arts; and at the same accuracy, our PANN only requires a precision of 2^{-9} while state-of-the-art solution requires a precision of 2^{-12} using the ResNet-20 model on CIFAR-10 dataset.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。