Multi-party security computing method and device based on equivalent task conversion

By converting communication-intensive subtasks in multi-party secure computing into computing-intensive subtasks, the problem of high communication overhead in multi-party secure computing is solved, computing efficiency is improved, and its deployment and large-scale application in practical applications are promoted. .

CN118734348APending Publication Date: 2024-10-01CLUSTAR TECH LO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310359717.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-28
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Due to the huge communication overhead, multi-party secure computing is difficult to deploy in practical applications and difficult to realize its value.

Method used

By converting communication-intensive subtasks into computing-intensive subtasks, obtain the results of completed subtasks with priority, and interrupt another unfinished subtask, using the task conversion module and the computing task execution module to execute synchronously, based on secret sharing protocol, homomorphic encryption protocol or obfuscated circuit protocol implementation.

Benefits of technology

It reduces the communication overhead of multi-party secure computing, improves efficiency, promotes the large-scale application of multi-party secure computing, and optimizes the dynamic utilization of computing resources and network resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118734348A_ABST
    Figure CN118734348A_ABST
Patent Text Reader

Abstract

The invention relates to a multi-party security computing method and device based on equivalent task conversion, a medium and electronic equipment. The method comprises the following steps: converting a communication-intensive subtask into a computing-intensive subtask; wherein the output result of the communication-intensive subtask is equivalent to that of the calculation-intensive subtask, and the communication-intensive subtask is obtained by splitting a multi-party security calculation task; and executing the communication-intensive subtask and the calculation-intensive subtask, obtaining a subtask result which is executed preferentially from the communication-intensive subtask and the calculation-intensive subtask, and interrupting the other uncompleted subtask. By implementing the embodiment of the invention, the problem of huge communication overhead in multi-party security computing is solved, large-scale application of multi-party security computing is facilitated, and meanwhile, dynamic factors in the aspects of computing resources and network resources of multi-party security computing are comprehensively considered, so that the efficiency of multi-party security computing is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the fields of privacy computing, privacy data and multi-party secure computing technology, specifically to the field of data processing technology, and in particular to a multi-party secure computing method and device based on equivalent task transformation. Background Art

[0002] Privacy computing refers to a set of technologies that implement data analysis and computing while protecting the privacy of the data itself from being leaked, so as to achieve the goal of making the data "available but invisible" and to achieve the transformation and release of data value while fully protecting the data and privacy security. Among them, secure multi-party computing (MPC) is an important implementation of privacy computing, which enables participants to participate in confidential computing using private data without leaking their own private data and jointly complete a computing task. In a secure multi-party computing task, each participant only knows their own input data and the final result of the task, but not the intermediate results or data input of other participants.

[0003] In multi-party secure computing, each participant needs to interact and communicate with other participants through the network to ensure that the privacy data of each party is not leaked and secure computing is performed. This generates huge communication overhead. For example, training a neural network model using multi-party secure computing may require thousands of rounds of communication between the parties to complete the training task. These communication overheads make the completion time of the multi-party secure computing task unacceptable. Therefore, the current multi-party secure computing solution is difficult to deploy in actual scenarios and it is difficult to exert its actual value. Summary of the invention

[0004] In order to solve the technical problem that multi-party secure computing is difficult to deploy in practical applications due to huge communication overhead, the present invention provides a multi-party secure computing method, device, medium and electronic device based on equivalent task conversion.

[0005] In a first aspect, a multi-party secure computing method based on equivalent task conversion is provided, comprising: converting a communication-intensive subtask into a computation-intensive subtask; wherein the output result of the communication-intensive subtask is equivalent to the output result of the computation-intensive subtask, and the communication-intensive subtask is obtained based on the splitting of the multi-party secure computing task; executing the communication-intensive subtask and the computation-intensive subtask, obtaining the result of the subtask that is executed first and completed from the two, and interrupting another unfinished subtask.

[0006] In some optional embodiments, the result of the subtask that is executed first is obtained from the two, and the other unfinished subtask is interrupted, including: if the communication-intensive subtask submits the subtask result earlier than the computing-intensive subtask, the subtask result of the communication-intensive subtask is obtained, and the execution of the computing-intensive subtask is interrupted; if the computing-intensive subtask submits the subtask result earlier than the communication-intensive subtask, the subtask result of the computing-intensive subtask is obtained, and the execution of the communication-intensive subtask is interrupted.

[0007] Based on the first aspect, in some optional embodiments, the multi-party secure computing task is implemented based on a secret sharing protocol, a homomorphic encryption protocol or a confusion circuit protocol.

[0008] Based on the first aspect, in some optional embodiments, the multi-party secure computing task is implemented based on a secret sharing protocol, and the communication-intensive subtask is converted into a computing-intensive subtask, including: converting the communication-intensive subtask into the computing-intensive subtask according to pre-acquired random number secret sharing share information.

[0009] Based on the first aspect, in some optional embodiments, the secret sharing calculations involved in the communication-intensive subtask and the computation-intensive subtask are based on mutually compatible expressions.

[0010] Based on the first aspect, in some optional embodiments, the mutually compatible expressions are preset vectorized secret sharing expressions.

[0011] Based on the first aspect, in some optional embodiments, the multi-party secure computing method further includes: saving the result of the priority executed subtask for use by the next subtask; the type of the next subtask includes communication intensive and computing intensive, and is obtained based on the splitting of the multi-party secure computing task.

[0012] Based on the first aspect, in some optional embodiments, the communication-intensive subtask is a subtask involving interactive communication with other participants; and the computation-intensive subtask is a subtask not involving interactive communication with other participants.

