A graph neural network-based entity alignment encryption computing system and method

By introducing additive sharing and confusion circuit technology into the graph neural network, secure training of entity alignment models in a graph data isolation environment is achieved, solving the problems of model inability to share and information leakage in the existing technology, ensuring data privacy and model Safety.

CN115001650BInactive Publication Date: 2024-09-24UNIV OF ELECTRONICS SCI & TECH OF CHINA +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210503069.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-09
Publication Date
2024-09-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing GNN-based entity alignment models are difficult to train in a graph data isolation environment, and the learned model cannot be jointly held by two data holders, and there is a risk of sensitive information leakage.

Method used

Adopting an encrypted computing system based on graph neural networks, through a secure forward inference module and parameter update module, using matrix multiplication, aggregation, matrix dot multiplication and nonlinear computing building blocks, combined with additive sharing and confusion circuits, to achieve node embedding representation and secure calculation of model parameters to ensure data privacy and model sharing.

Benefits of technology

The secure learning of the entity alignment model is realized in the graph data isolation environment, preventing the leakage of node initial features, relationships, gradients and network weights, ensuring that the model is jointly held by both parties, and solving the problem of sensitive information leakage in the context of data isolation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115001650B
    Figure CN115001650B
Patent Text Reader

Abstract

The present invention discloses an encrypted computing system and method for entity alignment based on a graph neural network. In the system, four building blocks for secure computing are first constructed: a secure matrix multiplication building block, a secure aggregation building block, a secure matrix dot multiplication building block and a secure nonlinear computing building block. Based on the above building blocks, a secure entity alignment system is proposed, which includes two components: a secure forward reasoning module and a secure parameter updating module. The present invention adopts a packaged additive homomorphism combined with a two-party secure computing technology. First, a secure forward reasoning algorithm is used to aggregate an embedded representation containing its adjacency information for each node. Then, a secure parameter updating algorithm is used to update the network parameters of an entity alignment model, thereby realizing a secure learning process of the entity alignment model without leaking any information about the nodes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of secure reasoning of deep learning neural networks, and in particular to an encrypted computing system and method for entity alignment based on graph neural networks. Background Art

[0002] Graph neural networks have shown unprecedented advantages in processing graph data. Since graph neural networks have good understanding and cognitive capabilities for graph data, embedding models based on graph neural networks are becoming more and more popular in entity alignment (EA) tasks, and have achieved very significant results on many data sets.

[0003] However, the existing GNN-based entity alignment model still has some security issues. Training an entity alignment model usually requires obtaining two complete graph data. In fact, graph data is usually very valuable, and data holders often own the graph data alone and are unwilling to share it. This makes it very difficult to train the entity alignment deep network model while ensuring the privacy and security of the graph data.

[0004] For these data holders, an intuitive solution is to outsource their graph data to a trusted third party to perform the entity alignment task. However, it is difficult to find a fully trusted third party in real life. Even if such a third party exists, the ownership of the entity alignment model is a thorny issue. Ideally, the model should be shared by two data holders, but neither party should be able to access the model alone. Another outsourcing solution is to find a semi-honest third party. A semi-honest third party usually follows the semi-honest adversary model. Specifically, it fully follows the protocol specification and algorithm, but may try to learn additional information by analyzing intermediate calculations. Some work shows that a semi-honest third party has the ability to infer some sensitive information of the model through intermediate calculations. Another direct approach is to use advanced cryptographic algorithms. Modern cryptography provides us with many tools, such as homomorphic encryption (HE) and secure multi-party computation (MPC). However, some existing encryption schemes are not suitable for entity alignment tasks. Since graph data is a kind of relational data, not only node attributes need to be protected, but also node relationships. Although encryption tools can effectively protect the attribute information of the graph, they cannot handle node relationships. For example, the aggregation operation of neighbors will expose such relationships.

[0005] Therefore, how to train the entity alignment model in an environment with isolated graph data while ensuring that each other's graph data information is not leaked and the learned model is jointly held by both parties is a very valuable issue. Summary of the invention

