A multi-party computation method and electronic device

By sequentially receiving and combining the computing modules sent by the algorithm-provided nodes, and executing the computing steps step by step according to the algorithm dependencies, the problem of low computing efficiency caused by downloading large amounts of data computing modules in the existing technology is solved, and efficient collaborative computing is achieved.

CN115604262BActive Publication Date: 2026-11-24LENOVO (BEIJING) LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211184741.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-27
Publication Date
2026-11-24
Estimated Expiration
2042-09-27

AI Technical Summary

Technical Problem

When multiple computing parties perform collaborative computing, the existing technology requires downloading the entire computing module, which slows down the computing process and affects computing efficiency, especially when the amount of data is large.

Method used

By receiving computation modules sequentially sent by nodes through the algorithm, and gradually combining and executing computation steps according to algorithm dependencies, the computation of dynamically changing intermediate modules is realized, gradually forming a complete combination of computation modules to perform the target algorithm computation.

Benefits of technology

It improves computational efficiency, reduces network performance requirements, enables real-time computation during reception, and reduces computation time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115604262B_ABST
    Figure CN115604262B_ABST
Patent Text Reader

Abstract

This application discloses a multi-party computation method and electronic device. The method applied to a computing node includes: sequentially receiving multiple computing modules sent by an algorithm providing node, wherein the multiple computing modules can be combined into a computing module combination according to the algorithm dependency relationship corresponding to the target algorithm, the computing module combination is used for the execution of the target algorithm on the computing node, and the multiple computing modules are sent sequentially by the algorithm providing node according to the algorithm dependency relationship; during the process of receiving the multiple computing modules, executing the computation steps in the target algorithm corresponding to the received computing modules.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of collaborative computing among multiple devices, and particularly to a multi-party computing method and electronic device. Background Technology

[0002] Currently, when multiple computing parties collaborate on computation, they typically need to use pre-acquired computation modules, which can be provided by the algorithm provider. However, during actual computation, each computing party must download the entire computation module before it can be used for calculation. If the computation module contains a large amount of data, the download process can be lengthy, hindering the entire computation process and impacting efficiency. Summary of the Invention

[0003] This application provides a multi-party computation method applied to a computing node, including:

[0004] The algorithm provider receives multiple computing modules sequentially from the algorithm provider node. These multiple computing modules can be combined into a computing module combination according to the algorithm dependency relationship corresponding to the target algorithm. The computing module combination is used for the execution of the target algorithm on the computing node. The multiple computing modules are sent sequentially by the algorithm provider node according to the algorithm dependency relationship.

[0005] During the process of receiving the plurality of computing modules, the computing steps in the target algorithm corresponding to the received computing modules are executed.

[0006] Alternatively, the method may further include:

[0007] The received computing modules are sequentially associated according to the algorithm dependencies;

[0008] Based on the progressively associated computation modules, a dynamically changing intermediate module is formed, wherein the intermediate module is used to implement the computation steps corresponding to the computation modules it contains.

[0009] Optionally, the execution of the computation steps in the target algorithm corresponding to the received computation module includes:

[0010] The input sub-data of each computing node is used as the input of the intermediate module;

[0011] Collaborative data is calculated based on the intermediate module, and the collaborative data is used for collaborative calculations among multiple computing nodes.

[0012] Optionally, the input sub-data includes multiple values, and the order in which the various computing nodes input the values ​​into the intermediate module is related.

[0013] Optionally, the execution of the computation steps in the target algorithm corresponding to the received computation module includes:

[0014] Under the secure multi-party computation protocol, the target computation result corresponding to the target algorithm is generated based on the collaborative data corresponding to each of the computing nodes.

[0015] Optionally, the computation module combination includes multiple logical operation groups, and each logical operation group includes multiple computation modules. The execution of the computation steps in the target algorithm corresponding to the received computation modules includes:

[0016] Based on the logical operation group, multiple sub-results corresponding to the target algorithm are generated;

[0017] Based on the multiple sub-results, the target calculation result corresponding to the target algorithm is formed.

[0018] This application also provides a multi-party computation method, applied to an algorithm providing node, including:

[0019] Multiple computing modules are obtained, wherein the multiple computing modules can be combined into a computing module combination according to the algorithm dependency relationship corresponding to the target algorithm, and the computing module combination is used for the execution of the target algorithm on the computing node;

[0020] According to the algorithm dependency relationship, the computing module is sent to multiple computing nodes in sequence, so that the computing nodes execute the computing steps in the target algorithm corresponding to the received computing modules during the process of receiving the multiple computing modules.

[0021] Optionally, before sending the computing module to the computing node, the method further includes:

[0022] Based on the algorithm dependencies, the obtained computing modules are combined into the computing module combination.

[0023] This application also provides an electronic device, including:

[0024] A receiving module is configured to receive, sequentially, multiple computing modules sent by an algorithm providing node. The multiple computing modules can be combined into a computing module combination according to the algorithm dependency relationship corresponding to the target algorithm. The computing module combination is used for the execution of the target algorithm on the computing node. The multiple computing modules are sent sequentially by the algorithm providing node according to the algorithm dependency relationship.

[0025] The processing module is configured to execute the calculation steps in the target algorithm corresponding to the received calculation modules during the process of receiving the plurality of calculation modules.

[0026] This application also provides an electronic device, including:

[0027] The acquisition module is configured to acquire multiple computing modules, wherein the multiple computing modules can form a computing module combination according to the algorithm dependency relationship corresponding to the target algorithm, and the computing module combination is used for the execution of the target algorithm on the computing node;

[0028] The sending module is configured to sequentially send the computing modules to multiple computing nodes according to the algorithm dependencies, so that the computing nodes, while receiving the multiple computing modules, execute the computing steps in the target algorithm corresponding to the received computing modules. Attached Figure Description

[0029] Figure 1 This is a flowchart of a multi-party computation method applied to a computing node according to an embodiment of this application;

[0030] Figure 2 This is a flowchart of one embodiment of the multi-party computation method according to the present application;

[0031] Figure 3 Examples of embodiments of this application Figure 1 A flowchart of one embodiment of step S200;

[0032] Figure 4 A flowchart illustrating a multi-party computation method applied to nodes in an algorithm according to embodiments of this application;

[0033] Figure 5 A schematic diagram illustrating the connection relationship between nodes and computing nodes is provided for the algorithm in the embodiments of this application;

[0034] Figure 6 This is a schematic diagram of the architecture of a computing node in an embodiment of this application, which utilizes multiple computing modules for computation.

[0035] Figure 7 This is a structural block diagram of the electronic device according to an embodiment of this application;

[0036] Figure 8 This is a structural block diagram of another electronic device according to an embodiment of this application. Detailed Implementation

[0037] Various embodiments and features of this application are described herein with reference to the accompanying drawings.

[0038] It should be understood that various modifications can be made to the embodiments described herein. Therefore, the above description should not be considered as limiting, but merely as an example of embodiments. Other modifications within the scope and spirit of this application will be apparent to those skilled in the art.

[0039] The accompanying drawings, which are included in and form part of this specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.

[0040] These and other features of this application will become apparent from the following description of preferred forms of embodiments given as non-limiting examples, with reference to the accompanying drawings.

[0041] It should also be understood that although this application has been described with reference to some specific examples, those skilled in the art can certainly implement many other equivalent forms of this application.

[0042] The above and other aspects, features and advantages of this application will become more apparent when taken in conjunction with the accompanying drawings and in view of the following detailed description.

[0043] Specific embodiments of this application are described thereafter with reference to the accompanying drawings; however, it should be understood that the claimed embodiments are merely examples of this application, which can be implemented in various ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that could obscure the application. Therefore, the specific structural and functional details claimed herein are not intended to be limiting, but merely serve as the basis and representative basis for the claims to teach those skilled in the art to use this application in a variety of substantially any suitable detailed structures.

[0044] This specification may use the phrases “in one embodiment,” “in another embodiment,” “in yet another embodiment,” or “in other embodiments,” all of which may refer to one or more of the same or different embodiments according to this application.

[0045] This application discloses a multi-party computation method applied to a computing node (which can also be a computing party), which may be an electronic device with computing capabilities. The method includes receiving multiple computing modules sent by an algorithm-providing node, and combining these modules according to their algorithmic dependencies corresponding to a target algorithm. During the combination of computing modules, computational steps corresponding to the received computing modules in the target algorithm can be executed simultaneously, including executing parts of the target algorithm, until all computing modules are received. This allows for the computation of the target algorithm based on the combined computing modules. This phased, step-by-step computation process enables simultaneous computational work upon receiving computing modules, eliminating the need to wait until the entire combination of computing modules is received before using it for computation. This avoids the problem of low computational efficiency caused by bandwidth limitations of the receiving network, thus improving computational efficiency.

[0046] The multi-party calculation method will be explained in detail below with reference to the accompanying drawings. Figure 1 This is a flowchart of a multi-party computation method applied to computing nodes according to an embodiment of this application, such as... Figure 1 As shown, the method includes the following steps:

[0047] S100, sequentially receive multiple computing modules sent by the algorithm providing node. The multiple computing modules can be combined into a computing module combination according to the algorithm dependency relationship corresponding to the target algorithm. The computing module combination is used for the execution of the target algorithm on the computing node. The multiple computing modules are sent sequentially by the algorithm providing node according to the algorithm dependency relationship.

[0048] For example, a calculation module can be computational data or a program related to computational logic, capable of calculating content corresponding to its data itself. This calculation module can appear as an expression of circuit information, combined with... Figure 6 For example, a computation module can be a logic circuit unit, or a program representing mathematical operators such as "NOR" (exclusive OR), "OR" (or), and "AND" (and), and the computation module can be regarded as a circuit unit.