[0013] In a second aspect, a multi-party secure computing device based on equivalent task transformation is provided, comprising:

[0014] A task conversion module, used to convert a communication-intensive subtask into a computation-intensive subtask; wherein the output result of the communication-intensive subtask is equivalent to the output result of the computation-intensive subtask, and the communication-intensive subtask is obtained by splitting the multi-party secure computing task;

[0015] A computing task execution module, used for executing the converted computing-intensive subtasks;

[0016] A communication task execution module, used for executing communication-intensive subtasks that have not been converted;

[0017] wherein the converted computationally intensive subtask and the unconverted communication intensive subtask are executed synchronously;

[0018] The task submission module is used to obtain the results of the subtasks that have been executed first and completed from the converted computing-intensive subtasks and the unconverted communication-intensive subtasks, and interrupt another unfinished subtask.

[0019] Based on the second aspect, in some optional embodiments, the task submission module is specifically used to, if the unconverted communication-intensive subtask submits the subtask result earlier than the converted computing-intensive subtask, obtain the subtask result of the unconverted communication-intensive subtask and interrupt the execution of the converted computing-intensive subtask; if the converted computing-intensive subtask submits the subtask result earlier than the unconverted communication-intensive subtask, obtain the subtask result of the converted computing-intensive subtask and interrupt the execution of the unconverted communication-intensive subtask.

[0020] Based on the second aspect, in some optional embodiments, the multi-party secure computing task is implemented based on a secret sharing protocol, a homomorphic encryption protocol or a confusion circuit protocol.

[0021] Based on the second aspect, in some optional embodiments, the multi-party secure computing task is implemented based on a secret sharing protocol, and the task conversion module is specifically used to: convert the communication-intensive subtask into the computing-intensive subtask according to the pre-acquired random number secret sharing share information;

[0022] Based on the second aspect, in some optional embodiments, the secret sharing calculations involved in the communication-intensive subtask and the computation-intensive subtask are based on mutually compatible expressions.

[0023] Based on the second aspect, in some optional embodiments, the mutually compatible expressions are preset vectorized secret sharing expressions.

[0024] Based on the second aspect, in some optional embodiments, the multi-party secure computing device also includes a storage module, which is used to save the results of the priority executed subtask for use by the next subtask; the type of the next subtask includes communication intensive and computing intensive, and is obtained based on the splitting of the multi-party secure computing task.

[0025] Based on the second aspect, in some optional embodiments, the communication-intensive subtask is a subtask involving interactive communication with other participants; and the computation-intensive subtask is a subtask not involving interactive communication with other participants.

[0026] According to a third aspect, a computer-readable storage medium is provided, which stores computer instructions. When the computer instructions are executed by a processing device, the processing device executes the multi-party secure computing method based on equivalent task transformation described in any embodiment of the first aspect.

[0027] In a fourth aspect, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the multi-party secure computing method based on equivalent task transformation described in any embodiment of the first aspect.

[0028] In an embodiment of the present invention, a communication-intensive subtask is transformed into a computation-intensive subtask; wherein the output results of the communication-intensive subtask are equivalent to those of the computation-intensive subtask, and the communication-intensive subtask is obtained based on the splitting of the multi-party secure computing task; the communication-intensive subtask and the computation-intensive subtask are executed, and the result of the subtask that is executed first is obtained from the two, and the other unfinished subtask is interrupted. By implementing the embodiment of the present invention, the problem of huge communication overhead in multi-party secure computing is solved, which is conducive to the large-scale application of multi-party secure computing. At the same time, the dynamic factors of computing resources and network resources of multi-party secure computing are comprehensively considered, so that the efficiency of multi-party secure computing is further improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0030] Figure 1 It is a flow chart of a multi-party secure computing method based on equivalent task transformation provided by an embodiment of the present invention;

[0031] Figure 2 Schematic diagram of a multi-party secure computing device based on equivalent task transformation provided by an embodiment of the present invention;

[0032] Figure 3 The present invention is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0033] To facilitate understanding of the embodiments of the present invention, the following will explain why there is a huge communication overhead in multi-party secure computing. In multi-party secure computing, the usual workflow is mainly divided into three steps. First, each participant generates multiple secret sharing shares for their own private data, retains one of the secret sharing shares locally, and sends the other secret sharing shares to other participants respectively; secondly, each participant constructs the joint secret sharing function into a circuit expression form and performs collaborative calculation, wherein the input of the circuit is the secret sharing share of the private data, and the output is the output result of the secret sharing function; finally, each participant reconstructs according to the output results of these secret sharing functions. Specifically, in the first stage, each participant generates a secret sharing share to protect the true value of the private data. For example, in the secret sharing algorithm of two parties, the value of the private data X will be randomly divided into two secret sharing shares X0 and X1. The participant with the private data X will send one of the secret sharing shares to the other participant. Since the other party has only one secret sharing share, it cannot know the true value of the private data X. Similarly, in the scenario of multiple participants, each participant has private data and can generate a corresponding number of secret sharing shares according to the number of participants and send them to other participants. In the second stage, each participant represents the secret sharing function that needs to be evaluated together as a circuit composed of gates. Some operations or calculations in secret sharing can be completed locally without the need for interaction with other participants, but there are also some operations or calculations that require interaction with other participants to ensure correctness. For example, in the secret sharing algorithm between two parties, in order to ensure that the two secret shares x i and i The product of is equal to the reconstructed real privacy data x*y, that is, it is necessary to calculate x*y=x0y0+x0y1+x1y0+x1y1, where x0y0 and x1y1 can be completed locally by the participants without interaction, while x0y1 and x1y0 involve the product operation of the secret sharing shares of different participants, so at least one round of communication interaction operation is required to complete. It should be noted that the multiplication operation of local operation only takes a few microseconds to complete, while the communication interaction operation through the Internet takes at least a few milliseconds, so the communication interaction operation is the main time cost in multi-party secure computing. In the last stage, each participant reconstructs the output of the circuit, which is symmetrical with the secret sharing process in the first stage and does not consume much time cost. Therefore, based on the description of each stage above, the main time cost of multi-party secure computing is the communication interaction operation in the second stage. Such communication time cost is unacceptable for scenarios that require a large amount of data in neural network training scenarios or similar related scenarios.

