Open Access iconOpen Access

ARTICLE

Approximate Homomorphic Encryption for MLaaS by CKKS with Operation-Error-Bound

Ray-I Chang1, Chia-Hui Wang2,*, Yen-Ting Chang1, Lien-Chen Wei2

1 Department of Engineering Science and Ocean Engineering, National Taiwan University, Taipei, 106319, Taiwan
2 Department of Computer Science and Information Engineering, Ming Chuan University, Taoyuan City, 33300, Taiwan

* Corresponding Author: Chia-Hui Wang. Email: email

Computers, Materials & Continua 2025, 85(1), 503-518. https://doi.org/10.32604/cmc.2025.068516

Abstract

As data analysis often incurs significant communication and computational costs, these tasks are increasingly outsourced to cloud computing platforms. However, this introduces privacy concerns, as sensitive data must be transmitted to and processed by untrusted parties. To address this, fully homomorphic encryption (FHE) has emerged as a promising solution for privacy-preserving Machine-Learning-as-a-Service (MLaaS), enabling computation on encrypted data without revealing the plaintext. Nevertheless, FHE remains computationally expensive. As a result, approximate homomorphic encryption (AHE) schemes, such as CKKS, have attracted attention due to their efficiency. In our previous work, we proposed RP-OKC, a CKKS-based clustering scheme implemented via TenSEAL. However, errors inherent to CKKS operations—termed CKKS-errors—can affect the accuracy of the result after decryption. Since these errors can be mitigated through post-decryption rounding, we propose a data pre-scaling technique to increase the number of significant digits and reduce CKKS-errors. Furthermore, we introduce an Operation-Error-Estimation (OEE) table that quantifies upper-bound error estimates for various CKKS operations. This table enables error-aware decryption correction, ensuring alignment between encrypted and plaintext results. We validate our method on K-means clustering using the Kaggle Customer Segmentation dataset. Experimental results confirm that the proposed scheme enhances the accuracy and reliability of privacy-preserving data analysis in cloud environments.

Keywords

Privacy protection; K-means clustering; cloud computing; approximate homomorphic encryption; fully homomorphic encryption

Cite This Article

APA Style
Chang, R., Wang, C., Chang, Y., Wei, L. (2025). Approximate Homomorphic Encryption for MLaaS by CKKS with Operation-Error-Bound. Computers, Materials & Continua, 85(1), 503–518. https://doi.org/10.32604/cmc.2025.068516
Vancouver Style
Chang R, Wang C, Chang Y, Wei L. Approximate Homomorphic Encryption for MLaaS by CKKS with Operation-Error-Bound. Comput Mater Contin. 2025;85(1):503–518. https://doi.org/10.32604/cmc.2025.068516
IEEE Style
R. Chang, C. Wang, Y. Chang, and L. Wei, “Approximate Homomorphic Encryption for MLaaS by CKKS with Operation-Error-Bound,” Comput. Mater. Contin., vol. 85, no. 1, pp. 503–518, 2025. https://doi.org/10.32604/cmc.2025.068516



cc Copyright © 2025 The Author(s). Published by Tech Science Press.
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 2766

    View

  • 2283

    Download

  • 0

    Like

Share Link