[0049] An algorithm provider node can provide all the computational modules for a computational node. Specifically, the algorithm provider node can be another electronic device that determines all the computational modules through methods such as invocation and input. All the computational modules can be connected to form a complete computational module combination, which can be used to implement the computation of the target algorithm. The target algorithm has corresponding algorithmic dependencies.

[0050] The algorithm's dependencies can be the dependencies between multiple computing modules during the computing process. For example, the computing steps of the third computing module may depend on the computing results of the first and second computing modules, while the computing steps of the fourth and fifth computing modules may require the computing results of the third computing module as input.

[0051] The algorithm provider node sends multiple computing modules sequentially to multiple computing nodes via the network according to the algorithm dependencies. The computing nodes can then perform corresponding calculations upon receiving the received modules. Referring again to the above embodiment, for example, the algorithm provider node first sends a first and second computing module to the computing nodes, then a third computing module, followed by a fourth and fifth computing module, and so on. This ensures that each computing node receives the first and second computing modules sequentially, then the third, and subsequently the fourth and fifth computing modules, and so on.

[0052] Multiple computing modules received by a computing node can be progressively associated (combined) to form a computing module combination. This progressively formed computing module combination can then be used on the computing node to run part or all of the target algorithm.

[0053] S200, during the process of receiving the plurality of computing modules, the calculation steps in the target algorithm corresponding to the received computing modules are executed.

[0054] For example, as a computing node sequentially receives computing modules over the network, it can combine multiple computing modules according to algorithmic dependencies, gradually increasing the number of connected computing modules. Simultaneously, during the process of receiving and connecting computing modules, the computing node will use the connected modules to perform computational tasks, executing the computational steps in the target algorithm corresponding to the received computing modules.

[0055] The receiving computing module, the combined computing module, and the corresponding computing steps using the combined computing module can be performed simultaneously. This avoids placing excessive demands on network performance while effectively improving computing efficiency.

[0056] Referring again to the above embodiments, for example, after receiving the first and second computing modules sent by the algorithm providing node, the computing node can combine the first and second computing modules and use the combined first and second computing modules to perform the corresponding calculation steps. Simultaneously, the computing node also receives a third computing module and combines the received third computing module with the already combined computing modules. Then, the third computing module is used to perform the corresponding calculation steps. At the same time, the computing node can also simultaneously receive a fourth and a fifth computing module. This allows multiple processing tasks to be performed simultaneously, effectively improving the working efficiency of the computing node.

[0057] The computing node can eventually receive all the computing modules, which can then be combined to form a complete computing module combination. This complete computing module combination can then be used to compute the target algorithm in real time, thereby ultimately generating the target computation result corresponding to the target algorithm.

[0058] Furthermore, in one embodiment, multiple computing nodes can collaborate with each other during the computation process to jointly implement computational tasks. Specifically, since each computing node can receive the same computing modules and gradually form a combination of computing modules, each computing node can perform its own computational sub-tasks based on the formed combination of computing modules. The collaboration of multiple computing nodes in performing computational sub-tasks can further improve the overall computational efficiency, increase the efficiency of generating the target computational result, and reduce the computation time.

[0059] The multi-party computation method described in this application enables computing nodes to sequentially receive computing modules via the network according to the algorithm dependencies corresponding to the target algorithm, and to perform the corresponding computation steps for each received computing module simultaneously. This reduces the demands on network performance and effectively improves overall computational efficiency.

[0060] In one embodiment of this application, such as Figure 2 As shown and combined Figure 5 The method further includes the following steps:

[0061] S300, the received computing modules are sequentially associated according to the algorithm dependency relationship.

[0062] S400, based on the progressively associated computing modules, a dynamically changing intermediate module is formed, wherein the intermediate module is used to implement the computing steps corresponding to the computing modules it contains.

[0063] For example, such as Figure 5As shown, a computing node progressively associates (combines) multiple computing modules that have already been received. For example, a circuit stream receiver in a computing node can receive computing modules, while a circuit progressive synthesizer in the computing node can combine the sequentially received computing modules together.

[0064] Referring again to the above embodiments, after the circuit stream receiver receives the first and second computing modules, the circuit step-by-step synthesizer can associate the first and second computing modules to form corresponding intermediate modules. The data step-by-step calculator in the computing node can then use the formed intermediate modules to perform the calculation steps corresponding to the first and second computing modules.

[0065] Simultaneously, the circuit stream receiver also receives a third computation module. The circuit step-by-step synthesizer combines the received third computation module with the already formed intermediate module to form an updated intermediate module. The data step-by-step calculator then uses the updated intermediate module to perform the corresponding computation steps. At the same time, the circuit stream receiver can continuously receive a fourth and fifth computation module, and the circuit step-by-step synthesizer dynamically updates the intermediate module. This process continuously expands the intermediate module, and each computation node, when using an intermediate module for computation, can utilize the computation modules contained in the current state of that intermediate module to perform the corresponding computation steps.

