[Paper Review] SEALion: a Framework for Neural Network Inference on Encrypted Data
SEALion is an extensible framework that enables training neural networks on plaintext data and performing inference on homomorphically encrypted data, with automatic encryption parameter selection. It demonstrates encrypted inference improvements via activation sparsification and introduces encrypted transfer learning using a server-side VAE.
We present SEALion: an extensible framework for privacy-preserving machine learning with homomorphic encryption. It allows one to learn deep neural networks that can be seamlessly utilized for prediction on encrypted data. The framework consists of two layers: the first is built upon TensorFlow and SEAL and exposes standard algebra and deep learning primitives; the second implements a Keras-like syntax for training and inference with neural networks. Given a required level of security, a user is abstracted from the details of the encoding and the encryption scheme, allowing quick prototyping. We present two applications that exemplifying the extensibility of our proposal, which are also of independent interest: i) improving efficiency of neural network inference by an activity sparsifier and ii) transfer learning by querying a server-side Variational AutoEncoder that can handle encrypted data.
Motivation & Objective
- Motivate privacy-preserving prediction in ML and enable practical neural networks on encrypted data.
- Provide an extensible software architecture that combines TensorFlow-like training with SEAL-based encrypted inference.
- Automate encryption parameter selection to meet security guarantees while maximizing performance.
- Demonstrate practical extensions: (i) sparsifying activations to speed up encrypted inference, and (ii) encrypted transfer learning via server-side VAE representations.
Proposed method
- Build SEALion as a primitives layer over SEAL for evaluating multivariate polynomial functions on encrypted data.
- Expose a TensorFlow-like interface (HEras) for training on plaintext and inference on encrypted data with a Keras-like syntax.
- Use batching (SIMD) and Chinese Remainder Theorem (CRT) to manage plaintext moduli and improve throughput.
- Implement automatic encryption parameter selection by exploring (n, t) candidates and validating against the noise budget.
- Discretize neural networks to fit polynomial operations required by homomorphic encryption.
- Demonstrate sparsification of activations to reduce encrypted computations and accelerate inference.
- Introduce encrypted transfer learning by querying a server-side VAE to obtain encrypted representations.
Experimental results
Research questions
- RQ1Can neural networks be trained in plaintext and deployed for encrypted inference without exposing input data?
- RQ2How can encryption parameters be automatically selected to balance security, depth, and performance in SEAL-based inference?
- RQ3Does activation sparsification significantly reduce latency and increase throughput for encrypted neural networks without sacrificing accuracy?
- RQ4Is encrypted transfer learning via a server-side VAE viable for obtaining useful representations while preserving client privacy?
- RQ5What are the practical performance and accuracy trade-offs of SEALion across representative architectures on MNIST?
Key findings
- Encryption-based inference can achieve competitive accuracy with discretized polynomial networks.
- Activation sparsification (L0 activity sparsifier) substantially improves latency and throughput for encrypted inference (e.g., CNN-16 with L0 shows notable speedups while maintaining accuracy).
- Dense results include comparisons to CryptoNets and other baselines, with models like DNN-30, DNN-100, CNN-16 and CNN-16 with L0 achieving high accuracy on MNIST, and substantially different latency/throughput profiles.
- Encrypted transfer learning via a discretized VAE (dVAE) enables extracting representations that improve downstream classifier performance under privacy constraints.
- Automatic parameter selection balances latency and throughput by exploring polynomial degree n and plaintext modulus t, ensuring target security levels while avoiding noise budget exhaustion.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.