Multi-party joint dimension reduction method for privacy data

By generating pseudo-random numbers for data perturbation and dimensionality reduction, the problem of low computational efficiency and high communication volume in multi-party data joint dimensionality reduction in machine learning is solved, and efficient multi-party data joint computation under privacy protection is achieved.

CN115630291BActive Publication Date: 2026-11-27SHENZHEN HUADA YONGSHENG INTELLIGENT TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110807148.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-16
Publication Date
2026-11-27
Estimated Expiration
2041-07-16

AI Technical Summary

Technical Problem

In machine learning, how can we achieve joint dimensionality reduction processing of multi-party data while ensuring data privacy protection, and avoid the problems of low computational efficiency and large communication volume?

Method used

By generating pseudo-random numbers and performing addition operations on plaintext, a multi-party joint dimensionality reduction method is adopted to simplify the model structure and avoid introducing a third party responsible for dense state calculation. Pseudo-random number generation algorithms such as CSPRNG and hash algorithms are used to generate random vectors and matrices for data perturbation and dimensionality reduction.

Benefits of technology

It improves computational efficiency, reduces communication volume, enables multi-party data joint computation under privacy protection, and significantly enhances performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115630291B_ABST
    Figure CN115630291B_ABST
Patent Text Reader

Abstract

The application discloses a data multi-party joint dimension reduction method, comprising the following steps: cooperating with a data owner in M data owners to obtain a random vector of an i-th data owner and a random matrix of the i-th data owner; obtaining a random disturbance vector of the i-th data owner according to an i-th original matrix and the random vector of the i-th data owner; sending the random disturbance vector of the i-th data owner to a server and receiving a mean vector of original data sent by the server; calculating a disturbance matrix of the i-th data owner according to the mean vector of the original data, the i-th original matrix and the random matrix of the i-th data owner; sending the disturbance matrix of the i-th data owner to the server and receiving a conversion matrix sent by the server; and performing dimension reduction processing on the i-th original matrix according to the conversion matrix, so that the use efficiency of multi-participants is improved under the premise of ensuring privacy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of machine learning technology, and in particular to a method for multi-party joint dimensionality reduction processing of privacy data, an electronic device, and a computer-readable storage medium. Background Technology

[0002] The data needed to train machine learning models or preprocess model data is often owned by different organizations. Due to concerns about data security and user privacy, this data cannot be simply aggregated for training or use. Therefore, successfully using data without compromising its integrity has become a major challenge in the field of machine learning. Large-scale machine learning often employs massive amounts of high-dimensional training data. High-dimensional training data not only makes model training more time-consuming, but also allows redundant features to negatively impact model performance (such as overfitting). Therefore, before training a model, it is usually necessary to reduce the dimensionality of the high-dimensional data, minimizing information loss. Summary of the Invention

[0003] This invention aims to at least partially solve one of the technical problems in related technologies. To this end, the first objective of this invention is to propose a multi-party joint data dimensionality reduction method. By generating pseudo-random numbers and performing addition on plaintext, computational efficiency is improved. Furthermore, it eliminates the need for a third party responsible for encrypted computation, simplifying the model and reducing communication overhead. While ensuring privacy protection, it achieves multi-party joint data computation, resulting in a significant performance improvement.

[0004] The second objective of this invention is to propose a multi-party joint dimensionality reduction method for data.

[0005] The third objective of this invention is to provide an electronic device.

[0006] The fourth objective of this invention is to provide a computer-readable storage medium.

[0007] To achieve the above objectives, a first aspect of the present invention proposes a multi-party joint dimensionality reduction method for data. The original data is distributed among M data owners, where M is an integer greater than 1. Any i-th data owner among the M data owners possesses an i-th original matrix composed of d-dimensional vectors. The method is applied to the i-th data owner and includes the following steps: cooperating with the data owners among the M data owners to obtain the random vector and random matrix of the i-th data owner; obtaining the random perturbation vector of the i-th data owner based on the i-th original matrix and the random vector of the i-th data owner; sending the random perturbation vector of the i-th data owner to a server and receiving the mean vector of the original data sent by the server; calculating the perturbation matrix of the i-th data owner based on the mean vector of the original data, the i-th original matrix, and the random matrix of the i-th data owner; sending the perturbation matrix of the i-th data owner to the server and receiving a transformation matrix sent by the server; and performing dimensionality reduction processing on the i-th original matrix based on the transformation matrix.