[0006] The purpose of the present invention is to overcome the shortcomings of the prior art and to provide an encrypted computing system and method for entity alignment based on graph neural networks in order to train an entity alignment model in an environment where graph data is isolated while ensuring that each other's graph data information is not leaked and the learned model is jointly held by both parties.

[0007] The objective of the present invention is achieved through the following technical solutions:

[0008] An encrypted computing system for entity alignment based on graph neural networks, including a secure forward reasoning module and a secure parameter update module;

[0009] The secure forward reasoning module is used to securely calculate the embedded representation of each node including its adjacency information; the secure gradient update module is used to securely update all parameters of the entity alignment network model;

[0010] The computing system also includes four basic building blocks: matrix multiplication building block, aggregation building block, matrix dot multiplication building block and nonlinear computing building block;

[0011] The matrix multiplication building block is used to calculate the multiplication of two matrices, each matrix is ​​divided into two parts in an additive sharing manner, and is held by two data holders respectively. At the same time, the calculation result is also divided into two parts in an additive sharing manner, and is held by two data holders respectively.

[0012] The aggregation building block is used to aggregate the feature vectors of the central node and its adjacent nodes. These feature vectors are divided into two parts in an additive sharing manner and are held by two data holders. At the same time, the calculation results are also held by the two data holders in an additive sharing manner.

[0013] The matrix dot product building block is used to calculate the multiplication of corresponding elements of two matrices, where the two matrices are divided into two parts in an additive sharing manner and are held by two data holders, and the calculation result is also held by the two data holders in an additive sharing manner;

[0014] The nonlinear calculation building block is used for the calculation of nonlinear functions in the whole process. The input of the nonlinear calculation building block is divided into two parts in an additive sharing manner and is held by two data holders respectively. At the same time, the calculation result is also divided into two parts in an additive sharing manner and is held by two data holders respectively.

[0015] Furthermore, the nonlinear calculation building block calculates the nonlinear activation function when it is in the safe forward reasoning module; and calculates the derivative of the nonlinear activation function when it is in the safe parameter update module.

[0016] Furthermore, the implementation process of the matrix multiplication building block is specifically as follows:

[0017] P1: Use encryption key pk 1 Encryption Matrix X a , and the ciphertext [X a ]Send to P2;

[0018] P2: Use encryption key pk 2 EncryptionX b , and the ciphertext [X b ]Send to P1;

[0019] P1: Generate random noise matrix R a ;

[0020] P2: Generate random noise matrix R b ;

[0021] P1: Calculate the ciphertext [X b ] and the plaintext matrix Y a Multiply by , and subtract the noise matrix R a , the ciphertext result [C a ]Send to P2;

[0022] P2: Calculate the ciphertext [X a ] and the plaintext matrix Y b Multiply by , and subtract the noise matrix R b , the ciphertext result [C b ]Send to P1;

[0023] P1: Use decryption key sk 1 Decryption a ]Get the plain text result M a ;

[0024] P2: Use decryption key sk 2 Decryption b ]Get the plain text result M b ;

[0025] P1: Local computing X a ·Y a +M a +R a , and get the result of additive sharing Z a ;

[0026] P2: Local Computing X b ·Y b +M b +R b , and get the result of additive sharing Z b .

[0027] Furthermore, the implementation process of the aggregation building block is specifically as follows:

[0028] Assume that the initial graph network is owned by P1. P2 cannot obtain the neighbor set sampled by P1 and therefore cannot perform aggregation operations.

[0029] P2: Use encryption key pk 2 , encrypt the feature vector X of all nodes b , send the encrypted ciphertext result [X b ] to P1;

[0030] P1: Generate a random noise vector R(v) for each node;

[0031] P1: Execute [X b (v)] and X a (v) is added to obtain the feature vector [X(v)] of each node;

[0032] P1: Perform aggregation operation on the encrypted text to obtain the aggregated feature vector [Z(v)];