[0066] Ultimately, through continuous dynamic combination, the intermediate modules will form a complete combination of computing modules, which will allow computing nodes to run all target algorithms and obtain the corresponding target calculation results.

[0067] In one embodiment of this application, the execution of the calculation steps in the target algorithm corresponding to the received calculation module is as follows: Figure 3 As shown, it includes:

[0068] S210, the input sub-data of each computing node is used as the input of the intermediate module.

[0069] For example, the target algorithm has input data, which includes multiple input sub-data. Each computing node has its own input sub-data. When each computing node performs calculations using the intermediate module, it can use its own input sub-data as the input of the intermediate module.

[0070] For example, such as Figure 6As shown, the input data for the target algorithm are: A0, A1, A2, A3; and B0, B1, B2, B3. A0 and B0 correspond to each other, meaning A0 and B0 can be used as inputs to the same computation module; A1 and B1 correspond to each other, meaning A1 and B1 can be used as inputs to the same computation module; A2 and B2 correspond to each other, meaning A2 and B2 can be used as inputs to the same computation module; and A3 and B3 correspond to each other, meaning A3 and B3 can be used as inputs to the same computation module. The input sub-data for the first computation node are A0, A1, A2, A3; and the input sub-data for the second computation node are B0, B1, B2, B3.

[0071] S220, based on the intermediate module, collaborative data is calculated, wherein the collaborative data is used for collaborative calculation among multiple computing nodes.

[0072] For example, computing nodes can obtain collaborative data based on an intermediate module. Each computing node can send its own collaborative data to other nodes, ensuring that each node receives collaborative data from other nodes. Through the interaction of multiple collaborative data sets, collaborative computation between multiple computing nodes can be achieved. For instance, after a first computing node inputs its first input sub-data to the intermediate module, a second computing node also inputs its second input sub-data to the same intermediate module, where the first and second input sub-data are associated. The intermediate module can then use the first and second input sub-data to generate corresponding results. This achieves collaborative computation between the first and second computing nodes.

[0073] In one embodiment of this application, the input sub-data includes multiple numerical values, and the order in which the various computing nodes input the numerical values ​​into the intermediate module is related.

[0074] Continuing to combine the above embodiments and... Figure 6 To clarify, the input sub-data of each computing node can include multiple values. For example, the input sub-data of the first computing node is A0, A1, A2, A3; and the input sub-data of the second computing node is B0, B1, B2, B3.

[0075] The order in which the first and second computing nodes input their respective input sub-data into the intermediate module is related. For example, when inputting into the intermediate module, each computing node can input the input sub-data step by step: when the first computing node inputs A0, the second computing node correspondingly inputs B0; when the first computing node inputs A1, the second computing node correspondingly inputs B1; when the first computing node inputs A2, the second computing node correspondingly inputs B2; when the first computing node inputs A3, the second computing node correspondingly inputs B3. This input logic method can satisfy the logical input method of the target algorithm.

[0076] In one embodiment of this application, the calculation step in the target algorithm corresponding to the received calculation module includes:

[0077] Under the secure multi-party computation protocol, the target computation result corresponding to the target algorithm is generated based on the collaborative data corresponding to each of the computing nodes.

[0078] For example, a secure multi-party computation protocol could be an SMPC (secure multi-party computation protocol), which is a protocol based on secure multi-party computation (SMPC). Each computing node can interact with each other based on this secure multi-party computation protocol.

[0079] Referring again to the above embodiments, for example, the input data of the target algorithm are: A0, A1, A2, A3; and B0, B1, B2, B3. A0 and B0 correspond to each other, and A0 and B0 can be used as inputs to the same computing module. During the computation using the received computing module, the first computing node inputs A0 to a computing module, and the second computing node inputs B0 to the same computing module. After interaction between the first and second computing nodes, A0 and B0 can be used as the overall input of the same computing module. Of course, the first and second computing nodes can also collaborate on computation based on their respective other input data under a secure multi-party computation protocol, thereby ultimately obtaining the target computation result corresponding to the entire target algorithm.

[0080] In one embodiment of this application, the computing module combination includes multiple logical operation groups, and each logical operation group includes multiple computing modules. The execution of the computing steps in the target algorithm corresponding to the received computing modules includes:

[0081] Based on the logical operation group, multiple sub-results corresponding to the target algorithm are generated;

[0082] Based on the multiple sub-results, the target calculation result corresponding to the target algorithm is formed.

[0083] For example, a logic operation group contains multiple computation modules, such as Figure 6 As shown, for example, the first logic operation group includes calculation module 0 (XOR), calculation module 4 (XOR), calculation module 5 (AND), calculation module 6 (AND), and calculation module 16 (OR); wherein, the above calculation modules can be connected in series and / or in parallel as needed, the inputs of the first logic operation group are: A0, B0, and C0; the outputs of the first logic operation group are: Out0 and C0. OutWhere Out0 represents the sub-result corresponding to the target algorithm, and C... Out This is part of the input data for the second logical operation group.