[0008] According to the multi-party joint dimensionality reduction method of the present invention, firstly, the method cooperates with the data owner of one of the M data owners to obtain the random vector and random matrix of the i-th data owner. Then, based on the i-th original matrix and the random vector of the i-th data owner, a random perturbation vector of the i-th data owner is obtained. Next, the random perturbation vector of the i-th data owner is sent to the server, and the mean vector of the original data sent by the server is received. Then, based on the mean vector of the original data, the i-th original matrix, and the random matrix of the i-th data owner, the perturbation matrix of the i-th data owner is calculated and sent to the server, along with a transformation matrix sent by the server. Finally, the dimensionality reduction of the i-th original matrix is ​​performed based on the transformation matrix. Thus, this method improves computational efficiency by generating pseudo-random numbers and performing addition on plaintext. It also simplifies the model by eliminating the need for a third party responsible for encrypted computation, reduces communication overhead, and achieves multi-party joint data computation while ensuring privacy protection, resulting in a significant performance improvement.

[0009] In addition, the data multi-party joint dimensionality reduction method according to the above embodiments of the present invention may also have the following additional technical features:

[0010] According to one embodiment of the present invention, obtaining the random vector and random matrix of the i-th data owner in cooperation with one of the M data owners includes: determining a random seed S in cooperation with any j-th data owner other than the i-th data owner among the M data owners. ij According to the random seed S ijGenerate a random vector and a random matrix for the i-th data owner.

[0011] According to an embodiment of the present invention, the random perturbation vector of the i-th data owner is obtained by the following formula:

[0012]

[0013] Where j≠i, S i ′ represents the random perturbation vector of the i-th data owner, S i V represents the d-dimensional sum vector of the i-th original matrix. i,j Let represent the random vector of the i-th data owner and the j-th data owner among the M data, and let sign(i,j) represent the sign function. When i > j, sign(i,j) = 1, when i < j, sign(i,j) = -1, 1 ≤ i ≤ M, 1 ≤ j ≤ M.

[0014] According to one embodiment of the present invention, calculating the perturbation matrix of the i-th data owner based on the mean vector of the original data, the i-th original matrix, and the random matrix of the i-th data owner includes: obtaining the centroid matrix of the i-th data owner based on the mean vector of the original data and the original matrix of the i-th data owner; calculating the covariance matrix of the i-th data owner based on the centroid matrix of the i-th data owner; and obtaining the perturbation matrix of the i-th data owner based on the covariance matrix of the i-th data owner and the random matrix of the i-th data owner.

[0015] According to an embodiment of the present invention, the perturbation matrix of the i-th data owner is calculated using the following formula:

[0016]

[0017] Where j≠i, C i ′ represents the perturbation matrix of the i-th data owner, C i M represents the covariance matrix of the i-th data owner. i,j Let represent the random matrix of the i-th data owner and the j-th data owner among the M data, and let sign(i,j) represent the sign function. When i > j, sign(i,j) = 1, and when i < j, sign(i,j) = -1, 1 ≤ i ≤ M, 1 ≤ j ≤ M.

[0018] According to one embodiment of the present invention, calculating the perturbation matrix of the i-th data owner based on the mean vector of the original data, the original matrix of the i-th data owner, and the random matrix of the i-th data owner includes: obtaining the center matrix of the i-th data owner based on the mean vector of the original data and the original matrix of the i-th data owner; calculating the encryption matrix of the i-th data owner based on the center matrix of the i-th data owner; and obtaining the perturbation matrix of the i-th data owner based on the encryption matrix and the random matrix of the i-th data owner.

[0019] To achieve the above objectives, a second aspect of the present invention proposes a multi-party joint dimensionality reduction method for data. The original data is distributed among M data owners, where M is an integer greater than 1. Any i-th data owner among the M data owners possesses an i-th original matrix composed of multiple d-dimensional vectors. The method is applied to a server and includes the following steps: receiving random perturbation vectors from the M data owners; obtaining the mean vector of the original data based on the random perturbation vectors from the M data owners, and sending the mean vector of the original data to each of the M data owners; receiving perturbation matrices from the M data owners; and calculating a transformation matrix based on the perturbation matrix, so that the i-th data owner performs dimensionality reduction processing on the i-th original matrix.

[0020] According to an embodiment of the present invention, a multi-party joint dimensionality reduction method for data is applied to a server. The method receives random perturbation vectors from M data owners; obtains the mean vector of the original data based on the random perturbation vectors from the M data owners, and sends the mean vector of the original data to each of the M data owners; receives perturbation matrices from the M data owners; and calculates a transformation matrix based on the perturbation matrices so that the i-th data owner can perform dimensionality reduction processing on the i-th original matrix. Therefore, this method improves computational efficiency by generating pseudo-random numbers and performing addition on plaintext, simplifies the model by eliminating the need for a third party responsible for encrypted computation, reduces communication volume, and achieves multi-party joint data computation while ensuring privacy protection, resulting in a significant performance improvement.

[0021] In addition, the data multi-party joint dimensionality reduction method according to the above embodiments of the present invention may also have the following additional technical features:

[0022] According to one embodiment of the present invention, calculating the transformation matrix based on the perturbation matrix includes: calculating the aggregated covariance matrix based on the perturbation matrices of the M data owners; performing singular value decomposition on the aggregated covariance matrix to obtain singular values ​​and eigenvectors; transforming the singular values ​​to obtain the eigenvalues ​​of the aggregated covariance matrix; and selecting the eigenvectors corresponding to k eigenvalues ​​to form the transformation matrix, where k is a positive integer.

