Cloud computing method, system and device based on AI model and edge node

By dividing the AI ​​model into local model blocks in edge nodes and performing distributed calculations, the problem of AI model leakage risks in the cloud computing process is solved, and the security and cost-effectiveness of the model are improved.

CN118550699APending Publication Date: 2024-08-27SHENZHEN ONETHING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410652236.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

There is a risk of leakage of existing AI models in the cloud computing process, especially when computing at edge nodes. Existing encryption solutions mainly focus on storage and transmission, making it difficult to ensure the security of AI models.

Method used

By dividing the AI ​​model into local model blocks and performing distributed calculations in edge nodes, each edge node only processes its designated model blocks, and uses model gateway devices to divide and distribute model blocks to ensure model security during the calculation process. .

Benefits of technology

It effectively reduces the risk of leakage of the AI ​​model during the calculation process, improves the security of the model, and reduces the calculation cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550699A
    Figure CN118550699A
Patent Text Reader

Abstract

The invention discloses a cloud computing method based on an AI model, a cloud computing system based on the AI model, a cloud computing device based on the AI model, an edge node and a computer readable storage medium, the cloud computing method is applied to the edge node, and the cloud computing method comprises the following steps: computing a received computing demand through a specified model block to obtain a sub-computing result; the specified model block corresponds to a calculation demand, and the specified model block is determined from each model layer of the target AI model according to a preset calculation sequence; if the edge node is not the last edge node, sending the sub-calculation result to the next edge node; the specified model block corresponding to the last edge node is located at the last position of the calculation sequence; the calculation sequence of the specified model block corresponding to the next edge node is immediately after the calculation sequence of the specified model block; and if the edge node is the last edge node, determining the sub-calculation result as a final calculation result. According to the method, the security of the target AI model can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of machine learning technology, and in particular relates to a cloud computing method based on an AI model, a cloud computing system based on an AI model, a cloud computing device based on an AI model, an edge node, and a computer-readable storage medium. Background Art

[0002] The computing cost of using the computing power of the central computer room to complete the cloud computing of artificial intelligence (AI) models is high. In order to reduce the computing cost, edge nodes are usually used to complete it. Although this can reduce the computing cost, since AI models are usually complex and involve sensitive data, once leaked, it may cause serious losses. Low-cost cloud computing methods are likely to increase the risk of leakage of AI models.

[0003] In related technologies, although the risk of AI model leakage can be reduced by encrypting the AI ​​model, the existing AI model encryption schemes mainly focus on storage and transmission, which makes the AI ​​model easy to be stolen during the calculation process and it is difficult to ensure the security of the AI ​​model. Summary of the invention

[0004] The present application provides a cloud computing method for an AI model, a cloud computing device for an AI model, an edge node, and a computer-readable storage medium. Each edge node performs calculations only through a local model layer of the AI ​​model, that is, a distributed cloud computing method is used to calculate the entire AI model, which can reduce the risk of the AI ​​model being stolen during the calculation process and improve the security of the AI ​​model.

[0005] In a first aspect, the present application provides a cloud computing method for an AI model, which is applied to an edge node. The cloud computing method includes:

[0006] The received computing requirements are calculated by specifying a model block to obtain a sub-computation result; the specified model block corresponds to the computing requirements, and the specified model block is determined from each model layer of the target AI model according to a preset calculation order;

[0007] If the edge node is not the last edge node, the sub-calculation result is sent to the next edge node; the designated model block corresponding to the last edge node is at the end of the calculation order; the calculation order of the designated model block corresponding to the next edge node is immediately after the calculation order of the designated model block;

[0008] If the edge node is the last edge node, the sub-calculation result is determined as the final calculation result.

[0009] In a second aspect, the present application provides a cloud computing system based on an AI model, comprising an edge node and a model gateway device. Before the edge node first executes the steps of the cloud computing method as claimed in claim 1, the model gateway device is used to:

[0010] After receiving the computing request sent by the computing requester, the target AI model is divided into at least two model blocks; the model block is a local model composed of one or more consecutive model layers of the target AI model;

[0011] At least two edge nodes are determined from the preset computing nodes, and a corresponding designated model block is allocated to each edge node; different edge nodes perform calculations through different designated model blocks, and the designated model block of each edge node corresponds to the computing requirements received by the edge node.

[0012] In a third aspect, the present application provides a cloud computing device based on an AI model, which is applied to an edge node, and the cloud computing device includes:

[0013] A calculation module, used to calculate the received calculation requirements through a specified model block to obtain a sub-calculation result; the specified model block corresponds to the calculation requirement, and the specified model block is determined from each model layer of the target AI model according to a preset calculation order;

[0014] A sending module, used for sending the sub-calculation result to the next edge node if the edge node is not the last edge node; the designated model block corresponding to the last edge node is at the end of the calculation sequence; the calculation sequence of the designated model block corresponding to the next edge node is immediately after the calculation sequence of the designated model block;

[0015] The determination module is used to determine the sub-calculation result as the final calculation result if the edge node is the last edge node.

[0016] In a fourth aspect, the present application provides an edge node, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method of the first aspect when executing the computer program.

[0017] In a fifth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method in the first aspect are implemented.

[0018] In a sixth aspect, the present application provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by one or more processors, the steps of the first aspect are implemented.

[0019] Compared with the prior art, the present application has the following beneficial effects: in order to reduce the AI ​​model calculation cost while improving the security of the AI ​​model, when calculating based on the edge node, the edge node only calculates through the local model of the target AI model, that is, the designated model block. Based on this, after receiving the calculation demand, the edge node can calculate the calculation demand through the designated model block to obtain the sub-calculation result. Among them, the designated model block corresponds to the calculation demand, and the designated model block can be determined from each model layer of the target AI model according to the preset calculation order. Each model layer of the target AI model is calculated layer by layer until the last layer is calculated and the final calculation result is obtained. When the target AI model is divided into model blocks, it is no exception. It is also calculated one by one until the model block at the end of the calculation order is calculated and the final calculation result is obtained. Therefore, if the calculation order of the designated model block corresponding to the edge node is at the end, the calculation result obtained is also the final calculation result. However, if the edge node is not the last edge node, then the sub-calculation result obtained by the edge node after calculating the calculation demand through the corresponding designated model block is an intermediate calculation result, not a final settlement result. In order to complete a complete calculation, after obtaining the sub-calculation result, the edge node can send the sub-calculation result to the next edge node for further calculation by the next edge node. The calculation order of the specified model block corresponding to the next edge node is immediately after the calculation order of the specified model block.

[0020] That is to say, each edge node only performs calculations through a designated model block, which only includes part of the model layer of the target AI model and can be regarded as a local model. Different edge nodes use different designated models for calculations, that is, the entire target AI model is calculated through a distributed cloud computing method. Thanks to the advantages brought by distributed computing, even if some designated model blocks are stolen, it is difficult to piece together a complete target AI model, which can effectively reduce the risk of the entire target AI model being stolen during the calculation process, thereby achieving the purpose of reducing the calculation cost of the AI ​​model while improving the security of the AI ​​model.

[0021] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0023] Figure 1It is a flowchart of a cloud computing method for an AI model provided in an embodiment of the present application;

[0024] Figure 2 It is a schematic diagram of the structure of each model layer of the AI ​​model provided in the embodiment of the present application;

[0025] Figure 3 It is a flowchart of a cloud computing method performed by a model gateway device provided in an embodiment of the present application;

[0026] Figure 4 It is a structural diagram of a cloud computing system provided in an embodiment of the present application;

[0027] Figure 5 It is a structural diagram of a cloud computing device of an AI model provided in an embodiment of the present application;

[0028] Figure 6 It is a schematic diagram of the structure of the edge node provided in the embodiment of the present application. DETAILED DESCRIPTION

[0029] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0030] In related technologies, although letting edge nodes complete the calculation of AI models can reduce computing costs, it is easy to increase the risk of model leakage. Although the risk of model leakage can be reduced by encrypting the AI ​​model, the existing AI model encryption scheme mainly focuses on storage and transmission, which makes the AI ​​model still easy to be stolen during the calculation process, making it difficult to ensure the security of the AI ​​model.

[0031] In order to solve this problem, this application proposes a cloud computing method for AI models, which can reduce the model calculation cost while ensuring the security of the model during the calculation process. The control method proposed in this application will be described below through specific embodiments.

[0032] The cloud computing method of this AI model is mainly applied to edge nodes. Edge nodes refer to computing nodes that are close to users and not on the backbone network of cloud computing. Executing computing tasks through edge nodes can reduce bandwidth loss caused by network transmission and multi-level forwarding, and reduce time delay.

[0033] The edge node can be any electronic device that can provide computing power, for example, it can be a mobile phone, a tablet computer, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), and other electronic devices. The embodiments of the present application do not impose any restrictions on the specific type of electronic device.