[0034] In order to solve the technical problem that multi-party secure computing is difficult to deploy in practical applications due to huge communication overhead, the present invention provides a multi-party secure computing method based on equivalent task conversion, the method comprising: converting a communication-intensive subtask into a computation-intensive subtask; wherein the output results of the communication-intensive subtask and the computation-intensive subtask are equivalent, and the communication-intensive subtask is obtained based on the splitting of the multi-party secure computing task; executing the communication-intensive subtask and the computation-intensive subtask, obtaining the result of the subtask that is executed first and completed from the two, and interrupting the other unfinished subtask. In this embodiment, the communication-intensive subtask in the multi-party secure computing task is converted into an equivalent task by a computation-intensive subtask, and the dynamic factors of the computing resources and network resources of the multi-party secure computing are comprehensively considered. The faster one of the two choices of the communication-intensive subtask and the computation-intensive subtask is output as the result, which not only solves the problem of huge communication overhead in multi-party secure computing, is conducive to the large-scale application of multi-party secure computing, but also further optimizes the efficiency of multi-party secure computing.

[0035] In order to enable those skilled in the art to better understand the present application, the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0036] See also Figure 1 , Figure 1 This is a flow chart of a multi-party secure computing method based on equivalent task transformation provided by an embodiment of the present invention, which specifically includes:

[0037] S102, converting a communication-intensive subtask into a computation-intensive subtask; wherein the output result of the communication-intensive subtask is equivalent to the output result of the computation-intensive subtask, and the communication-intensive subtask is obtained by splitting the multi-party secure computing task.

[0038] S104: Execute the communication-intensive subtask and the computation-intensive subtask, obtain the result of the subtask that is executed first and completed, and interrupt the other unfinished subtask.

[0039] Based on the above description, it can be known that the multiplication operation in local calculation only takes a few microseconds to complete, while the communication interaction operation through the Internet takes at least a few milliseconds, that is to say, the computation-intensive subtask usually consumes less time overhead, while the communication-intensive subtask consumes more time overhead due to the need for communication interaction, and the time overhead of the two is usually several orders of magnitude different. Therefore, the multi-party secure computing method based on equivalent task conversion proposed in the present invention converts the communication-intensive subtask into a computation-intensive subtask, and the computation-intensive subtask obtained after the conversion process is an equivalent subtask to the original communication-intensive subtask, and the output results of the two when the execution is completed are equivalent. By utilizing the equivalent task conversion operation, the communication-intensive subtask that is usually more time-consuming can be converted into the computation-intensive subtask that is usually less time-consuming, thereby reducing the number of communication-intensive subtasks, and then reducing the time overhead caused by communication interaction.

[0040] However, in order to save time overhead in communication, simply converting communication-intensive subtasks into computation-intensive subtasks does not ensure that each conversion will bring time benefits. For example, when the computing speed of the computing equipment used by the participants is slow but the communication speed is fast, converting the communication-intensive subtask into a computation-intensive subtask may result in negative benefits compared to the original computation-intensive subtask; for another example, when the computational scale of the converted computation-intensive subtask is large, the time spent on completing the computation-intensive subtask may also be greater than the time spent on the original communication-intensive subtask. In order to ensure that each conversion can bring time benefits, conventional solutions adopt a static conversion strategy to limit the scale of conversion of communication-intensive subtasks to computation-intensive subtasks to a fixed empirical value, such as limiting the number of communication interaction operations to 3-4 conversions to local computing operations, thereby preventing the time benefits of the converted computation-intensive subtasks from being lower than the original communication-intensive subtasks. However, this static conversion strategy will miss many optimization opportunities and cannot maximize the conversion benefits. In order to solve the drawbacks of the static conversion strategy, the embodiment of the present invention proposes a solution based on the dynamic conversion strategy. The basic idea of ​​the dynamic conversion strategy is that the two types of subtasks model the time of calculation and communication at runtime, and increase the conversion scale until the time spent by the converted computation-intensive task exceeds a dynamically evaluated time interval, which means that the computation time overhead of the converted computation-intensive task is too large, and the conversion cannot bring benefits. Therefore, it is necessary to interrupt the converted computation-intensive task to avoid increasing the total time cost. However, it is extremely difficult to dynamically evaluate the time interval and adjust it at runtime, because it involves a reduction in the amount of communication and an increase in the amount of calculation, which makes it difficult to accurately model and evaluate the time. However, the embodiment of the present invention successfully observed that in multi-party secure computing, the communication-intensive subtask is mainly for interactive communication with other participants, and does not consume or almost consumes computing resources, while the computation-intensive subtask is mainly for local calculation, does not involve or almost does not involve interactive communication with other participants, and does not consume or almost consumes communication resources. Therefore, even if the communication-intensive subtask and the computation-intensive subtask are run simultaneously or synchronously, there will be no competition for resources, and the two types of subtasks can be operated in parallel at almost full speed in the system. Based on this, in an embodiment of the present invention, the communication-intensive subtask and the computing-intensive subtask can be executed simultaneously or synchronously, and the completion time of the computing-intensive subtask after the conversion is used to evaluate whether the conversion operation can bring benefits, that is, as the time interval mentioned in the above-mentioned dynamic conversion strategy.Specifically, when the original communication-intensive subtask is completed earlier than the transformed computing-intensive subtask, the task result submitted by the original communication-intensive subtask is used, and the transformed computing-intensive subtask is interrupted to avoid the transformed computing-intensive subtask from incurring a higher time cost; and when the transformed computing-intensive subtask is completed earlier than the original communication-intensive subtask, the task result submitted by the transformed computing-intensive subtask is used, and the original communication-intensive subtask is interrupted, indicating that the conversion operation can bring time benefits. In summary, the embodiment of the present invention adopts the simultaneous or synchronous execution of communication-intensive subtasks and computing-intensive subtasks, obtains the result of the subtask that is executed first from the two, and interrupts the other unfinished subtask, so as to maximize the benefits of the conversion operation, thereby further optimizing the efficiency of multi-party secure computing.