[0023] To achieve the above objectives, a third aspect of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements the above-described multi-party joint dimensionality reduction method for data.

[0024] The electronic device according to the embodiments of the present invention improves computational efficiency by executing the above-described multi-party joint dimensionality reduction method, and simplifies the model and reduces communication volume by eliminating the need for a third party responsible for dense state calculation. Under the premise of ensuring privacy protection, it realizes multi-party joint data calculation, resulting in a significant performance improvement.

[0025] To achieve the above objectives, a fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described multi-party joint dimensionality reduction method for data.

[0026] According to the computer-readable storage medium of the present invention, the above-described multi-party joint dimensionality reduction method improves computational efficiency, eliminates the need for a third party responsible for dense state computation, simplifies the model, reduces communication volume, and achieves multi-party joint data computation while ensuring privacy protection, resulting in a significant performance improvement.

[0027] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description

[0028] Figure 1 This is a flowchart of a multi-party joint dimensionality reduction method for data according to an embodiment of the present invention;

[0029] Figure 2 This is a flowchart of a multi-party joint dimensionality reduction method for data according to another embodiment of the present invention;

[0030] Figure 3 This is a block diagram of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0031] Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain the present invention, and should not be construed as limiting the present invention.

[0032] The following description, with reference to the accompanying drawings, outlines the data multi-party joint dimensionality reduction method, electronic device, and computer-readable storage medium proposed in embodiments of the present invention.

[0033] In related technologies, principal component analysis (PCA) is used to reduce the dimensionality of high-dimensional data, yielding new features that contribute most to the data variance. While unilateral dimensionality reduction is possible, it fails to prevent privacy when multiple parties share a portion of the training data. Current conventional methods rely on homomorphic encryption and secret sharing for privacy-preserving computation, but these suffer from low computational efficiency and high communication overhead. To achieve privacy-preserving data with minimal communication overhead, a multi-party joint dimensionality reduction method is proposed, as illustrated below.

[0034] Figure 1 This is a flowchart of a multi-party joint dimensionality reduction method for data according to an embodiment of the present invention.

[0035] In one embodiment of the present invention, the original data is distributed among M data owners, where M is an integer greater than 1. Any i-th data owner among the M data owners has an i-th original matrix composed of d-dimensional vectors. The method of the following embodiment is applied to each data owner, and the following description takes the application to the i-th data owner as an example.

[0036] The M data owners can include n d-dimensional vectors. The original data can be viewed as an n*d matrix or a d*n matrix, representing the d-dimensional feature data of the n samples. This matrix is ​​only assumed for ease of description; in actual applications, the original data is distributed among the M data owners, and any i-th data owner among the M data owners can store n... i The i-th original matrix is ​​composed of d-dimensional vectors.

[0037] like Figure 1 As shown, the data multi-party joint dimensionality reduction method of this invention may include the following steps:

[0038] S1, in cooperation with the data owner among the M data owners, obtains the random vector and random matrix of the i-th data owner.

[0039] In one embodiment of the present invention, obtaining the random vector and random matrix of the i-th data owner in cooperation with one of the M data owners includes: determining a random seed S in cooperation with any j-th data owner other than the i-th data owner among the M data owners. ij According to the random seed S ij Generate a random vector and a random matrix for the i-th data owner.

[0040] Among them, the i-th data has a random seed S in the square. ij The corresponding random vector can be related to the random seed S in the j-th data owner. ij The corresponding random vectors are the same; or, the random seed S in the i-th data owner is the same. ij The corresponding random vector and the random seed S in the j-th data possessor ij The sum of the corresponding random vectors is a zero vector. The random seed S in the i-th data possessor... ij The corresponding random matrix can be related to the random seed S in the j-th data owner. ij The corresponding random matrices are the same; or, the random seed S in the i-th data owner is the same. ij The corresponding random matrix and the random seed S in the j-th data possessor ij The sum of the corresponding random matrices is a zero vector.

[0041] Specifically, due to privacy concerns, a cryptographically secure pseudo-random number generator (CSPRNG) algorithm is chosen. This algorithm uses a hash algorithm to calculate random numbers, balancing efficiency and security; the Sha256 algorithm is a suitable choice. The i-th data owner cooperates with any one of the M other data owners (excluding themselves) to obtain the i-th data owner's random vector and random matrix. Taking data owners Pi (the i-th data owner) and Pj (the j-th data owner) as an example, data owners Pi and Pj obtain the random seed S through public-key encryption (or other methods). ij (where 1≤i<j≤M) and dimension d, using a hash function H (such as Sha56), calculate the hash value to obtain N random numbers ri=H(S ij ||i), where i∈{1,2....,N}, N=d*(d+1). Convert binary random numbers into data (such as floating-point numbers) r according to specific data structures based on rules. i ′=Code(r i ), where 1≤i≤d(d+1). From this, we can obtain the d-dimensional random vector V of the data owner Pi. i,j=[r′1,...,r′ d ] and the d*d-dimensional random matrix M of the data owner Pi i,j =(r′) k*d+t ) t,k , where 1≤t,k≤d.