[0034] In order to illustrate the technical solution proposed in the present application, each embodiment will be described below with the edge node as the execution subject.

[0035] Figure 1 A schematic flow chart of a cloud computing method for an AI model provided in the present application is shown, and the cloud computing method for the AI ​​model includes:

[0036] Step 110: The edge node calculates the received computing requirements by specifying the model block to obtain a sub-computation result.

[0037] In the cloud computing process based on the target AI model, in order to reduce the risk of the entire target AI model being stolen, the edge node can perform calculations through the local model of the target AI model, that is, the designated model block. Different designated model blocks have different computing requirements. After receiving the computing requirements corresponding to the designated model block, the edge node can calculate it through the designated model block to obtain the sub-computation result.

[0038] Specifically, there are multiple ways for an edge node to obtain a specified model block.

[0039] Exemplarily, in order to improve computing efficiency, before receiving computing requirements, the edge node may obtain the specified model block from the model server that stores the target AI model according to the model block acquisition instruction sent by the model gateway device; in order to reduce the consumption of edge node storage space by the model block, the computing requirements may record the relevant information of the specified model block. After receiving the computing requirements, the edge node obtains the specified model block from the model server or model gateway device based on the relevant information of the specified model block; in order to reduce network interactions, the specified model block may be packaged with the computing requirements, and the edge node can obtain the specified model block by receiving the packaged data.

[0040] In the process of calculating based on the entire target AI model, the calculation starts from the first model layer of the target AI model, and the calculation result is passed backward until the last layer completes the calculation and obtains the final calculation result. This is no exception for the target AI model divided into model blocks, that is, in the process of calculating based on each model block, the calculation order must also be followed. Therefore, the specified model block can be determined from each model layer of the target AI model according to the preset calculation order.

[0041] For example, see Figure 2 , the calculation order is related to the position of each model layer in the target AI model. For each model layer of the target AI model, the model layer closer to the input end has an earlier calculation order, and the first model layer is at the first place in the calculation order; the model layer closer to the output end has a later calculation order, and the last model layer is at the last place in the calculation order. Each designated model block, that is, a local model layer of the target AI model, may include at least one model layer or more than two consecutive model layers of the target AI model. Therefore, the position of the model layer included in each designated model block in the target AI model determines its calculation order.

[0042] It can be understood that each model block has a corresponding calculation order, and the model block corresponding to each edge node is its designated model block. Therefore, the calculation order of each execution model block is equivalent to the calculation order of the corresponding edge node. For the sake of simplicity, the "calculation order of edge nodes" will be used instead of "calculation order of designated model blocks corresponding to edge nodes" for explanation.

[0043] Step 120: If the edge node is not the last edge node, the edge node sends the sub-computation result to the next edge node.

[0044] Step 130: If the edge node is the last edge node, the sub-calculation result is determined as the final calculation result.

[0045] As can be seen from the above description, the final calculation result can be obtained by calculating the specified model block at the end of the calculation order.

[0046] Therefore, if the calculation order of the designated model block corresponding to the edge node is at the end, the calculation result obtained is also the final calculation result. However, if the edge node is not the last edge node, then after the edge node calculates the calculation demand through the corresponding designated model block, the sub-calculation result obtained is an intermediate calculation result, not a final settlement result. In order to complete a complete calculation, after the edge node obtains the sub-calculation result, it can send the sub-calculation result to the next edge node for further calculation by the next edge node. Among them, the calculation order of the next edge node is immediately after the calculation order of the edge node.

[0047] As an example only, assume that the target AI model corresponds to three model blocks, namely model block a, model block b, and model block c, and the calculation order of the three model blocks is a>b>c. There are three corresponding edge nodes, namely edge node A, edge node B, and edge node C. Among them, the designated model block of edge node A is model block a, the designated model block of edge node B is model block b, and the designated model block of edge node C is model block c.

[0048] Since model block c is at the end of the calculation order, edge node C is the last edge node. That is, edge node C can calculate the received calculation requirements through model block c to obtain the sub-calculation results, that is, the final calculation results. However, edge nodes A and B are not the last edge nodes. Therefore, in order to facilitate the next edge node to further calculate based on the sub-calculation results of this edge node, edge node A can calculate the received calculation requirements through model block a to obtain the sub-calculation results; edge node A sends its sub-calculation results to the next edge node, that is, edge node B; edge node B can calculate the received calculation requirements through model block b to obtain the sub-calculation results; edge node B sends its sub-calculation results to the next edge node, that is, edge node C.