[0033] P1: Perform the addition of the ciphertext vector [Z(v)] and the random noise vector R(v), and send the encrypted result [Z b (v)] sent to P2;

[0034] P2: Use decryption key sk 2 Decryption b (v)] and divide each element of the vector by n-1 to obtain the partial result of aggregation under additive sharing;

[0035] P1: Divide each noise vector by n+1 to get the residual result of aggregation under additive sharing.

[0036] Furthermore, the implementation process of the matrix dot product building block is specifically as follows:

[0037] P1, P2: Calculate the matrix X using the garbled circuit a and Y b The point multiplication operation is performed to obtain the calculation results Z a 0 and Z b 0 ;

[0038] P1, P2: Calculate the matrix X using the garbled circuit b and Y a The point multiplication operation is performed to obtain the calculation results Z a 1 and Z b 1 ;

[0039] P1: Calculate X a With Y aThe dot product of a 0 and Z a 1 , and get the partial value Z of the final result a ;

[0040] P2: Calculate X b With Y b The dot product of b 0 and Z b 1 , and get the partial value Z of the final result b .

[0041] A secure computing method for entity alignment based on graph neural network, comprising the following steps:

[0042] Step 1: Data holders P1 and P2 initialize their respective model parameters, including weight matrix, number of network layers, number of sampled neighbors, and set of neighbors to be aggregated;

[0043] Step 2: Data holder P1 generates encryption key pk 1 and the decryption key sk 1 , and send the encryption key pk 1 to P2;

[0044] Step 3: Data holder P2 generates encryption key pk 2 and the decryption key sk 2 , and send the encryption key pk 2 to P1; Step 4: Using a secure forward reasoning algorithm, P1 and P2 jointly calculate the embedding representation of each node, and the calculation result is divided into two parts by additive sharing, which are held by P1 and P2 respectively;

[0045] Step 5: Using a secure parameter update algorithm, P1 and P2 jointly update the network parameters. All network parameters are divided into two parts in an additive way, held by P1 and P2 respectively.

[0046] Beneficial effects of the present invention: The present invention utilizes packaged additive homomorphism (PAHE) combined with two-party secure computing technology, firstly utilizes a secure forward reasoning algorithm to aggregate an embedded representation containing its adjacency information for each node, and then utilizes a secure parameter update algorithm to update the network parameters of the entity alignment model, thereby realizing a secure learning process of the entity alignment model; the system will not leak any information about the initial features of the nodes, node relationships, training gradients, network weights, node embeddings, etc., aiming to solve the technical problems of sensitive graph data leakage and the lack of protection of the entity alignment model in the process of jointly training the entity alignment model under the background of data isolation. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.

[0048] Figure 1 is a system diagram of the present invention;

[0049] Figure 2 A diagram of the safe matrix multiplication algorithm of the present invention;

[0050] Figure 3 A diagram of the secure aggregation algorithm of the present invention;

[0051] Figure 4 A diagram of the matrix dot multiplication algorithm for the present invention;

[0052] Figure 5 A Boolean circuit diagram of a nonlinear function that is safe for the present invention;

[0053] Figure 6 The algorithm diagram of the safe forward reasoning module of the present invention;

[0054] Figure 7 A diagram of a safe parameter update algorithm of the present invention;

[0055] Figure 8 This is a diagram showing the effect of the security matrix multiplication of the present invention. DETAILED DESCRIPTION

[0056] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not intended to limit the present invention.

[0057] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0058] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0059] In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0060] In this embodiment, if Figure 1 As shown, an encrypted computing system for entity alignment based on graph neural network includes a secure forward reasoning module and a secure parameter update module;

[0061] The secure forward reasoning module is used to securely calculate the embedded representation of each node including its adjacency information; the secure gradient update module is used to securely update all parameters of the entity alignment network model;

[0062] The computing system also includes four basic building blocks: matrix multiplication building block, aggregation building block, matrix dot multiplication building block and nonlinear computing building block;