[0042] In another embodiment of the present invention, obtaining the random vector and random matrix of the i-th data owner in cooperation with one of the M data owners includes: determining a random seed S in cooperation with any j-th data owner other than the i-th data owner among the M data owners. ij The random seed s is determined by cooperating with any e-th data owner other than the i-th and j-th data owners among the M data owners. ie According to the random seed S ij Generate the first random vector and the first random matrix of the i-th data owner, based on the random seed s. ie Generate a second random vector and a second random matrix for the i-th data owner; sum the first random vector and the second random vector to obtain the random vector for the i-th data owner; sum the first random matrix and the second random matrix to obtain the random matrix for the i-th data owner.

[0043] Among them, the i-th data has a random seed S in the square. ij The corresponding random vector can be related to the random seed S in the j-th data owner. ij The corresponding random vectors are the same, and the i-th data possesses the random seed s in the square. ie The corresponding random vector can be related to the random seed s in the e-th data owner. ie The corresponding random vectors are the same; or, the random seed S in the i-th data owner is the same. ij The corresponding random vector and the random seed S in the j-th data possessor ij The sum of the corresponding random vectors is a zero vector, and the i-th data possesses the random seed s in the square. ie The corresponding random vector and the random seed s in the j-th data possessor ie The sum of the corresponding random vectors is zero; or, the sum of the random vectors in the i-th data owner, the random vectors in the j-th data owner, and the random vectors in the e-th data owner is zero.

[0044] Among them, the i-th data has a random seed S in the square. ij The corresponding random matrix can be related to the random seed S in the j-th data owner. ij The corresponding random matrices are the same, and the i-th data has a random seed s in the square. ie The corresponding random matrix can be compared with the random seed s in the e-th data owner.ie The corresponding random matrices are the same; or, the random seed S in the i-th data owner is the same. ij The corresponding random matrix and the random seed S in the j-th data possessor ij The sum of the corresponding random matrices is a zero matrix, and the i-th data possesses the random seed s in the square. ie The corresponding random matrix and the random seed s in the j-th data possessor ie The sum of the corresponding random matrices is zero, or the sum of the random matrices in the i-th data owner, the j-th data owner, and the e-th data owner is zero.

[0045] In another embodiment of the present invention, the i-th data owner may cooperate with multiple data owners among the M data owners to obtain the i-th data owner's random vector and random matrix; or, the i-th data owner may cooperate with all data owners other than the i-th data owner among the M data owners to obtain the i-th data owner's random vector and random matrix.

[0046] S2, obtain the random perturbation vector of the i-th data owner based on the i-th original matrix and the random vector of the i-th data owner.

[0047] In one embodiment of the present invention, the random perturbation vector of the i-th data owner is obtained by the following formula:

[0048]

[0049] Where j≠i, S i S' represents the random perturbation vector of the i-th data owner. i V represents the d-dimensional sum vector of the i-th original matrix. i,j Let S represent the random vectors between the owner of the i-th data and the owner of the j-th data among the M data. Let sign(i,j) denote the sign function: when i > j, sign(i,j) = 1; when i < j, sign(i,j) = -1, 1 ≤ i ≤ M, 1 ≤ j ≤ M. The random seed S in the i-th data owner... ij The corresponding random vector can be related to the random seed S in the j-th data owner. ij The corresponding random vectors are the same.

[0050] Optionally, for the sign(i,j) sign function, when i > j, sign(i,j) = -1, when i < j, sign(i,j) = 1, 1 ≤ i ≤ M, 1 ≤ j ≤ M.

[0051] Specifically, the i-th data owner sums the feature values ​​of its own data to obtain S. iTo ensure consistency in the summation results, a symmetrical random perturbation is added to the sum of each eigenvalue. For example, the random perturbation S can be obtained using the formula above. i That is, obtain the feature values ​​of each sample from multiple samples of the i-th data owner, and sum them to obtain S. i .

[0052] In one embodiment of the present invention, the random perturbation vector of the i-th data owner is obtained by the following formula:

[0053]

[0054] Where j≠i,S i S' represents the random perturbation vector of the i-th data owner. i V represents the d-dimensional sum vector of the i-th original matrix. i,j Let S represent the random vector between the owner of the i-th data and the owner of the j-th data in the M data sets, 1≤i≤M, 1≤j≤M; and let S be the random seed in the i-th data owner. ij The corresponding random vector and the random seed S in the j-th data possessor ij The sum of the corresponding random vectors is a zero vector.