[0084] Similarly, the second logic operation group includes calculation modules 1, 7, 8, 9, and 17. These modules can be connected in series and / or parallel as needed. The inputs to the second logic operation group are A1 and B1, and intermediate input data C1 can also be included during the operation. The outputs of the second logic operation group are Out1 and C. Out Where Out1 is the sub-result corresponding to the target algorithm, and C... Out This is part of the input data for the third logical operation group.

[0085] Similarly, the third logic operation group includes calculation modules 2, 10, 11, 12, and 18. These modules can be connected in series and / or parallel as needed. The inputs to the third logic operation group are A2 and B2, and intermediate input data C2 can also be included during the operation. The outputs of the third logic operation group are Out2 and C. Out Where Out2 is the sub-result corresponding to the target algorithm, and C... Out This is part of the input data for the fourth logical operation group.

[0086] Similarly, the fourth logic operation group includes calculation modules 3, 13, 14, 15, and 19. These modules can be connected in series and / or parallel as needed. The inputs to the fourth logic operation group are A3 and B3, and intermediate input data C3 can also be included during the operation. The outputs of the fourth logic operation group are Out3 and C. Out Out3 represents the sub-result corresponding to the target algorithm.

[0087] The target computation results corresponding to the target algorithm include: Out0, Out1, Out2, Out3, and the final C. Out .

[0088] Based on the same inventive concept, this application also provides a multi-party computation method, applied to an algorithm providing node, such as... Figure 4 As shown, it includes the following steps:

[0089] S1000, acquire multiple computing modules, wherein the multiple computing modules can form a computing module combination according to the algorithm dependency relationship corresponding to the target algorithm, and the computing module combination is used for the execution of the target algorithm on the computing node;

[0090] S2000, according to the algorithm dependency relationship, the computing module is sent to multiple computing nodes in sequence, so that the computing nodes execute the computing steps in the target algorithm corresponding to the received computing modules during the process of receiving the multiple computing modules.

[0091] For example, a calculation module can be computational data or a program related to computational logic, capable of calculating content corresponding to its data itself. The calculation module can appear in the form of circuit information. For example, a calculation module can be a logic circuit unit, or a program representing mathematical operators, such as "NOR" (exclusive OR), "OR" (or), and "AND" (and), etc. The calculation module can be regarded as a circuit unit.

[0092] An algorithm provider node can supply all the computation modules to a computing node. Specifically, an algorithm provider node can be an electronic device that acquires multiple computing modules through methods such as invocation and input. All computing modules can be connected to form a complete computing module combination, which can be used to perform computations on the target algorithm. The target algorithm has corresponding algorithmic dependencies. The algorithm provider node connects to the computing node and can send computing modules to the computing node.

[0093] The algorithm's dependencies can be the dependencies between multiple computing modules during the computing process. For example, the computing steps of the third computing module may depend on the computing results of the first and second computing modules, while the computing steps of the fourth and fifth computing modules may require the computing results of the third computing module as input.

[0094] The algorithm provider node sends multiple computing modules sequentially to multiple computing nodes via the network according to the algorithm dependencies. The computing nodes can then perform corresponding calculations upon receiving the received modules. Referring again to the above embodiment, for example, the algorithm provider node first sends a first and second computing module to the computing nodes, then a third computing module, followed by a fourth and fifth computing module, and so on. This ensures that each computing node receives the first and second computing modules sequentially, then the third, and subsequently the fourth and fifth computing modules, and so on.

[0095] Multiple computing modules received by a computing node can be progressively associated (combined) to form a computing module combination. This progressively formed computing module combination can then be used on the computing node to run part or all of the target algorithm.

[0096] For example, as a computing node sequentially receives computing modules over the network, it can combine multiple computing modules according to algorithmic dependencies, gradually increasing the number of connected computing modules. Simultaneously, during the process of receiving and connecting computing modules, the computing node will use the connected modules to perform computational tasks, executing the computational steps in the target algorithm corresponding to the received computing modules.

[0097] The receiving computing module, the combined computing module, and the corresponding computing steps using the combined computing module can be performed simultaneously. This avoids placing excessive demands on network performance while effectively improving computing efficiency.

[0098] Referring again to the above embodiments, for example, after receiving the first and second computing modules sent by the algorithm providing node, the computing node can combine the first and second computing modules and use the combined first and second computing modules to perform the corresponding calculation steps. Simultaneously, the computing node also receives a third computing module and combines the received third computing module with the already combined computing modules. Then, the third computing module is used to perform the corresponding calculation steps. At the same time, the computing node can also simultaneously receive a fourth and a fifth computing module. This allows multiple processing tasks to be performed simultaneously, effectively improving the working efficiency of the computing node.

[0099] The computing node can eventually receive all the computing modules, which can then be combined to form a complete computing module combination. This complete computing module combination can then be used to compute the target algorithm in real time, thereby ultimately generating the target computation result corresponding to the target algorithm.