[0041] In some embodiments, the multi-party secure computing tasks of the embodiments of the present invention are implemented based on a secret sharing protocol. In other embodiments, the multi-party secure computing tasks of the embodiments of the present invention can also be implemented based on a homomorphic encryption protocol or a confusion circuit protocol. The present invention does not make specific limitations on this.

[0042] The following will introduce the process of converting the communication-intensive subtask into the computation-intensive subtask. The participants obtain the random number secret sharing share information in advance, and convert the communication-intensive subtask into the computation-intensive subtask according to the pre-acquired random number secret sharing share information. Specifically, the random number secret sharing share information can be the secret sharing share of the random number product of each participant. For example, in a scenario where two parties calculate the product, participants P0 and P1 have a secret value x and a secret value y respectively. Participants P0 and P1 need to complete the calculation x*y without revealing their secret values ​​to each other. First, participants P0 and P1 generate a random number r x , r y , and the secret sharing share of the random number generated by the two parties is recorded as [[r x ]] and [[r y ]] and save it locally, where [[·]] is represented as secret sharing; secondly, participants P0 and P1 reconstruct xr x and yr y , and each participant P0 and P1 calculates:

[0043] (xr x )(yr y )[[1]]+(xr x )[[r y ]]+[[r x ]](yr y )+[[r x ry ]]

[0044] where P0 and P1 reconstruct xr x and yr y Communication interaction is required to complete, and [[r x r y ]] requires additional computation, but can be pre-acquired before the task starts, because r x 、r y It has nothing to do with the secret value actually input. To reconstruct in the communication interaction operation, at least one round of communication is required to send the corresponding secret sharing to other participants. However, when performing multiple interactive operations, the conversion of communication-intensive subtasks into computation-intensive subtasks according to the embodiment of the present invention can reduce the number of communication rounds. The following is an example of two consecutive interactive operations. The first subtask O1=x*y, and the second subtask O2=O1*z, where x, y, and z are secret values ​​and are protected by secret sharing. Based on the conventional secret sharing protocol, the first subtask O1=x*y requires one round of communication, and the second subtask O2=O1*z also requires one round of communication to complete the calculation of x*y*z. However, the following optimized calculation method can reduce the number of communications:

[0045] O2=O1*z

[0046] =x*y*z

[0047] =(xr x +r x )(yr y +r y )(zr z +r z )

[0048] =(xr x )(yr y )(zr z )+(xr x )(yr y )r z +(xr x )r y (zr z )+r x (yr y )(zr z )+

[0049] (xr x )r y r z +r x (yr y )r z+ r x ry (zr z )+r x r y r z (1)

[0050] In the above equation (1), r x 、r y 、r z It is a random number generated by the collaboration of all parties involved, and the relevant random secret is shared [[r x ]]、[[r y ]]、[[r z ]]Keep it local, each participant first reconstructs (xr x )、(yr y )、(zr z ), and [[1]] is recorded as the secret sharing share of 1, so the secret sharing of O2 can be expressed as:

[0051] [[O2]]=(xr x )(yr y )(zr z )[[1]]

[0052] +(xr x )(yr y )[[r z ]]+(xr x )(zr z )[[r y ]]+(yr y )(zr z )[[r x ]]

[0053] +(xr x )[[r y r z ]]+(yr y )[[r x r z ]] + [[r x r y ]](zr z )

[0054] +[[r x r y r z ]](1)

[0055] Similarly, x r y ]]、[[r y r z ]]、[[rx r z ]]、[[r x r y r z ]] can be completed before the task starts, so only one round of communication interaction is needed to calculate it in the O2 subtask, that is, in the reconstruction (xr x )、(yr y )、(zr z ) requires one round of communication interaction. For four or more consecutive interactive operations, similar conversion to computationally intensive subtasks is performed to save more communication costs. In summary, the conversion of communication-intensive subtasks to computationally intensive subtasks can save significant communication time overhead compared to the original communication-intensive subtasks, and the original communication-intensive subtasks and the converted computationally intensive subtasks have equivalent output calculation results when they are completed.