[0055] S3 sends the random perturbation vector of the i-th data owner to the server, and receives the mean vector of the original data sent by the server.

[0056] In other words, since each data owner cannot know the sample size of other data owners, after receiving random perturbations from each data owner, the server obtains the sample size of each data owner, calculates the mean vector of the original data, and sends the mean to each data owner. For example, the mean vector of the original data can be obtained using the following formula, where the value of the i-th dimension is pi: in, Let N be the sum of the features of all samples for the i-th attribute of all data owners, where i is the i-th row of the matrix, j is the j-th column of the matrix, and N is the number of samples from all data owners.

[0057] S4. Calculate the perturbation matrix of the i-th data owner based on the mean vector of the original data, the i-th original matrix, and the random matrix of the i-th data owner.

[0058] According to one embodiment of the present invention, calculating the perturbation matrix of the i-th data owner based on the mean vector of the original data, the i-th original matrix, and the random matrix of the i-th data owner includes: obtaining the center matrix of the i-th data owner based on the mean vector of the original data and the original matrix of the i-th data owner; calculating the covariance matrix of the i-th data owner based on the center matrix of the i-th data owner; and obtaining the perturbation matrix of the i-th data owner based on the covariance matrix of the i-th data owner and the random matrix of the i-th data owner.

[0059] Furthermore, in one embodiment of the present invention, the perturbation matrix of the i-th data owner is calculated using the following formula:

[0060]

[0061] Where j≠i, C i ' represents the perturbation matrix of the i-th data owner, C i Let M represent the covariance matrix of the i-th data owner. i,j Let S represent the random matrix between the owner of the i-th data and the owner of the j-th data among the M data. Let sign(i,j) denote the sign function: when i > j, sign(i,j) = 1; when i < j, sign(i,j) = -1, 1 ≤ i ≤ M, 1 ≤ j ≤ M. The random seed S in the i-th data owner... ij The corresponding random matrix can be related to the random seed S in the j-th data owner. ij The corresponding random matrices are the same.

[0062] Optionally, for the sign(i,j) sign function, when i > j, sign(i,j) = -1, when i < j, sign(i,j) = 1, 1 ≤ i ≤ M, 1 ≤ j ≤ M.

[0063] Specifically, M data owners each own data X i Each column represents an attribute, and each row represents a sample. The total data is X = (X1) T , ..., X M T ) T Each data owner centers the data features using the mean vector pi of the original data, achieving global zero-mean normalization. Then, each participant calculates the covariance matrix of its own data, for example, using the covariance matrix formula. The perturbation matrix of the i-th data owner can be calculated from the covariance matrix and the random matrix of the i-th data owner. For example, it can be calculated using the formula... Calculated.

[0064] Furthermore, in one embodiment of the present invention, the perturbation matrix of the i-th data owner is calculated using the following formula:

[0065]

[0066] Where j≠i,C i ' represents the perturbation matrix of the i-th data owner, C i Let M represent the covariance matrix of the i-th data owner. i,j Let S represent the random matrix between the owner of the i-th data and the owner of the j-th data among the M data, 1≤i≤M, 1≤j≤M; and let S be the random seed in the i-th data owner. ij The corresponding random matrix and the random seed S in the j-th data possessor ij The sum of the corresponding random matrices is a zero matrix.

[0067] S5, send the perturbation matrix of the i-th data owner to the server, and receive the transformation matrix sent by the server.

[0068] Specifically, the perturbation matrix of the i-th data owner is sent to the server so that the server can calculate the aggregate covariance matrix based on the random perturbations of the M covariance matrices. For example, the server uses the sum of the random perturbations of the M covariance matrices as the aggregate covariance matrix. Specifically, every two data owners negotiate a random number seed; every two data owners use the random number seed to generate a random number matrix with the same shape as the matrix generated after encryption of the standardized samples, or the same shape as the covariance matrix of the standardized samples, and ensure that the sum of the matrices generated by these two data owners is a zero matrix; each data owner adds its encrypted matrix to all the random number matrices it generates, or adds its covariance matrix to all the random number matrices it generates, and sends the result to the server; the server receives the matrices sent by each data owner and adds them together to obtain the result matrix (aggregate covariance matrix).

[0069] In one embodiment of the present invention, the server decomposes the aggregated covariance matrix to obtain eigenvalues ​​and eigenvectors; the eigenvectors corresponding to k eigenvalues ​​are selected to form a transformation matrix, where k is a positive integer.

[0070] In one embodiment of the present invention, the server uses SVD decomposition to perform singular value decomposition on the aggregate covariance matrix to obtain singular values ​​and eigenvectors; transforms the singular values ​​to obtain the eigenvalues ​​of the aggregate covariance matrix; and selects the eigenvectors corresponding to k eigenvalues ​​to form a transformation matrix, where k is a positive integer.

