DCT-CryptoNets: Scaling Private Inference in the Frequency Domain

Arjun Roy, Kaushik Roy
8/27/2024
cs.CRcs.CVcs.LG

No official code found. Best implementation: ar-roy/dct-cryptonets (10 stars, MIT, last commit 2025-02-25).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

Official code for "DCT-CryptoNets: Scaling Private Inference in the Frequency Domain" [ICLR 2025]

103Shell, PythonSep 20, 20241 years agoMIT
deep-learningfrequency-domainfully-homomorphic-encryptionprivacy-preserving-mlpython+1 more

Similar Papers

Cite this paper

@article{roy2024dctcryptonets,
  title  = {DCT-CryptoNets: Scaling Private Inference in the Frequency Domain},
  author = {Arjun Roy and Kaushik Roy},
  year   = {2024},
  eprint = {2408.15231},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.15231v2},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.15231.svg)](https://codeofpaper.com/paper/2408.15231)

Discussion