[0049] In this embodiment, the edge node only performs calculations through a designated model block, which only includes part of the model layer of the target AI model and can be regarded as a local model. That is, different edge nodes use different designated models for calculations, and the entire target AI model is calculated through a distributed cloud computing method. Thanks to the advantages brought by distributed computing, even if the designated model block of the edge node is stolen, it is difficult to piece together a complete target AI model, which can effectively reduce the risk of the entire target AI model being stolen during the calculation process, thereby achieving the purpose of reducing the calculation cost of the AI ​​model while improving the security of the AI ​​model.

[0050] In some embodiments, similar to the naming of the last edge node, the edge node that is first in the calculation order can be recorded as the first edge node. The first edge node is the edge node that performs calculation first, and before this edge node, no other edge node has obtained the intermediate calculation result. Therefore, the calculation demand received by the first edge node may include the calculation request sent by the calculation requester.

[0051] Exemplarily, the calculation request may include initial calculation data and calculation requirements. After receiving the calculation request, the first edge node may perform calculations according to the calculation requirements based on the initial calculation data and the corresponding designated model block to obtain corresponding sub-calculation results.

[0052] Exemplarily, the computing requester may be a client, which may send a computing request through a model gateway device, and the model gateway device forwards the computing request to the first edge node, so that each edge node can jointly complete the computing task corresponding to the computing request and obtain the final computing result.

[0053] If the edge node is not the first edge node, there are other edge nodes before the edge node. For such an edge node, its calculation basis is the sub-calculation result of the previous edge node. Therefore, the calculation requirements corresponding to the edge node can be determined based on the sub-calculation result calculated by the previous edge node. Among them, the calculation order of the edge node is immediately after the calculation order of the previous edge node.

[0054] Exemplarily, using the above example for explanation, for edge node A, its corresponding computing requirement may include the computing request sent by the requesting party; for edge node B, its corresponding computing requirement may be determined based on the sub-computation result of edge node A; for edge node C, its corresponding computing requirement may be determined based on the sub-computation result of edge node B.

[0055] Exemplarily, if the computing requirement includes the sub-computation result and computing requirement of the previous edge node, then after receiving the computing requirement, the edge node may perform computing according to the computing requirement based on the sub-computation result of the previous edge node and the corresponding designated model block.

[0056] In some embodiments, in order to improve the security of the specified model block during the calculation process, the specified model block can be read from the transparent encrypted file system. That is, the specified model block can be stored in the transparent encrypted file system, and after the edge node receives the calculation request, it can be read from the transparent encrypted file system.

[0057] The transparent encrypted file system only supports authorized processes to read data. For unauthorized processes, such as processes that steal model blocks, it is difficult for them to obtain the specified model block from the transparent encrypted file system. Even if the specified model block can be obtained, it is an encrypted model block that is difficult to decrypt. Therefore, storing the specified model block in the transparent encrypted file system can not only reduce the exposure time of the specified model block and reduce the risk of the specified model block being stolen, but also further increase the difficulty of decrypting the specified model block, thereby ensuring the security of the specified model block.

[0058] In some embodiments, the designated model block is an encrypted model block. Thus, the edge node calculates the computing requirements based on the decrypted designated model block. Specifically, the designated model block is an encrypted model block before use, and when used, it exists in a decrypted state in the memory and / or video memory, so that the edge node can perform calculations through the decrypted designated model block.

[0059] In some embodiments, during the calculation process of the model, the risk of the designated model block after decryption in the memory and / or video memory being stolen is relatively high. In order to reduce the exposure time of the designated model block after decryption, after the edge node obtains the corresponding sub-calculation result, it can determine whether a new calculation demand is received within a preset time period. If no new calculation demand is received within the preset time period, the designated model block after decryption in the memory and / or video memory can be deleted for safety reasons.

[0060] As an example only, after the decrypted specified model block is deleted, if a new computing requirement is received, the edge node may decrypt the encrypted model block into the memory and / or video memory to facilitate the calculation of the new computing requirement through the decrypted specified model block in the memory and / or video memory.

[0061] In some embodiments, in the aforementioned embodiments, the security of the AI ​​model during the calculation process is improved through two aspects. Among them, on the one hand, different edge nodes are used to calculate different model blocks, which can form a distributed cloud computing method to reduce the risk of the entire target AI model being stolen; on the other hand, the model is encrypted to reduce the exposure time of the decrypted model block, thereby reducing the risk of the decrypted model block being stolen. Combining the two solutions can obtain a more secure cloud computing method.