[0071] Specifically, replacing eigenvalue decomposition of the sample covariance matrix with SVD decomposition reduces the time consumed by large matrix decomposition. Since SVD decomposition yields singular values, these singular values ​​need to be transformed to obtain eigenvalues. First, the server performs SVD decomposition on the resulting matrix (aggregate covariance matrix) to obtain singular values ​​and eigenvectors. The singular values ​​are then transformed to obtain the eigenvalues ​​of the aggregate covariance matrix. Next, the eigenvectors corresponding to any k eigenvalues ​​are selected to construct the transformation matrix T. Finally, the transformation matrix is ​​sent to each data owner. Each data owner uses the dimensionality reduction transformation matrix T to reduce the dimensionality of their own data, obtaining the dimensionality-reduced matrix X′. i =X i T.

[0072] S6, perform dimensionality reduction on the i-th original matrix based on the transformation matrix.

[0073] After obtaining the transformation matrix through the above steps, the original matrix of the i-th data owner is reduced in dimension based on the transformation matrix to obtain the dimension-reduced matrix.

[0074] In step S4 above, in addition to the method of obtaining the perturbation matrix in the above embodiment, according to another embodiment of the present invention, the perturbation matrix of the i-th data owner is calculated based on the mean vector of the original data, the original matrix of the i-th data owner, and the random matrix of the i-th data owner, including: obtaining the center matrix of the i-th data owner based on the mean vector of the original data and the original matrix of the i-th data owner; calculating the encryption matrix of the i-th data owner based on the center matrix of the i-th data owner; and obtaining the perturbation matrix of the i-th data owner based on the encryption matrix of the i-th data owner and the random matrix of the i-th data owner.

[0075] Specifically, when each data owner acquires its local raw sample data, it calculates the sum of all samples for each feature, then obtains the same random seed from the encrypted server to generate a random vector, ensuring that the sum of the random number vectors generated by the M data owners is 0. Each data owner adds a perturbation to the sum of all features of its sample, that is, the sum of each feature of the sample is added to the random perturbation vector, and sends the result to the server. The server calculates the allele frequency, i.e., the mean vector of the local raw sample data, based on the perturbated sum of each feature sent by each data owner, and sends the calculation result back to each data owner. Upon receiving the allele frequency calculation result from the server, each data owner standardizes its samples and saves them.

[0076] The specific process of encrypting the standardized samples is as follows: The server generates an orthogonal matrix Q based on a random number seed. The number of rows and columns of this square matrix is ​​fixed, and the values ​​represent the number of samples. The server splits the Q matrix by rows according to the number of samples from each data owner and sends the split to each data owner, ensuring that the number of rows in the matrix sent to each data owner is the same as the number of samples from that data owner. Each data owner obtains a portion of the Q matrix corresponding to their data from the server, along with the same random number seed. They then use the random number seed to generate an orthogonal matrix P. The orthogonal matrix P has the same number of rows and columns, and the values ​​represent the number of sample features. Each data owner performs an encryption calculation, which involves multiplying matrix P, the transpose of the standardized samples, and the orthogonal matrix Q. The result is a matrix with the number of rows representing the number of features and the number of columns representing the number of samples; this is the encryption matrix for that data owner.

[0077] For example, suppose the standardized sample is a 6x5 matrix (6 samples, 5 attributes), then the Q matrix is ​​a 6x6 matrix. There are two data owners, Pi and Pj, each with 3 samples. Splitting the Q matrix row-wise, the resulting Q matrices for Pi and Pj are both 3x6 matrices. Pi and Pj generate an orthogonal matrix P of 5x5 using a random seed. Pi and Pj perform encryption calculations, multiplying the P matrix, the transpose W (5x3) of the standardized sample matrix (3x5), and the Q matrix (3x6) to obtain a 5x6 perturbation matrix, which is the encryption matrix for the i-th data owner. Summing the encryption matrix of the i-th data owner and the random matrix of the i-th data owner yields the perturbation matrix for the i-th data owner.

[0078] It should be noted that in the above embodiments, it is necessary to ensure that the orthogonal matrices P and Q are orthogonal, specifically as follows: Create a 0 matrix, the number of rows and columns of which is determined by the intended use of the generated matrix, i.e., whether the generated matrix is ​​used as P or Q; randomly generate a random number matrix of size 5000*5000; perform QR decomposition on the random number matrix to obtain an orthogonal matrix; write the orthogonal matrix from position (i*5000, i*5000) of the 0 matrix, where 0≤i≤5000; increment the counter variable i;

[0079] Repeat the above steps until no new 5000*5000 orthogonal matrix can be written into the 0 matrix. If the diagonal of the 0 matrix can still be filled with orthogonal matrices but is not enough to fill the 5000*5000 matrix, then generate a smaller orthogonal matrix and write it at position (i*5000, i*5000) of the 0 matrix. After this matrix is ​​filled, the 0 matrix cannot continue to be filled with new orthogonal matrices along the diagonal.