[0063] The matrix multiplication building block is used to calculate the multiplication of two matrices, each matrix is ​​divided into two parts in an additive sharing manner, and is held by two data holders respectively. At the same time, the calculation result is also divided into two parts in an additive sharing manner, and is held by two data holders respectively.

[0064] The aggregation building block is used to aggregate the feature vectors of the central node and its adjacent nodes. These feature vectors are divided into two parts in an additive sharing manner and are held by two data holders. At the same time, the calculation results are also held by the two data holders in an additive sharing manner.

[0065] The matrix dot product building block is used to calculate the multiplication of corresponding elements of two matrices, where the two matrices are divided into two parts in an additive sharing manner and are held by two data holders, and the calculation result is also held by the two data holders in an additive sharing manner;

[0066] The nonlinear calculation building block is used for the calculation of nonlinear functions in the whole process. Specifically, it includes two aspects: (1) calculating the nonlinear activation function in the safe forward reasoning process; (2) calculating the derivative of the nonlinear activation function in the safe parameter update process. The input of this building block is divided into two parts in an additive sharing manner, which are respectively held by two data holders. At the same time, the calculation result is also divided into two parts in an additive sharing manner, which are respectively held by two data holders.

[0067] A secure computing method for entity alignment based on graph neural network specifically includes the following steps:

[0068] Step 1: Data holders P1 and P2 initialize their respective model parameters, including weight matrix, number of network layers, number of sampled neighbors, and set of neighbors to be aggregated;

[0069] Step 2: Data holder P1 generates encryption key pk 1 and the decryption key sk 1 , and send the encryption key pk 1 Give P 2 ;

[0070] Step 3: Data holder P2 generates encryption key pk 2 and the decryption key sk 2 , and send the encryption key pk 2 Give P 1 ;

[0071] Step 4: Using a secure forward reasoning algorithm, P1 and P2 jointly compute the embedding representation of each node. The computation result is divided into two parts in an additively shared manner, held by P1 and P2 respectively.

[0072] Step 5: Using a secure parameter update algorithm, P1 and P2 jointly update the network parameters. All network parameters are divided into two parts in an additive way, held by P1 and P2 respectively.

[0073] In this embodiment, Figure 2 The secure matrix multiplication protocol of the embodiment of the present invention is shown in Algorithm 1. The secure matrix multiplication protocol (SecureHE) includes the following steps:

[0074] P1: Use encryption key pk 1 Encryption Matrix X a , and the ciphertext [X a ]Send to P2;

[0075] P2: Use encryption key pk 2 EncryptionX b , and the ciphertext [X b ]Send to P1;

[0076] P1: Generate random noise matrix R a ;

[0077] P2: Generate random noise matrix R b ;

[0078] P1: Calculate the ciphertext [X b ] and the plaintext matrix Y a Multiply by , and subtract the noise matrix R a , the ciphertext result [C a ]Send to P2;

[0079] P2: Calculate the ciphertext [X a ] and the plaintext matrix Y b Multiplication and subtracting the noise matrix R b , the ciphertext result [C b ]Send to P1;

[0080] P1: Use decryption key sk 1 Decryption a ]Get the plain text result M a ;

[0081] P2: Use decryption key sk 2 Decryption b ]Get the plain text result M b ;

[0082] P1: Local computing X a ·Y a +M a +R a , and get the result of additive sharing Z a ;

[0083] P2: Local Computing X b ·Y b +M b +R b , and get the result of additive sharing Z b .

[0084] In this embodiment, if Figure 3 As shown, it is a secure aggregation protocol (SecureAGG) of an implementation scheme of the present invention. It is worth noting that the protocol assumes that the initial graph network is held by P1, and P2 cannot obtain the neighbor set sampled by P1 and therefore cannot perform aggregation operations.

[0085] As shown in Algorithm 2, the secure aggregation protocol includes the following steps:

[0086] P2: Use encryption key pk 2 , encrypt the feature vector X of all nodes b , send the encrypted ciphertext result [X b ] to P1;

[0087] P1: Generate a random noise vector R(v) for each node;

