Execute machine learning models
By transmitting differential information and execution strategies between nodes of the machine learning model, combined with the execution of the enclave mode, the problem of data privacy leakage in distributed machine learning is solved, efficient data protection and privacy protection are achieved, and it is suitable for high privacy requirements. environment.
Patent Information
- Application Number
- CN201980097196.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-06-04
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2039-06-04
AI Technical Summary
Existing distributed machine learning technology may leak information about the training data set when transmitting machine learning model updates. Especially when using models such as decision trees, it is difficult to ensure data privacy, especially in medical or telecommunications applications that meet high privacy requirements. This is unacceptable in an environment, especially one that complies with data protection rules such as GDPR.
By transmitting the difference information between the machine learning model between the first node and the second node instead of the entire model, combined with the execution strategy, the machine learning model is partially executed on the first node or the second node to ensure that only the necessary update information is transmitted. , and execute the model in enclave mode to protect data privacy.
It effectively reduces the risk of leaking training data set information, improves data privacy protection, meets application scenarios with high privacy requirements, and reduces data transmission and storage requirements.
Smart Images

Figure CN114072820B_ABST
Abstract
Description
Technical Field
[0001] Embodiments described herein relate to methods and apparatus for executing machine learning models. Background Art
[0002] Figure 1 An example of a network 100 is shown. The network 100 includes a central node 102 and a plurality of edge nodes 104a, 104b, 104c. In this example, the edge nodes 104a, 104b, 104c are communicatively interconnected to the central node 102 via links 106a, 106b, 106c, respectively. The edge nodes 104a, 104b, 104c may be examples of edge-based deployments, and the central node 102 may be an example of a centralized deployment. It should be understood that in the context of the present disclosure, an edge-based deployment refers to an environment in which a machine learning model may be executed or trained, wherein the environment is closer to a data source, such as a data center (e.g., central node 102), than a centralized environment. For example, an edge-based deployment may include a user device.
[0003] As described above, the central node 102 may include one or more centralized data sets. These one or more centralized data sets may be used to train a machine learning model. Typically, a large centralized data set is required to train an accurate machine learning model.
[0004] However, this need for a centralized data set for training machine learning models can be supplemented by employing distributed machine learning techniques (e.g., federated learning). By employing distributed machine learning techniques, the trained machine learning model can continue to be trained in the edge nodes 104a, 104b, 104c within the network 100. The training of this further machine learning model can be performed using the data set included within the edge nodes 104a, 104b, 104c. In some embodiments, the data set included within the edge nodes 104a, 104b, 104c will have been generated locally at the edge nodes 104a, 104b, 104c.
[0005] Thus, the distributed machine learning technique allows updated machine learning models to be trained at the edge nodes 104a, 104b, 104c, where these updated machine learning models have been trained using data that has not yet been transmitted to the central node 102 (where the machine learning model was initially trained) and is unknown to the central node 102. In other words, the updated machine learning models can be trained locally at the edge nodes 104a, 104b, 104c using a data set that is accessible only at the edge nodes 104a, 104b, 104c and is not accessible at other nodes within the network 100. The local data set may include sensitive information or otherwise private information that is not transmitted to other nodes within the network 100.
[0006] One advantage of the distributed learning technique is that the need to transmit large amounts of data from the edge nodes 104a, 104b, 104c (e.g., via links 106a, 106b, 106c, respectively) to the central node 102 is reduced, as a centralized data set may not need to be provided at the central node 102. Yet another advantage is that the amount of data storage required at the central node 102 may be reduced.
[0007] Furthermore, advantageously, if the edge nodes 104a, 104b, 104c transmit an updated machine learning model to the central node 102, only the updates (in other words, changes) need to be transmitted to the machine learning model, and the entire updated machine learning model does not need to be transmitted. Therefore, the updated machine learning model can be trained and transmitted more securely in the network 100.
[0008] Furthermore, since only updates to the machine learning model are transmitted, little or no information related to the dataset that was used to train the updated machine learning model is transmitted to the central node 102. This protects the privacy of the dataset that was used to train the updated machine learning model because no information related to the data (which may have been generated at the central node 102) is transmitted to the central node 102.
[0009] However, if the machine learning model includes a neural network, the technique can only protect the privacy of the updated machine learning model and the data set stored at the edge nodes 104a, 104b, 104c.
[0010] For example, when the machine learning model includes a decision tree (which is similar to a neural network and uses a computational graph), if an update to the machine learning model includes a change to a decision node included in the decision tree, the update can provide the central node 102 with information related to the data set that was used to train the updated decision tree. For example, information related to a data set used to train an updated model at the central node 102 can be inferred, where the data set is intended to remain private to the edge nodes 104a, 104b, 104c. This may be unacceptable in cases where the privacy requirements for data generated and / or stored at the edge nodes 104a, 104b, 104c are very high. For example, the central node 102 may represent a service provider, and the edge nodes 104a, 104b, 104c may represent customers of the service provider. In this example, it may be required that the data generated and / or stored at the customer environment (and information that can be inferred from the data) be retained locally within the customer environment. This may be a requirement, for example, in certain medical environments, in certain telecommunications environments (where geo-fencing of data generated and / or stored in specific nodes and / or deployments may be employed), and may also be required to comply with data protection regulations such as the EU General Data Protection Regulation (GDPR).
[0011] Therefore, it would be advantageous to be able to transmit updates to an updated machine learning model that has been trained at an edge node 104a, 104b, 104c in a manner that does not reveal information related to the data set that was used to train the updated machine learning model. Summary of the invention
[0012] According to a first aspect, there is provided a method for executing a machine learning model, the method comprising:
[0013] At a first node, developing a first machine learning model based on a first data set and using a machine learning algorithm;
[0014] At a second node, developing a second machine learning model based on the first machine learning model and the second data set and using a machine learning algorithm;
[0015] transmitting, from the second node to the first node, information regarding differences between the first machine learning model and the second machine learning model;
[0016] At a first node, receiving a request to execute a machine learning model;
[0017] In response to receiving a request to execute the machine learning model, at the first node, obtaining information indicating an execution strategy; and
[0018] Depending on the information obtained, the execution strategy is indicated:
[0019] At the first node, executing a machine learning model based on the first machine learning model and information about a difference between the first machine learning model and the second machine learning model to obtain a result; or
[0020] A first machine learning model is partially executed at a first node, and a second machine learning model is partially executed at a second node to obtain a result.
[0021] According to another aspect, there is provided a system for executing a machine learning model, the system comprising:
[0022] a first network node; and
[0023] The second network node,
[0024] Therein, the system is configured to perform the method according to the first aspect.
[0025] According to another aspect, there is provided a computer program product comprising computer readable code configured to cause a suitably programmed processor to perform the method according to the first aspect.
[0026] According to yet another aspect, there is provided a computer program product comprising a tangible computer readable medium containing computer readable instructions for causing a processor to perform a method comprising:
[0027] At a first node, developing a first machine learning model based on a first data set and using a machine learning algorithm;
[0028] At a second node, developing a second machine learning model based on the first machine learning model and the second data set and using a machine learning algorithm;
[0029] transmitting, from the second node to the first node, information regarding differences between the first machine learning model and the second machine learning model;
[0030] At a first node, receiving a request to execute a machine learning model;
[0031] In response to receiving a request to execute the machine learning model, at the first node, obtaining information indicating an execution strategy; and
[0032] Depending on the information obtained, the execution strategy is indicated:
[0033] At the first node, executing a machine learning model based on the first machine learning model and information about a difference between the first machine learning model and the second machine learning model to obtain a result; or
[0034] A first machine learning model is partially executed at a first node, and a second machine learning model is partially executed at a second node to obtain a result.
[0035] According to a second aspect, there is provided a method for executing a machine learning model executed in a first node, the method comprising:
[0036] At a first node, developing a first machine learning model based on a first data set and using a machine learning algorithm;
[0037] transmitting the first machine learning model to the second network node;
[0038] receiving information from the second node regarding differences between the first machine learning model and the second machine learning model;
[0039] receiving a request to execute a machine learning model;
[0040] In response to receiving a request to execute the machine learning model, obtaining information indicating an execution strategy; and
[0041] Depending on the information obtained, the execution strategy is indicated:
[0042] executing a machine learning model based on the first machine learning model and the information about the difference between the first machine learning model and the second machine learning model to obtain a result; or
[0043] Partially execute the first machine learning model and cause the second node to partially execute the second machine learning model to obtain a result.
[0044] According to another aspect, there is provided a first network node for executing a machine learning model, the first network node comprising:
[0045] an interface configured to allow communication with other network nodes;
[0046] Memory; and
[0047] processor,
[0048] The first network node is configured to execute the method according to the second aspect.
[0049] According to another aspect, there is provided a computer program product comprising computer readable code configured to cause a suitably programmed processor to perform the method according to the second aspect.
[0050] According to yet another aspect, there is provided a computer program product comprising a tangible computer readable medium containing computer readable instructions for causing a processor to perform a method comprising:
[0051] At a first node, developing a first machine learning model based on a first data set and using a machine learning algorithm;
[0052] transmitting the first machine learning model to the second network node;
[0053] receiving information from the second node regarding differences between the first machine learning model and the second machine learning model;
[0054] receiving a request to execute a machine learning model;
[0055] In response to receiving a request to execute the machine learning model, obtaining information indicating an execution strategy; and
[0056] Depending on the information obtained, the execution strategy is indicated:
[0057] executing a machine learning model based on the first machine learning model and the information about the difference between the first machine learning model and the second machine learning model to obtain a result; or
[0058] Partially execute the first machine learning model and cause the second node to partially execute the second machine learning model to obtain a result.
[0059] According to a third aspect, there is provided a method for executing a machine learning model executed in a second node, the method comprising:
[0060] receiving a first machine learning model from a first node;
[0061] developing a second machine learning model based on the first machine learning model and the second data set and using a machine learning algorithm;
[0062] transmitting information about differences between the first machine learning model and the second machine learning model to the first node;
[0063] receiving a partial result from the first node;
[0064] partially executing a second machine learning model using the first partial result to form a second partial result; and
[0065] The second partial result is transmitted to the first node.
[0066] According to another aspect, there is provided a second network node for executing a machine learning model, the second network node comprising:
[0067] an interface configured to allow communication with other network nodes;
[0068] Memory; and
[0069] processor,
[0070] The second network node is configured to execute the method according to the third aspect.
[0071] According to another aspect, there is provided a computer program product comprising computer readable code configured to cause a suitably programmed processor to perform the method according to the third aspect.
[0072] According to yet another aspect, there is provided a computer program product comprising a tangible computer readable medium containing computer readable instructions for causing a processor to perform a method comprising:
[0073] receiving a first machine learning model from a first node;
[0074] developing a second machine learning model based on the first machine learning model and the second data set and using a machine learning algorithm;
[0075] transmitting information about differences between the first machine learning model and the second machine learning model to the first node;
[0076] receiving a partial result from the first node;
[0077] partially executing a second machine learning model using the first partial result to form a second partial result; and
[0078] The second partial result is transmitted to the first node.
[0079] According to a fourth aspect, there is provided a method for developing a machine learning model, the method comprising:
[0080] At a first node, developing a first machine learning model based on a first data set and using a machine learning algorithm;
[0081] At a second node, developing a second machine learning model based on the first machine learning model and the second data set and using a machine learning algorithm;
[0082] Information about differences between the first machine learning model and the second machine learning model is transmitted from the second node to the first node.
[0083] The information about the difference between the first machine learning model and the second machine learning model may include information that the second machine learning model is different from the first machine learning model.
[0084] The information about the difference between the first machine learning model and the second machine learning model may include information that the second machine learning model is different from the first machine learning model, or may include information that the second machine learning model is not different from the first machine learning model.
[0085] The information about the difference between the first machine learning model and the second machine learning model may further include information identifying the difference between the first machine learning model and the second machine learning model.
[0086] The information about the difference between the first machine learning model and the second machine learning model may further include the second machine learning model.
[0087] The first machine learning model and the second machine learning model can each be represented by a computational graph. The computational graph can be a directed acyclic graph.
[0088] The first machine learning model and the second machine learning model can each be one of the following: a neural network, a support vector machine, a decision tree, and a random forest.
[0089] According to another aspect, there is provided a system for developing a machine learning model, the system comprising:
[0090] a first network node; and
[0091] The second network node,
[0092] Therein, the system is configured to perform the method according to the fourth aspect.
[0093] According to another aspect, there is provided a computer program product comprising computer readable code configured to cause a suitably programmed processor to perform the method according to the fourth aspect.
[0094] According to yet another aspect, there is provided a computer program product comprising a tangible computer readable medium containing computer readable instructions for causing a processor to perform a method comprising:
[0095] At a first node, developing a first machine learning model based on a first data set and using a machine learning algorithm;
[0096] At a second node, developing a second machine learning model based on the first machine learning model and the second data set and using a machine learning algorithm;
[0097] Information about differences between the first machine learning model and the second machine learning model is transmitted from the second node to the first node.
[0098] According to a fifth aspect, there is provided a method for executing a machine learning model, the method comprising:
[0099] At a first node, receiving a request to execute a machine learning model;
[0100] In response to receiving a request to execute the machine learning model, at the first node, obtaining information indicating an execution strategy; and
[0101] Depending on the information obtained, the execution strategy is indicated:
[0102] At the first node, executing a machine learning model based on the first machine learning model and information about a difference between the first machine learning model and the second machine learning model to obtain a result; or
[0103] A first machine learning model is partially executed at a first node, and a second machine learning model is partially executed at a second node to obtain a result.
[0104] The method may further include transmitting the obtained results.
[0105] The step of partially executing the first machine learning model at the first node and partially executing the second machine learning model at the second node to obtain a result may include:
[0106] At the first node, partially executing a first machine learning model; and
[0107] At the first node, cause the second machine learning model to be partially executed at the second node based on information about the difference between the first machine learning model and the second machine learning model.
[0108] The information about the difference between the first machine learning model and the second machine learning model may include information that the second machine learning model is different from the first machine learning model.
[0109] The information about the difference between the first machine learning model and the second machine learning model may include information that the second machine learning model is different from the first machine learning model, or may include information that the second machine learning model is not different from the first machine learning model.
[0110] The information about the difference between the first machine learning model and the second machine learning model may further include information identifying the difference between the first machine learning model and the second machine learning model.
[0111] The information about the difference between the first machine learning model and the second machine learning model may further include the second machine learning model.
[0112] Information indicating the execution policy may be obtained from the policy node.
[0113] Information indicative of the execution policy may be obtained from a memory in the first node.
[0114] When the information indicating the execution policy includes information indicating that a machine learning model based on a first machine learning model and information about differences between the first machine learning model and a second machine learning model is to be executed at a first node, the information may also include information indicating that at least a portion of the machine learning model should be executed in an enclaved mode.
[0115] When the information indicating the execution policy includes information indicating that a first machine learning model is partially executed at a first node and a second machine learning model is partially executed at a second node, the information may also include information indicating that at least one component of the first machine learning model or the second machine learning model should be executed in enclave mode.
[0116] The first machine learning model and the second machine learning model can each be represented by a computational graph. The computational graph can be a directed acyclic graph.
[0117] The first machine learning model and the second machine learning model can each be one of the following: a neural network, a support vector machine, a decision tree, and a random forest.
[0118] Executing, at the first node, a machine learning model based on the first machine learning model and the information about the difference between the first machine learning model and the second machine learning model to obtain a result may include executing, at the first node, at least partially in the enclave memory segment, the machine learning model based on the first machine learning model and the information about the difference between the first machine learning model and the second machine learning model.
[0119] The step of partially executing the first machine learning model at the first node and partially executing the second machine learning model at the second node to obtain a result may include: at the first node, executing at least one component of the first machine learning model in the enclave memory segment.
[0120] The step of partially executing the first machine learning model at the first node and partially executing the second machine learning model at the second node to obtain a result may include: at the second node, executing at least one component of the second machine learning model in the enclave memory segment.
[0121] The step of partially executing the first machine learning model at the first node and partially executing the second machine learning model at the second node to obtain a result may include:
[0122] At a first node, partially executing a first machine learning model to form a first partial result;
[0123] transmitting a first partial result from the first node to the second node;
[0124] At a second node, partially executing a second machine learning model using the first partial result to form a second partial result;
[0125] transmitting a second partial result from the second node to the first node;
[0126] At the first node, the first machine learning model is partially executed using the second partial result to form a final result.
[0127] According to another aspect, there is provided a system for executing a machine learning model, the system comprising:
[0128] a first network node; and
[0129] The second network node,
[0130] Therein, the system is configured to perform the method according to the fifth aspect.
[0131] According to another aspect, there is provided a computer program product comprising computer readable code configured to cause a suitably programmed processor to perform the method according to the fifth aspect.
[0132] According to yet another aspect, there is provided a computer program product comprising a tangible computer readable medium containing computer readable instructions for causing a processor to perform a method comprising:
[0133] At a first node, receiving a request to execute a machine learning model;
[0134] In response to receiving a request to execute the machine learning model, at the first node, obtaining information indicating an execution strategy; and
[0135] Depending on the information obtained, the execution strategy is indicated:
[0136] At the first node, executing a machine learning model based on the first machine learning model and information about a difference between the first machine learning model and the second machine learning model to obtain a result; or
[0137] A first machine learning model is partially executed at a first node, and a second machine learning model is partially executed at a second node to obtain a result. BRIEF DESCRIPTION OF THE DRAWINGS
[0138] For a better understanding of the invention and to show how the invention may be carried into effect, reference will now be made, by way of example only, to the accompanying drawings, in which:
[0139] Figure 1 An example of a network is shown;
[0140] Figure 2A first node including a processor (or logic) is shown according to some embodiments;
[0141] Figure 3 shows a second node including a processor (or logic) according to some embodiments;
[0142] Figure 4 An example of a decision tree is shown;
[0143] Figure 5 An example of a neural network is shown;
[0144] Figure 6 A sequence diagram for executing a machine learning model is shown; and
[0145] Figure 7 A method for using TM to execute a machine learning model according to some embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0146] The following description sets forth example embodiments according to the present disclosure. Further example embodiments and implementations will be apparent to those of ordinary skill in the art. Further, those of ordinary skill in the art will recognize that various equivalent technologies may be applied to replace or combine the embodiments discussed below, and all such equivalent technologies shall be deemed to be included by the present disclosure.
[0147] Specific details are set forth below, such as specific embodiments for the purpose of explanation and not limitation. However, it will be appreciated by those skilled in the art that, in addition to these specific details, other embodiments may be used. In some instances, the detailed description of well-known methods, nodes, interfaces, circuits and devices is omitted so that unnecessary details obscure the description. It will be appreciated by those skilled in the art that the described functions may be implemented in one or more nodes using hardware circuits (e.g., analog and / or discrete logic gates, ASICs, PLAs, etc., interconnected to perform special functions) and / or using software programs and data and in combination with one or more digital microprocessors or general-purpose computers that are particularly suitable for performing the processing disclosed herein based on such a program. The node using the air interface communication also has a suitable radio communication circuit. Moreover, the present technology may additionally be considered to be fully implemented in any form of computer-readable memory, such as solid-state memory, disk, or optical disk, which contains a suitable computer instruction set that causes the processor to perform the technology described herein.
[0148] Hardware implementations may include or encompass, but are not limited to, digital signal processor (DSP) hardware, a reduced instruction set processor, hardware (e.g., digital or analog) circuits (including, but not limited to, application specific integrated circuit(s) (ASICs) and / or field programmable gate array(s) (FPGAs)), and, where appropriate, state machines capable of performing such functions.
[0149] In terms of computer implementation, a computer is generally understood to include one or more processors, one or more processing modules, or one or more controllers, and the terms "computer," "processor," "processing module," and "controller" may be used interchangeably. When provided by a computer, processor, or controller, the functionality may be provided by a single dedicated computer or processor or controller, by a single shared computer or processor or controller, or by multiple separate computers or processors or controllers (some of which may be shared or distributed). Moreover, the terms "processor" or "controller" also refer to other hardware capable of performing such functionality and / or executing software, such as the example hardware described above.
[0150] The description relates to communications between network nodes (which may include multiple network nodes). However, the network nodes may include radio access nodes, such as eNodeBs (eNBs) as defined by 3GPP, or gNodeBs (gNBs) used in future standards expected to meet 5G requirements. However, it should be understood that the concepts described herein may relate to any network node. Moreover, where the following description relates to steps taken in or by a network node, this also includes the possibility that some or all of the processing and / or decision-making steps may be performed in a device that is physically separate from, but logically connected to, the radio antennas of the radio access node. Therefore, where processing and / or decision-making is performed "in the cloud", for these purposes the relevant processing equipment is considered to be part of the radio access node.
[0151] The embodiments described herein provide methods and apparatus for executing a machine learning model based on a strategy that exists between different nodes in which different parts of the machine learning model have been updated. In particular, the embodiments described herein mitigate the problems described above.
[0152] Figure 2A first network node 200 according to some embodiments is shown, which includes a processing circuit (or logic) 202. The processing circuit 202 controls the operation of the first network node 200 and may implement the methods described herein with respect to the first network node 200. The processing circuit 202 may include one or more processors, processing units, multi-core processors, or modules, which are configured or programmed to control the first network node 200 in the manner described herein. In a specific implementation, the processing circuit 202 may include a plurality of software and / or hardware modules, each of which is configured to perform or is used to perform a single or multiple steps of the methods described herein with respect to the first network node 200.
[0153] Briefly, the processing circuit 202 of the first network node 200 is configured to execute a method for executing a machine learning model, the method comprising: developing a first machine learning model based on a first data set and using a machine learning algorithm; transmitting the first machine learning model to a second network node; receiving information about the difference between the first machine learning model and the second machine learning model from the second node; receiving a request to execute the machine learning model; in response to receiving the request to execute the machine learning model, obtaining information indicating an execution strategy; and depending on the obtained information indicating the execution strategy: executing a machine learning model based on the first machine learning model and the information about the difference between the first machine learning model and the second machine learning model to obtain a result; or partially executing the first machine learning model and causing the second node to partially execute the second machine learning model to obtain a result.
[0154] In some embodiments, the steps of partially executing the first machine learning model and causing the second node to partially execute the second machine learning model at the second node to obtain a result include: partially executing the first machine learning model; and causing the second node to partially execute the second machine learning model based on information about the difference between the first machine learning model and the second machine learning model.
[0155] In some embodiments, the first network node 200 may optionally include a communication interface 204. The communication interface 204 of the first network node 200 may be used to communicate with other nodes (such as other virtual nodes). For example, the communication interface 204 of the first network node 200 may be configured to send and / or receive requests, resources, information, data, signals, etc. to other nodes. The processing circuit 202 of the first network node 200 may be configured to control the communication interface 204 of the first network node 200 to send and / or receive requests, resources, information, data, signals, etc. to other nodes.
[0156] Optionally, the first network node 200 may include a memory 206. In some embodiments, the memory 206 of the first network node 200 may be configured to store program code that can be executed by the processing circuit 202 of the first network node 200 to perform the methods described herein with respect to the first network node 200. Alternatively or additionally, the memory 206 of the first network node 200 may be configured to store any request, resource, information, data, signal, etc. described herein. The processing circuit 202 of the first network node 200 may be configured to control the memory 206 of the first network node 200 to store any request, resource, information, data, signal, etc. described herein.
[0157] The first network node 200 described herein may include, for example, a central node 102 in a service provider, or may be included in a suitable network such as Figure 1 Any other suitable network node within the network 100).
[0158] Figure 3 A second network node 300 according to some embodiments is shown, which includes a processing circuit (or logic) 302. The processing circuit 302 controls the operation of the second network node 300 and may implement the methods described herein with respect to the second network node 300. The processing circuit 302 may include one or more processors, processing units, multi-core processors, or modules, which are configured or programmed to control the second network node 300 in the manner described herein. In a specific implementation, the processing circuit 302 may include a plurality of software and / or hardware modules, each of which is configured to perform or is used to perform a single or multiple steps of the methods described herein with respect to the second network node 300.
[0159] Briefly, the processing circuit 302 of the second network node 300 is configured to execute a method for executing a machine learning model, the method comprising: receiving a first machine learning model from a first node; developing a second machine learning model based on the first machine learning model and a second data set and using a machine learning algorithm; transmitting information about the difference between the first machine learning model and the second machine learning model to the first node; receiving a partial result from the first node; using the first partial result to partially execute the second machine learning model to form a second partial result; and transmitting the second partial result to the first node.
[0160] In some embodiments, the second network node 300 may optionally include a communication interface 304. The communication interface 304 of the second network node 300 may be used to communicate with other nodes (such as other virtual nodes). For example, the communication interface 304 of the second network node 300 may be configured to send and / or receive requests, resources, information, data, signals, etc. to other nodes. The processing circuit 302 of the second network node 300 may be configured to control the communication interface 304 of the second network node 300 to send and / or receive requests, resources, information, data, signals, etc. to other nodes.
[0161] Optionally, the second network node 300 may include a memory 306. In some embodiments, the memory 306 of the second network node 300 may be configured to store program code that can be executed by the processing circuit 302 of the second network node 300 to perform the methods described herein with respect to the second network node 300. Alternatively or additionally, the memory 306 of the second network node 300 may be configured to store any request, resource, information, data, signal, etc. described herein. The processing circuit 302 of the second network node 300 may be configured to control the memory 306 of the second network node 300 to store any request, resource, information, data, signal, etc. described herein.
[0162] The second network node 300 described herein may include, for example, an edge node 104a, 104b, 104c in a customer, or may be included in a suitable network such as Figure 1 Any other suitable network node within the network 100).
[0163] Figure 4 An example of a decision tree 400 is shown. It should be understood that the decision tree 400 is an example of a computational graph.
[0164] The first node included in the decision tree 400 is the root node 402. The root node 402 is the topmost node of the decision tree 400 and therefore has no parent node. All other nodes included in the decision tree 400 can be reached from the root node 402 by following the edges (links) of the decision tree 400.
[0165] In this example, the root node 402 has three child nodes 404a, 404b, and 404c. These child nodes 404a, 404b, and 404c of the root node 402 can be reached from the root node 402 via edges 406a, 406b, and 406c, respectively.
[0166] In this example, the child node 404a of the root node 402 itself has two child nodes 408a and 408b (which can be reached from the node 404a via edges 410a and 410b, respectively). The child node 404c of the root node 402 itself also has two child nodes 412a and 412b (which can be reached from the node 404c via edges 414a and 414b, respectively). Therefore, the nodes 402, 404a, and 404c of the decision tree 400 can be described as internal nodes (or alternatively, branch nodes) of the decision tree 400. An internal node of the decision tree 400 is any node with child nodes that is included in the decision tree 400.
[0167] In this example, child node 404b of root node 402 has no child nodes. Similarly, nodes 408a, 408b, 412a, and 412b have no child nodes. Therefore, nodes 404b, 408a, 408b, 412a, and 412b can be described as external nodes (or alternatively, leaf nodes) of decision tree 400. An external node of decision tree 400 is any node included in decision tree 400 that has no child nodes.
[0168] The decision tree 400 can be used as a machine learning model. The machine learning model will start from the root node 402, and for any given node of the decision tree 400, the machine learning model will only pass to one of the child nodes of that node.
[0169] In one example, the decision tree 400 can be used to predict the currently unknown class of a categorical variable based on one or more other continuous or categorical variables (the values of which are known). In another example, the decision tree 400 can be used to predict the currently unknown value of a continuous variable based on one or more other continuous or categorical variables (the values of which are known). Therefore, it will be understood that in some examples, the external nodes of the decision tree 400 can represent the class of the categorical variable. In other examples, the external nodes of the decision tree 400 can represent the values of the continuous variable. The internal nodes of the decision tree 400 can represent conditions. Whether one or more of the other continuous variables or categorical variables meet the conditions will determine which child node of the internal node the machine learning model will pass to. In other words, given one or more other continuous or categorical variables (the values of which are known), this will determine how the machine learning model will progress from the root node 402 to the child nodes.
[0170] For example, internal node 404a may represent a threshold value for a continuous variable. If the continuous variable exceeds the threshold value, the machine learning model may pass to external node 408a, and the output of the machine learning model will be the class or value represented by external node 408a. If the continuous variable fails to exceed the threshold value, the machine learning model may pass to external node 408b, and the output of the machine learning model will be the class or value represented by external node 408b.
[0171] It should be understood that a decision tree (e.g., decision tree 400) may be generated using ID3, C4.5, CART, or any other suitable machine learning algorithm. The generation may be based on a training data set. The classification (in the case of a classification tree) or regression value (in the case of a regression tree) that the machine learning model will be designed to accurately predict will already be known before the training data set is applied to the decision tree 400.
[0172] Furthermore, it should be appreciated that decision tree 400 is an example of a directed acyclic graph (DAG). A directed acyclic graph is a directed graph that contains no directed cycles.
[0173] Random forest (or alternatively, random decision forest) is a machine learning model that generates multiple decision trees from a training data set. In other words, random forest is an integration of decision trees. It should be understood that each of these multiple decision trees can be generated again using ID3, C4.5, CART or any other suitable machine learning algorithm. However, the training data set can be randomly sampled with replacement, and then each randomly sampled subset of the training data can be used to train the corresponding decision tree included in the random forest. However, any other suitable method for generating a random forest can be used.
[0174] As a machine learning model, a random forest will output a class that is the mode of the classes output by the individual decision trees of the random forest, or a random forest will output a value that is the average of the values output by the individual decision trees of the random forest. Therefore, the output value or class predicted by a random forest can be more accurate than the output value or class predicted by an individual decision tree.
[0175] Figure 5 An example of a neural network 500 is shown. It should be understood that the neural network 500 is an example of a computational graph.
[0176] Neural network 500 includes four layers: input layer 502, first hidden layer 504, second hidden layer 506, and output layer 508. Thus, in this example, neural network 500 includes two hidden layers. However, it should be understood that neural network 500 may include any number of hidden layers.
[0177] The neural network 500 can be used as a machine learning model. The machine learning model will start with an input layer 502, and at each layer will pass to the layer directly after that layer until the output layer 508 is reached.
[0178] In one example, neural network 500 can be used to predict a currently unknown class of a categorical variable based on one or more other continuous or categorical variables whose values are known. In another example, neural network 500 can be used to predict a currently unknown value of a continuous variable based on one or more other continuous or categorical variables whose values are known.
[0179] In this example, the input layer 502 includes three nodes 502a, 502b, and 502c. However, it should be understood that the input layer of the neural network 500 may include any suitable number of input nodes. The number of input nodes may correspond to the number of known variables to be input into the neural network 500.
[0180] In this example, the output layer includes two output nodes 508a and 508b. However, it should be understood that the output layer of the neural network 500 may include any suitable number of output nodes. For example, the number of output nodes may represent the number of possible classes that the variable may be predicted to be. In addition, the value output by each output node may represent the probability that the variable belongs to each class represented by each output node, respectively.
[0181] As mentioned above, neural network 500 includes two hidden layers. First hidden layer 504 includes four nodes 504a, 504b, 504c, and 504d. Second hidden layer 506 also includes four nodes 506a, 506b, 506c, and 506d. However, it should be understood that the hidden layers within neural network 500 may include any suitable number of nodes.
[0182] like Figure 5 As seen in the illustrated example of FIG. 5 , nodes 502a, 502b, 502c included in the input layer 502 are each connected to each of the nodes 504a, 504b, 504c, 504d included in the first hidden layer 504. Thus, information input into the input layer 502 is passed along these edges to each node of the first hidden layer 504. The edges between the nodes of the neural network 500 may include weights. The weights may modify the values passed between the nodes.
[0183] In some examples, weights may correspond to the relative “strength” of inputs to a particular node, and in some examples may correspond to the degree of dependence of one input on another input at a particular point in neural network 500 .
[0184] Each node 504a, 504b, 504c, 504d in the first hidden layer 504 includes a mathematical function. The mathematical function included in each node 504a, 504b, 504c, 504d can be the same function, or they can be different functions. The mathematical function included in the node will be applied to the data that has been input into the node. For example, the mathematical function included in the node 504a will be applied to the data that has been transferred to the node 504a from nodes 502a, 502b and 502c.
[0185] After this application of the mathematical function, the result of applying the mathematical function included in the node will be passed to the next layer of the neural network 500. For example, the result of applying the mathematical function included in the node 504a will be passed to the nodes 506a, 506b, 506c, and 506d included in the second hidden layer 506 along the edges connecting the node 504a and each of the nodes 506a, 506b, 506c, and 506d, respectively.
[0186] Each node 506a, 506b, 506c, 506d in the second hidden layer 506 includes a mathematical function. The mathematical function included in each node 506a, 506b, 506c, 506d can be the same function, or they can be different functions. The mathematical function included in the node will be applied to the data that have been input into the node. For example, the mathematical function included in the node 506a will be applied to the data that have been transferred to the node 506a from nodes 504a, 504b, 504c and 504d.
[0187] After this application of the mathematical function, the result of applying the mathematical function included in the node will be passed to the next layer of the neural network 500. For example, the result of applying the mathematical function included in the node 506a will be passed to the nodes 508a and 508b included in the output layer 508 along the edge connecting the node 506a and each of the nodes 508a and 508b, respectively.
[0188] It should therefore be understood that the nodes included within a hidden layer of neural network 500 will include mathematical functions that can be applied to data passed to the nodes, and the results of applying these mathematical functions can then be passed to nodes included within the next layer of neural network 500.
[0189] Each node 508a, 508b in output layer 508 includes a mathematical function. The mathematical function included in each node 508a, 508b can be the same function, or they can be different functions. The mathematical function included in the node will be applied to the data that has been input into the node. For example, the mathematical function included in node 508a will be applied to the data that has been transferred to node 508a from nodes 506a, 506b, 506c and 506d.
[0190] In some examples, the mathematical function included within the nodes 508a, 508b of the output layer 508 may be a softmax function. For example, assigning a softmax function to each node included within the output layer of the neural network 500 may provide an indication of the probability that a variable belongs to the class that each output node is respectively assigned to represent.
[0191] The mathematical functions included within the nodes of the neural network 500 may also be referred to as activation functions, or alternatively, they may be referred to as transfer functions. The mathematical functions may be nonlinear functions to introduce nonlinearity into the neural network 500, or may be linear functions. For example, the mathematical function may be one of the following functions: a sigmoid function, a hyperbolic tangent function, or a rectified linear function.
[0192] Thus, it should be appreciated that the number of hidden layers included within neural network 500, as well as the number of nodes included within a hidden layer, can be a design choice.
[0193] The neural network 500 is typically trained with a training data set. The classification (in the case of a classification neural network) or regression value (in the case of a regression neural network) that the machine learning model will aim to accurately predict will already be known before the training data set is applied to the neural network 500. During the training process, the classification output by the neural network 500 (for a classification neural network) or the regression value output by the neural network 500 (for a regression neural network) will be compared to the known classification or known regression value of the training data input into the neural network 500. In order to improve the accuracy of the predictions of the neural network 500, the weights of the information passed along the edges to be input into the nodes will be adjusted. The weights will be adjusted so that the error corresponding to the output generated by the neural network 500 is minimized. The skilled person will be familiar with methods for training the weights of the neural network 500 so that the error corresponding to the output generated by the neural network 500 is minimized.
[0194] Therefore, the weights of the neural network 500 will be updated during the training process so that the machine learning model is trained to produce more accurate outputs.It will be understood that the initial weights may be set arbitrarily or randomly.
[0195] It will be appreciated that neural network 500 is an example of a directed acyclic graph (DAG). A directed acyclic graph is a directed graph that contains no directed cycles.
[0196] Thus, decision trees and neural networks are both examples of machine learning models that can predict a presently unknown class of a categorical variable based on one or more other continuous or categorical variables whose values are known, or alternatively can be used to predict a presently unknown value of a continuous variable based on one or more other continuous or categorical variables whose values are known.
[0197] Figure 6 shows a sequence diagram for executing a machine learning model, Figure 7 A method for executing a machine learning model is shown. The method described herein can be executed in network 100.
[0198] At step 602, a first machine learning model is developed at the first network node 200 based on a first data set and using a machine learning algorithm.
[0199] In some embodiments, the first data set may have been generated at the first network node 200. Alternatively, in some embodiments, the first data set may have been received from one or more external sources. Alternatively, in some embodiments, the first data set may include data that has been generated at the first network node 200 and data that has been received from one or more external sources. The source of the first data set may depend on the security and / or privacy requirements of the network 100. For example, a requirement of the network 100 may be that data is not transmitted such that it passes from a network node in which it is generated to a network node in which it is not generated.
[0200] In some embodiments, the first data set is split so that 80% of the first data set is used to initially train the first machine learning model and the remaining 20% of the first data set is used to validate the output of the trained first machine learning model. However, it will be understood that any suitable split may be used for the first data set for the purposes of training and validating the machine learning model.
[0201] It will be appreciated that the first machine learning model can be one of the machine learning models described above. For example, the first machine learning model can be a decision tree (e.g., decision tree 400), a neural network (e.g., neural network 500), or a random forest. However, it will be appreciated that the first machine learning model can be any machine learning model that employs a computational graph. For example, the first machine learning model can be a support vector machine. In some embodiments, the computational graph employed can be a directed acyclic graph.
[0202] It will be appreciated that the machine learning algorithm used to develop the first machine learning model can be any suitable machine learning algorithm for the first machine learning model. By way of illustrative example where the first machine learning model is a decision tree (e.g., decision tree 400), the decision tree can be generated using ID3, C4.5, CART, or any other suitable machine learning algorithm.
[0203] Therefore, if Figure 7 As shown in step 702 of the method, a first machine learning model is developed at a first node based on a first data set and using a machine learning algorithm.
[0204] At step 604, the first machine learning model is transmitted to the second network node 300. In some embodiments, a serialized version of the first machine learning model may be transmitted to the second network node 300. The serialized version may be a manner in which information may be represented that is more optimized for network transfer than, for example, a manner of representing information that makes the information accessible to a program (e.g., a data structure stored in a memory that the program can read to access the data). For example, in some embodiments in which the first machine learning model includes a neural network, the serialized version of the first machine learning model may include the structure of the neural network and the weights of the neural network. Additionally or alternatively, this transmission between the first network node 200 and the second network node 300 may be encrypted.
[0205] At step 606 , the second network node 300 transmits a confirmation to the first network node 200 that the first machine learning model has been received by the second network node 300 .
[0206] At step 608, a second machine learning model is developed at the second network node 300 using a machine learning algorithm based on the first machine learning model and the second data set.
[0207] In some embodiments, the second data set may have been generated at the second network node 300. Alternatively, in some embodiments, the second data set may have been received from one or more external sources. Alternatively, in some embodiments, the second data set may include data generated at the second network node 300 and data received from one or more external sources. The source of the second data set may depend on the security and / or privacy requirements of the network 100. For example, a requirement of the network 100 may be that data is not transmitted so that it is passed from the network node in which it is generated to the network node in which it is not generated. In other words, in some examples, the data (or information) generated at the second node 300 may never be transmitted to the first node 200.
[0208] In some embodiments, the second data set is segmented such that 80% of the second data set is used to initially train the second machine learning model and the remaining 20% of the second data set is used to validate the output of the trained second machine learning model. However, it will be understood that any suitable segmentation may be used for the second data set for the purposes of training and validating the machine learning model.
[0209] The machine learning algorithm used to develop the second machine learning model can be one of the machine learning algorithms described above. Specifically, the machine learning algorithm used to develop the second machine learning model can be the same as the machine learning algorithm used to develop the first machine learning model.
[0210] It will be appreciated that the second machine learning model can be one of the machine learning models described above. For example, the second machine learning model can be a decision tree (e.g., decision tree 400), a neural network (e.g., neural network 500), or a random forest. However, it will be appreciated that the second machine learning model can be any machine learning model that employs a computational graph. For example, the second machine learning model can be a support vector machine. In some embodiments, the computational graph can be a directed acyclic graph.
[0211] It will be appreciated that the machine learning algorithm used to develop the second machine learning model can be any suitable machine learning algorithm for the second machine learning model. By way of illustrative example where the second machine learning model is a decision tree (e.g., decision tree 400), the decision tree can be generated using ID3, C4.5, CART, or any other suitable machine learning algorithm.
[0212] As described above, the second machine learning model is based on the first machine learning model. Thus, in some embodiments, the second machine learning model can be substantially similar to the first machine learning model, but when compared to the first machine learning model, the second machine learning model includes one or more variations.
[0213] For example, the first machine learning model and the second machine learning model have Figure 4 In the case of a decision tree in the form of decision tree 400 shown, internal node 404a of the first machine learning model can represent a first condition; and internal node 404a of the second machine learning model can represent a second condition, wherein the first condition is different from the second condition. For example, the first condition may include a first threshold value for a particular variable, and the second condition may include a second threshold value for the particular variable. Since further training of the second machine learning model is based on the second data set, this variation may result.
[0214] In another example, where the first machine learning model and the second machine learning model are random forests, the first machine learning model may include multiple individual decision trees and the second machine learning model may include the same number of individual decision trees. However, one or more of the individual decision trees of the second machine learning model may be different from the individual decision trees of the first machine learning model. For example, as a result of training the second machine learning model based on the second data set, one or more individual decision trees generated as a result of the training may be different from the individual decision trees generated as a result of training the first machine learning model based on the first data set. Additionally or alternatively, one or more individual decision trees of the second machine learning model may be changed (e.g., by mutation, addition, or deletion) in a manner described in more detail below. Since further training of the second machine learning model is based on the second data set, these mutations may result.
[0215] In another example, the first machine learning model and the second machine learning model have Figure 5 In the case of a neural network of the general form of neural network 500 shown, one or more of the weights of the edges connecting the nodes of the second machine learning model may be different from the weights of the edges connecting the nodes of the first machine learning model. This variation may result because the training of the second machine learning model is based on a second data set as opposed to the first data set.
[0216] Additionally or alternatively, in some embodiments, the second machine learning model may be substantially similar to the first machine learning model, but, when compared to the first machine learning model, the second machine learning model includes one or more additions.
[0217] For example, the first machine learning model and the second machine learning model have Figure 4 In the case of a decision tree in the form of decision tree 400 shown, the internal node 404a of the first machine learning model may have two child nodes 408a, 408b, such as Figure 4 As shown; the internal node 404a of the second machine learning model can have child nodes 408a and 408b, and can also have additional child nodes. Since the further training of the second machine learning model is based on the second data set, this addition can be caused.
[0218] In another example, where the first machine learning model and the second machine learning model are random forests, the first machine learning model may include a first number of separate decision trees and the second machine learning model may include a second number of separate decision trees, wherein the first number is greater than the second number. The deletion may result from the training of the second machine learning model being based on a second data set relative to the first data set.
[0219] In another example, the first machine learning model and the second machine learning model have Figure 5 In the case of a neural network of the general form of neural network 500 shown, the first machine learning model may include two hidden layers 502 and 504; and the second machine learning model may include hidden layers 502, 504 and an additional hidden layer. This addition may be caused because further training of the second machine learning model is based on the second data set.
[0220] Additionally or alternatively, in some embodiments, the second machine learning model may be substantially similar to the first machine learning model, but, when compared to the first machine learning model, the second machine learning model includes one or more deletions.
[0221] For example, the first machine learning model and the second machine learning model have Figure 4 In the case of a decision tree in the form of decision tree 400 shown, the internal node 404a of the first machine learning model may have two child nodes 408a, 408b; while the internal node 404a of the second machine learning model may only have child node 408a. Since further training of the second machine learning model is based on the second data set, this deletion may result.
[0222] In another example, where the first machine learning model and the second machine learning model are random forests, the first machine learning model may include a first number of separate decision trees and the second machine learning model may include a second number of separate decision trees, wherein the first number is less than the second number. The addition may result from further training of the second machine learning model based on the second data set.
[0223] In another example, the first machine learning model and the second machine learning model have Figure 5 In the case of a neural network of the general form of neural network 500 shown, the first machine learning model may include two hidden layers 502 and 504; while the second machine learning model may include only one hidden layer 502. This deletion may be caused because further training of the second machine learning model is based on the second data set.
[0224] Thus, it will be understood that the second machine learning model may include one or more mutations, and / or one or more additions, and / or one or more deletions when compared to the first machine learning model.
[0225] Therefore, if Figure 7 As shown in step 704 of the method, a second machine learning model is developed at a second node based on the first machine learning model and the second data set and using a machine learning algorithm.
[0226] At step 610 , a difference between the first machine learning model and the second machine learning model is determined at the second network node 300 .
[0227] In some embodiments, the difference can be identified by comparing the first machine learning model to the second machine learning model. In some embodiments, the difference can be identified as an addition (or insertion) to the second machine learning model when compared to the first machine learning model. Additionally or alternatively, the difference can be identified as a deletion from the second machine learning model when compared to the first machine learning model. Additionally or alternatively, the difference can be identified as a variation of the second machine learning model when compared to the first machine learning model.
[0228] At step 612, information about differences between the first machine learning model and the second machine learning model is transmitted from second network node 300 to first network node 200. In some embodiments, a serialized version of the information about the differences may be transmitted to first network node 200. For example, in some embodiments in which the first machine learning model and the second machine learning model each include a decision tree, the serialized version of the information about the differences may include an indication of where one or more differences between the first machine learning model and the second machine learning model exist in the structure of the first machine learning model. Additionally or alternatively, this transmission between second network node 300 and first network node 200 may be encrypted.
[0229] In some embodiments, the information about the difference may include information that the second machine learning model is different from the first machine learning model. For example, the information about the difference may include a checkpoint when there is a difference between the first machine learning model and the second machine learning model, and may not include a checkpoint when there is no difference between the first machine learning model and the second machine learning model. In another example, the information about the difference may include a message when there is a difference between the first machine learning model and the second machine learning model, and may not include a message when there is no difference between the first machine learning model and the second machine learning model. In other words, in some embodiments, if there is no difference between the second machine learning model and the first machine learning model, no information is sent from the second network node 300 to the first network node 200.
[0230] In some embodiments, the information about the difference may include information that the second machine learning model is different from the first machine learning model, or may include information that the second machine learning model is not different from the first machine learning model. For example, the information about the difference may include a checkpoint that is set when there is a difference between the first machine learning model and the second machine learning model, and include a checkpoint that is not set when there is no difference between the first machine learning model and the second machine learning model. In another example, the information about the difference may include a first message when there is a difference between the first machine learning model and the second machine learning model, and include a second message when there is no difference between the first machine learning model and the second machine learning model. In other words, in some embodiments, regardless of whether there is a difference between the first machine learning model and the second machine learning model, the information is sent from the second network node 300 to the first network node 200.
[0231] In some embodiments, the information about the difference between the first machine learning model and the second machine learning model further includes information identifying the difference between the first machine learning model and the second machine learning model. For example, the information about the difference may further include an identification message identifying the difference between the first machine learning model and the second machine learning model. In some embodiments, the information identifying the difference may identify the type of difference. For example, the information may identify that the difference includes one or more additions, and / or one or more deletions, and / or one or more mutations (as described above). In some embodiments, the information may identify the location where the difference exists within the second machine learning model.
[0232] Thus, in some embodiments, although information related to the difference between the first machine learning model and the second machine learning model is transmitted between the first network node and the second network node, the second machine learning model itself is not transmitted between the first network node and the second network node. This may be a security and / or privacy requirement for network 100, because information related to the second data set (on which the second machine learning model is based) may be inferred at first network node 200 (if it receives the second machine learning model from second network node 300), even though the second data set has not yet been transmitted to first network node 200.
[0233] In some embodiments, the information about the difference between the first machine learning model and the second machine learning model may further include the second machine learning model.
[0234] Therefore, if Figure 7 As shown in step 706 of the method, information about the difference between the first machine learning model and the second machine learning model is transmitted from the second node to the first node.
[0235] At step 614, information about the differences between the first machine learning model and the second machine learning model is appended to the first machine learning model at the first network node 200. In some embodiments, a checkpoint or message may be appended to the first machine learning model indicating that there are differences between the first machine learning model and the second machine learning model. In some embodiments, an identification checkpoint or identification message may be appended to the first machine learning model identifying where the differences exist and / or identifying what the differences are. For example, the identification checkpoint or identification message may indicate that the differences are one or more additions, and / or one or more deletions, and / or one or more mutations.
[0236] In some embodiments, the step of appending information about the differences between the first machine learning model and the second machine learning model may include updating the first machine learning model so that the differences between the first machine learning model and the second machine learning model are incorporated into the first machine learning model.
[0237] At step 616, a request to execute the machine learning model is received at the first network node 200. The request is transmitted by the third node 800. The third node 800 may be any suitable network node included within a suitable network, such as the network 100. The request to execute will typically be accompanied by an inference data set. The inference data set will include data corresponding to one or more variables, and the execution of the machine learning model will provide classification or regression values for different variables that the machine learning model has been trained to predict based on the values and / or classes of one or more input variables.
[0238] It will be appreciated that the third node 800 may not be aware of the current state of the first machine learning model when requesting execution of the machine learning model at the first network node 200. In other words, the third node 800 may not be aware that a second machine learning model has been developed at the second network node 300, and / or is not aware of any differences between the first machine learning model and the second machine learning model.
[0239] Therefore, if Figure 7 As shown in step 708 of the method, a request to execute a machine learning model is received at a first node.
[0240] At step 618, first network node 200 transmits a request for information indicative of executing a policy to policy node 900. Policy node 900 may be any suitable network node included within a suitable network, such as network 100. In some embodiments, the transmitted request may include information related to first network node 200 and second network node 300. In some embodiments, this information may then be used by policy node 900 to determine the information indicative of executing a policy to be transmitted to first network node 200.
[0241] At step 620, policy node 900 transmits information indicating the execution policy to first network node 200. Thus, in response to receiving the request to execute the machine learning model, first network node 200 obtains information indicating the execution policy.
[0242] In this illustrated embodiment, the information indicative of the execution policy is obtained from the policy node 900. However, it will be appreciated that the information indicative of the execution policy may be obtained from a memory in the first network node 200 in some embodiments.
[0243] It will be appreciated that the policy node 900 may be accessible to both the first network node 200 and the second network node 300 .
[0244] In some embodiments, the information indicating the execution policy may indicate that a machine learning model based on the first machine learning model and the information about the difference between the first machine learning model and the second machine learning model should be executed at the first network node 200 to obtain a result. Optionally, the information indicating the execution policy may further include information indicating that at least a portion of the machine learning model should be executed in the enclave mode.
[0245] Typically, when executing a machine learning model in enclave mode, the machine learning model will be executed in the enclave memory segment. The enclave memory segment will be described in more detail below.
[0246] Alternatively, in some embodiments, the information indicating the execution policy may indicate that the first machine learning model should be partially executed at the first network node 200 and the second machine learning model should be partially executed at the second node to obtain a result. Optionally, the information indicating the execution policy may further include information indicating that at least one component of the first machine learning model or the second machine learning model should be executed in enclave mode.
[0247] Therefore, if Figure 7 As shown in step 710 of the method, in response to receiving a request to execute a machine learning model, information indicating an execution strategy is obtained at a first node.
[0248] Depending on the information indicative of the execution policy obtained by the first network node 200, the first network node 200 may respond to the request to execute the machine learning model in one of two ways.
[0249] In the first embodiment (such as Figure 6 ), the first network node 200 may execute a machine learning model based on the first machine learning model and information about the difference between the first machine learning model and the second machine learning model to obtain a result.
[0250] In some embodiments, executing a machine learning model based on the first machine learning model and information about the difference between the first machine learning model and the second machine learning model to obtain a result may include: updating the first machine learning model so that the difference between the first machine learning model and the second machine learning model is incorporated into the first machine learning model to form a machine learning model. The machine learning model (which has been formed at the first network node 200) may then be executed to obtain a result.
[0251] In some embodiments, the step of executing may include: at the first network node 200, in the enclave memory segment, at least partially executing a machine learning model based on the first machine learning model and the information about the difference between the first machine learning model and the second machine learning model.
[0252] The enclave memory segment provides a secure and encrypted memory space. Furthermore, the enclave memory segment is accessible only by the processing circuitry of the network node within which the enclave memory segment is included, and not by any other device. Thus, the machine learning model can be executed, and results (or in some embodiments, partial results) can be obtained without revealing the intermediate steps of executing the model itself. A possible advantage of this may be improved security when executing the machine learning model. For example, since only the processing circuitry 202 of the first network node 200 can access the machine learning model, the privacy of the data set that has been used to update the machine learning model can be better ensured (e.g., the third node 800 will not be able to access the updated model and, therefore, will not be able to infer any information related to the data that has been used to train the model).
[0253] The enclave memory segment depends on the network node including specific hardware in which the model is being executed. For example, the first network node 200 may include Intel SGX TM or AMD TM Hardware, where hardware memory encryption relies on providing enclave memory segments.
[0254] At step 624 , the first network node 200 transmits the obtained result to the third node 800 .
[0255] Therefore, if Figure 7 As shown in step 712a of the method, at a first node, a machine learning model based on a first machine learning model and information about the difference between the first machine learning model and a second machine learning model is executed to obtain a result.
[0256] Thus, as a result of executing the machine learning model, wherein the machine learning model is formed at the first network node 200 as a result of updating the first machine learning model such that differences between the first machine learning model and the second machine learning model are incorporated into the first machine learning model, then at the first network node 200, a machine learning model is provided in the enclave memory segment, the machine learning model advantageously including the updates that have been provided by training the second machine learning model at the second network node 300, but without revealing or inferring information related to the data that was used to train the model at the second network node 300 to the third node 800. Thus, the results obtained by executing the machine learning model will likely be more accurate (because the machine learning model includes the updates described above), and furthermore, the privacy of the data that has been used to provide the updates has not been compromised.
[0257] Furthermore, the need to transmit large amounts of data from the second network node 300 to the first network node 200 is reduced. Furthermore, the amount of data storage required at the first network node 200 is reduced.
[0258] In the second embodiment (such as Figure 6 As shown in steps 626 to 636 of the present invention, the first machine learning model can be partially executed at the first network node 200, and the second machine learning model can be partially executed at the second network node 300 to obtain a result.
[0259] At step 626, first network node 200 partially executes the first machine learning model. The first machine learning model is partially executed using the inference data set. In some embodiments, the partial execution occurring at first network node 200 is based on information about the difference between the first machine learning model and the second machine learning model.
[0260] For example, the information about the difference between the first machine learning model and the second machine learning model may include information about the location of the first machine learning model where the difference between the first machine learning model and the second machine learning model exists. The first machine learning model can then be executed until the point where the difference exists.
[0261] In another example, the first and second machine learning models are decision trees (e.g., Figure 4 In the case of a decision tree that is substantially the same as the decision tree 400 shown in FIG. 4 ), the information about the difference can indicate a node in the first machine learning model at which the first machine learning model and the second machine learning model begin to differ from each other. In another example, when the first and second machine learning models are neural networks (e.g., with Figure 5In the case of a neural network 500 of substantially the same form as shown, the information about the difference can indicate a layer in the first machine learning model at which the first machine learning model and the second machine learning model begin to differ from each other. The first machine learning model can be executed until the point where the difference exists.
[0262] In another example, where the first and second machine learning models are random forests, the information about the difference can indicate one or more separate decision trees of the first machine learning model at which the first machine learning model and the second machine learning model begin to differ from each other, and additionally or alternatively, nodes in the one or more separate decision trees. The first machine learning model can be executed until the point at which the difference exists.
[0263] In other words, the information about the difference between the first machine learning model and the second machine learning model can indicate the point to which the first machine learning model should be executed. That is, the information about the difference between the first machine learning model and the second machine learning model can specify at which point the execution of the first machine learning model should be branched so that the second machine learning model begins to be executed. Therefore, the update included in the second machine learning model at the second network node 300 is included in the execution of the machine learning model.
[0264] In some embodiments, the first partial result is formed as a result of partially executing the first machine learning model at the first network node 200. For example, the first and second machine learning models include a decision tree (e.g., Figure 4 In the case of a decision tree of substantially the same form as the decision tree 400 shown in FIG. 4 ), the first partial result may be an indication of a node at which execution of the decision tree of the inferred dataset and, optionally, the second machine learning model should be resumed. In another example, where the first and second machine learning models include neural networks (e.g., Figure 5 In the case of a neural network of substantially the same form as the neural network 500 shown, the first partial result may include a set of information that has been output from a layer immediately prior to the layer where the difference between the first and second machine learning models exists. For example, in the case where the first and second machine learning models include random forests, the first partial result may be an inference data set and, optionally, an indication of one or more decision trees included within the random forest whose execution is to be restored here, and optionally, for each of these one or more decision trees, an indication of the node at which the execution of the one or more decision trees of the second machine learning model should be restored here.
[0265] In other words, the first partial result can be a vector used as input by a second machine learning model, where the input is composed of information about the differences that exist between the first and second machine learning models.
[0266] In some embodiments, partially executing the first machine learning model at the first network node 200 may include executing, at the first network node 200, at least one component of the first machine learning model in an enclave memory segment.
[0267] Executing at least one component of the first machine learning model in the enclave memory segment at the first network node 200 may be performed in substantially the same manner and may achieve at least some of the aforementioned advantages, as discussed above.
[0268] At step 628, the first partial result is transmitted to the second network node 300. Thus, in some embodiments, the first network node 200 causes the second machine learning model to be partially executed at the second network node 300 based on the information about the difference between the first machine learning model and the second machine learning model. In some embodiments, the transmission of the first partial result may be encrypted.
[0269] At step 630, the second network node 300 partially executes the second machine learning model using the first partial result to form a second partial result. In some embodiments, the partial execution occurring at the second network node 300 is based on information about the difference between the first machine learning model and the second machine learning model.
[0270] For example, the information about the difference between the first machine learning model and the second machine learning model may include information about the location of the first machine learning model where the difference between the first machine learning model and the second machine learning model exists. The second machine learning model can be executed on the portion of the second machine learning model where the difference exists.
[0271] In another example, the first and second machine learning models are decision trees (e.g., Figure 4 In the case of a decision tree of substantially the same form as the decision tree 400 shown in FIG. 4 , the information about the difference can indicate a node in the first machine learning model at which the first machine learning model and the second machine learning model begin to differ from each other. In another example, when the first and second machine learning models are neural networks (e.g., with Figure 5 In the case of a neural network of substantially the same form as the neural network 500 shown in FIG. 1 , the information about the difference can indicate a layer in the first machine learning model where the first machine learning model and the second machine learning model begin to differ from each other. The second machine learning model can be executed on the portion of the second machine learning model where the difference exists.
[0272] In another example, where the first and second machine learning models are random forests, the information about the difference may indicate one or more separate decision trees of the first machine learning model where the first machine learning model and the second machine learning model begin to differ from each other, and additionally or alternatively, nodes in the one or more separate decision trees. The second machine learning model may be executed on the portion of the second machine learning model where the difference exists.
[0273] In other words, information about the differences between the first machine learning model and the second machine learning model can specify the portion of the second machine learning model that should be executed. Therefore, the partial execution of the second machine learning model can be simply the execution of the portion of the second machine learning model that has been indicated as being different from the first machine learning model.
[0274] In some embodiments, the second partial result is formed as a result of partially executing the second machine learning model at the second network node 300. For example, when the first and second machine learning models include a decision tree (e.g., Figure 4 In the case of a decision tree of substantially the same form as decision tree 400 shown in FIG. 4 ), the second partial result may be an indication of the inferred data set and, optionally, a node at which execution of the first machine learning model should be resumed. In another example, where the first and second machine learning models include neural networks (e.g., Figure 5 In the case of a neural network of substantially the same form as the neural network 500 shown in FIG. 1 ), the second partial result may include an information set that has been output from a final layer that has been determined to be different between the first machine learning model and the second machine learning model and, optionally, an indication of a layer directly following that layer. For example, in the case where the first and second machine learning models include random forests, the second partial result may be an inference data set and, optionally, an indication of one or more decision trees included within the random forest whose execution is to be restored here, and, optionally, for each of these one or more decision trees, an indication of a node at which the execution of the one or more decision trees of the second machine learning model should be restored here.
[0275] In some embodiments, partially executing the second machine learning model at the second network node 300 to obtain a result may include executing at least one component of the second machine learning model in the enclave memory segment at the second network node 300.
[0276] Executing at least one component of the second machine learning model in the enclave memory segment at the second network node 300 may be performed in substantially the same manner and may achieve at least some of the aforementioned advantages, as discussed above.
[0277] At step 632, the second network node 300 transmits the second partial result to the first network node 200. In some embodiments, the transmission of the second partial result may be encrypted.
[0278] At step 634, the first network node 200 partially executes the first machine learning model using the second partial result to form a final result. In other words, the result of executing the second machine learning model is transmitted to the first network node 200, and the execution of the first machine learning model is resumed where appropriate, thereby appropriately combining the result of executing the second machine learning model.
[0279] In some cases, depending on the difference between the second machine learning model and the first machine learning model, the result of executing the second machine learning model at the second node can be the final result. In that case, it is not necessary for the first network node to partially execute the first machine learning model using the result received from the second network node to form the final result.
[0280] In some embodiments, the first and second machine learning models include decision trees (e.g., Figure 4 In the case of a decision tree of substantially the same form as the decision tree 400 shown in FIG. 1 ), the first machine learning model may be executed as a whole at the first network node 200 to form a first partial result, and the second machine learning model may be executed as a whole at the second network node 300 to form a second partial result. Then, a final result may be formed at the first network node 200, for example, by averaging the first partial result and the second partial result. In another example, the final result may be formed at the first network node 200 by combining the first partial result and the second partial result. In another example, the final result may be formed at the first network node 200 by forming a weighted average of the first partial result and the second partial result.
[0281] In some embodiments, where the first and second machine learning models include random forests, the first machine learning model may be executed as a whole at the first network node 200 to form a first partial result, and the second machine learning model may be executed as a whole at the second network node 300 to form a second partial result. Then, a final result may be formed at the first network node 200, for example, by averaging the first partial result and the second partial result. In another example, the final result may be formed at the first network node 200 by combining the first partial result and the second partial result. In another example, the final result may be formed at the first network node 200 by forming a weighted average of the first partial result and the second partial result.
[0282] At step 636 , the first network node 200 transmits the obtained result to the third node 800 .
[0283] Therefore, if Figure 7 As shown in step 712b of the method, the first machine learning model is partially executed at the first node and the second machine learning model is partially executed at the second node to obtain a result.
[0284] Thus, in some examples, information about differences that exist between the first and second machine learning models may provide a way to track how the machine learning models should be executed across different network nodes in the network 100. In another example, versioning of the first and second machine learning models may provide a way to track execution of the machine learning models in the network 100. For example, by referencing previous generations of the second machine learning model, information about differences between the first machine learning model and the second machine learning model may be determined, and thus a way to track how the machine learning models should be executed across different network nodes in the network 100 may be provided.
[0285] Thus, as a result of partially executing the first machine learning model at the first network node 200 and partially executing the second machine learning model at the second network node 300, a machine learning model is provided that advantageously includes updates that have been provided by training the second machine learning model at the second network node 300, but without revealing or inferring information related to the data that was used to train the model at the second network node 300 to the third node 800 or to the first network node 200. Thus, the results obtained by executing the machine learning model will likely be more accurate (because the machine learning model includes the updates described above), and furthermore, the privacy of the data that has been used to provide the updates has not been compromised.
[0286] Furthermore, the need to transmit large amounts of data from the second network node 300 to the first network node 200 is reduced. Furthermore, the amount of data storage required at the first network node 200 is reduced.
[0287] In other words, in this described second embodiment, the computation graph of the machine learning model can be appropriately divided into one or more components, where these components can be executed in one or more nodes while maintaining the directed acyclic graph of the machine learning model. For example, where the machine learning model includes a decision tree (e.g., decision tree 400), the nodes of the decision tree can be separately executed in one or more network nodes. In another example, where the machine learning model includes a neural network (e.g., neural network 500), the layers of the neural network can be separately executed in one or more network nodes. As described above, one or more components of the machine learning model can be trained independently in one or more nodes. The execution policy described herein can indicate where one or more components of the machine learning model are to be executed. In addition, the execution policy described herein can indicate that one or more components of the machine learning model are to be executed in an enclave memory segment (if the enclave memory segment is supported by the hardware of the network node in which the execution occurs) or not in the enclave memory segment. In some embodiments, the execution of the machine learning model can be controlled by a policy node 900.
[0288] It will be appreciated that the methods described herein may be applicable to any machine learning model that includes a directed acyclic graph.
[0289] Thus, methods and apparatus are provided for executing a machine learning model, the execution being based on a strategy between different nodes in which different parts of the machine learning model have been updated.
[0290] It should be noted that the embodiments mentioned above illustrate rather than limit the concepts disclosed herein, and that those skilled in the art will be able to design many alternative embodiments without departing from the scope of the appended claims. The word "comprising" does not exclude the presence of elements or steps other than those listed in the claims, "a" or "an" does not exclude a plurality, and a single processor or other unit may implement the functions of multiple units recited in the claims. Any reference signs in the claims should not be construed as limiting their scope.
Claims
1. A method for executing a machine learning model, the method comprising: At a first node, developing a first machine learning model based on a first data set and using a machine learning algorithm; At a second node, developing a second machine learning model based on the first machine learning model and the second data set and using the machine learning algorithm; transmitting, from the second node to the first node, information about differences between the first machine learning model and the second machine learning model; At the first node, receiving a request to execute a machine learning model; In response to receiving the request to execute the machine learning model, at the first node, obtaining information indicating an execution strategy; as well as Depending on the information obtained, the execution strategy is indicated: executing, at the first node, a machine learning model based on the first machine learning model and information about a difference between the first machine learning model and the second machine learning model to obtain a result; or Partially executing the first machine learning model at the first node and partially executing the second machine learning model at the second node to obtain a result; The step of partially executing the first machine learning model at the first node and partially executing the second machine learning model at the second node to obtain a result includes: executing, at the first node, at least one component of the first machine learning model in an enclave memory segment; and / or executing, at the second node, at least one component of the second machine learning model in an enclave memory segment; and / or Partially executing the first machine learning model at the first node to form a first partial result; transmitting the first partial result from the first node to the second node; At the second node, partially executing the second machine learning model using the first partial result to form a second partial result; transmitting the second partial result from the second node to the first node; At the first node, the first machine learning model is partially executed using the second partial result to form a final result.
2. The method according to claim 1, further comprising: The obtained results are transmitted.
3. The method according to claim 1, wherein: The step of partially executing the first machine learning model at the first node and partially executing the second machine learning model at the second node to obtain a result comprises: At the first node, partially executing the first machine learning model; and At the first node, the second machine learning model is partially executed at the second node based on information about the difference between the first machine learning model and the second machine learning model.
4. The method according to claim 1, wherein: The information about the difference between the first machine learning model and the second machine learning model includes: Information that the second machine learning model is different from the first machine learning model; and / or Information that the second machine learning model is different from the first machine learning model, or information that the second machine learning model is not different from the first machine learning model; and / or information identifying differences between the first machine learning model and the second machine learning model; and / or The second machine learning model.
5. The method according to claim 1, wherein: The information indicating the execution policy is obtained from the policy node, or obtained from a memory in the first node.
6. The method according to claim 1, wherein: When the information indicating the execution policy includes information indicating that the machine learning model based on the first machine learning model and information about the difference between the first machine learning model and the second machine learning model is executed at the first node, the information also includes information indicating that at least a portion of the machine learning model should be executed in enclave mode.
7. The method according to claim 1, wherein: When the information indicating the execution policy includes information indicating that the first machine learning model is partially executed at the first node and the second machine learning model is partially executed at the second node, the information also includes information indicating that at least one component of the first machine learning model or the second machine learning model should be executed in enclave mode.
8. The method according to claim 1, wherein: The first machine learning model and the second machine learning model can each be represented by a computational graph.
9. The method according to claim 8, wherein: The computation graph is a directed acyclic graph.
10. The method according to claim 8 or 9, wherein: The first machine learning model and the second machine learning model are each one of the following: a neural network, a support vector machine, a decision tree, and a random forest.
11. The method according to claim 1, wherein: The step of executing, at the first node, a machine learning model based on the first machine learning model and the information about the difference between the first machine learning model and the second machine learning model to obtain a result comprises: at the first node, at least partially executing the machine learning model based on the first machine learning model and the information about the difference between the first machine learning model and the second machine learning model in the enclave memory segment.
12. A system for executing a machine learning model, the system comprising: a first network node; as well as The second network node, The system is configured to perform the method according to any one of claims 1 to 11.
13. A computer program product comprising computer readable code configured to cause a suitably programmed processor to perform the method according to any one of claims 1 to 11.
14. A computer program product comprising a tangible computer readable medium containing computer readable instructions for causing a processor to perform a method comprising: At a first node, developing a first machine learning model based on a first data set and using a machine learning algorithm; At a second node, developing a second machine learning model based on the first machine learning model and the second data set and using the machine learning algorithm; transmitting, from the second node to the first node, information about differences between the first machine learning model and the second machine learning model; At the first node, receiving a request to execute a machine learning model; In response to receiving the request to execute the machine learning model, at the first node, obtaining information indicating an execution strategy; as well as Depending on the information obtained, the execution strategy is indicated: executing, at the first node, a machine learning model based on the first machine learning model and information about a difference between the first machine learning model and the second machine learning model to obtain a result; or Partially executing the first machine learning model at the first node and partially executing the second machine learning model at the second node to obtain a result; The step of partially executing the first machine learning model and causing the second node to partially execute the second machine learning model to obtain a result includes: executing at least one component of the first machine learning model in the enclave memory segment; and / or causing the second node to partially execute the second machine learning model in the enclave memory segment; and / or Partially executing the first machine learning model to form a first partial result; transmitting the first partial result to the second node; causing the second machine learning model to be partially executed at the second node using the first partial result so that a second partial result is formed at the second node; receiving the second partial result from the second node; The first machine learning model is partially executed using the second partial result to form a final result.
15. The computer program product of claim 14, wherein: Partially executing the first machine learning model and causing the second node to partially execute the second machine learning model at the second node to obtain a result includes: partially executing the first machine learning model; and Cause the second node to partially execute the second machine learning model based on information about the differences between the first machine learning model and the second machine learning model.
16. The computer program product of claim 14, wherein: The information about the difference between the first machine learning model and the second machine learning model includes: Information that the second machine learning model is different from the first machine learning model; and / or Information that the second machine learning model is different from the first machine learning model, or information that the second machine learning model is not different from the first machine learning model; and / or information identifying differences between the first machine learning model and the second machine learning model; and / or The second machine learning model.
17. The computer program product of claim 14, wherein: The information indicating the execution policy is obtained from the policy node, or obtained from a memory in the first node.
18. The computer program product of claim 14, wherein: When the information indicating the execution policy includes information indicating execution of the machine learning model based on the first machine learning model and information about the difference between the first machine learning model and the second machine learning model, the information also includes information indicating that at least a portion of the machine learning model should be executed in enclave mode.
19. The computer program product of claim 14, wherein: When the information indicating the execution policy includes information indicating that the first machine learning model is partially executed and instructing the second node to partially execute the second machine learning model, the information also includes information indicating that at least one component of the first machine learning model or the second machine learning model should be executed in enclave mode.
20. The computer program product of claim 14, wherein: The first machine learning model and the second machine learning model can each be represented by a computational graph.
21. The computer program product of claim 20, wherein: The computation graph is a directed acyclic graph.
22. A computer program product according to claim 20 or 21, wherein: The first machine learning model and the second machine learning model are each one of the following: a neural network, a support vector machine, a decision tree, and a random forest.
23. The computer program product of claim 14, wherein: The step of executing a machine learning model based on the first machine learning model and the information about the difference between the first machine learning model and the second machine learning model to obtain a result includes: executing, at least in part, in the enclave memory segment, the machine learning model based on the first machine learning model and the information about the difference between the first machine learning model and the second machine learning model.
24. A first network node for executing a machine learning model, the first network node comprising: an interface configured to allow communication with other network nodes; Memory; as well as processor, The first network node is configured to execute the computer program product according to any one of claims 14 to 23.
