Secure Transformer Inference via Nonlinear Operator Reduction and Efficient Multi-Party Computation

Authors

  • Rachita Sahni Department of Computer Science, George Mason University, Fairfax, VA, USA. Author
  • Josefiina Varis Department of Computer Science, University of New Hampshire, Durham, NH, USA. Author
  • Genaro Chapa Department of Computer Science, University of North Texas, Denton, TX, USA. Author

Keywords:

secure transformer inference, multi-party computation, nonlinear operator reduction, privacy-preserving machine learning, system architecture, governance, sustainability

Abstract

Transformer architectures have become the dominant computational substrate for language understanding, multimodal reasoning, and generative artificial intelligence, yet their deployment increasingly collides with legal, commercial, and ethical expectations around data confidentiality. Secure transformer inference through multi-party computation offers a principled cryptographic path toward computation without disclosure, but the practical cost of nonlinear operators remains a central bottleneck. This paper examines secure transformer inference as a socio-technical systems problem in which nonlinear operator reduction, efficient multi-party computation protocols, infrastructure design, governance, and sustainability are mutually constitutive. It argues that reducing nonlinear operators is not merely an accuracy-latency trade-off but a structural intervention that reshapes threat models, hardware requirements, auditing practices, and fairness guarantees. The analysis compares two-party and three-party computation, garbled circuits, secret sharing, homomorphic encryption, trusted execution environments, and hybrid architectures, showing that no single technique resolves the full inference pipeline. The paper further explores deployment trade-offs across cloud, edge, and federated environments, emphasizing that efficient secure inference depends on network topology, memory hierarchy, accelerator availability, and operational governance. It also considers robustness under approximation, fairness risks when privacy shields bias, and energy implications of cryptographic redundancy. The conclusion proposes a research and policy agenda centered on co-design, standardized benchmarks, formal verification, and accountable deployment. The overarching claim is that secure transformer inference will mature only when cryptographic efficiency, nonlinear operator design, and institutional accountability are treated as a single design space rather than separate optimization problems.

References

1. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017). Attention is all you need. In Advances in Neural Information Processing Systems (Vol. 30, pp. 5998–6008).

2. Devlin, J., Chang, M. W., Lee, K., & Toutanova, K. (2019). BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (pp. 4171–4186). Association for Computational Linguistics.

3. Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J. D., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., Agarwal, S., Herbert-Voss, A., Krueger, G., Henighan, T., Child, R., Ramesh, A., Ziegler, D. M., Wu, J., Winter, C., … Amodei, D. (2020). Language models are few-shot learners. In Advances in Neural Information Processing Systems (Vol. 33, pp. 1877–1901).

4. Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., Gelly, S., Uszkoreit, J., & Houlsby, N. (2021). An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations.

5. Yao, A. C. (1982). Protocols for secure computations. In Proceedings of the 23rd Annual IEEE Symposium on Foundations of Computer Science (pp. 160–164). IEEE.

6. Goldreich, O., Micali, S., & Wigderson, A. (1987). How to play any mental game. In Proceedings of the 19th Annual ACM Symposium on Theory of Computing (pp. 218–229). ACM.

7. Beaver, D. (1991). Efficient multiparty protocols using circuit randomization. In Advances in Cryptology – CRYPTO 1991 (pp. 420–432). Springer.

8. Damgård, I., Pastro, V., Smart, N., & Zakarias, S. (2012). Multiparty computation from somewhat homomorphic encryption. In Advances in Cryptology – CRYPTO 2012 (pp. 643–662). Springer.

9. Mohassel, P., & Zhang, Y. (2017). SecureML: A system for scalable privacy-preserving machine learning. In 2017 IEEE Symposium on Security and Privacy (pp. 19–38). IEEE.

10. 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). ACM.

11. Wagh, S., Gupta, D., & Chandran, N. (2019). SecureNN: 3-party secure computation for neural network training. Proceedings on Privacy Enhancing Technologies, 2019(3), 26–49.

12. 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.

13. 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). ACM.

14. Riazi, M. S., Samragh, M., Chen, H., Laine, K., Lauter, K., & Koushanfar, F. (2019). XONN: XNOR-based oblivious deep neural network inference. In Proceedings of the 28th USENIX Security Symposium (pp. 1501–1518). USENIX Association.

15. Mishra, P., Lehmkuhl, R., Srinivasan, A., Zheng, W., & Popa, R. A. (2020). Delphi: A cryptographic inference service for neural networks. In Proceedings of the 29th USENIX Security Symposium (pp. 2505–2522). USENIX Association.

16. 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 (Vol. 34, pp. 4961–4973).

17. Watson, W., Wagh, S., Popa, R. A., & Rao, S. (2022). Piranha: A GPU platform for secure computation. In Proceedings of the 31st USENIX Security Symposium (pp. 827–844). USENIX Association.

18. Peng, Hongwu, et al. "Rrnet: Towards relu-reduced neural network for two-party computation based private inference." arXiv preprint arXiv:2302.02292 (2023).

19. Hendrycks, D., & Gimpel, K. (2016). Gaussian error linear units (GELUs). arXiv preprint arXiv:1606.08415.

20. Abadi, M., Chu, A., Goodfellow, I., McMahan, H. B., Mironov, I., Talwar, K., & Zhang, L. (2016). Deep learning with differential privacy. In Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security (pp. 308–318). ACM.

21. Dwork, C. (2006). Differential privacy. In Automata, Languages and Programming (pp. 1–12). Springer.

22. Costan, V., & Devadas, S. (2016). Intel SGX explained. IACR Cryptology ePrint Archive, 2016, 86.

23. Gentry, C. (2009). Fully homomorphic encryption using ideal lattices. In Proceedings of the 41st Annual ACM Symposium on Theory of Computing (pp. 169–178). ACM.

24. Kairouz, P., McMahan, H. B., Avent, B., Bellet, A., Bennis, M., Bhagoji, A. N., Bonawitz, K., Charles, Z., Cormode, G., Cummings, R., D’Oliveira, R. G. L., Eichner, H., El Rouayheb, S., Evans, D., Gardner, J., Garrett, Z., Gascón, A., Ghazi, B., Gibbons, P. B., … Zhao, S. (2021). Advances and open problems in federated learning. Foundations and Trends in Machine Learning, 14(1–2), 1–210.

Downloads

Published

2026-10-08