[0080] Therefore, the multi-party joint dimensionality reduction method of this invention, compared with homomorphic encryption, generates pseudo-random numbers by performing addition on plaintext, which is several orders of magnitude more efficient than both homomorphic and encrypted encryption. Furthermore, the model's security assumptions are simpler, as it does not require the introduction of a P-party responsible for encrypted computation. Compared with secret sharing schemes, the pseudo-random number scheme involves less data communication. Secret sharing requires dividing the entire data matrix into multiple parts and distributing them to each participant, while the pseudo-random number scheme only requires each participant to initialize a random seed pairwise, significantly reducing communication volume. Therefore, while ensuring data privacy and computational accuracy, this method efficiently reduces the dimensionality of multi-party data. In the current context of big data and data silos, it can greatly improve the efficiency of using multi-party data while protecting privacy.

[0081] In summary, the multi-party joint dimensionality reduction method according to embodiments of the present invention, in cooperation with the data owner of one of the M data owners, obtains the random vector and random matrix of the i-th data owner. Based on the i-th original matrix and the random vector of the i-th data owner, a random perturbation vector of the i-th data owner is obtained. Then, the random perturbation vector of the i-th data owner is sent to the server, and the mean vector of the original data sent by the server is received. Next, the perturbation matrix of the i-th data owner is calculated based on the mean vector of the original data, the i-th original matrix, and the random matrix of the i-th data owner, and the perturbation matrix of the i-th data owner is sent to the server. The transformation matrix sent by the server is also received. Finally, the dimensionality reduction of the i-th original matrix is ​​performed based on the transformation matrix. Therefore, this method improves computational efficiency by generating pseudo-random numbers and performing addition on plaintext, simplifies the model by eliminating the need for a third party responsible for encrypted computation, reduces communication volume, and achieves multi-party joint data computation while ensuring privacy protection, resulting in a significant performance improvement.

[0082] Corresponding to the above embodiments, the present invention also proposes a multi-party joint dimensionality reduction method for data.

[0083] In an embodiment of the present invention, the original data is distributed among M data owners, where M is an integer greater than 1. Any i-th data owner among the M data owners has an i-th original matrix composed of multiple d-dimensional vectors. The method is applied to a server.

[0084] like Figure 2 As shown, the data multi-party joint dimensionality reduction method of this invention may include:

[0085] S21 receives random perturbation vectors from M data owners.

[0086] S22, obtain the mean vector of the original data based on the random perturbation vectors of the M data owners, and send the mean vector of the original data to each of the M data owners.

[0087] S23, receive the perturbation matrices from M data owners.

[0088] S24, calculate the transformation matrix based on the perturbation matrix so that the i-th data owner can perform dimensionality reduction on the i-th original matrix.

[0089] According to one embodiment of the present invention, calculating the transformation matrix based on the perturbation matrix includes: calculating the aggregated covariance matrix based on the perturbation matrices of M data owners; performing singular value decomposition (SVD) on the aggregated covariance matrix to obtain singular values ​​and eigenvectors; transforming the singular values ​​to obtain the eigenvalues ​​of the aggregated covariance matrix; and selecting the eigenvectors corresponding to k eigenvalues ​​to construct the transformation matrix, where k is a positive integer. The SVD method can be used to perform SVD on the aggregated covariance matrix.

[0090] It should be noted that for details not disclosed in the data multi-party joint dimensionality reduction method of the present invention embodiments, please refer to the details disclosed in the data multi-party joint dimensionality reduction method in the above embodiments, which will not be repeated here.

[0091] Corresponding to the above embodiments, the present invention also proposes an electronic device.

[0092] like Figure 3 As shown, the electronic device 100 of the present invention includes: a memory 110, a processor 120, and a computer program stored in the memory 110 and executable on the processor 120. When the processor 120 executes the program, it implements the above-mentioned multi-party joint dimensionality reduction method.

[0093] The electronic device according to the embodiments of the present invention improves computational efficiency by executing the above-described multi-party joint dimensionality reduction method, and simplifies the model and reduces communication volume by eliminating the need for a third party responsible for dense state calculation. Under the premise of ensuring privacy protection, it realizes multi-party joint data calculation, resulting in a significant performance improvement.

[0094] Corresponding to the above embodiments, the present invention also proposes a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the above-described multi-party joint dimensionality reduction method for data.

[0095] According to the computer-readable storage medium of the present invention, the above-described multi-party joint dimensionality reduction method improves computational efficiency, eliminates the need for a third party responsible for dense state computation, simplifies the model, reduces communication volume, and achieves multi-party joint data computation while ensuring privacy protection, resulting in a significant performance improvement.

[0096] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.

[0097] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0098] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0099] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0100] In this invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," "linking," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components, unless otherwise explicitly limited. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.

[0101] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.

Claims