[0056] In some embodiments, before converting a communication-intensive subtask into a computation-intensive subtask, the multi-party secure computing participants may, after obtaining the multi-party secure computing task, split the multi-party secure computing task into multiple subtasks, the types of which include the above-mentioned communication-intensive subtasks and computation-intensive subtasks.

[0057] In some embodiments, to ensure that the output results of the transformed computation-intensive subtask and the original communication-intensive subtask are compatible with each other, the secret sharing calculations involved in the original communication-intensive subtask and the transformed computation-intensive subtask can be implemented based on mutually compatible expressions, wherein the mutually compatible expressions can be preset vectorized secret sharing expressions. In this way, even if the transformed computation-intensive subtask is interrupted due to a large computational scale resulting in a computational time overhead greater than the communication time overhead of the original communication-intensive subtask, the output result of the original communication-intensive subtask can be used as a backup.

[0058] The following describes how to achieve compatibility between the output results of the original communication-intensive subtask and the transformed computation-intensive subtask using the preset vectorized secret sharing expression. The following table shows the notation of the vectorized secret sharing expression.

[0059]

[0060]

[0061] Next, we can use the notations in the table above to express the output results of the original communication-intensive subtask and the output results of the transformed computation-intensive subtask.

[0062] The evaluation process of the multiplication operation of two parties calculating x*y can be expressed as:

[0063] [[x*y]]=[[r x r y ]]+[[r y ]](xr x )+[[r x ]](yr y )+(xr x )(yr y )

[0064] =(1,xr x ,yr y ,(xr x )(yr y ))*([[r x r y ]],[[r y ]],[[r x ]],[[1]])

[0065] =ovec(x*y)*rvec(r x* r y )

[0066] That is to say, [[x*y]] can be expressed by ovec(x*y) and rvec(r x* r y ) is represented by the product of .

[0067] The evaluation process of the addition operation of two parties calculating x+y can be expressed as:

[0068] [[x+y]]=[[r x ]]+[[xr x ]]+[[r y ]]+[[yr y ]]

[0069] =(1,xr x ,1,yr y )*(([[r x ]],[[1]],[[r y ]],[[1]]))

[0070] =ovec(x+y)*rvec(r x +r y )

[0071] That is to say, [[x+y]] can be expressed by ovec(x+y) and rvec(rvec x +r y) is represented by the product of .

[0072] As described above, both the multiplication and addition operations of two secret values ​​can be represented by the vectorized secret sharing in the above table, so the evaluation process of the original communication-intensive subtask can be expressed by the above vectorized secret sharing.

[0073] Based on the conventional secret sharing protocol, the product operation between three consecutive secret values ​​involves communication interaction operations. After being converted into computationally intensive subtasks, it can also be expressed by vectorized secret sharing similar to the above table. For example, the above [[O2]] can be expressed as:

[0074] [[O2]]=[[x*y*z]]=(xr x )(yr y )(zr z )[[1]]

[0075] +(xr x )(yr y )[[r z ]]+(xr x )(zr z )[[r y ]]+(yr y )(zr z )[[r x ]]

[0076] +(xr x )[[r y r z ]]+(yr y )[[r x r z ]] + [[r x r y ]](zr z )

[0077] +[[r x r y r z ]]

[0078] =ovec(x*y*z)*rvec(r x *r y *r z )

[0079] Thus, after being transformed into a computationally intensive subtask [[O2]], it can also be expressed using vectorized secret sharing, i.e., using ovec(x*y*z) and rvec(r x *r y *rz ) is represented by the product of .

[0080] The following is an example of a multi-party secure computing task. In the secure machine learning task, both parties need to use secret-shared training data x, label y and parameter w to jointly train a linear model, whose gradient is expressed as: (wx+y)*x.