[0088] P1: Execute [X b (v)] and X a (v) is added to obtain the feature vector [X(v)] of each node;

[0089] P1: Perform aggregation operation on the encrypted text to obtain the aggregated feature vector [Z(v)];

[0090] P1: Perform the addition of the ciphertext vector [Z(v)] and the random noise vector R(v), and send the encrypted result [Z b (v)] sent to P2;

[0091] P2: Use decryption key sk 2 Decryption b (v)] and divide each element of the vector by n-1 to obtain the partial result of aggregation under additive sharing;

[0092] P1: Divide each noise vector by n+1 to get the residual result of aggregation under additive sharing.

[0093] In this embodiment, if Figure 4 As shown in FIG. 3 , a secure matrix multiplication protocol (SecureGC-matmul) according to an embodiment of the present invention is shown. As shown in Algorithm 3, the secure matrix protocol includes the following steps:

[0094] P1, P2: Calculate the matrix X using the garbled circuit a and Y b The point multiplication operation is performed to obtain the calculation results Z a 0 and Z b 0 ;

[0095] P1, P2: Calculate the matrix X using the garbled circuit b and Y a The point multiplication operation is performed to obtain the calculation results Z a 1 and Z b 1 ;

[0096] P1: Calculate X a With Y a The dot product of a 0 and Z a 1 , and get the partial value Z of the final result a ;

[0097] P2: Calculate X b With Y b The dot product of b 0 and Z b 1 , and get the partial value Z of the final result b .

[0098] In this embodiment, if Figure 5As shown in the figure, secure nonlinear function calculation (SecureGC) includes the following steps:

[0099] Noise Removalx b , get the true value;

[0100] Calculate nonlinear functions, such as Relu, LeakyRelu, etc.;

[0101] The result is added with noise y a , we get the two parts of additive sharing -y a and f(x a -x b )+y a ;

[0102] In this embodiment, if Figure 6 As shown in Algorithm 4, the secure forward reasoning module algorithm includes the following steps:

[0103] The graph data owner P1 (P2) performs the mean aggregation operation locally;

[0104] P1 and P2 jointly perform a linear transformation operation on the aggregated result (SecureHE);

[0105] P1 and P2 jointly perform nonlinear activation (SecureGC) on the result after linear transformation;

[0106] P1 and P2 jointly compute the second mean aggregation operation (SecureAGG);

[0107] P1 and P2 jointly perform a linear transformation operation on the aggregated result (SecureHE);

[0108] P1 and P2 jointly perform nonlinear activation (SecureGC) on the result after linear transformation.

[0109] In this embodiment, if Figure 7 As shown in FIG. 1 , the gradient update module algorithm of the embodiment of the present invention is safe. For the convenience of description, this scheme summarizes the forward network into the following four calculation processes, and updates the weight matrix W of the second layer. 2 Take this as an example to introduce the implementation steps of this module in detail:

[0110] H 1′ =W 1 ·H 0

[0111] H 1 =LeakyRelu(H 1′ )

[0112] H 2′ =W 2·H 1

[0113] H 2 =LeakyRelu(H 2′ )

[0114] Consider the loss function where h i is the embedding representation of i computed by a secure forward reasoning algorithm and is divided into two parts in an additively shared manner, held by P1 and P2 respectively. represents the aligned positive samples, represents unaligned samples, α and λ are two hyperparameters,

[0115] Therefore, there is Here l is a scalar, is a and H 2 With matrices of the same size, since H 2 Yes H 2 ′ is the result of nonlinear calculation, so Is a 2 ′ has the same size matrix; finally, due to H 2 ′ is the right 2 The result of linear calculation is Therefore, the entire process of gradient calculation includes the calculation of three partial derivatives, a matrix dot product calculation, and a matrix multiplication operation. Indicates the dot multiplication calculation of the matrix, '·' indicates the matrix multiplication algorithm;

[0116] Compute three partial derivatives:

[0117] For a single node, the derivative of the loss with respect to the embedding is calculated as follows:

[0118]

[0119] The matrix form of this derivative is defined by the following formula:

[0120]

[0121] Here CONCAT means horizontal concatenation of matrices, A + ={i 0 ,i 1 , ...} and B + ={j 0 , j 1 , ...} represents the positive samples held by P1 and P2, and satisfying {(i k , j k )∈Z + |i k ∈A+ , j k ∈B + , k = 0, 1, ...}. Similar A + and B + Represents the negative samples held by P1 and P2. 2 (·) In an additive sharing manner and They are held by P1 and P2 respectively, so the above formula can be expressed as:

[0122]

[0123] The calculation is as in Part 1 of Algorithm 5;

[0124] For the LeakyRelu layer: Given an input x, the output of LeakyRelu is defined as f(x) = max(α x, x), so This calculation is as in Part 2 of Algorithm 5;

[0125] For the matrix multiplication layer: Since H 2′ Yes W 2 The result of linear calculation is The calculation process is shown in Part 3 of Algorithm 5;

[0126] The matrix dot multiplication calculation is performed using the secure matrix dot multiplication protocol in the building block. The calculation process is shown in Part 4 of Algorithm 5.

[0127] The matrix multiplication calculation is performed using the secure matrix multiplication protocol in the building block. The calculation process is shown in Part 5 of Algorithm 5.

[0128] The following formula is used in Algorithm 5 to update the gradient:

[0129]

[0130] The specific implementation process is as shown in Part 6 of Algorithm 5.

[0131] The secure matrix multiplication operation is the core optimization technology of the present invention. Figure 8 The optimization effect brought by the matrix multiplication of the present invention is demonstrated. The time and the number of basic homomorphic encryption operations are mainly compared with the two currently advanced encryption libraries. Among them, SIMDADD represents the number of ciphertext additions based on the packed additive homomorphic encryption scheme (PAHE) single instruction stream multiple data stream, SIMDScMult represents the number of scalar multiplications based on the packed additive homomorphic encryption scheme (PAHE) single instruction stream multiple data stream, and Perm represents the number of rotations of the ciphertext slot based on the packed additive homomorphic encryption scheme (PAHE). From Figure 8It can be seen that the implementation speed of the present invention is 1.5 times faster than the Gazelle encryption library, 300-400 times faster than the Helib encryption library, and 100-4000 times faster than SEAL.

[0132] It should be noted that, for the above-mentioned various method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and units involved are not necessarily required by this application.

[0133] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0134] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a ROM, a RAM, etc.

[0135] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims

1. An entity alignment encryption computing system based on graph neural network, characterized in that: Includes a secure forward reasoning module and a secure parameter update module; The secure forward reasoning module is used to securely calculate the embedded representation of each node including its adjacency information; the secure gradient update module is used to securely update all parameters of the entity alignment network model; The computing system also includes four basic building blocks: matrix multiplication building block, aggregation building block, matrix dot multiplication building block and nonlinear computing building block; The matrix multiplication building block is used to calculate the multiplication of two matrices, each matrix is ​​divided into two parts in an additive sharing manner, and is held by two data holders respectively. At the same time, the calculation result is also divided into two parts in an additive sharing manner, and is held by two data holders respectively. The implementation process of the matrix multiplication building block is specifically as follows: P1: Encrypts the matrix Xa using the encryption key pk1 and sends the ciphertext [Xa] to P2; P2: encrypts Xb using encryption key pk2 and sends the ciphertext [Xb] to P1; P1: Generate random noise matrix Ra; P2: Generate random noise matrix Rb; P1: Calculates the multiplication of the ciphertext [Xb] and the plaintext matrix Ya, subtracts the noise matrix Ra, and sends the ciphertext result [Ca] to P2; P2: Calculates the multiplication of the ciphertext [Xa] and the plaintext matrix Yb, subtracts the noise matrix Rb, and sends the ciphertext result [Cb] to P1; P1: Use the decryption key sk1 to decrypt [Ca] to obtain the plaintext result Ma; P2: Use the decryption key sk2 to decrypt [Cb] and obtain the plaintext result Mb; P1: Locally calculate Xa·Ya + Ma + Ra and obtain the additive shared result Za; P2: Locally calculate Xb·Yb + Mb + Rb and obtain the additive shared result Zb; The aggregation building block is used to aggregate the feature vectors of the central node and its adjacent nodes. These feature vectors are divided into two parts in an additive sharing manner and are held by two data holders. At the same time, the calculation results are also held by the two data holders in an additive sharing manner. The matrix dot product building block is used to calculate the multiplication of corresponding elements of two matrices, where the two matrices are divided into two parts in an additive sharing manner and are held by two data holders, and the calculation result is also held by the two data holders in an additive sharing manner; The nonlinear calculation building block is used for the calculation of nonlinear functions in the whole process. The input of the nonlinear calculation building block is divided into two parts in an additive sharing manner and is held by two data holders respectively. At the same time, the calculation result is also divided into two parts in an additive sharing manner and is held by two data holders respectively.