[0062] In some embodiments, although the distributed cloud computing method can be made more secure with the support of encryption methods, the model blocks are still in a decrypted state during the actual calculation process; in addition, if there is no physical isolation between the edge computing nodes, for example, they are all in the same local area network, then if the local area network is attacked, the model blocks of the target AI model may still be stolen, thereby piecing together the entire target AI model. In order to solve this problem, physical isolation can be made between the edge nodes, so that even if a local area network is attacked, all the model blocks of the target AI model cannot be obtained, reducing the risk of the entire target AI model being stolen.

[0063] In some embodiments, the target AI model is divided into at least 2 model blocks, and the corresponding edge nodes are at least 2. If all edge nodes are in a local area network, that is, there is no physical isolation between the edge nodes, then when the local area network is attacked, the risk of the entire target AI model being stolen is high. Therefore, in order to further reduce the risk of the entire target AI model being stolen, for the case where each model block corresponds to an edge node, at least one edge node among all edge nodes is not in the same local area network as the other edge nodes.

[0064] For example, it is assumed that the target AI model is divided into three model blocks, corresponding to three edge nodes respectively. Among the three edge nodes, at least one edge node is not in the same local area network as the other two edge nodes.

[0065] In this case, the possibility of two LANs being attacked at the same time is low, and even if one of the LANs is attacked, the entire target AI model will not be stolen.

[0066] Preferably, each edge node can be located in a different local area network. In this way, to obtain all model blocks of the target AI model, more local area networks need to be attacked, and the possibility of successfully stealing all model blocks is lower, making the target AI model more secure.

[0067] In some embodiments, in order to meet the access volume, each model block may correspond to more than one edge node, but a node pool composed of at least one edge node, wherein at least one of the node pools includes at least two edge nodes. In this case, in order to allow physical isolation between edge nodes, for each LAN, the N edge nodes in the LAN are divided into m different node pools, and m is less than M, M is the total number of node pools; each node pool has at least one node pool including at least two edge nodes.

[0068] For example, assume that the target AI model is divided into three model blocks, each model block corresponds to a node pool, that is, there are three node pools in total. If all nodes in the three node pools come from two local area networks, then for each local area network, the multiple edge nodes it includes can only be divided into one or two node pools (M=3, m∈{1,2}), that is, the edge nodes in the local area network cannot be divided into each node pool, which can avoid the situation where the entire target AI model can be obtained by attacking only one local area network, thereby improving the security of the entire target AI model.

[0069] Optionally, the larger M is and the smaller m is, the better. To steal all model blocks of the target AI model, more LANs need to be attacked, and the possibility of successfully stealing all model blocks is lower, making the target AI model more secure.

[0070] Optionally, ideally, in order to minimize the risk of the entire target AI model being stolen, the computing nodes of each node pool come from the same local area network, and different node pools correspond to different local area networks.

[0071] In some embodiments, after the final calculation result is obtained, the final settlement result can be fed back to the calculation requester through any edge node.

[0072] In some embodiments, in order to reduce the interaction between the computation requester or the model gateway device and each edge node, when the leading edge node can directly communicate with the computation requester or the model gateway device, the last edge node can send the final computation result to the previous edge node, so that the final computation result is transmitted to the first edge node in the reverse order of the computation sequence. The computation sequence of the last edge node is immediately after the computation sequence of the previous edge node.

[0073] That is, the final calculation result is sent by the leading edge node to the calculation requester. Specifically, the leading edge node can directly feed back the received final calculation result to the calculation requester, or first feed back to the model gateway device, so that the model gateway device forwards the final calculation result to the calculation requester.

[0074] Exemplarily, assuming that the calculation order of each edge node A, B, C, and D can be determined as A→B→C→D based on the calculation order corresponding to each specified model block, then after the last edge node D obtains the final calculation result, it will pass the final calculation result to the previous edge node C, so that each edge node sends the final calculation result to edge node A in the reverse order of the calculation order, and edge node A sends the final calculation result to the model gateway device or the calculation requester. Among them, the reverse order of the calculation order is D→C→B→A.

[0075] In some embodiments, in order to improve the efficiency of feedback of the final calculation results, when the last edge node can communicate directly with the requester, the last edge node can directly send the final calculation result to the calculation requester; or when the last edge node can communicate with the model gateway device, the last edge node can directly send the final calculation result to the model gateway device, so that the model gateway device can forward the final calculation result to the calculation requester.

[0076] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0077] On the other hand, in order to solve the above technical problems, the present application also proposes a cloud computing system for AI models, which includes a model gateway device and an edge node. Figure 3 Before the edge node performs the steps described in the above embodiments for the first time, the model gateway device may perform the following steps:

[0078] Step 310: After receiving the computing request sent by the computing requester, the model gateway device divides the target AI model into at least 2 model blocks.

[0079] After receiving the calculation request sent by the calculation requester, the model gateway device can determine the corresponding target AI model row based on the calculation request. In order to reduce the risk of the entire target AI model being stolen, the model gateway device can divide the target AI model into at least 2 model blocks. The model block is a local model of the target AI model, and each model block may include 1 or more than 2 consecutive model layers.

[0080] For example, assuming that the target AI model has 8 model layers, the 1st to 2nd model layers can be divided into model block A1, the 3rd to 7th model layers can be divided into model block A2, and the 8th model layer can be divided into model block A3. That is, a total of 3 model blocks are obtained, and the calculation order of the model blocks is determined based on the position of the corresponding model layer in the target AI model, that is, the calculation order of the 3 model blocks is A1→A2→A3 respectively.

[0081] Step 320: The model gateway device determines at least two edge nodes from the preset computing nodes, and allocates a corresponding designated model block to each edge node.

[0082] After obtaining each model block, the model gateway device may determine at least two edge nodes from the computing nodes. For example, the model gateway may determine at least two edge nodes from each computing node based on network availability, or the model gateway may determine at least two edge nodes from each computing node based on the computing requirements corresponding to each model block. After determining the edge nodes, the model gateway device may assign the corresponding designated model block to each edge node.

[0083] As an example only, assuming that three model blocks are divided and two edge nodes are determined from each computing node based on device performance, the model gateway device can use any two of the three model blocks as the designated model blocks of one of the edge nodes and the remaining model block as the designated model block of the other edge node.

[0084] In some embodiments, the model gateway device can encrypt each model block and store it in the model server, which can improve the security of the target AI model.

[0085] In some embodiments, see Figure 4 , assuming that each edge node has stored the corresponding encrypted designated model block in the transparent encrypted file system according to the allocation of the model gateway device. Each edge node corresponds to an independent electronic device, that is, each edge node is not a virtual machine on the same electronic device. After the model gateway device receives the computing request from the client, the cloud computing system can perform the following steps:

[0086] The model gateway device forwards the computation request to the first edge node to initiate the computation.

[0087] The first edge node can calculate the calculation request through the specified model block decrypted in the memory, obtain the sub-calculation result, and send the sub-calculation result to the next edge node.

[0088] The edge node between the first edge node and the last edge node can be recorded as an intermediate edge node. After receiving the sub-computation result sent by the previous edge node, each intermediate edge node can calculate through the decrypted specified model block in the memory to obtain the sub-computation result, and send the sub-computation result to the next edge node.

[0089] After receiving the sub-calculation result sent by the previous edge node, the last edge node can perform calculations through the decrypted specified model block in the memory to obtain the final calculation result, and send the final calculation result to the previous edge node.

[0090] After receiving the final calculation result sent by the next edge computing node, each intermediate computing node will send the final calculation result to the previous edge node.

[0091] After receiving the final calculation result, the first edge node sends the final calculation result to the model gateway device.

[0092] The model gateway device can feed back the final calculation results to the client. At this point, a calculation task is completed.

[0093] For each edge node (the first edge node, the middle edge node, and the last edge node), when it receives the corresponding computing demand, it can determine whether there is a decrypted designated model block in the memory. In the case that there is no decrypted designated model block in the memory, the model interface server of the edge node can read the encrypted designated model block from the transparent encryption file system and decrypt the encrypted designated model block into the memory, so that the edge node can perform calculations through the decrypted designated model block in the memory.

[0094] For each edge node, if it does not receive a new calculation request within a preset time period after obtaining the sub-calculation result, the edge node can delete the decrypted designated model block in the memory and video memory.

[0095] In this embodiment, the model gateway divides the target AI model into different model blocks and assigns different model blocks to different edge nodes, so that each edge node completes the calculation through a distributed cloud computing method to ensure the security of the entire target AI model. Not only is each model block encrypted separately, but each edge node also stores the encrypted designated model block through a transparent encrypted file system, further ensuring the security of each model block.

[0096] During the calculation process, although the encrypted model blocks in the transparent encrypted file system will be read into the memory of the edge node by the authorized process and stored in a decrypted state so as to be loaded into the video memory for calculation, if there is no new calculation demand within the preset time period, the edge node can delete the decrypted specified model blocks from the memory and video memory, thereby minimizing the exposure time of the decrypted specified model blocks, thereby further strengthening the security of the specified model blocks.

