TL;DR
This paper introduces SOTERIA, a novel approach that designs neural network architectures specifically for efficient and private inference using garbled circuits. By integrating cryptographic cost into the neural architecture search process, SOTERIA achieves a better balance between model accuracy and the computational overhead of privacy-preserving computations compared to prior methods.
What Problem Does This Paper Address?
The increasing popularity of Machine Learning as a Service (MLaaS) raises significant privacy concerns. Users want to leverage powerful ML models hosted on cloud servers without revealing their sensitive input data, while service providers want to protect their proprietary models from clients. Existing solutions often focus on adapting cryptographic techniques to pre-existing, fixed neural network architectures. However, this approach overlooks the fact that the model's architecture and parameters themselves heavily influence the efficiency of cryptographic operations during inference. This paper addresses this gap by proposing a method to design neural networks that are inherently efficient for private inference, rather than trying to force existing cryptographic methods onto them.
Methods
SOTERIA's core innovation lies in its regularized neural architecture search (NAS). Instead of solely optimizing for prediction accuracy, SOTERIA's NAS algorithm incorporates a penalty factor that quantifies the computational and communication cost of executing the model's operations using garbled circuits (GC), a chosen cryptographic primitive.
Key aspects of the method include:
- Garbled Circuits (GC) as the Primitive: The authors select GC for its expressiveness and efficiency, particularly for constant-depth circuits, making it suitable for neural network operations.
- Neural Architecture Search (NAS): They leverage differentiable NAS (DARTS) to explore a vast space of potential network architectures.
- Regularization for Cryptographic Cost: The crucial novelty is modifying the NAS objective function. It penalizes operations that are computationally expensive in GC, guiding the search towards architectures that are not only accurate but also cryptographically efficient. This is achieved by introducing a regularization term ($\lambda$) that balances accuracy and inference cost.
- Ternary Neural Networks (TNNs): To further enhance efficiency, SOTERIA trains models with ternary parameters (values of -1, 0, or +1) and binary activations. This sparsity (due to zero-valued weights) leads to smaller, more efficient garbled circuits.
Datasets
The paper evaluates SOTERIA on two standard image classification datasets:
- MNIST: A dataset of handwritten digits.
- CIFAR10: A dataset of 10 classes of small images.
These datasets are commonly used in the field for evaluating secure inference methods.
Key Insights and Ideas
- Model Architecture Matters for Privacy: The paper strongly emphasizes that the design of the neural network architecture itself is a critical factor in achieving efficient private inference, not just the choice of cryptographic primitives.
- "By-Design" Efficiency: By integrating cryptographic cost into the architecture search, SOTERIA creates models that are inherently efficient for private computation, rather than trying to adapt existing models.
- Sparsity is Key for Garbled Circuits: The use of ternary neural networks, which naturally introduce sparsity, significantly reduces the number of non-XOR gates in the garbled circuit, leading to substantial performance gains.
- Tunable Trade-off: The regularization parameter ($\lambda$) allows for a flexible trade-off between model accuracy and private inference performance, enabling customization for different application requirements.
Key Results
- Improved Efficiency: SOTERIA models, particularly those using ternary networks and optimized architectures, demonstrate significantly lower runtime and communication costs compared to prior work on MNIST and CIFAR10. For instance, on MNIST (m3), SOTERIA (TNN) achieves a total runtime of 0.15s and communication of 26.04 KB, outperforming XONN (0.15s runtime, 32.13 KB communication) while maintaining comparable accuracy.
- Competitive Accuracy: Despite the focus on efficiency, SOTERIA achieves accuracy levels comparable to or even better than prior methods. For example, SOTERIA (λ=0) on MNIST achieves 0.9811 accuracy with a runtime of 0.034s, outperforming XONN's 0.976 accuracy with a much higher runtime.
- Architecture Search Benefits: The regularized NAS successfully identifies architectures that balance accuracy and performance. For CIFAR10, SOTERIA (λ=0.6) achieves 0.7384 accuracy with a runtime of 6.95s, outperforming XONN's 0.83 accuracy with a runtime of 16.09s.
Limitations and Future Work
- Honest-but-Curious Threat Model: The current work assumes an honest-but-curious threat model, meaning parties follow the protocol but might try to infer information. More robust security against malicious adversaries is not addressed.
- Garbled Circuits Specificity: While the approach is generalizable, the current implementation and evaluation heavily rely on garbled circuits. Extending it to other cryptographic primitives or hybrid approaches could be a future direction.
- Hyperparameter Tuning: The regularization parameter ($\lambda$) and the number of cells (depth) require careful tuning to achieve the desired balance between accuracy and performance. The paper explores this trade-off but further research into automated hyperparameter optimization for this specific context could be beneficial.
- Generalizability to Larger Models: While evaluated on MNIST and CIFAR10, testing SOTERIA on larger, more complex models and datasets would be valuable to assess its scalability.
Summary updated