[0100] Furthermore, in one embodiment, multiple computing nodes can collaborate with each other during the computation process to jointly implement computational tasks. Specifically, since each computing node can receive the same computing modules and gradually form a combination of computing modules, each computing node can perform its own computational sub-tasks based on the formed combination of computing modules. The collaboration of multiple computing nodes in performing computational sub-tasks can further improve the overall computational efficiency, increase the efficiency of generating the target computational result, and reduce the computation time.

[0101] In one embodiment of this application, before sending the computing module to the computing node, the method further includes:

[0102] Based on the algorithm dependencies, the obtained computing modules are combined into the computing module combination.

[0103] For example, after a node obtains multiple computing modules, it can combine all the modules based on algorithm dependencies. This allows the computing modules to be sent to the computing node according to the order of combination, thus ensuring the correctness of the sending order.

[0104] For example, by providing a circuit stream generator in the node through an algorithm, based on the algorithmic dependencies of the target algorithm, the various computing modules are combined sequentially to form a computing module combination.

[0105] Based on the same inventive concept, this application also provides an electronic device, which can be a computing node as described in the above examples, such as... Figure 7 As shown, the electronic device includes:

[0106] The receiving module is configured to receive multiple computing modules sent by the algorithm providing node in sequence. The multiple computing modules can be combined into a computing module combination according to the algorithm dependency relationship corresponding to the target algorithm. The computing module combination is used for the execution of the target algorithm on the computing node. The multiple computing modules are sent by the algorithm providing node in sequence according to the algorithm dependency relationship.

[0107] The processing module is configured to execute the calculation steps in the target algorithm corresponding to the received calculation modules during the process of receiving the plurality of calculation modules.

[0108] For example, a calculation module can be computational data or a program related to computational logic, capable of calculating content corresponding to its data itself. The calculation module can appear in the form of circuit information. For example, a calculation module can be a logic circuit unit, or a program representing mathematical operators, such as "NOR" (exclusive OR), "OR" (or), and "AND" (and), etc. The calculation module can be regarded as a circuit unit.

[0109] An algorithm provider node can provide all the computational modules for a computational node. Specifically, the algorithm provider node can be another electronic device that determines all the computational modules through methods such as invocation and input. All the computational modules can be connected to form a complete computational module combination, which can be used to implement the computation of the target algorithm. The target algorithm has corresponding algorithmic dependencies.

[0110] The algorithm's dependencies can be the dependencies between multiple computing modules during the computing process. For example, the computing steps of the third computing module may depend on the computing results of the first and second computing modules, while the computing steps of the fourth and fifth computing modules may require the computing results of the third computing module as input.

[0111] The algorithm providing node sends multiple computing modules sequentially to multiple computing nodes via the network according to the algorithm dependencies. The computing nodes can then perform corresponding calculations upon receiving the received computing modules. Referring again to the above embodiment, for example, the algorithm providing node first sends a first computing module and a second computing module to the computing nodes, then sends a third computing module, followed by a fourth and fifth computing module, and so on. This ensures that the receiving modules in each computing node can sequentially receive the first and second computing modules, then the third computing module, and subsequently the fourth and fifth computing modules, and so on.

[0112] In one embodiment, the computing node further includes a combination module. After receiving multiple computing modules, the combination module of the computing node can progressively associate (combine) them to gradually form a computing module combination. The progressively formed computing module combination can then be used on the computing node to run part or all of the target algorithm.

[0113] Furthermore, as the receiving module of the computing node sequentially receives computing modules through the network, the combining module can combine multiple computing modules sequentially according to algorithm dependencies. This allows for the gradual increase in the number of connected computing modules. Simultaneously, during the process of receiving and connecting computing modules, the processing module uses the connected computing modules to perform computational tasks, executing the computational steps in the target algorithm corresponding to the received computing modules.

[0114] The receiving computing module, the combined computing module, and the corresponding computing steps using the combined computing module can be performed simultaneously. This avoids placing excessive demands on network performance while effectively improving computing efficiency.

[0115] Referring again to the above embodiments, for example, after the receiving module receives the first and second computing modules sent by the algorithm-providing node, the combining module can combine the first and second computing modules and use the combined first and second computing modules to perform the corresponding calculation steps. Simultaneously, the receiving module also receives a third computing module, which the combining module then combines with the already combined computing modules. The processing module then uses the third computing module to perform the corresponding calculation steps. At the same time, the receiving module can also simultaneously receive a fourth and a fifth computing module. This allows multiple processing tasks to be performed simultaneously, effectively improving the working efficiency of the computing node.

[0116] The computing node can eventually receive all the computing modules, which can then be combined to form a complete computing module combination. This complete computing module combination can then be used to compute the target algorithm in real time, thereby ultimately generating the target computation result corresponding to the target algorithm.