[0097] It is not difficult to see that each model block is scattered in each edge node during calculation. Therefore, even if the specified model blocks of some edge nodes are stolen, it is difficult to piece together the entire target AI model. In other words, the cloud computing system in this embodiment can greatly improve the security of the complete target AI model during the calculation process. In order to further improve the security of the entire target AI model, different edge nodes can come from different local area networks, which makes it more difficult to obtain the complete target AI model, making the target AI model more secure during the calculation process.

[0098] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0099] The cloud computing method corresponding to the AI ​​model of the above embodiment, Figure 5 A structural block diagram of a cloud computing device 5 of an AI model provided in an embodiment of the present application is shown, which is applied to an edge node. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0100] Reference Figure 5 , the cloud computing device 5 of the AI ​​model includes:

[0101] A calculation module 51 is used to calculate the received calculation requirements through a specified model block to obtain a sub-calculation result; the specified model block corresponds to the calculation requirement, and the specified model block is determined from each model layer of the target AI model according to a preset calculation order;

[0102] The sending module 52 is used to send the sub-calculation result to the next edge node if the edge node is not the last edge node; the designated model block corresponding to the last edge node is at the end of the calculation order; the calculation order of the designated model block corresponding to the next edge node is immediately after the calculation order of the designated model block;

[0103] The determination module 53 is configured to determine the sub-calculation result as the final calculation result if the edge node is the last edge node.

[0104] Optionally, if the edge node is a leading edge node, the computing demand includes a computing request sent by a computing requester;

[0105] If the edge node is not the first edge node, the computing requirement is determined based on the sub-computation result calculated by the previous edge computing node;

[0106] Among them, the designated model block corresponding to the first edge node is at the first place in the calculation order; the calculation order of the designated model block is immediately after the calculation order of the designated model block corresponding to the previous edge node.

[0107] Optionally, the target AI model is divided into at least 2 model blocks;

[0108] In the case where each model block corresponds to an edge node, at least one edge node among all edge nodes is not in the same local area network as other edge nodes;

[0109] In the case where each model block corresponds to a node pool including at least one edge node, for each local area network, the N edge nodes in the local area network are divided into m different node pools, and m is less than M, M is the total number of node pools; each node pool has at least one node pool including at least two edge nodes.

[0110] Optionally, the determination module 53 is further configured to: after determining the sub-calculation result as the final calculation result, send the final calculation result to the calculation requesting party.

[0111] Optionally, the determination module 53 is further specifically configured to: directly send the final calculation result to the calculation requesting party;

[0112] Alternatively, after the sub-calculation result is determined as the final calculation result, the final calculation result is sent to the previous edge node, so that the final calculation result is transmitted to the first edge node in the reverse order of the calculation order, and the final calculation result is sent to the calculation requester through the first edge node; the calculation order of the specified model block is immediately after the calculation order of the specified model block corresponding to the previous edge node; the calculation order of the specified model block corresponding to the first edge node is in the first place.

[0113] Optionally, specify that the model nugget be read from a transparent encrypting file system.

[0114] Optionally, the designated model block is an encrypted model block; the calculation module 51 is specifically used for:

[0115] The computational requirements are calculated by decrypting the specified model blocks in memory and / or video memory.

[0116] Optionally, the cloud computing device 5 further includes: after obtaining the sub-calculation result, if no new calculation demand is received within a preset time period, deleting the decrypted designated model block in the memory and / or video memory.

[0117] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0118] Figure 6 This is a schematic diagram of the physical structure of an edge node provided in one embodiment of the present application. Figure 6 As shown, the edge node 6 of this embodiment includes: at least one processor 60 ( Figure 6 Only one processor is shown in the figure), a memory 61, and a computer program 62 stored in the memory 61 and executable on at least one processor 60. When the processor 60 executes the computer program 62, the steps of the cloud computing method embodiment of any AI model described above are implemented, for example Figure 1 Steps 110-130 are shown.

[0119] The processor 60 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0120] In some embodiments, the memory 61 may be an internal storage unit of the edge node 6, such as a hard disk or memory of the edge node 6. In other embodiments, the memory 61 may also be an external storage device of the edge node 6, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the edge node 6.

[0121] Furthermore, the memory 61 may include both an internal storage unit of the edge node 6 and an external storage device. The memory 61 is used to store operating devices, applications, boot loaders, data, and other programs, such as program codes of computer programs, etc. The memory 61 may also be used to temporarily store data that has been output or is to be output.

