DCT-CryptoNets:在频域中扩展私有推理
DCT-CryptoNets: Scaling Private Inference in the Frequency Domain
AI总结:
提出DCT-CryptoNets,利用频域中的离散余弦变换减少非线性激活和自举开销,实现高达5.3倍延迟降低,并在ImageNet上2.5小时内完成推理,提升可扩展性与可靠性。
摘要:
全同态加密(FHE)与机器学习的融合为敏感数据的私有推理提供了前所未有的机遇。FHE允许直接在加密数据上进行计算,从而保护整个机器学习流程,包括数据和模型的机密性。然而,现有的基于FHE的深度神经网络实现面临计算成本、延迟和可扩展性方面的重大挑战,限制了其实际部署。本文提出了DCT-CryptoNets,一种直接在频域中操作的新方法,以减轻私有推理过程中计算昂贵的非线性激活和同态自举操作的负担。该方法利用离散余弦变换(DCT),该变换常用于JPEG编码,并且与远程计算服务具有内在兼容性,因为图像通常以这种编码格式存储和传输。在基准图像分类任务上,DCT-CryptoNets相比先前工作展示了高达5.3倍的延迟降低。值得注意的是,它在ImageNet数据集上实现了在2.5小时内的推理(在等效的96线程计算资源上,从12.5小时缩短而来)。此外,通过学习感知上显著的低频信息,DCT-CryptoNets通过减少累积误差的同态自举操作,提高了加密预测的可靠性,相较于基于RGB的网络。DCT-CryptoNets还展示了优于基于RGB网络的可扩展性,随着图像尺寸的增加进一步降低计算成本。这项研究为在现实应用中实现高分辨率图像上深度学习模型的高效且实用的私有推理开辟了一条有前景的途径。
英文摘要:
The convergence of fully homomorphic encryption (FHE) and machine learning offers unprecedented opportunities for private inference of sensitive data. FHE enables computation directly on encrypted data, safeguarding the entire machine learning pipeline, including data and model confidentiality. However, existing FHE-based implementations for deep neural networks face significant challenges in computational cost, latency, and scalability, limiting their practical deployment. This paper introduces DCT-CryptoNets, a novel approach that operates directly in the frequency-domain to reduce the burden of computationally expensive non-linear activations and homomorphic bootstrap operations during private inference. It does so by utilizing the discrete cosine transform (DCT), commonly employed in JPEG encoding, which has inherent compatibility with remote computing services where images are generally stored and transmitted in this encoded format. DCT-CryptoNets demonstrates a substantial latency reductions of up to 5.3$\times$ compared to prior work on benchmark image classification tasks. Notably, it demonstrates inference on the ImageNet dataset within 2.5 hours (down from 12.5 hours on equivalent 96-thread compute resources). Furthermore, by learning perceptually salient low-frequency information DCT-CryptoNets improves the reliability of encrypted predictions compared to RGB-based networks by reducing error accumulating homomorphic bootstrap operations. DCT-CryptoNets also demonstrates superior scalability to RGB-based networks by further reducing computational cost as image size increases. This study demonstrates a promising avenue for achieving efficient and practical private inference of deep learning models on high resolution images seen in real-world applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。