Compiler-Assisted Optimization of Privacy-Preserving Neural Network Architectures

Authors

  • Lara Commins Department of Computer Science and Engineering, University at Buffalo, Buffalo, NY, USA.

Keywords:

privacy-preserving machine learning; compiler optimization; secure multi-party computation; homomorphic encryption; neural architecture; system governance; deployment sustainability; fairness

Abstract

Privacy-preserving neural network inference has moved from a narrow cryptographic curiosity to a systems problem that spans compilers, runtime schedulers, cryptographic protocols, hardware accelerators, and governance regimes. The central challenge is not simply whether a neural network can be evaluated without exposing inputs or weights, but whether such evaluation can be performed with acceptable latency, cost, accuracy, robustness, and accountability. Compiler-assisted optimization offers a promising response by treating privacy constraints as first-class properties of the computation graph. Instead of applying generic neural network optimizations and then fitting them into a cryptographic protocol, compiler-assisted methods can restructure architectures, lower operator representations, reduce communication rounds, and co-schedule secure computation primitives according to deployment context. This paper examines that emerging design space from a system-level perspective. It discusses how optimizing compilers can bridge secure multi-party computation, homomorphic encryption, and trusted execution environments with neural architecture search, quantization, activation reduction, operator fusion, and memory planning. The analysis emphasizes structural trade-offs rather than narrow benchmark gains. Particular attention is given to the ways privacy-preserving compilation affects fairness, robustness, sustainability, auditability, and policy compliance. The paper argues that compiler-assisted optimization should be understood as an infrastructural and governance instrument, not merely a performance technique. Its long-term value depends on whether it can produce transparent, verifiable, and deployable systems that preserve privacy without shifting unacceptable costs onto operators, users, or the public.

References

1. Mohassel, P., & Rindal, P. (2018). ABY3: A mixed protocol framework for machine learning. In Proceedings of the 2018 ACM SIGSAC Conference on Computer and Communications Security (pp. 35–52). Association for Computing Machinery.

2. Juvekar, C., Vaikuntanathan, V., & Chandrakasan, A. (2018). GAZELLE: A low latency framework for secure neural network inference. In Proceedings of the 27th USENIX Security Symposium (pp. 1651–1669). USENIX Association.

3. Liu, J., Juuti, M., Lu, Y., & Asokan, N. (2017). Oblivious neural network predictions via MiniONN transformations. In Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security (pp. 619–631). Association for Computing Machinery.

4. Riazi, M. S., Weinert, C., Tkachenko, O., Songhori, E. M., Schneider, T., & Koushanfar, F. (2018). Chameleon: A hybrid secure computation framework for machine learning applications. In Proceedings of the 2018 Asia Conference on Computer and Communications Security (pp. 707–721). Association for Computing Machinery.

5. Rouhani, B. D., Riazi, M. S., & Koushanfar, F. (2018). DeepSecure: Scalable provably-secure deep learning. In Proceedings of the 55th Annual Design Automation Conference (Article 2). Association for Computing Machinery.

6. Gilad-Bachrach, R., Dowlin, N., Laine, K., Lauter, K., Naehrig, M., & Wernsing, J. (2016). CryptoNets: Applying neural networks to encrypted data with high throughput and accuracy. In Proceedings of the 33rd International Conference on Machine Learning (pp. 201–210). PMLR.

7. Dathathri, R., Saarikivi, O., Chen, H., Laine, K., Lauter, K., Maleki, S., & Musuvathi, M. (2019). CHET: An optimizing compiler for fully-homomorphic neural-network inferencing. In Proceedings of the 40th ACM SIGPLAN Conference on Programming Language Design and Implementation (pp. 142–156). Association for Computing Machinery.

8. Dathathri, R., Kostova, B., Saarikivi, O., Dai, W., Laine, K., & Musuvathi, M. (2020). EVA: An encrypted vector arithmetic language and compiler for efficient homomorphic computation. In Proceedings of the 41st ACM SIGPLAN Conference on Programming Language Design and Implementation (pp. 546–561). Association for Computing Machinery.

9. Lee, E., Lee, J.-W., Lee, J., Kim, Y., Kim, Y., No, J.-S., & Choi, W. (2020). Low-complexity deep convolutional neural networks on fully homomorphic encryption using multiplexed parallel convolutions. arXiv preprint arXiv:2008.12171.

10. Knott, B., Venkataraman, S., Hannun, A., Sengupta, S., Ibrahim, M., & van der Maaten, L. (2021). CrypTen: Secure multi-party computation meets machine learning. In Advances in Neural Information Processing Systems 34. Curran Associates.

11. Peng, H., Zhou, S., Luo, Y., Xu, N., Duan, S., Ran, R., ... & Ding, C. (2023). Rrnet: Towards relu-reduced neural network for two-party computation based private inference. arXiv preprint arXiv:2302.02292.

12. Ziller, A., Trask, A., Lopardo, A., Szymkow, B., Wagner, B., Bluemke, E., ... & Kaissis, G. (2021). PySyft: A library for easy federated learning. In Federated Learning Systems (pp. 111–139). Springer.

13. Kairouz, P., McMahan, H. B., Avent, B., Bellet, A., Bennis, M., Bhagoji, A. N., ... & Zhao, Z. (2021). Advances and open problems in federated learning. Foundations and Trends in Machine Learning, 14(1–2), 1–210.

14. Bonawitz, K., Ivanov, V., Kreuter, B., Marcedone, A., McMahan, H. B., Patel, S., ... & Seth, K. (2017). Practical secure aggregation for privacy-preserving machine learning. In Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security (pp. 1175–1191). Association for Computing Machinery.

15. Papernot, N., McDaniel, P., Sinha, A., & Wellman, M. P. (2018). SoK: Security and privacy in machine learning. In 2018 IEEE European Symposium on Security and Privacy (pp. 399–414). IEEE.

16. Barocas, S., Hardt, M., & Narayanan, A. (2019). Fairness and machine learning: Limitations and opportunities. fairmlbook.org.

17. Mittelstadt, B. (2019). Principles alone cannot guarantee ethical AI. Nature Machine Intelligence, 1(11), 501–507.

18. Coyle, D., & Weller, A. (2020). "Explaining" machine learning reveals policy challenges. Science, 368(6498), 1433–1434.

19. Veale, M., & Borgesius, F. Z. (2021). Demystifying the draft EU artificial intelligence act. Computer Law Review International, 22(4), 97–112.

20. Strubell, E., Ganesh, A., & McCallum, A. (2019). Energy and policy considerations for deep learning in NLP. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics (pp. 3645–3650). Association for Computational Linguistics.

Downloads

Published

2026-08-22