[Paper Review] NASS: Optimizing Secure Inference via Neural Architecture Search
NASS proposes a neural architecture search framework that jointly optimizes neural network architectures and homomorphic encryption parameters for secure inference, achieving 84.6% accuracy on CIFAR-10 with 2x faster inference and 1.9x less bandwidth compared to prior work, by modeling cryptographic primitives as tunable design elements within a reinforcement learning-based search engine.
Due to increasing privacy concerns, neural network (NN) based secure inference (SI) schemes that simultaneously hide the client inputs and server models attract major research interests. While existing works focused on developing secure protocols for NN-based SI, in this work, we take a different approach. We propose NASS, an integrated framework to search for tailored NN architectures designed specifically for SI. In particular, we propose to model cryptographic protocols as design elements with associated reward functions. The characterized models are then adopted in a joint optimization with predicted hyperparameters in identifying the best NN architectures that balance prediction accuracy and execution efficiency. In the experiment, it is demonstrated that we can achieve the best of both worlds by using NASS, where the prediction accuracy can be improved from 81.6% to 84.6%, while the inference runtime is reduced by 2x and communication bandwidth by 1.9x on the CIFAR-10 dataset.
Motivation & Objective
- To address the performance bottleneck in secure inference caused by fixed, manually designed neural architectures.
- To integrate cryptographic protocol parameters (e.g., homomorphic encryption) as first-class design elements in neural architecture search.
- To jointly optimize prediction accuracy and execution efficiency (inference time, bandwidth) in secure inference workloads.
- To overcome the non-linear performance characteristics of cryptographic primitives that hinder traditional optimization.
- To push the Pareto frontier of secure inference by exploring architectural designs tailored to cryptographic constraints.
Proposed method
- Model cryptographic primitives—such as packed homomorphic encryption (PAHE) and garbled circuits—as configurable design elements with associated computational and communication cost profiles.
- Define a reward function that combines prediction accuracy and efficiency metrics (inference time, bandwidth) to guide the search.
- Use a reinforcement learning-based NAS engine to explore the architectural space, generating and evaluating new neural architectures based on feedback from the reward function.
- Systematically analyze the impact of quantization levels, filter dimensions, and layer configurations on secure inference performance.
- Integrate HE parameter tuning (e.g., LWE parameters) into the search space, treating them as hyperparameters to be co-optimized with architecture choices.
- Construct a search space that includes convolutional layers, ReLU activations, pooling layers, and fully connected layers, with variable kernel sizes, filter counts, and quantization factors.
Experimental results
Research questions
- RQ1Can neural architecture search be effectively applied to optimize secure inference workloads that involve complex cryptographic primitives?
- RQ2How do non-linear performance characteristics of homomorphic encryption affect the trade-off between accuracy and efficiency in secure inference?
- RQ3Can joint optimization of neural architecture and cryptographic parameters yield better Pareto-optimal solutions than manual design or isolated parameter tuning?
- RQ4To what extent can architectural search improve both accuracy and efficiency simultaneously in secure inference, rather than requiring a trade-off?
- RQ5What architectural patterns emerge when searching for secure inference models under cryptographic constraints?
Key findings
- NASS achieves 84.6% prediction accuracy on CIFAR-10, a 3 percentage point improvement over the prior best of 81.6%.
- The best NASS architecture reduces inference time by 2x (from 8.0s to 1.62s) and communication bandwidth by 1.9x (from 1.815 GB to 977 MB) compared to the baseline Gazelle architecture.
- The NASS-generated architecture uses only 5 convolutional layers instead of 6, demonstrating structural efficiency gains without sacrificing accuracy.
- The CIFAR-Per architecture achieves 82.6% accuracy with 5.1s inference time and 582 MB bandwidth, showing that performance can be further improved when accuracy is relaxed.
- The NASS framework successfully learns the highly non-linear performance space of secure inference, as evidenced by the Pareto frontier plots in the paper.
- The framework outperforms a recent 85%-accuracy method that requires over 30 seconds for inference, achieving a 4x speedup on the same accuracy level.
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.