Adaptive Activation Function Replacement for Encrypted Neural Network Computation
Keywords:
encrypted inference; activation functions; secure computation; homomorphic encryption; privacy-preserving machine learning; system architecture; robustness; fairness; governance; sustainabilityAbstract
Encrypted neural network computation has emerged as a central strategy for enabling privacy-preserving inference across cloud, edge, and multi-party environments. Although cryptographic primitives such as homomorphic encryption, secure multi-party computation, and trusted execution environments have matured considerably, nonlinear activation functions remain among the most expensive and structurally disruptive operations in encrypted pipelines. This paper examines adaptive activation function replacement as a system-level design approach rather than a purely mathematical optimization. It argues that replacing or approximating activation functions during encrypted inference must be understood through coupled trade-offs involving latency, communication overhead, cryptographic depth, model accuracy, robustness, fairness, and governance. The analysis situates activation replacement within broader secure computation architectures, including compiler transformations, operator fusion, hardware acceleration, key management, and federated deployment. It further considers how adaptive replacement affects adversarial vulnerability, group fairness, auditability, and regulatory compliance. The paper concludes that sustainable encrypted inference requires not only efficient replacements for rectified linear units and related nonlinearities but also transparent governance mechanisms, reproducible evaluation, and infrastructure-aware policy frameworks. Adaptive activation replacement is therefore presented as a socio-technical design problem whose success depends on coordination among cryptographic protocols, model architectures, deployment platforms, and institutional accountability structures.
References
1. Nair, V., & Hinton, G. E. (2010). Rectified linear units improve restricted Boltzmann machines. In Proceedings of the 27th International Conference on Machine Learning (pp. 807-814). Omnipress.
2. Glorot, X., Bordes, A., & Bengio, Y. (2011). Deep sparse rectifier neural networks. In Proceedings of the 14th International Conference on Artificial Intelligence and Statistics (pp. 315-323). PMLR.
3. Clevert, D. A., Unterthiner, T., & Hochreiter, S. (2016). Fast and accurate deep network learning by exponential linear units (ELUs). In 4th International Conference on Learning Representations. ICLR.
4. 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.
5. Bourse, F., Minelli, M., Minihold, M., & Paillier, P. (2018). Fast homomorphic evaluation of deep discretized neural networks. In Advances in Cryptology – CRYPTO 2018 (pp. 483-512). Springer.
6. 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.
7. 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 on Asia Conference on Computer and Communications Security (pp. 707-721). ACM.
8. Juvekar, C., Vaikuntanathan, V., & Chandrakasan, A. (2018). GAZELLE: A low latency framework for secure neural network inference. In 27th USENIX Security Symposium (pp. 1651-1669). USENIX Association.
9. 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.
10. Mishra, P., Lehmkuhl, R., Srinivasan, A., Zheng, W., & Popa, R. A. (2020). Delphi: A cryptographic inference service for neural networks. In 29th USENIX Security Symposium (pp. 2505-2522). USENIX Association.
11. Knott, B., Venkataraman, S., Hannun, A., Sengupta, S., & Ibrahim, M. (2021). CrypTen: Secure multi-party computation meets machine learning. In Advances in Neural Information Processing Systems 34 (pp. 4961-4973). Curran Associates.
12. Jiang, X., Kim, M., Lauter, K., & Song, Y. (2018). Secure outsourced matrix computation and application to neural networks. In Proceedings of the 2018 ACM SIGSAC Conference on Computer and Communications Security (pp. 1209-1222). ACM.
13. Liu, Y., Fan, T., Chen, T., Xu, Q., & Yang, Q. (2021). FATE: An industrial grade platform for collaborative learning with data protection. Journal of Machine Learning Research, 22(226), 1-6.
14. Peng, H., Huang, S., Zhou, T., Luo, Y., Wang, C., Wang, Z., ... & Ding, C. (2023, October). Autorep: Automatic relu replacement for fast private network inference. In 2023 IEEE/CVF International Conference on Computer Vision (ICCV) (pp. 5155-5165). IEEE.
15. Kairouz, P., McMahan, H. B., Avent, B., Bellet, A., Bennis, M., Bhagoji, A. N., ... & Zhao, S. (2021). Advances and open problems in federated learning. Foundations and Trends in Machine Learning, 14(1–2), 1–210.
16. 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.
17. Barreno, M., Nelson, B., Joseph, A. D., & Tygar, J. D. (2010). The security of machine learning. Machine Learning, 81(2), 121-148.
18. Dwork, C., & Roth, A. (2014). The algorithmic foundations of differential privacy. Foundations and Trends in Theoretical Computer Science, 9(3–4), 211–407.
19. Veale, M., & Borgesius, F. Z. (2021). Demystifying the draft EU artificial intelligence act. Computer Law Review International, 22(4), 97-112.
20. Floridi, L., Cowls, J., Beltrametti, M., Chatila, R., Chazerand, P., Dignum, V., ... & Vayena, E. (2018). AI4People—An ethical framework for a good AI society: Opportunities, risks, principles, and recommendations. Minds and Machines, 28(4), 689-707.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Artificial Intelligence and Machine Learning Systems

This work is licensed under a Creative Commons Attribution 4.0 International License.