2. According to claim 1, an entity alignment encryption computing system based on graph neural network is characterized in that: The nonlinear calculation building block calculates the nonlinear activation function when it is in the safe forward reasoning module; and calculates the derivative of the nonlinear activation function when it is in the safe parameter update module.

3. According to claim 1, the entity alignment encryption computing system based on graph neural network is characterized in that: The implementation process of the aggregation building block is specifically as follows: Assume that the initial graph network is owned by P1. P2 cannot obtain the neighbor set sampled by P1 and therefore cannot perform aggregation operations. P2: Use encryption key pk2 to encrypt the feature vector X of all nodes b , send the encrypted ciphertext result [X b ] to P1; P1: Generate a random noise vector R(v) for each node; P1: Execute [X b (v)] and X a (v) is added to obtain the feature vector [X(v)] of each node; P1: Perform aggregation operation on the encrypted text to obtain the aggregated feature vector [Z(v)]; P1: Perform the addition of the ciphertext vector [Z(v)] and the random noise vector R(v), and send the encrypted result [Z b (v)] sent to P2; P2: Decrypt using decryption key sk2 [Z b (v)] and divide each element of the vector by n-1 to obtain the partial result of aggregation under additive sharing; P1: Divide each noise vector by n+1 to get the residual result of aggregation under additive sharing.

4. According to claim 1, the entity alignment encryption computing system based on graph neural network is characterized in that: The implementation process of the matrix dot product building block is as follows: P1, P2: Calculate the matrix X using the garbled circuit a and Y b The point multiplication operation is performed to obtain the calculation results Z a 0 and Z b 0 ; P1, P2: Calculate the matrix X using the garbled circuit b and Y a The point multiplication operation is performed to obtain the calculation results Z a 1 and Z b 1 ; P1: Calculate X a With Y a The dot product of a 0 and Z a 1 , and get the partial value Z of the final result a ; P2: Calculate X b With Y b The dot product of b 0 and Z b 1 , and get the partial value Z of the final result b .

5. A graph neural network-based entity alignment encryption calculation method, which uses the graph neural network-based entity alignment encryption calculation system as described in any one of claims 1 to 4, characterized in that: The following steps are involved: Step 1: Data holders P1 and P2 initialize their respective model parameters, including weight matrix, number of network layers, number of sampled neighbors, and set of neighbors to be aggregated; Step 2: Data holder P1 generates encryption key pk1 and decryption key sk1, and sends encryption key pk1 to P2; Step 3: Data holder P2 generates encryption key pk2 and decryption key sk2, and sends encryption key pk2 to P1; Step 4: Using a secure forward reasoning algorithm, P1 and P2 jointly compute the embedding representation of each node. The computation result is divided into two parts in an additively shared manner, held by P1 and P2 respectively. Step 5: Using a secure parameter update algorithm, P1 and P2 jointly update the network parameters. All network parameters are divided into two parts in an additive way, held by P1 and P2 respectively.