[0081] Through the transformed computationally intensive subtasks and the vectorized secret sharing expression, the gradient calculation process is as follows: First, ovec(w*x) and rvec(r w *r x ), then calculate ovec(w*x+y) and rvec(r w *r b +r y ), then calculate ovec((w*x+y)*x) and rvec((r w *r b +r y )*r x ), and finally calculate ovec((w*x+y)*x) and rvec((r w *r b +r y )*r x It should be noted that the rvec operation only contains relevant random numbers and has nothing to do with the actual input secret value, so the rvec-related calculations can be obtained in advance, that is, completed before the actual task begins.

[0082] In short, through the above vectorized secret sharing expression, the calculation results of the original communication-intensive subtask and the converted communication-intensive subtask can be made compatible with each other, so that even if the converted calculation-intensive subtask is interrupted due to the large calculation scale causing the calculation time overhead to be greater than the communication time overhead of the original communication-intensive subtask, the output result of the original communication-intensive subtask can be used as a backup. Therefore, even if the above interruption occurs, there is no risk of increasing the total time cost.

[0083] In some embodiments, after executing step S104, the result of the subtask that is executed first is saved for use by the next subtask. As described above, the output results between the original communication-intensive subtask and the transformed computation-intensive subtask are based on mutually compatible vectorized secret sharing expressions, so the result of the subtask that is executed first, whether it is the original communication-intensive subtask or the transformed computation-intensive subtask, can be used as the next subtask. The next subtask can also be obtained by splitting based on a multi-party secure computing task, and the type of task can be communication-intensive or computation-intensive.

[0084] In summary, an embodiment of the present invention provides a multi-party secure computing method based on equivalent task conversion, which converts a communication-intensive subtask into a computation-intensive subtask; wherein the output results of the communication-intensive subtask are equivalent to those of the computation-intensive subtask, and the communication-intensive subtask is obtained based on the splitting of the multi-party secure computing task; the communication-intensive subtask and the computation-intensive subtask are executed, and the result of the subtask that is executed first is obtained from the two, and the other unfinished subtask is interrupted. In this embodiment, the communication-intensive subtask in the multi-party secure computing task is converted into a computation-intensive subtask for equivalent tasks, and the dynamic factors of the computing resources and network resources of the multi-party secure computing are comprehensively considered. The faster one of the two choices of the communication-intensive subtask and the computation-intensive subtask is output as the result, which not only solves the problem of huge communication overhead in multi-party secure computing, but also is conducive to the large-scale application of multi-party secure computing, and further optimizes the efficiency of multi-party secure computing.

[0085] See also Figure 2 , Figure 2 1 is a schematic diagram of a multi-party security computing device based on equivalent task conversion provided by an embodiment of the present invention. The multi-party security computing device based on equivalent task conversion 200 includes: a task conversion module 201, a computing task execution module 202, a communication task execution module 203 and a task submission module 204, wherein:

[0086] A task conversion module 201 is used to convert a communication-intensive subtask into a computation-intensive subtask; wherein the output result of the communication-intensive subtask is equivalent to the output result of the computation-intensive subtask, and the communication-intensive subtask is obtained by splitting the multi-party secure computing task;

[0087] A computing task execution module 202, used for executing the converted computing-intensive subtasks;

[0088] The communication-type task execution module 203 is used to execute the communication-intensive subtasks that have not been converted;

[0089] wherein the converted computationally intensive subtask and the unconverted communication intensive subtask are executed synchronously;

[0090] The task submission module 204 is used to obtain the results of the subtasks that have been executed first and completed from the converted computing-intensive subtasks and the unconverted communication-intensive subtasks, and interrupt another unfinished subtask.

[0091] In some embodiments, the task submission module 204 is specifically used to, if the unconverted communication-intensive subtask submits the subtask result earlier than the converted computing-intensive subtask, obtain the subtask result of the unconverted communication-intensive subtask and interrupt the execution of the converted computing-intensive subtask; if the converted computing-intensive subtask submits the subtask result earlier than the unconverted communication-intensive subtask, obtain the subtask result of the converted computing-intensive subtask and interrupt the execution of the unconverted communication-intensive subtask. Specifically, if the communication-intensive subtask that has not been converted submits its subtask result earlier than the computing-intensive subtask that has been converted, the task submission module 204 obtains the subtask result of the communication-intensive subtask that has not been converted from the communication-intensive task execution module 203, and sends an interrupt signal to the computing-intensive task execution module 202; if the computing-intensive subtask that has been converted submits its subtask result earlier than the communication-intensive subtask that has not been converted, the task submission module 204 obtains the subtask result of the computing-intensive subtask that has been converted from the computing-intensive task execution module 202, and sends an interrupt signal to the communication-intensive task execution module 203.

[0092] In some embodiments, the multi-party secure computing task is implemented based on a secret sharing protocol, a homomorphic encryption protocol, or a confusion circuit protocol.

[0093] In some embodiments, when the multi-party secure computing task is implemented based on a secret sharing protocol, the task conversion module 201 is specifically used to: convert the communication-intensive subtask into the computing-intensive subtask according to pre-acquired random number secret sharing share information.

[0094] In some embodiments, secret sharing calculations involved in the communication-intensive subtask and the computation-intensive subtask are based on mutually compatible expressions.

[0095] In some embodiments, the mutually compatible expressions are preset vectorized secret sharing expressions.

[0096] In some embodiments, the multi-party secure computing device 200 also includes a storage module 206, which is used to save the results of the priority executed subtask for use by the next subtask; the type of the next subtask includes communication intensive and computing intensive, and is obtained based on the splitting of the multi-party secure computing task.

[0097] In some embodiments, the communication-intensive subtask is a subtask involving interactive communication with other participants; and the computation-intensive subtask is a subtask not involving interactive communication with other participants.

[0098] In some embodiments, the multi-party secure computing device 200 also includes a task division module 205, which is used to obtain a multi-party secure computing task and split the multi-party secure computing task to obtain multiple sub-tasks, where the types of the multiple sub-tasks include communication-intensive sub-tasks and computing-intensive sub-tasks, and output the split multiple sub-tasks to the task conversion module 201.

[0099] In some embodiments, the relevant description of the device embodiment can refer to Figure 1 For the sake of brevity, the relevant description of the method embodiment will not be repeated here.

[0100] In summary, the multi-party secure computing device based on equivalent task conversion provided by the embodiment of the present invention converts the communication-intensive subtask in the multi-party secure computing task into an equivalent task into a computing-intensive subtask, and at the same time comprehensively considers the dynamic factors of computing resources and network resources of the multi-party secure computing, and selects the faster one of the two options between the communication-intensive subtask and the computing-intensive subtask as the result output, which not only solves the problem of huge communication overhead in multi-party secure computing, but also is conducive to the large-scale application of multi-party secure computing, and further optimizes the efficiency of multi-party secure computing.

[0101] Figure 3 A block diagram of an electronic device for multi-party secure computing based on equivalent task transformation provided by an embodiment of the present application is shown. Figure 3 As shown, the electronic device 300 includes a main processor 302, an internal bus 304, a network interface 306, a main memory 308, and an auxiliary processor 310 and an auxiliary memory 312, and an auxiliary processor 320 and an auxiliary memory 322. The main processor 302 is connected to the main memory 308, and the main memory 308 can be used to store computer instructions executable by the main processor 302, so as to realize Figure 1The multi-party secure computing method 100 based on equivalent task transformation shown includes some or all of the steps, and also includes any possible combination or combination of the steps and possible replacement or variation. The network interface 306 is used to provide network connection and send and receive data through the network. The internal bus 304 is used to provide internal data interaction between the main processor 302, the network interface 306, the auxiliary processor 310 and the auxiliary processor 320. Among them, the auxiliary processor 310 is connected to the auxiliary memory 312 and provides auxiliary computing capabilities together, and the auxiliary processor 320 is connected to the auxiliary memory 322 and provides auxiliary computing capabilities together. The auxiliary processor 310 and the auxiliary processor 320 can provide the same or different auxiliary computing capabilities, including but not limited to computing capabilities optimized for specific computing requirements such as parallel processing capabilities or tensor computing capabilities, computing capabilities optimized for specific algorithms or logical structures such as iterative computing capabilities or graph computing capabilities, etc. The auxiliary processor 310 and the auxiliary processor 320 may include one or more processors of a specific type, such as a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), etc., so as to provide customized functions and structures. In some exemplary embodiments, the electronic device 300 may not include an auxiliary processor, may include only one auxiliary processor, or may include any number of auxiliary processors each having a corresponding customized function and structure, which is not specifically limited herein. Figure 3 The architecture of the two auxiliary processors shown in is only illustrative and should not be construed as limiting. In addition, the main processor 302 may include a single-core or multi-core computing unit for providing the functions and operations required by the embodiments of the present application. In addition, the main processor 302 and the auxiliary processor (such as Figure 3 The auxiliary processor 310 and the auxiliary processor 320 in the electronic device 300 may have different architectures, that is, the electronic device 300 may be a system based on a heterogeneous architecture. For example, the main processor 302 may be a general-purpose processor such as a CPU based on an instruction set operating system, and the auxiliary processor may be a graphics processor GPU suitable for parallel computing or a dedicated accelerator suitable for neural network model-related operations. Auxiliary memory (e.g. Figure 3 The auxiliary memory 312 and auxiliary memory 322 shown in the figure can be used to cooperate with the corresponding auxiliary processors to realize customized functions and structures. The main memory 308 is used to store necessary instructions, software, configurations, data, etc. so as to cooperate with the main processor 302 to provide the functions and operations required by the embodiments of the present application. In some exemplary embodiments, the electronic device 300 may not include auxiliary memory, may include only one auxiliary memory, or may include any number of auxiliary memories, which are not specifically limited here. Figure 3The architecture of the two auxiliary memories shown in is illustrative only and should not be construed as limiting. The main memory 308, and possibly the auxiliary memory, may include one or more of the following features: volatile, non-volatile, dynamic, static, readable / writable, read-only, random access, sequential access, location addressability, file addressability, and content addressability, and may include random access memory (RAM), flash memory, read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, removable disks, recordable and / or rewritable compact disks (CDs), digital versatile disks (DVDs), mass storage media devices, or any other form of suitable storage media. The internal bus 304 may include any one or a combination of different bus structures, such as a memory bus or memory controller, a peripheral bus, a universal serial bus, and / or a processor or local bus utilizing any one of a variety of bus architectures. It should be understood that, Figure 3 The structure of the electronic device 300 shown does not constitute a specific limitation on the relevant device or system. In some exemplary embodiments, the electronic device 300 may include more or fewer components than the specific embodiments and drawings, or combine certain components, or split certain components, or have a different arrangement of components.

[0102] The specific embodiments provided in this application may include a computer-readable storage medium or be combined with a computer-readable storage medium, such as one or more storage devices capable of providing non-temporary data storage. The computer-readable storage medium / storage device may be configured to store data, programmers and / or instructions, which, when executed by a processor of a device or apparatus provided in a specific embodiment of this application, enable these devices or apparatuses to perform related operations. The computer-readable storage medium / storage device may include one or more of the following features: volatility, non-volatility, dynamic, static, readable / writable, read-only, random access, sequential access, location addressability, file addressability, and content addressability. In one or more exemplary embodiments, the computer-readable storage medium / storage device may be integrated into the device or apparatus provided in a specific embodiment of this application or belong to a common system. Computer-readable storage media / storage devices may include optical storage devices, semiconductor storage devices and / or magnetic storage devices, etc., and may also include random access memory (RAM), flash memory, read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, removable disks, recordable and / or rewritable compact disks (CDs), digital versatile disks (DVDs), mass storage media devices or any other form of suitable storage media.

[0103] The above is the implementation method of the embodiment of the present application. It should be noted that the steps in the method described in the specific embodiment of the present application can be adjusted in order, merged and deleted according to actual needs. In the above embodiments, the description of each embodiment has its own emphasis. For the part that is not described in detail in a certain embodiment, refer to the relevant description of other embodiments. It is understandable that the structure shown in the embodiment of the present application and the accompanying drawings does not constitute a specific limitation on the relevant device or system. In other embodiments of the present application, the relevant device or system may include more or fewer components than the specific embodiments and the accompanying drawings, or combine certain components, or split certain components, or have different component arrangements. Those skilled in the art will understand that, without departing from the spirit and scope of the specific embodiments of the present application, various modifications or changes can be made to the arrangement, operation and details of the methods and equipment recorded in the specific embodiments; without departing from the principles of the embodiments of the present application, several improvements and modifications can also be made, and these improvements and modifications are also regarded as the scope of protection of the present application.

Claims

1. A multi-party secure computing method based on equivalent task transformation, characterized in that: include: Transform communication-intensive subtasks into computation-intensive subtasks; The output results of the communication-intensive subtask are equivalent to those of the computation-intensive subtask, and the communication-intensive subtask is obtained by splitting the multi-party secure computation task; The communication-intensive subtask and the computation-intensive subtask are executed, and the result of the subtask that is executed and completed with priority is obtained from the two, and another unfinished subtask is interrupted.

2. The multi-party secure computing method based on equivalent task transformation according to claim 1 is characterized in that: Get the result of the subtask that is executed first from both, and interrupt the other unfinished subtask, including: If the communication-intensive subtask submits the subtask result earlier than the computation-intensive subtask, obtaining the subtask result of the communication-intensive subtask and interrupting the execution of the computation-intensive subtask; If the computation-intensive subtask submits the subtask result earlier than the communication-intensive subtask, the subtask result of the computation-intensive subtask is obtained, and the execution of the communication-intensive subtask is interrupted.

3. The multi-party secure computing method based on equivalent task transformation according to claim 1 is characterized in that: The multi-party secure computing task is implemented based on a secret sharing protocol, a homomorphic encryption protocol or a confusion circuit protocol.

4. The multi-party secure computing method based on equivalent task transformation according to claim 3 is characterized in that: The multi-party secure computing task is implemented based on a secret sharing protocol, transforming a communication-intensive subtask into a computing-intensive subtask, including: The communication-intensive subtask is converted into the computation-intensive subtask according to the pre-acquired random number secret sharing share information.

5. The multi-party secure computing method based on equivalent task transformation according to claim 4 is characterized in that: The secret sharing calculations involved in the communication-intensive subtask and the computation-intensive subtask are based on mutually compatible expressions.

6. The multi-party secure computing method based on equivalent task transformation according to claim 5 is characterized in that: The mutually compatible expressions are preset vectorized secret sharing expressions.

7. The multi-party secure computing method based on equivalent task transformation according to claim 6 is characterized in that: The multi-party secure computing method further includes: The result of the subtask that has been executed with priority is saved for use by the next subtask; the type of the next subtask includes communication intensive and computation intensive, and is obtained based on the splitting of the multi-party secure computing task.

8. The multi-party secure computing method based on equivalent task transformation according to any one of claims 1 to 7, characterized in that: The communication-intensive subtask is a subtask involving interactive communication with other participants; the computation-intensive subtask is a subtask not involving interactive communication with other participants.

9. A multi-party secure computing device based on equivalent task transformation, characterized in that: include: A task conversion module, used to convert communication-intensive subtasks into computation-intensive subtasks; The output results of the communication-intensive subtask are equivalent to those of the computation-intensive subtask, and the communication-intensive subtask is obtained by splitting the multi-party secure computation task; A computing task execution module, used for executing the converted computing-intensive subtasks; A communication task execution module, used for executing communication-intensive subtasks that have not been converted; wherein the converted computationally intensive subtask and the unconverted communication intensive subtask are executed synchronously; The task submission module is used to obtain the results of the subtasks that have been executed first and completed from the converted computing-intensive subtasks and the unconverted communication-intensive subtasks, and interrupt another unfinished subtask.

10. The multi-party secure computing device based on equivalent task transformation according to claim 9, characterized in that: The task submission module is specifically used to: If the unconverted communication-intensive subtask submits a subtask result earlier than the converted computing-intensive subtask, then obtaining the subtask result of the unconverted communication-intensive subtask and interrupting the execution of the converted computing-intensive subtask; If the converted computing-intensive subtask submits a subtask result earlier than the unconverted communication-intensive subtask, the subtask result of the converted computing-intensive subtask is obtained, and the execution of the unconverted communication-intensive subtask is interrupted.

11. The multi-party secure computing device based on equivalent task transformation according to claim 9, characterized in that: The multi-party secure computing task is implemented based on a secret sharing protocol, a homomorphic encryption protocol or a confusion circuit protocol.

12. The multi-party secure computing device based on equivalent task transformation according to claim 11, characterized in that: The multi-party secure computing task is implemented based on a secret sharing protocol, and the task conversion module is specifically used to: The communication-intensive subtask is converted into the computation-intensive subtask according to the pre-acquired random number secret sharing share information.

13. The multi-party secure computing device based on equivalent task transformation according to claim 12, characterized in that: The secret sharing calculations involved in the communication-intensive subtask and the computation-intensive subtask are based on mutually compatible expressions.

14. The multi-party secure computing device based on equivalent task transformation according to claim 13, characterized in that: The mutually compatible expressions are preset vectorized secret sharing expressions.

15. The multi-party secure computing device based on equivalent task transformation according to claim 14, characterized in that: The multi-party secure computing device also includes a storage module. The storage module is used to save the result of the subtask that has been executed with priority for use by the next subtask; the type of the next subtask includes communication intensive and computation intensive, and is obtained based on the splitting of the multi-party secure computing task.

16. The multi-party secure computing device based on equivalent task transformation according to any one of claims 9 to 15, characterized in that: The communication-intensive subtask is a subtask involving interactive communication with other participants; the computation-intensive subtask is a subtask not involving interactive communication with other participants.

17. A computer-readable storage medium storing computer instructions, characterized in that: When the computer instruction is executed by a processing device, the processing device executes the multi-party secure computing method based on equivalent task transformation according to any one of claims 1 to 8.

18. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the multi-party secure computing method based on equivalent task transformation according to any one of claims 1 to 8.