[0117] Furthermore, in one embodiment, multiple computing nodes can collaborate with each other during the computation process to jointly implement computational tasks. Specifically, since each computing node can receive the same computing modules and gradually form a combination of computing modules, each computing node can perform its own computational sub-tasks based on the formed combination of computing modules. The collaboration of multiple computing nodes in performing computational sub-tasks can further improve the overall computational efficiency, increase the efficiency of generating the target computational result, and reduce the computation time.

[0118] In one embodiment of this application, the computing node further includes a combination module, the combination module being configured as follows:

[0119] The received computing modules are sequentially associated according to the algorithm dependencies;

[0120] Based on the progressively associated computation modules, a dynamically changing intermediate module is formed, wherein the intermediate module is used to implement the computation steps corresponding to the computation modules it contains.

[0121] In one embodiment of this application, the processing module is further configured as follows:

[0122] The input sub-data of each computing node is used as the input of the intermediate module;

[0123] Collaborative data is calculated based on the intermediate module, and the collaborative data is used for collaborative calculations among multiple computing nodes.

[0124] In one embodiment of this application, the input sub-data includes multiple numerical values, and the order in which each computing node inputs the numerical values ​​into the intermediate module is related.

[0125] In one embodiment of this application, the processing module is further configured as follows:

[0126] Under the secure multi-party computation protocol, the target computation result corresponding to the target algorithm is generated based on the collaborative data corresponding to each of the computing nodes.

[0127] In one embodiment of this application, the computing module combination includes multiple logical operation groups, each logical operation group containing multiple computing modules, and the processing module is further configured as follows:

[0128] Based on the logical operation group, multiple sub-results corresponding to the target algorithm are generated;

[0129] Based on the multiple sub-results, the target calculation result corresponding to the target algorithm is formed.

[0130] Based on the same inventive concept, this application also provides another electronic device, which can be the algorithm-providing node in the above examples, such as... Figure 8 As shown, the electronic device includes:

[0131] The acquisition module is configured to acquire multiple computing modules, wherein the multiple computing modules can form a computing module combination according to the algorithm dependency relationship corresponding to the target algorithm, and the computing module combination is used for the execution of the target algorithm on the computing node;

[0132] The sending module is configured to send the computing modules sequentially to multiple computing nodes according to the algorithm dependencies, so that the computing nodes execute the computing steps in the target algorithm corresponding to the received computing modules during the process of receiving the multiple computing modules.

[0133] For example, a calculation module can be computational data or a program related to computational logic, capable of calculating content corresponding to its data itself. The calculation module can appear in the form of circuit information. For example, a calculation module can be a logic circuit unit, or a program representing mathematical operators, such as "NOR" (exclusive OR), "OR" (or), and "AND" (and), etc. The calculation module can be regarded as a circuit unit.

[0134] The algorithm provider node can provide all the computing modules to the computing node. Specifically, the algorithm provider node can be an electronic device. The acquisition module acquires multiple computing modules through methods such as invocation and input. All computing modules can be connected to form a complete computing module combination, which can be used to perform the computation of the target algorithm. The target algorithm has corresponding algorithmic dependencies. The algorithm provider node is connected to the computing node, and the sending module can send computing modules to the computing node.

[0135] The algorithm's dependencies can be the dependencies between multiple computing modules during the computing process. For example, the computing steps of the third computing module may depend on the computing results of the first and second computing modules, while the computing steps of the fourth and fifth computing modules may require the computing results of the third computing module as input.

[0136] The sending module sequentially sends multiple computing modules to multiple computing nodes via the network according to the algorithm dependencies. The computing nodes can then perform corresponding calculations upon receiving the received modules. Referring again to the above embodiment, for example, the sending module first sends a first and second computing module to the computing nodes, then sends a third computing module, followed by a fourth and fifth computing module, and so on. This ensures that each computing node receives the first and second computing modules sequentially, then the third, and subsequently the fourth and fifth computing modules, and so on.

[0137] Multiple computing modules received by a computing node can be progressively associated (combined) to form a computing module combination. This progressively formed computing module combination can then be used on the computing node to run part or all of the target algorithm.

[0138] For example, as a computing node sequentially receives computing modules over the network, it can combine multiple computing modules according to algorithmic dependencies, gradually increasing the number of connected computing modules. Simultaneously, during the process of receiving and connecting computing modules, the computing node will use the connected modules to perform computational tasks, executing the computational steps in the target algorithm corresponding to the received computing modules.

[0139] The receiving computing module, the combining computing module, and the corresponding computing steps using the already combined computing module of the computing node can be performed simultaneously. This avoids excessive demands on network performance and effectively improves computing efficiency.

[0140] Referring again to the above embodiments, for example, after receiving the first and second computing modules sent by the algorithm providing node, the computing node can combine the first and second computing modules and use the combined first and second computing modules to perform the corresponding calculation steps. Simultaneously, the computing node also receives a third computing module and combines the received third computing module with the already combined computing modules. Then, the third computing module is used to perform the corresponding calculation steps. At the same time, the computing node can also simultaneously receive a fourth and a fifth computing module. This allows multiple processing tasks to be performed simultaneously, effectively improving the working efficiency of the computing node.