[0122] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the above-mentioned device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0123] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0124] An embodiment of the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0125] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code can be in source code form, object code form, executable file or some intermediate form. The above-mentioned computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / electronic device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a disk or an optical disk.

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

[0127] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0128] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the above modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0129] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0130] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A cloud computing method based on an AI model, characterized in that: Applied to edge nodes, the cloud computing method includes: The received computing requirement is calculated by a designated model block to obtain a sub-computation result; the designated model block corresponds to the computing requirement, and the designated model block is determined from each model layer of the target AI model according to a preset computing order; If the edge node is not the last edge node, the sub-calculation result is sent to the next edge node; the designated model block corresponding to the last edge node is at the end of the calculation sequence; the calculation sequence of the designated model block corresponding to the next edge node is immediately after the calculation sequence of the designated model block; If the edge node is the last edge node, the sub-calculation result is determined as the final calculation result.

2. The cloud computing method according to claim 1, wherein: If the edge node is the leading edge node, the computing demand includes a computing request sent by a computing requester; If the edge node is not the first edge node, the calculation requirement is determined based on the sub-calculation result calculated by the previous edge node; Among them, the designated model block corresponding to the first edge node is at the first place in the calculation order; the calculation order of the designated model block is immediately after the calculation order of the designated model block corresponding to the previous edge node.

3. The cloud computing method according to claim 1, wherein: The target AI model is divided into at least 2 model blocks; In the case where each of the model blocks corresponds to one edge node, at least one edge node among all the edge nodes is not in the same local area network as the other edge nodes; In the case where each of the model blocks corresponds to a node pool including at least one edge node, for each local area network, N edge nodes in the local area network are divided into m different node pools, and m is less than M, and M is the total number of the node pools; At least one of the node pools includes at least two edge nodes.

4. The cloud computing method according to claim 1, wherein: After determining the sub-calculation result as the final calculation result, the method further includes: The final calculation result is sent to the calculation requester.

5. The cloud computing method according to claim 4, wherein: Sending the final calculation result to the calculation requester includes: Sending the final calculation result directly to the calculation requester; Alternatively, the final calculation result is sent to the previous edge node, so that the final calculation result is transmitted to the first edge node in the reverse order of the calculation order, and the final calculation result is sent to the calculation requester through the first edge node; the calculation order of the specified model block is immediately after the calculation order of the specified model block corresponding to the previous edge node; the calculation order of the specified model block corresponding to the first edge node is in the first place.

6. The cloud computing method according to claim 1, wherein: The specified model block is read from the transparent encryption file system.

7. The cloud computing method according to any one of claims 1 to 6, characterized in that: The designated model block is an encrypted model block, and the step of calculating the received calculation requirement by using the designated model block includes: The computing requirement is calculated using the designated model block decrypted in the memory and / or video memory.

8. The cloud computing method according to claim 7, wherein: After obtaining the sub-calculation result, the method further includes: If no new computing demand is received within a preset time period, the decrypted designated model block in the memory and / or video memory is deleted.

9. A cloud computing system based on an AI model, characterized in that: The method comprises an edge node and a model gateway device, wherein before the edge node performs the steps of the cloud computing method according to claim 1 for the first time, the model gateway device is used to: After receiving a computing request sent by a computing requester, dividing the target AI model into at least two model blocks; the model block is a local model including one or more consecutive model layers of the target AI model; At least two edge nodes are determined from the preset computing nodes, and a corresponding designated model block is assigned to each edge node; different edge nodes perform calculations through different designated model blocks, and the designated model block of each edge node corresponds to the computing requirements received by the edge node.

10. A cloud computing device based on an AI model, characterized in that: Applied to edge nodes, the cloud computing device comprises: A calculation module, used to calculate the received calculation requirements through a specified model block to obtain a sub-calculation result; the specified model block corresponds to the calculation requirement, and the specified model block is determined from each model layer of the target AI model according to a preset calculation order; A sending module, used for sending the sub-calculation result to the next edge node if the edge node is not the last edge node; the designated model block corresponding to the last edge node is at the end of the calculation sequence; the calculation sequence of the designated model block corresponding to the next edge node is immediately after the calculation sequence of the designated model block; A determination module is used to determine the sub-calculation result as the final calculation result if the edge node is the last edge node.

11. An edge node, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the computing method according to any one of claims 1 to 8 is implemented.

12. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the computing method according to any one of claims 1 to 8 is implemented.