MAT-FHE: arbitrary dimension matrix multiplication scheme for floating point over fully homomorphic encryption

Abstract Matrix operation is one of the most basic and practical operations in statistical analysis and machine learning. The secure matrix operation over homomorphic encryption technology can protect the confidentiality of input data. However, it has not come up with an optimal solution for modern...

Full description

Saved in:
Bibliographic Details
Main Authors: Yatao Yang, Zhaofu Li, Yucheng Ding, Man Hu
Format: Article
Language:English
Published: SpringerOpen 2025-07-01
Series:Cybersecurity
Subjects:
Online Access:https://doi.org/10.1186/s42400-024-00303-y
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1849235028751417344
author Yatao Yang
Zhaofu Li
Yucheng Ding
Man Hu
author_facet Yatao Yang
Zhaofu Li
Yucheng Ding
Man Hu
author_sort Yatao Yang
collection DOAJ
description Abstract Matrix operation is one of the most basic and practical operations in statistical analysis and machine learning. The secure matrix operation over homomorphic encryption technology can protect the confidentiality of input data. However, it has not come up with an optimal solution for modern machine learning frameworks, partially due to a lack of efficient matrix computation mechanisms. In this paper, a universal secure matrix multiplication scheme MAT-FHE for any dimension matrix over fully homomorphic encryption technology is designed to realize non-square matrix multiplication, such as $$A_{m\times l}\times B_{l\times n}$$ A m × l × B l × n . The matrix is filled into a hypercube structure and encrypted into a single ciphertext. The number of ciphertext multiplications with the highest computational overhead is reduced through operations such as rotating by rows and columns, ciphertext addition, and multiplication of ciphertext and plaintext. After analysis, it is secure under the CPA model, composable, and supports floating matrix continuous multiplication. The CKKS algorithm of the Microsoft SEAL library is used to implement the matrix multiplication of floating point numbers in any dimension. Shared the computing overhead with SIMD technology and improved the implementation speed. In this paper, the operation time of 16-dimensional matrix multiplication is 4.2253s, which is about 1.5 times faster than the existing best square matrix multiplication scheme. The experimental results show that this method is superior to the existing secure matrix multiplication scheme and can be applied to various secure computing outsourcing and machine learning scenarios.
format Article
id doaj-art-d6cdc264ea2b4d02ab48e1fc754c69b2
institution Kabale University
issn 2523-3246
language English
publishDate 2025-07-01
publisher SpringerOpen
record_format Article
series Cybersecurity
spelling doaj-art-d6cdc264ea2b4d02ab48e1fc754c69b22025-08-20T04:02:55ZengSpringerOpenCybersecurity2523-32462025-07-018111410.1186/s42400-024-00303-yMAT-FHE: arbitrary dimension matrix multiplication scheme for floating point over fully homomorphic encryptionYatao Yang0Zhaofu Li1Yucheng Ding2Man Hu3Department of Electronic and Communication Engineering, Beijing Electronic Science and Technology InstituteDepartment of Electronic and Communication Engineering, Beijing Electronic Science and Technology InstituteDepartment of Electronic and Communication Engineering, Beijing Electronic Science and Technology InstituteDepartment of Electronic and Communication Engineering, Beijing Electronic Science and Technology InstituteAbstract Matrix operation is one of the most basic and practical operations in statistical analysis and machine learning. The secure matrix operation over homomorphic encryption technology can protect the confidentiality of input data. However, it has not come up with an optimal solution for modern machine learning frameworks, partially due to a lack of efficient matrix computation mechanisms. In this paper, a universal secure matrix multiplication scheme MAT-FHE for any dimension matrix over fully homomorphic encryption technology is designed to realize non-square matrix multiplication, such as $$A_{m\times l}\times B_{l\times n}$$ A m × l × B l × n . The matrix is filled into a hypercube structure and encrypted into a single ciphertext. The number of ciphertext multiplications with the highest computational overhead is reduced through operations such as rotating by rows and columns, ciphertext addition, and multiplication of ciphertext and plaintext. After analysis, it is secure under the CPA model, composable, and supports floating matrix continuous multiplication. The CKKS algorithm of the Microsoft SEAL library is used to implement the matrix multiplication of floating point numbers in any dimension. Shared the computing overhead with SIMD technology and improved the implementation speed. In this paper, the operation time of 16-dimensional matrix multiplication is 4.2253s, which is about 1.5 times faster than the existing best square matrix multiplication scheme. The experimental results show that this method is superior to the existing secure matrix multiplication scheme and can be applied to various secure computing outsourcing and machine learning scenarios.https://doi.org/10.1186/s42400-024-00303-ySecure ComputationFully Homomorphic EncryptionMatrix MultiplicationHypercube
spellingShingle Yatao Yang
Zhaofu Li
Yucheng Ding
Man Hu
MAT-FHE: arbitrary dimension matrix multiplication scheme for floating point over fully homomorphic encryption
Cybersecurity
Secure Computation
Fully Homomorphic Encryption
Matrix Multiplication
Hypercube
title MAT-FHE: arbitrary dimension matrix multiplication scheme for floating point over fully homomorphic encryption
title_full MAT-FHE: arbitrary dimension matrix multiplication scheme for floating point over fully homomorphic encryption
title_fullStr MAT-FHE: arbitrary dimension matrix multiplication scheme for floating point over fully homomorphic encryption
title_full_unstemmed MAT-FHE: arbitrary dimension matrix multiplication scheme for floating point over fully homomorphic encryption
title_short MAT-FHE: arbitrary dimension matrix multiplication scheme for floating point over fully homomorphic encryption
title_sort mat fhe arbitrary dimension matrix multiplication scheme for floating point over fully homomorphic encryption
topic Secure Computation
Fully Homomorphic Encryption
Matrix Multiplication
Hypercube
url https://doi.org/10.1186/s42400-024-00303-y
work_keys_str_mv AT yataoyang matfhearbitrarydimensionmatrixmultiplicationschemeforfloatingpointoverfullyhomomorphicencryption
AT zhaofuli matfhearbitrarydimensionmatrixmultiplicationschemeforfloatingpointoverfullyhomomorphicencryption
AT yuchengding matfhearbitrarydimensionmatrixmultiplicationschemeforfloatingpointoverfullyhomomorphicencryption
AT manhu matfhearbitrarydimensionmatrixmultiplicationschemeforfloatingpointoverfullyhomomorphicencryption