Towards Privacy-Preserving Neural Architecture Search

Fuyi Wang, Leo Yu Zhang, Lei Pan, Shengshan Hu, Robin Doss

Abstract

Neural Architecture Search (NAS) has significantly advanced the field of deep learning by automating the discovery of high-performing network structures. However, the iterative nature of NAS and its reliance on large datasets raise substantial privacy concerns. Traditional Privacy-Preserving Machine Learning (PPML) focuses on protecting data and weights for fixed architectures, yet recent research indicates that the architecture itself can be a vector for data leakage. This paper introduces PP-NAS, a novel framework designed to perform NAS securely using multi-party computation (MPC). By optimizing Garbled Circuit primitives and introducing a differentiable Softmax approximation, PP-NAS achieves state-of-the-art accuracy on the MNIST dataset with computational speedups of up to 436x over existing privacy-preserving baselines.

Introduction

The automation of neural network design through Neural Architecture Search (NAS) has removed much of the manual trial-and-error from model development. Despite its success, NAS is inherently data-intensive. While Privacy-Preserving Machine Learning (PPML) techniques like Secure Multi-Party Computation (MPC) and Homomorphic Encryption (HE) have been applied to train models with fixed structures, the search process itself remains a privacy blind spot.

Recent "leakage-abuse" attacks demonstrate that an adversary with knowledge of a model's architecture can reconstruct sensitive training samples from gradient updates. To mitigate this, it is insufficient to merely encrypt the training data; the hyper-parameters of the architecture must also remain confidential. PP-NAS addresses this challenge by providing a framework where two non-colluding servers can collaboratively search for an optimal architecture without ever accessing the raw data or the final model structure.

Methodology

PP-NAS is built upon a hybrid MPC protocol involving two cloud servers. The framework's efficiency stems from three primary technical contributions:

1. Optimized Garbled Circuits

Standard MPC frameworks often rely on complex operations for non-linear functions like ReLU and Max-pooling, such as most-significant-bit (MSB) extraction, which are computationally expensive. PP-NAS replaces these with optimized Garbled Circuits using basic primitives: ADD, CMP (Compare), and MUX (Multiplex). Specifically, the Max-pooling implementation utilizes a "numeric trick" to compare secret shares directly, which drastically reduces the communication rounds and overhead.

2. Privacy-Friendly Softmax Approximation

Computing the Softmax function securely is a notorious bottleneck in PPML due to the exponential functions involved. While many researchers use Taylor series expansions, these often require high-degree polynomials to remain accurate, leading to significant latency. PP-NAS approximates the exponential function $exp(x)$ using a power function: $$(x/e^{2k})^{2^k}$$ This approximation is smooth, differentiable, and designed to operate directly on secret shares. By adjusting the constant $k$, the framework balances numerical stability with computational speed, allowing the model to converge faster than traditional secure implementations.

3. Differentiable Search Integration

To avoid the prohibitive costs associated with Reinforcement Learning (RL)-based NAS, PP-NAS integrates the Differentiable Architecture Search (DARTS) framework. By representing the search space as a continuous relaxation, the two servers can update both the network weights and the architecture parameters simultaneously via gradient descent. This bilevel optimization is performed entirely over secret shares, ensuring end-to-end privacy.

Experimental Results

The authors evaluated PP-NAS using the MNIST handwritten digit recognition benchmark. The results demonstrate that privacy does not have to come at the cost of performance or utility.

Computational Efficiency

The optimizations in the Garbled Circuit logic yielded massive performance gains:

  • Max-pooling: The PP-NAS implementation is approximately 68x faster than SecureNN and 436x faster than CrypTen.
  • ReLU: The redesigned circuit is 3x to 19x faster than existing competitors.

Model Accuracy

On the MNIST dataset, PP-NAS achieved a peak accuracy of 98.59%. This significantly outperforms other secure training frameworks, such as CryptoNN (95.94%) and SecureNN (93.4%). Furthermore, the Softmax approximation proved to be highly effective, reaching target accuracies faster than traditional secure Softmax methods, suggesting that the approximation provides a "free" benefit in terms of training stability.

Discussion and Limitations

While PP-NAS represents a significant step forward, there are several areas for future development. Currently, the framework has been validated on the MNIST dataset. Scaling these techniques to more complex datasets like ImageNet is necessary to confirm the framework's robustness in large-scale industrial applications.

Additionally, the Softmax approximation is sensitive to the power factor $L = 2^k$. If $L$ is set too high, it can lead to numerical representation overflow within the MPC environment. Currently, selecting the optimal $k$ requires manual tuning, and automating this process remains an open research question.

Conclusion

PP-NAS demonstrates that privacy-preserving neural architecture search is not only feasible but can be made highly efficient. By treating the model structure as a protected asset and optimizing the underlying cryptographic primitives, the framework provides a robust defense against inversion attacks. This work paves the way for secure automated machine learning in high-stakes domains such as healthcare and finance.

Summary updated

BibTeX
@inproceedings{wang2022towards,
  author = {Fuyi Wang and Leo Yu Zhang and Lei Pan and Shengshan Hu and Robin Doss},
  title = {{Towards Privacy-Preserving Neural Architecture Search}},
  booktitle = {ISCC},
  year = {2022},
  url = {https://openreview.net/forum?id=9AfSc25Roi1},
}
Figure