Saeed Ur Rahman1,2, Zhao Chang1,2,*, and Ke Cheng1,2
Zhao Chang
1School of Computer Science and Technology, Xidian University, Xi’an, 710071, China,
2Shaanxi Key Laboratory of Network and System Security, Xidian University, Xi’an, 710071, China,
*Corresponding author
Privacy-preserving machine learning has become increasingly important for enabling secure inference over sensitive data in domains such as healthcare, finance, and cloud computing. Although homomorphic encryption enables computation on encrypted data, conventional HE-based inference incurs significant computational overhead, limiting its practical deployment. This paper proposes a Hybrid MLP-XGBoost framework integrated with a selective homomorphic encryption strategy for efficient privacy-preserving inference. The framework combines MLP-based latent feature extraction with XGBoost-based probabilistic feature generation, followed by a lightweight logistic regression classifier whose final inference stage is executed under homomorphic encryption. To further improve computational efficiency, a CKKS batching optimization is incorporated to pack multiple feature vectors into a single ciphertext and perform parallel encrypted computation using Single Instruction Multiple Data operations. The proposed framework was evaluated on four benchmark datasets, namely Adult Census Income, Bank Marketing, eICU, and Diabetes 130-US Hospitals, under four inference configurations: Plaintext, Paillier, CKKS-Single, and CKKS-Batched, using inference workloads of 300, 500, and 1000 samples. The experimental results show that the encrypted inference configurations maintain predictive performance comparable to plaintext inference across the evaluated datasets and workload sizes, while CKKS batching substantially reduces inference latency compared with single-sample CKKS evaluation. The proposed framework achieved encrypted classification accuracies of 86.0% on Adult Census Income, up to 90.0% on Bank Marketing, up to 87.6% on eICU, and 91.33% on Diabetes 130-US Hospitals, while maintaining comparable ROC-AUC, Log-loss, and Brier Score across all encryption schemes. Furthermore, CKKS-Batched substantially reduced encrypted inference latency compared with CKKS-Single across all evaluated datasets and workload sizes. Based on the final inference-time measurements, CKKS-Batched achieved latency reductions of 98.74%-99.15% on the Adult Census Income dataset, 98.89%-99.19% on the Bank Marketing dataset, 98.38%-98.98% on the eICU dataset, and 98.74%-99.47% on the Diabetes 130-US Hospitals dataset for workloads of 300, 500, and 1000 samples. The maximum observed reduction was 99.47%, demonstrating the substantial computational benefit of ciphertext packing and SIMD-based parallel computation. These results demonstrate that the proposed Hybrid MLP-XGBoost framework provides an effective balance among privacy preservation, predictive accuracy, computational efficiency, and scalability, making it well-suited for secure machine learning applications in cloud-based environments.
Homomorphic Encryption, Privacy-Preserving Inference, Hybrid MLP-XGBoost, CKKS Batching, Secure Machine Learning
Saeed Ur Rahman, Zhao Chang, and Ke Cheng (2026). Efficient Privacy-Preserving Inference via Homomorphic Encryption: A Hybrid MLP–XGBoost Framework with Batched CKKS Optimization. Journal of Networking and Network Applications, Volume 6, Issue 4, pp. 229–248. https://doi.org/10.33969/J-NaNA.2026.060404.
[1] C. Dwork and A. Roth, “The algorithmic foundations of differential privacy,” Foundations and Trends in Theoretical Computer Science, vol. 9, no. 3–4, pp. 211–407, 2014.
[2] V. Terziyan, B. Bilokon, and M. Gavriushenko, Deep Homeomorphic Data Encryption for Privacy Preserving Machine Learning, 2024, vol. 232.
[3] M. Yu and G. De Micheli, “Faster homomorphic operations and beyond: Expediting homomorphic computation via boolean circuit optimization,” Journal of Cryptology, vol. 39, no. 6, 2026.
[4] C. Hong, “Recent advances of privacy-preserving machine learning based on fully homomorphic encryption,” Security and Safety, vol. 4, p. 2024012, 2025.
[5] V. S. Naresh and S. Reddi, “Exploring the future of privacy-preserving heart disease prediction: A fully homomorphic encryption-driven logistic regression approach,” Journal of Big Data, vol. 12, no. 1, p. 52, 2025.
[6] R. L. Rivest, L. Adleman, and M. L. Dertouzos, “On data banks and privacy homomorphisms,” pp. 169–179, 1978.
[7] L. Wu, X. A. Wang, J. Liu, Y. Su, Z. Tu, W. Liu, H. Lei, D. Tang, Y. Cao, and J. Zhang, “Homomorphic encryption for machine learning applications with ckks algorithms: A survey of developments and applications,” vol. 85, no. 1, 2025, pp. 89–119.
[8] P. Paillier, “Public-key cryptosystems based on composite degree resid-uosity classes,” in Advances in Cryptology — EUROCRYPT’99, ser. Lecture Notes in Computer Science, vol. 1592. Springer, 1999, pp. 223–238.
[9] A. Ebel, K. Garimella, and B. Reagen, “Orion: A fully homomorphic encryption framework for deep learning,” in Proceedings of the 30th ACM International Conference on Architectural Support for Program-ming Languages and Operating Systems, 2025.
[10] A. A. Abdirahman, A. O. Hashi, U. M. Dahir et al., “He-cloudml: A privacy-preserving framework for secure machine learning inference over encrypted cloud data using homomorphic encryption,” Scientific Reports, 2026.
[11] R.-I. Chang, C.-H. Wang, Y.-T. Chang, and L.-C. Wei, “Approximate homomorphic encryption for mlaas by ckks with operation-error-bound,” Computers, Materials & Continua, vol. 85, no. 1, pp. 503–518, 2025.
[12] I. Chillotti, N. Gama, M. Georgieva, and M. Izabach`ene, “Tfhe: Fast fully homomorphic encryption over the torus,” Journal of Cryptology, vol. 33, no. 1, pp. 34–91, 2020.
[13] C. Song and X. Shi, “Reacthe: A homomorphic encryption friendly deep neural network for privacy-preserving biomedical prediction,” Smart Health, vol. 32, p. 100469, 2024.
[14] A. Brutzkus, R. Gilad-Bachrach, and O. Elisha, “Low latency privacy-preserving inference,” vol. 97, pp. 812–821, 2019.
[15] A. Kim and Y. Song, “Advanced batching techniques for the ckks scheme in analytical workloads,” Cryptography and Communications, vol. 12, no. 5, pp. 943–962, 2020.
[16] C. Xu and Y. Wang, “Optimization of cnn inference for multi-image with fully homomorphic encryption,” Journal of King Saud University Computer and Information Sciences, vol. 37, p. 260, 2025.
[17] Y. Xu et al., “Enhancing privacy-preserving machine learning with self-learnable activation functions in fully homomorphic encryption,” Journal of Information Security and Applications, vol. 86, p. 103887, 2024.
[18] G. Ke, Q. Meng, T. Finley, T. Wang, W. Chen, W. Ma, Q. Ye, and T.-Y. Liu, “Lightgbm: A highly efficient gradient boosting decision tree,” in Advances in Neural Information Processing Systems, vol. 30, 2017, pp. 3146–3154.
[19] T. Chen and C. Guestrin, “Xgboost: A scalable tree boosting system,” in Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. ACM, 2016, pp. 785–794.
[20] X. Liu, H. Li, Q. Qian, and H. Ren, “Efficient homomorphic convolution for secure deep learning inference,” IEEE Access, pp. 1–6, 2023.
[21] C. Guo, K. Cheng, J. Fu, R. Fan, Z. Chang, Z. Zhang, and A. Song, “Gfs-cnn: A gpu-friendly secure computation platform for convolutional neural networks,” Journal of Networking and Network Applications, vol. 3, no. 2, pp. 66–72, 2023.
[22] J. H. Cheon, M. Kang, T. Kim, J. Jung, and Y. Yeo, “Batch inference on deep convolutional neural networks with fully homomorphic encryption using channel-by-channel convolutions,” IEEE Transactions on Depend-able and Secure Computing, vol. 22, no. 2, pp. 1674–1685, 2025.
[23] D. Kim and C. Guyot, “Optimized privacy-preserving cnn inference with fully homomorphic encryption,” IEEE Transactions on Information Forensics and Security, vol. 18, pp. 2175–2187, 2023.
[24] P. Yanez and N. Yadav, “Homomorphic encryption for secure healthcare artificial intelligence,” Discover Artificial Intelligence, vol. 6, p. 200, 2026.
[25] N. Xu, Z. Gong, R. Ran, J. Tang, W. Wen, and C. Ding, “Fhe-agent: Automating ckks configuration for practical encrypted inference via an llm-guided agentic framework,” arXiv preprint arXiv:2511.18653, 2025.
[26] B. P. K. Reddy, S. Goyal, R. Meel, and A. Chatterjee, “FHEMaLe: Framework for homomorphic encrypted machine learning,” 2025.[Online]. Available: https://eprint.iacr.org/2025/1684
[27] R. Adamsetty, A. K. Cherukuri, and A. Jonnalagadda, “Securing ma-chine learning models: Homomorphic encryption and its impact on classifiers,” Annals of Mathematics and Computer Science, vol. 26, pp. 141–158, 2025.
[28] A. Song, J. Fu, X. Mu, X. Zhu, and K. Cheng, “L-secnet: Towards secure and lightweight deep neural network inference,” Journal of Networking and Network Applications, vol. 3, no. 4, pp. 171–181, 2024.
[29] J. Yuan, W. Liu, J. Shi et al., “Approximate homomorphic encryption-based privacy-preserving machine learning: A survey,” Artificial Intelli-gence Review, vol. 58, p. 82, 2025.
[30] T. Prantl, L. Horn, S. Engel, A. Bauer, and S. Kounev, “Quo vadis ckks: Comparison of the realization of basic mathematical functions for the homomorphic cryptosystem ckks using de bello and polynomial approximations,” Journal of Information Security and Applications, vol. 93, p. 104110, 2025.
[31] L. Chen, Z. Yang, P. Zhang, and Y. Ma, “Efficient privacy-preserving scheme for secure neural network inference,” Frontiers of Information Technology and Electronic Engineering, vol. 26, no. 9, pp. 1609–1623, 2025.
[32] H. Cheng, Q. Xue, and Y. Zhu, “Privacy-preserving asynchronous federated learning for heterogeneous iot devices,” Journal of Networking and Network Applications, vol. 5, no. 1, pp. 27–38, 2025.
[33] Z. Elkhatib, A. Sekmen, and K. Hasan, “PRISM: Privacy-preserving inference system with homomorphic encryption and modular activation,” 2025. [Online]. Available: https://arxiv.org/abs/2511.07807
[34] L. Colombo, A. Falcetta, and M. Roveri, “Training encrypted neural networks on encrypted data with fully homomorphic encryption,” in Proceedings of the 12th Workshop on Encrypted Computing & Ap-plied Homomorphic Cryptography, F. Bergamaschi, A. Costache, and
K. Rohloff, Eds. Salt Lake City, UT, USA: ACM, 2024, pp. 64–75.
[35] H. Miyajima, N. Shigei, H. Miyajima, and N. Shiratori, “Machine learning with distributed processing using secure divided data: Towards privacy-preserving advanced ai processing in a super-smart society,” Journal of Networking and Network Applications, vol. 2, no. 1, pp. 48–60, 2022.
[36] J. Takeshita, N. Koirala, C. McKechney, and T. Jung, “HEProfiler: An in-depth profiler of approximate homomorphic encryption libraries,” Journal of Cryptographic Engineering, vol. 15, no. 2, p. 14, 2025.
[37] Y. H. Chan, H. Yang, S. Shen, X. Fan, S. Lyu, P. S. Y. Hung, and R. C. C. Cheung, “Hheml: Hybrid homomorphic encryption for privacy-preserving machine learning on edge,” arXiv preprint arXiv:2510.20243, 2025.
[38] M. A. Akram, F. Khan, S. Tahir, A. Iqbal, S. A. Shah, and A. Baz, “Privacy preserving inference for deep neural networks: Optimizing homomorphic encryption for efficient and secure classification,” IEEE Access, vol. 12, pp. 15 684–15 695, 2024.
[39] S. Lee, G. Lee, J. W. Kim, J. Shin, and M.-K. Lee, “HETAL: Efficient privacy-preserving transfer learning with homomorphic encryption,” vol. 202, pp. 19 010–19 035, 2023. [Online]. Available: https://proceedings.mlr.press/v202/lee23m.html
[40] X. Zhou, Q. Li, C. Dai, B. Wang, and Y. Xia, “Privacy-preserving decision tree inference in a dual-cloud outsourcing model,” Journal of Networking and Network Applications, vol. 5, no. 3, pp. 120–129, 2025.