[0141] The computing node can eventually receive all the computing modules, which can then be combined to form a complete computing module combination. This complete computing module combination can then be used to compute the target algorithm in real time, thereby ultimately generating the target computation result corresponding to the target algorithm.

[0142] Furthermore, in one embodiment, multiple computing nodes can collaborate with each other during the computation process to jointly implement computational tasks. Specifically, since each computing node can receive the same computing modules and gradually form a combination of computing modules, each computing node can perform its own computational sub-tasks based on the formed combination of computing modules. The collaboration of multiple computing nodes in performing computational sub-tasks can further improve the overall computational efficiency, increase the efficiency of generating the target computational result, and reduce the computation time.

[0143] In one embodiment of this application, the electronic device further includes a circuit stream generator, which can, before the electronic device sends the computing modules to the computing node, assemble the obtained computing modules into the computing module combination based on the algorithm dependency relationship.

[0144] The above embodiments are merely exemplary embodiments of this application and are not intended to limit this application. The scope of protection of this application is defined by the claims. Those skilled in the art can make various modifications or equivalent substitutions to this application within its substance and scope of protection, and such modifications or equivalent substitutions should also be considered to fall within the scope of protection of this application.

Claims

1. A multi-party computation method, applied to computation nodes, comprising: The algorithm provider receives multiple computing modules sequentially from the algorithm provider node. These multiple computing modules can be combined into a computing module combination according to the algorithm dependency relationship corresponding to the target algorithm. The computing module combination is used for the execution of the target algorithm on the computing node. The multiple computing modules are sent sequentially by the algorithm provider node according to the algorithm dependency relationship. During the process of receiving the plurality of computing modules, the computing steps in the target algorithm corresponding to the received computing modules are executed.

2. The method according to claim 1, further comprising: The received computing modules are sequentially associated according to the algorithm dependencies; Based on the progressively associated computation modules, a dynamically changing intermediate module is formed, wherein the intermediate module is used to implement the computation steps corresponding to the computation modules it contains.

3. The method according to claim 2, wherein the step of executing the calculation step in the target algorithm corresponding to the received calculation module includes: The input sub-data of each computing node is used as the input of the intermediate module; Collaborative data is calculated based on the intermediate module, and the collaborative data is used for collaborative calculations among multiple computing nodes.

4. The method according to claim 3, wherein, The input sub-data includes multiple values, and the order in which the various computing nodes input the values ​​into the intermediate module is related.

5. The method according to claim 3, wherein the step of executing the calculation step in the target algorithm corresponding to the received calculation module includes: Under the secure multi-party computation protocol, the target computation result corresponding to the target algorithm is generated based on the collaborative data corresponding to each of the computing nodes.

6. The method according to claim 1, wherein the combination of computing modules includes multiple logical operation groups, the logical operation groups include multiple computing modules, and the execution of the computing steps in the target algorithm corresponding to the received computing modules includes: Based on the logical operation group, multiple sub-results corresponding to the target algorithm are generated; Based on the multiple sub-results, the target calculation result corresponding to the target algorithm is formed.

7. A multi-party computation method, applied to an algorithm providing nodes, comprising: Multiple computing modules are obtained, wherein the multiple computing modules can be combined into a computing module combination according to the algorithm dependency relationship corresponding to the target algorithm, and the computing module combination is used for the execution of the target algorithm on the computing node; According to the algorithm dependency relationship, the computing module is sent to multiple computing nodes in sequence, so that the computing nodes execute the computing steps in the target algorithm corresponding to the received computing modules during the process of receiving the multiple computing modules.

8. The method according to claim 7, further comprising, before sending the computing module to the computing node: Based on the algorithm dependencies, the obtained computing modules are combined into the computing module combination.

9. An electronic device, comprising: A receiving module is configured to sequentially receive multiple computing modules sent by an algorithm providing node. The multiple computing modules can be combined into a computing module combination according to the algorithm dependency relationship corresponding to the target algorithm. The computing module combination is used for the execution of the target algorithm on the electronic device. The multiple computing modules are sent sequentially by the algorithm providing node according to the algorithm dependency relationship. The processing module is configured to execute the calculation steps in the target algorithm corresponding to the received calculation modules during the process of receiving the plurality of calculation modules.

10. An electronic device, comprising: The acquisition module is configured to acquire multiple computing modules, wherein the multiple computing modules can form a computing module combination according to the algorithm dependency relationship corresponding to the target algorithm, and the computing module combination is used for the execution of the target algorithm on the computing node; The sending module is configured to send the computing modules sequentially to multiple computing nodes according to the algorithm dependencies, so that the computing nodes execute the computing steps in the target algorithm corresponding to the received computing modules during the process of receiving the multiple computing modules.

Citation Information

Patent Citations

  • Collaborative computing platform system and method in edge environment

    CN109889575A

  • Data processing method and device

    CN114168998A