1. A multi-party joint dimensionality reduction method for data, characterized in that, The original data is distributed among M data owners, where M is an integer greater than 1. Any i-th data owner among the M data owners possesses an i-th original matrix composed of d-dimensional vectors. The method is applied to the i-th data owner and includes the following steps: In cooperation with the data owner among the M data owners, a random seed is obtained through public key encryption or other means, and a random number is generated using a hash function based on the random seed, to obtain the random vector and random matrix of the i-th data owner; The random perturbation vector of the i-th data owner is obtained based on the i-th original matrix and the random vector of the i-th data owner. Send the random perturbation vector of the i-th data owner to the server, and receive the mean vector of the original data sent by the server; The perturbation matrix of the i-th data owner is calculated based on the mean vector of the original data, the i-th original matrix, and the random matrix of the i-th data owner. Send the perturbation matrix of the i-th data owner to the server, and receive the transformation matrix sent by the server; The original i-th matrix is ​​reduced in dimensionality based on the transformation matrix.

2. The data multi-party joint dimensionality reduction method according to claim 1, characterized in that, In cooperation with one of the M data owners, obtain the random vector and random matrix of the i-th data owner, including: The random seed is determined by cooperating with any j-th data owner other than the i-th data owner among the M data owners. ; According to the random seed Generate a random vector and a random matrix for the i-th data owner.

3. The data multi-party joint dimensionality reduction method according to claim 1, characterized in that, The random perturbation vector of the i-th data owner is obtained using the following formula: in, , This represents the random perturbation vector of the i-th data owner. Denotes the d-dimensional sum vector of the i-th original matrix. Let represent a random vector representing the i-th data owner and the j-th data owner among the M data owners. Let represent a symbolic function, where 1≤i≤M and 1≤j≤M.

4. The data multi-party joint dimensionality reduction method according to claim 1, characterized in that, The perturbation matrix of the i-th data owner is calculated based on the mean vector of the original data, the i-th original matrix, and the random matrix of the i-th data owner, including: The center matrix of the i-th data owner is obtained based on the mean vector of the original data and the original matrix of the i-th data owner; Calculate the covariance matrix of the i-th data owner based on the center matrix of the i-th data owner; The perturbation matrix of the i-th data owner is obtained based on the covariance matrix of the i-th data owner and the random matrix of the i-th data owner.

5. The data multi-party joint dimensionality reduction method according to claim 4, characterized in that, The perturbation matrix of the i-th data owner is calculated using the following formula: in, , This represents the perturbation matrix of the i-th data owner. This represents the covariance matrix of the i-th data owner. This represents a random matrix between the i-th data owner and the j-th data owner among the M data owners. Let represent a symbolic function, 1≤i≤M, 1≤j≤M.

6. The data multi-party joint dimensionality reduction method according to claim 1, characterized in that, The perturbation matrix of the i-th data owner is calculated based on the mean vector of the original data, the original matrix of the i-th data owner, and the random matrix of the i-th data owner, including: The center matrix of the i-th data owner is obtained based on the mean vector of the original data and the original matrix of the i-th data owner; Calculate the encryption matrix of the i-th data owner based on the center matrix of the i-th data owner; The perturbation matrix of the i-th data owner is obtained based on the encryption matrix and the random matrix of the i-th data owner.

7. A multi-party joint dimensionality reduction method for data, characterized in that, The original data is distributed among M data owners, where M is an integer greater than 1. Any i-th data owner among the M data owners possesses an i-th original matrix composed of multiple d-dimensional vectors. The method is applied to a server and includes the following steps: Receive random perturbation vectors from the M data owners. The random perturbation vectors are obtained based on random vectors. The random vectors are encrypted with a public key or otherwise used to obtain a random seed. A random number is generated based on the random seed using a hash function. The mean vector of the original data is obtained based on the random perturbation vectors of the M data owners, and the mean vector of the original data is sent to each of the M data owners; Receive the perturbation matrices from the M data owners; The transformation matrix is ​​calculated based on the perturbation matrix so that the i-th data owner can perform dimensionality reduction on the i-th original matrix.

8. The data multi-party joint dimensionality reduction method according to claim 7, characterized in that, Calculate the transformation matrix based on the perturbation matrix, including: The aggregated covariance matrix is ​​calculated based on the perturbation matrices of the M data owners; Singular value decomposition is performed on the aggregated covariance matrix to obtain singular values ​​and eigenvectors; The singular values ​​are transformed to obtain the eigenvalues ​​of the aggregated covariance matrix; The transformation matrix is ​​constructed by selecting the eigenvectors corresponding to k eigenvalues, where k is a positive integer.

9. An electronic device, characterized in that, include: The system includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements the data multi-party joint dimensionality reduction method as described in any one of claims 1-8.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the data multi-party joint dimensionality reduction method as described in any one of claims 1-8.

Citation Information

Patent Citations

  • Method and device for performing multi-party joint dimension reduction processing on user privacy data

    CN110889139A

  • Method and device for multi-party joint dimension reduction processing of private data

    CN111401479A