Data protection method based on partitioned data processing cluster
By dividing resources in the data processing accelerator cluster and using resource managers to control access, the problem of data leakage and security in the data processing accelerator cluster is solved, and effective protection and legality verification of data are achieved.
Patent Information
- Application Number
- CN202011537264.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-06-12
- Filing Date
- 2020-12-23
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-12-23
AI Technical Summary
During the training and inference process of artificial intelligence models, data processing accelerator clusters are at risk of data leakage, theft, and tampering, and due to high costs, system builders cannot ensure the security of data processing accelerators and the legitimacy of their sources.
By dividing the processing resources of the data processing accelerator into sensitive resources and non-sensitive resources, and using a resource manager to control access permissions, it is ensured that only the host device and trusted data processing accelerators can access sensitive resources to achieve data protection.
It effectively prevents data leakage and tampering, reduces the risk of illegal data processing accelerators manufactured in the gray market, and ensures the security and legality of the data processing accelerator cluster.
Smart Images

Figure CN113806757B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to data processing accelerators configured in a cluster. More specifically, the present disclosure relates to data protection in a data processing accelerator cluster such as can be used to perform artificial intelligence model training and inference. Background Art
[0002] Artificial Intelligence (AI) models (also called "machine learning models") have recently become widely used as AI technologies are deployed in various fields such as image classification, medical diagnosis or autonomous driving. Similar to the executable image or binary image of a software application, an AI model can perform inference based on a set of attributes to be classified as features when trained. The training of AI models may require a large investment in collecting, collating and filtering data to generate an AI model that produces useful predictions. In addition, the predictions generated using AI models may contain personal sensitive data that users want to protect.
[0003] Generating predictions from an AI model can be a computationally intensive process. In order to provide sufficient computing power for one or more users, a cluster of data processing accelerators (DPAs) may be provided in the cluster. The data processing accelerators are interconnected with one or more communication links. There is a risk that the inclusion of communication links and / or one or more data processing accelerators in the cluster may cause the AI model or the inferences generated by the AI model to be leaked, stolen, and / or tampered with.
[0004] To handle computationally intensive tasks, a cluster of data processing accelerators can be designed to handle the maximum workload. The number of data processing accelerators selected for the maximum workload can generate a large amount of heat and energy consumption.
[0005] Building a cluster system with multiple data processing accelerators to meet maximum workloads can be expensive. Costs can induce gray market manufacturers to produce data processing accelerators that appear visually identical to legitimate name-brand data processing accelerators. System builders or integrators may not be able to verify that a data processing accelerator is manufactured by a brand-name manufacturer. Therefore, system builders cannot ensure that the data processing accelerators used in the cluster are as secure as the name-brand data processing accelerators that the builder intended to use in the cluster. Summary of the invention
[0006] One aspect of the present application provides a computer-implemented method, which may include: in response to configuring multiple data processing accelerators that are communicatively connected to each other into a data processing accelerator cluster, dividing multiple processing resources of a first data processing accelerator into sensitive resources and non-sensitive resources, the first data processing accelerator being one of the multiple data processing accelerators in the cluster; receiving, by the first data processing accelerator of the cluster, an instruction to access the resources of the first data processing accelerator; and in response to the instruction instructing the first data processing accelerator to access the sensitive resources of the first data processing accelerator, allowing the first data processing accelerator to access the sensitive resources.
[0007] Another aspect of the present application provides a data processing accelerator, which may include a resource manager. The resource manager may be used to: in response to configuring multiple data processing accelerators into a data processing accelerator cluster, divide multiple processing resources of the data processing accelerator into sensitive resources and non-sensitive resources, the data processing accelerator being a first data processing accelerator among the multiple data processing accelerators; receive an instruction to access resources of the first data processing accelerator; and in response to determining that the instruction indicates access to sensitive resources of the first data processing accelerator, allow the first data processing accelerator to access the sensitive resources.
[0008] Another aspect of the present application provides a processing system having at least one hardware processor, which is connected to a memory programmed with executable instructions. The executable instructions, when executed by the at least one hardware processor, cause the at least one hardware processor to perform operations, and the operations may include the following steps: configuring multiple communication-connected data processing accelerators into a data processing accelerator cluster, each data processing accelerator having multiple processing resources; dividing the multiple processing resources of each data processing accelerator into sensitive resources and non-sensitive resources; receiving, by a first data processing accelerator in the cluster, an instruction to access the resources of the first data processing accelerator; and allowing the first data processing accelerator to access the sensitive resources of the first data processing accelerator in response to the instruction instructing the first data processing accelerator to access the sensitive resources of the first data processing accelerator.
[0009] Another aspect of the present application provides a non-transitory computer-readable storage medium storing computer instructions, which can cause a computer to perform operations: in response to configuring multiple data processing accelerators that are communicatively connected to each other into a data processing accelerator cluster, multiple processing resources of a first data processing accelerator are divided into sensitive resources and non-sensitive resources, and the first data processing accelerator is one of the multiple data processing accelerators in the cluster; receiving an instruction to access the resources of the first data processing accelerator by the first data processing accelerator of the cluster; and in response to the instruction instructing the first data processing accelerator to access the sensitive resources of the first data processing accelerator, allowing the first data processing accelerator to access the sensitive resources.
[0010] Another aspect of the present application provides a computer program product having a computer program stored thereon, wherein when the above-mentioned computer program is executed by a processor, the processor is caused to: in response to configuring multiple data processing accelerators that are communicatively connected to each other into a data processing accelerator cluster, divide multiple processing resources of a first data processing accelerator into sensitive resources and non-sensitive resources, the first data processing accelerator being one of the multiple data processing accelerators in the cluster; receive, by the first data processing accelerator of the cluster, an instruction to access the resources of the first data processing accelerator; and in response to the instruction instructing the first data processing accelerator to access the sensitive resources of the first data processing accelerator, allow the first data processing accelerator to access the sensitive resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Embodiments of the present disclosure are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings in which like references indicate similar elements.
[0012] Figure 1 is a block diagram illustrating a secure processing system according to one embodiment.
[0013] Figure 2A and Figure 2B is a block diagram illustrating a secure computing environment between one or more hosts and one or more data processing accelerators according to one embodiment.
[0014] Figure 3 is a block diagram illustrating a host controlling a cluster of data processing accelerators, each having protected resources and non-protected resources, according to an embodiment.
[0015] Figure 4 is a block diagram illustrating a method of protecting data in a data processing accelerator cluster partitioned according to a policy according to an embodiment.
[0016] Figure 5A and Figure 5B is a block diagram illustrating a method of protecting data in a data processing accelerator cluster partitioned according to a policy according to an embodiment.
[0017] Figure 6 is a block diagram illustrating a method for protecting data in a data processing accelerator cluster using resource partitioning for accelerators according to an embodiment.
[0018] Fig. 7A and Figure 7B is a block diagram illustrating a method for protecting data in a data processing accelerator cluster using dynamic partitioning of accelerators according to an embodiment.
[0019] Figure 8is a block diagram illustrating a method for protecting data in a data processing accelerator cluster using authentication of the data processing accelerator according to an embodiment.
[0020] Fig. 9 is a block diagram illustrating a method of authenticating a data processing accelerator according to an embodiment. DETAILED DESCRIPTION
[0021] Various embodiments and aspects of the present disclosure will be described with reference to the details discussed below, and the accompanying drawings will illustrate various embodiments. The following description and the accompanying drawings are examples of the present disclosure and should not be construed as limiting the present disclosure. Many specific details are described to provide a thorough understanding of the various embodiments of the present disclosure. However, in some cases, in order to provide a concise discussion of the embodiments of the present disclosure, known or conventional details are not described.
[0022] Reference to "one embodiment" or "an embodiment" in the specification means that a particular feature, structure, or characteristic described in conjunction with the embodiment can be included in at least one embodiment of the present disclosure. The phrase "in one embodiment" appearing in various places in the specification does not necessarily refer to the same embodiment.
[0023] The following embodiments relate to using a data processing (DP) accelerator to increase the processing throughput of a particular type of operation that can be offloaded (or offloaded) from a host device to the DP accelerator. The DP accelerator can be a general purpose processing unit (GPU), an artificial intelligence (AI) accelerator, a math coprocessor, a digital signal processor (DSP), or other type of processor. The DP accelerator can be a proprietary design, such as AI accelerator or another GPU, etc. Although the embodiments are illustrated and described with a host device securely coupled to one or more DP accelerators, the concepts described herein may be more generally implemented as a distributed processing system.
[0024] The DP accelerators may be linked into a cluster, which is managed by a host device having a driver that converts application processing requests into processing tasks for one or more DP accelerators. The host device may support one or more virtual machines (VMs), each with a user associated with a corresponding VM. The driver may include a scheduler that schedules application processing requests from multiple VMs for processing by one or more DP accelerators. In one embodiment, the driver may analyze the processing requests in the scheduler to determine how to group one or more DP accelerators in a cluster and whether to instruct one or more DP accelerators to disconnect from the group and enter a low power state to reduce heat and save energy.
[0025] The host device and the DP accelerator may be interconnected via a high-speed bus, such as a peripheral component interconnect express (PCIe) or other high-speed bus. The host device and the DP accelerator may exchange keys and initiate a secure channel via the PCIe bus prior to performing the operations of the various aspects of the present invention described below. Some operations include the DP accelerator using an artificial intelligence (AI) model to perform inferences using data provided by the host device. Before the host device trusts the AI model inference, the host device may access the DP accelerator to perform one or more verification tests, as described below, including determining a watermark of the AI model. In some embodiments and operations, the DP accelerator is unaware that the host device is testing the validity of the results generated by the DP accelerator.
[0026] The host device may include a central processing unit (CPU), and the DP accelerator may be a general processing unit (GPU) connected to the CPU via a bus or an interconnect. The DP accelerator may be implemented in the form of an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) device, or other form of integrated circuit (IC). Alternatively, the host processor may be part of a main data processing system, and the DP accelerator may be one of many distributed systems (e.g., a cloud computing system such as a software as a service or SaaS system or a platform as a service or PaaS system) that is an auxiliary system to which the main system can remotely offload its data processing tasks over a network. The link between the host processor and the DP accelerator may be a peripheral component interconnect express (PCIe) link or a network connection such as an Ethernet connection. Each DP accelerator may include one or more link registers that enable (establish a link) or disable (disconnect a link) a communication link with another DP accelerator.
[0027] In a first aspect, a method for configuring a cluster consisting of a plurality of data processing accelerators (DPAs) includes receiving, by each of the plurality of DPAs, a configuration policy for the plurality of DPAs. In one embodiment, all DPAs in the cluster receive the same configuration policy, and the configuration policy includes instructions on how each of the plurality of DPAs configures itself. The configuration of each DPA may and typically is different from the configuration of the other DPAs in the cluster. Configuration may include the DPA establishing (establishing a link) or disconnecting (disconnecting a link) a communication link between the DPA and one or more other DPAs in the cluster to form one or more linked DPA groups within the cluster.
[0028] When a DPA group is formed, each DPA generates a communication link with at least one DPA in the group of DPAs. The communication path between the first DPA in the group and the second DPA in the group is generated by a direct communication link between the first DPA and the second DPA, or by an indirect path via at least a third DPA, and the first DPA and the second DPA form a communication path through the third DPA. Each DPA is communicatively linked to the host system. During the configuration of the DPA, each DPA maintains its link to the host device. After the DPA is configured, the DPA can only communicate with the host device and one or more DPAs in a group of DPAs in the cluster. There can be multiple non-overlapping DPA groups in a cluster.
[0029] Each DPA can have sensitive (protected) resources and non-sensitive (non-protected) resources. Resources can include memory, storage, processors, and functional modules such as encryption modules, true random number generation modules, key managers, and key storage. After configuration, each DPA in a group can access the non-protected resources of any DPA in the group to which the DPA has a communication path. A DPA in a group cannot communicate with a DPA in another group or access the resources of a DPA in another group. The host device and the DPA can always access all resources of the DPA.
[0030] In a second aspect, a method for dividing the resources of multiple DPAs communicatively connected as a DPA cluster includes: dividing the resources of each DPA into sensitive (protected) resources and non-sensitive (non-protected) resources. Sensitive resources may include memory for storing one or more artificial intelligence (AI) models, encryption modules, security processors, storage or memory for storing one or more kernels, encryption key managers and encryption key memories, and any other sensitive data or processing resources that may need to be protected. Non-protected resources may include general-purpose processors, memories for storing temporary calculations, software modules, or other resources that do not require strong protection. The static division of DPA resources may comply with the specifications for managing DPA clusters. The specifications are implemented in a driver in the host system, and the driver assigns work to each DPA or DPA group in the cluster. The static division of resources can be implemented in firmware or hardware.
[0031] In one embodiment, sensitive resources are accessed within a predetermined memory address space, while non-sensitive resources are accessed within a second predetermined memory address space. In one embodiment, the address space is determined when the DPA is manufactured. Access protection for sensitive resources may include permitting the host device and the DPA whose resources are being accessed to access sensitive resources and non-sensitive resources. Other DPAs can only access the non-sensitive resources of the DPA, but not the sensitive resources of the DPA. The host device can instruct the DPA to access the DPA's own sensitive resources. For example, the host device can send an artificial intelligence (AI) model to the DPA and instruct the DPA to store the AI model in a sensitive memory, or instruct the DPA to perform encryption operations using an encryption module in a secure memory partitioned by sensitive resources.
[0032] In a third aspect, a host device may instruct each data processing accelerator (DPA) in a cluster to dynamically repartition itself into or out of a set of DPAs in the cluster. A method of configuring a plurality of data processing accelerators (DPAs) communicatively coupled to a host device may include: each DPA in a DPA cluster receives configuration instructions specific to the DPA from a driver of the host device to configure the DPA into or out of a set of DPAs in the cluster. Each DPA configures itself according to the instructions received from the host device.
[0033] In response to an instruction indicating that the DPA is to join a group of DPAs in a cluster, the configuration may include generating, by the DPA, a communication link to at least one DPA in the group, and in response to an instruction indicating that the DPA is to leave a group of DPAs in the cluster, the DPA disconnects the communication links between the DPA and all DPAs in the group. After completing the configuration of all DPAs in the cluster, each DPA is either communicatively linked to a group of DPAs in the cluster, or the DPA is non-communicatively linked to the group. There may be multiple groups in a cluster. For example, a cluster of eight (8) DPAs may be grouped into two (2) groups, each group comprising four (4) DPAs. DPA groups are non-overlapping. At any time, a DPA in a cluster is a member of at most one group.
[0034] In one embodiment, a DPA may not be instructed to join a group of DPAs. In this case, the DPA may be instructed to set itself to a low power state. A driver in the host device may assign a single user or a single application to one group and assign a different application or user to another group. The driver may send instructions to one or more DPAs at any time to reconfigure themselves to join or leave a group of DPAs. For example, eight (8) DPAs may initially be configured into two (2) groups of four (4) DPAs. The driver may then instruct two (2) DPAs in one of the groups of four (4) DPAs to leave their group, disconnect all communication links with the DPAs in the group, and go to a low power state, so that the cluster then includes a group of four (4) DPAs, a group of two (2) DPAs, and two (2) DPAs that are currently unused and set to a low power state. The driver of the host device maintains a scheduler of processing tasks that will be assigned to different groups of the cluster. When the driver determines that not all DPAs are needed to perform the processing tasks in the scheduler, the driver may instruct one or more DPAs to leave the group and enter a low power state to reduce energy consumption and reduce the heat generated.
[0035] In a fourth aspect, a cluster of data processing accelerators (DPAs) may include multiple DPAs, one or more of which may be third-party DPAs that may not be trusted. In a fourth aspect, data protection in a cluster is achieved by authenticating a DPA before granting access to non-sensitive resources of another DPA. The DPAs are organized into clusters, and the clusters are communicatively coupled to a host device having a driver that communicates with the DPAs of the cluster. The clusters of DPAs may or may not be organized into groups.
[0036] A first DPA receives a request from a second DPA in a cluster to access resources of the first DPA. If the request is for a sensitive resource of the first DPA, the first DPA denies the request. Only a host device or a DPA can access the sensitive resources of the DPA. If the request is for a non-sensitive resource, the first DPA will authenticate the second DPA. If the second DPA is successfully authenticated, the second DPA is granted access to the non-sensitive resources of the first DPA. Authenticating the second DPA includes: the first DPA generates a random number and sends it to the second DPA; the first DPA receives an output from the second DPA based on the random number and a shared secret between the first DPA and the second DPA; and the first DPA generates an output based on the shared secret and the random number.
[0037] If the output generated by the first DPA matches the output received from the second DPA, the second DPA is considered authenticated, otherwise the second DPA is considered unauthenticated. In one embodiment, if the second DPA is not authenticated, the first DPA disconnects the communication link between the first DPA and the second DPA. In addition, or alternatively, if the second DPA is not authenticated, the first DPA may send a non-authentication notification to all other DPAs that have a communication link with the first DPA except the second DPA. In one embodiment, if the second DPA is not authenticated, the first DPA may send a non-authentication notification to the host device. The host device may then instruct all DPAs to disconnect any communication links they may have with the second DPA.
[0038] Authentication relies on a shared secret between the first DPA and the second DPA. The authentication process is a test to determine whether the second DPA has the shared secret. The shared secret can be a one-way function that generates an output given an input, and the one-way function cannot be determined from the output of the one-way function. In one embodiment, the shared secret is embedded in the first DPA and the second DPA, and is updateable, such as by an update from the manufacturer of the first DPA and the second DPA.
[0039] Any of the above functions may be programmed as executable instructions onto one or more non-transitory computer-readable media. When the executable instructions are executed by a processing system having at least one hardware processor, the processing system causes the above functions to be implemented. Any of the above functions may be implemented by a processing system having at least one hardware processor, the hardware processor being coupled to a memory programmed with executable instructions, the executable instructions causing the processing system to implement the above functions when executed.
[0040] Figure 1 is a block diagram illustrating a secure processing system according to some embodiments. Figure 1, the system configuration 100 includes, but is not limited to, one or more client devices 101-102 that are communicatively connected to a DP server 104 (e.g., a host) via a network 103. The client devices 101-102 can be any type of client device, such as a personal computer (e.g., a desktop computer, a laptop computer, and a tablet computer), a "thin" client, a personal digital assistant (PDA), a Web-enabled device, a smart watch or a mobile phone (e.g., a smart phone), etc. Alternatively, the client devices 101-102 can be other servers. In one aspect, one or more client devices (e.g., servers) 101-102 host one or more virtual machines that are clients of the data processing server 104. The network 103 can be any type of wired or wireless network, such as a local area network (LAN), a wide area network (WAN) such as the Internet, a high-speed bus, or a combination thereof.
[0041] The server (e.g., host) 104 can be any type of server or server cluster, such as a web or cloud server, an application server, a backend server, or a combination thereof. The server 104 also includes an interface (not shown) to allow clients such as client devices 101-102 to access resources or services provided by the server 104 (such as resources and services provided by the DP accelerator via the server 104). For example, the server 104 can be a cloud server or a server in a data center that provides various cloud services to clients, for example, various cloud services such as cloud storage, cloud computing services, artificial intelligence training services, data mining services, etc. The server 104 can be configured as part of a software as a service (SaaS) or platform as a service (PaaS) system on a cloud, which can be a private cloud, a public cloud, or a hybrid cloud. The interface can include a web interface, an application programming interface (API), and / or a command line interface (CLI).
[0042] For example, the client may be a user application (e.g., a web browser, an application) of the client device 101. The client may send or transmit instructions for execution (e.g., AI training, inference instructions, etc.) to the server 104, and the instructions are received by the server 104 via an interface on the network 103. In response to the instructions, the server 104 communicates with the DP accelerators 105-107 to complete the execution of the instructions. In some embodiments, the instructions are machine learning type instructions, where the DP accelerator, as a dedicated machine or processor, can execute the instructions many times faster than the execution of the instructions by the server 104. Therefore, the server 104 can control / manage the execution work of one or more DP accelerators in a distributed manner. The server 104 then returns the execution results to the client devices 101-102. The DP accelerator or AI accelerator may include one or more dedicated processors, such as those that can be obtained from The company obtained An artificial intelligence (AI) chipset, or alternatively, the DP accelerator may be an AI chipset from another AI chipset provider.
[0043] According to one embodiment, each application that accesses any of the DP accelerators 105-107 hosted by a data processing server 104 (also referred to as a host) can verify that the application is provided by a trusted source or vendor. Each application can be launched and executed in a user memory space and executed by a central processing unit (CPU) of the host 104. When an application is configured to access any of the DP accelerators 105-107, an obfuscated connection can be established between the host 104 and a corresponding one of the DP accelerators 105-107, thereby protecting data exchanged between the host 104 and the DP accelerator 105-107 from malware / intrusion attacks.
[0044] Figure 2A 2 is a block diagram illustrating a secure computing environment (e.g., system) 200 between one or more hosts and one or more data processing accelerators (DPAs) according to some embodiments. In one embodiment, the system 200 provides a protection scheme for obfuscating communications between a host 104 and a DP accelerator 105-107 with or without hardware modifications to the DP accelerators 105-107. The host or server 104 can be described as a system having one or more layers to be protected from intrusion, such as user applications 205, runtime libraries 206, drivers 209, operating system 211, hypervisor 212, and hardware 213 (e.g., central processing unit (CPU) and storage device 204). Below the applications 205 and runtime libraries 206, one or more drivers 209 can be installed to interface to the hardware 213 and / or DP accelerators 105-107.
[0045] The driver 209 may include a scheduler 209A that schedules processing tasks requested by one or more user applications 205. The driver 209 may also include an analyzer 209B having logic that analyzes the processing tasks scheduled for execution on the DP accelerators 105-107 to determine how to best configure the DP accelerators 105-107 based on scheduling criteria such as processing throughput, energy consumption, and heat generated by the DP accelerators. The driver 209 may also include one or more policies for configuring the DP accelerators to achieve the scheduling criteria. Configuring the DP accelerators may include grouping the DP accelerators into one or more groups, removing one or more DP accelerators from one or more groups.
[0046] DP accelerators that are not assigned to a group of DP accelerators may be set to a low power state to save energy and reduce heat. The low power state may include reducing the clock speed of the DP accelerator or entering a standby state in which the DP accelerator is still communicatively coupled to the host device and may enter an operational state in which the DP accelerator is ready to receive processing tasks from the host device. Alternatively, DP accelerators that are not assigned to a group may remain in a powered state so that the driver 209 may assign work to a single DP accelerator that is not a member of a DP accelerator group.
[0047] Configuring the DP accelerator may also include instructing one or more DP accelerators to generate a communication link (establish a link) with one or more other DP accelerators to form a DP accelerator group within the DP accelerator cluster. Configuring the DP accelerator may also include instructing one or more DP accelerators to disconnect a communication link (disconnect a link) between the DP accelerator and one or more other DP accelerators. Linking on and linking off of the DP accelerator may be governed by one or more link registers in each DP accelerator.
[0048] In an embodiment of policy-based partitioning, the DP accelerator configuration policy is a single policy that describes the communication link (on or off) of each DP accelerator. Although the configuration of each DP accelerator can (and usually will be) different from other DP accelerators, the configuration of each DP accelerator is included in a single policy, and each DP accelerator in the cluster receives the same policy. Then, each DP accelerator configures itself according to the portion of the DP accelerator configured according to the description in the policy. Policy-based partitioning can be based on an analysis of the processing tasks in the scheduler 209A. The analysis can determine the optimal allocation of DP accelerator groups. In one embodiment, time-sharing processing tasks is performed within a group of processors or across multiple groups of processors to optimize throughput, minimize energy consumption and heat generated. The advantages of dividing DP accelerators into groups based on policies include rapid partitioning of DP accelerators, flexible scheduling of processing tasks within or between groups, time-sharing of DP accelerators, and time-sharing of groups.
[0049] In a dynamic partitioning embodiment, a DP accelerator policy is generated for each DP accelerator. Driver 209 can dynamically change the configuration of each DP accelerator, including reorganizing the groups of DP accelerators, removing one or more DP accelerators from all groups, and setting those DP accelerators to a low power state. In a dynamic partitioning embodiment, each group of DP accelerators is assigned to a single user, rather than sharing the DP accelerators between users in a time-sharing manner. Driver 209 may include an analyzer 209B, which analyzes the processing tasks within scheduler 209A to determine the optimal grouping of DP accelerators. The analysis can generate a configuration for one or more DP accelerators, and the configuration can be deployed to each such DP accelerator to be reconfigured. The advantages of dynamic partitioning include energy saving by setting one or more processors to a low power state and user-specific processing for a DP accelerator or a DP accelerator group, rather than time slicing between users.
[0050] The hardware 213 may include a processing system 201 having one or more processors. The hardware 213 may also include a storage device 204. The storage device 204 may include one or more artificial intelligence (AI) models 202 and one or more kernels 203. The kernel 203 may include a signature kernel, a watermark-enabled kernel, an encryption and / or decryption kernel, etc. The signature kernel, when executed, may digitally sign any input according to the programming of the kernel. The watermark-enabled kernel may extract a watermark from a data object (e.g., an AI model or other data object). The watermark-enabled kernel may also implant a watermark into an AI model, an inference output, or other data object.
[0051] A watermark kernel (e.g., a kernel that inherits a watermark) can inherit a watermark from another data object and implant the watermark into a different object, such as an inference output or an AI model. As used herein, a watermark is an identifier associated with an AI model or an inference generated by an AI model and can be implanted into an AI model or an inference generated by an AI model. For example, a watermark can be implanted in one or more weight variables or bias variables. Alternatively, one or more nodes (e.g., dummy nodes that are not used or unlikely to be used by the artificial intelligence model) can be created to implant or store watermarks.
[0052] Host 104 may be a CPU system that may control and manage execution of jobs on host 104 and / or DP accelerators 105-107. To protect / obfuscate communication channel 215 between DP accelerators 105-107 and host 104, different components may be needed to protect different layers in the host system that are vulnerable to data intrusion or attack.
[0053] According to some embodiments, system 200 includes host system 104 and DP accelerators 105-107. Any number of DP accelerators may be present. DP accelerators may include AI chipset or another AI chipset, such as a graphics processing unit (GPU) that can perform artificial intelligence (AI) intensive computing tasks. In one embodiment, the host system 104 includes hardware 213 having one or more CPUs, which are optionally equipped with a security module (such as an optional trusted platform module (TPM)) within the host 104. The optional TPM is a dedicated chip on an endpoint device that stores cryptographic keys (e.g., RSA cryptographic keys) dedicated to the host system for hardware authentication. Each TPM chip can contain one or more RSA key pairs (e.g., a public key pair and a private key pair), which are called endorsement keys (EK) or endorsement credentials (EC), i.e., root keys. The key pairs are kept inside the optional TPM chip and cannot be accessed by software. Then, before executing key parts of the firmware and software, they can be hashed by the EK or EC to protect the system from unauthorized firmware and software modifications. Therefore, the optional TPM chip on the host machine can be used as a trust root for secure boot.
[0054] The optional TPM chip can also protect the driver 209 and the operating system (OS) 211 in the working kernel space to communicate with the DP accelerator 105-107. Here, the driver 209 is provided by the DP accelerator vendor and can be used as the driver 209 of the user application 205 to control the communication channel 215 between the host and the DP accelerator. Because the optional TPM chip and the secure boot processor protect the OS 211 and the driver 209 in its kernel space, the TPM also effectively protects the driver 209 and the OS 211.
[0055] Since the communication channel 215 for the DP accelerator 105-107 can be used exclusively by the OS 211 and the driver 209, the communication channel 215 can be protected by an optional TPM chip. In one embodiment, the communication channel 215 includes a peripheral component interconnect (PCI) or a peripheral component interconnect express (PCIE) channel. In one embodiment, the communication channel 215 is an obfuscated communication channel.
[0056] Runtime library 206 can convert application programming interface (API) calls into commands for execution, configuration and / or control of the DP accelerator. In one embodiment, runtime library 206 provides a predetermined set (e.g., predefined) of kernels executed by user applications. In one embodiment, the kernels can be stored in storage device 204 as kernel 203.
[0057] The operating system 211 may be any distributed, OS or OS or other operating system.
[0058] The system can be started through an optional TPM-based secure boot. The optional TPM secure boot ensures that the signed / certified operating system 211 and accelerator driver 209 are started only in the kernel space that provides accelerator services. In one embodiment, the operating system 211 can be loaded through a hypervisor 212. The hypervisor or virtual machine manager 212 is computer software, firmware, or hardware that creates and runs virtual machines. Kernel space is a declarative area or scope in which the kernel (i.e., a predetermined set of (e.g., predefined) functions for execution) is identified to provide functionality and services to user applications. In the event that the integrity of the system is compromised, the optional TPM secure boot may fail to start and instead shut down the system.
[0059] After startup, runtime library 206 runs user application 205. In one embodiment, user application 205 and runtime library 206 are statically linked and started together. In another embodiment, runtime library 206 is started first, and then user application 205 is dynamically loaded. Static linked libraries are libraries that are linked to applications at compile time. Dynamic loading can be performed by a dynamic linker. The dynamic linker loads and links shared libraries to run user applications at runtime. Here, user application 205 and runtime library 206 are visible to each other at runtime, for example, all process data are visible to each other.
[0060] In one embodiment, the user application 205 can only call kernels from the set of kernels predetermined by the runtime library 206. In another aspect, the user application 205 and the runtime library 206 are reinforced by no side channel algorithms to prevent side channel attacks, such as cache-based side channel attacks. A side channel attack is any attack based on information obtained from the implementation of a computer system, rather than weaknesses in the implemented algorithm itself (e.g., cryptanalysis and software defects). Examples of side channel attacks include cache attacks, which are attacks based on the ability of an attacker to monitor the cache of a shared physical system in a virtualized environment or cloud environment. Reinforcement can include masking caches, where the output generated by the algorithm will be placed on the cache. Next, when execution of the user application is completed, the user application terminates its execution and exits.
[0061] In one embodiment, the set of kernels 203 includes an obfuscation kernel algorithm. In one embodiment, the obfuscation kernel algorithm can be a symmetric or asymmetric algorithm. A symmetric obfuscation algorithm can use the same algorithm to obfuscate and de-obfuscate data communications. An asymmetric obfuscation algorithm requires a pair of algorithms, wherein the first algorithm in the pair is used for obfuscation and the second algorithm in the pair is used for de-obfuscation, and vice versa. In another embodiment, an asymmetric obfuscation algorithm includes a single obfuscation algorithm for obfuscating a data set, but the data set will not be de-obfuscated, for example, there is no corresponding de-obfuscation algorithm.
[0062] Obfuscation refers to obscuring the intended meaning of a communication by making the communication message difficult to understand, typically using obfuscated and ambiguous language. Obfuscated data is more difficult and complex to reverse engineer. An obfuscation algorithm may be applied to obfuscate (encrypt / decrypt) data communications before transmitting the data, thereby reducing the chance of eavesdropping. In one embodiment, the obfuscation algorithm may further include an encryption scheme to further encrypt the obfuscated data for an additional layer of protection. Unlike encryption, which can be computationally intensive, an obfuscation algorithm may simplify computations.
[0063] Some obfuscation techniques may include, but are not limited to, letter obfuscation, name obfuscation, data obfuscation, control flow obfuscation, and the like. Letter obfuscation is the process of replacing one or more letters in the data with specific replacement letters, thereby rendering the data meaningless. Examples of letter obfuscation include letter rotation functions, in which each letter is transformed or rotated along a predetermined number of positions of the alphabet. Another example is reordering or scrambling letters based on a specific pattern. Name obfuscation is the process of replacing a specific target string with a meaningless string. Control flow obfuscation can be done by adding code (inserting dead code, inserting uncontrolled jumps, inserting replacement structures) to change the order of control flow in a program to hide the true control flow of the algorithm / AI model.
[0064] In summary, system 200 provides multiple layers of protection for DP accelerators (for data transfers including machine learning models, training data, and inference outputs) to prevent loss of data confidentiality and integrity. System 200 may include an optional TPM-based secure boot protection layer and a kernel verification / validation layer. System 200 may include applications using side-channel-free algorithms to protect against side-channel attacks, such as cache-based side-channel attacks.
[0065] The runtime library 206 may provide an obfuscation kernel algorithm to obfuscate data communications between the host 104 and the DP accelerators 105-107. In one embodiment, obfuscation may be paired with a cryptographic scheme. In another embodiment, obfuscation is the only protection scheme, and cryptographic-based hardware becomes unnecessary for the DP accelerator.
[0066] Figure 2B2 is a block diagram illustrating a secure computing environment between one or more hosts and one or more data processing (DP) accelerators according to one embodiment. In one embodiment, a host channel manager (HCM) 250 includes an optional authentication module 251, an optional termination module 252, an optional key manager 253, an optional key storage 254, and an optional encryption engine 255. The optional authentication module 251 can authenticate user applications running on the host server 104 to grant access to or use resources of the DP accelerator 105. The HCM 250 can communicate with an accelerator channel manager (ACM) 280 of the DP accelerator 105 via a communication channel 215.
[0067] The optional termination module 252 may terminate the connection (e.g., terminate the channel associated with the connection). The optional key manager 253 may manage (e.g., create or destroy) asymmetric key pairs or symmetric keys to encrypt / decrypt one or more data packets of different secure data exchange channels. Here, each user application (as Figure 2A 205) can correspond to or map to different secure data exchange channels in a one-to-many relationship, and each data exchange channel can correspond to a DP accelerator 105. Each application can utilize multiple session keys, where each session key is used for a secure channel corresponding to a DP accelerator (e.g., accelerators 105-107). The optional key storage 254 can store encrypted asymmetric key pairs or symmetric keys. The optional encryption engine 255 can encrypt or decrypt data packets of data exchanged through any secure channel. Note that some of these modules can be integrated into fewer modules.
[0068] In one embodiment, the DP accelerator 105 includes an ACM 280, non-sensitive resources 290, and sensitive resources 270. The ACM 280 is a relative module corresponding to the HCM 250, and is responsible for managing the communication between the host 104 and the DP accelerator 105, such as resource access control. The ACM 280 includes a link configuration module 281, which cooperates with the HCM 250 of the host server 104 to establish a communication channel 215 between the host server 104 and the DP accelerator 105. The ACM 280 also includes a resource manager 282. The resource manager 282 implements restricted access to the sensitive resources 270 and the non-sensitive resources 290. In one embodiment, the sensitive resources 270 occupy a first range of address space within the DP accelerator 105. The non-sensitive resources 290 occupy a second range of address space within the DP accelerator 105. In one embodiment, the first address space and the second address space are mutually exclusive and non-overlapping. In one embodiment, resource manager 282 also contains logic (e.g., access control logic) that grants host server 104 access to sensitive resources 270 and non-sensitive resources 290. In one embodiment, resource manager 282 implements access and configuration policies received from host server 104, which will be further described below.
[0069] Sensitive resources 270 may include an optional key manager 271, an optional key storage 272, a true random number generator 273, an optional encryption engine 274, and memory / storage 277. The optional key manager 271 may manage (e.g., generate, securely maintain, and / or destroy) asymmetric key pairs or symmetric keys. The optional key storage 272 may store encrypted asymmetric key pairs or symmetric keys in a secure storage within the sensitive resource 270. The true random number generator 273 may generate seeds for key generation, and the encryption engine 274 uses a DP accelerator such as an authentication link. The optional encryption engine 274 may encrypt or decrypt key information or data packets for data exchange. The memory / storage 277 may include storage for the AI model 275 and the kernel 276. The kernel 276 may include a watermark kernel (including a genetic watermark kernel, a watermark-enabled kernel, a signature watermark kernel, etc.), an encryption and decryption kernel, and related data.
[0070] The DP accelerator 105 may also include non-sensitive resources 290. The non-sensitive resources 290 may include one or more processors or processing logic 291 and memory / storage 292. The processor or processing logic 291 is capable of executing instructions or programs to perform various processing tasks, such as AI tasks (e.g., machine learning processing).
[0071] The link configuration module 281 is responsible for establishing or connecting a link or path from a DP accelerator to another DP accelerator, or terminating or disconnecting a link or path from a DP accelerator to another DP accelerator. In one embodiment, in response to a request to join a DP accelerator group (e.g., from a host), the link configuration module 281 establishes a link or path from a corresponding DP accelerator in a group or cluster to at least some DP accelerators, so that the DP accelerator can communicate with other DP accelerators, for example, access resources of other DP accelerators for AI processing. Similarly, in response to a request to switch from a first group of DP accelerators to a second group of DP accelerators, the link configuration module 281 terminates an existing link to a corresponding DP accelerator of the first group and establishes a new link to the second group of DP accelerators.
[0072] In one embodiment, the DP accelerator 105 also includes an AI processing unit (not shown), which may include an AI training unit and an AI inference unit. The AI training and inference units may be integrated into a single unit in the sensitive resource 270. The AI training module is configured to train the AI model using a training data set. The AI model and training data to be trained may be received from the host system 104 via the communication link 215. In one embodiment, the training data may be stored in the non-sensitive resource 290. The AI model inference unit may be configured to execute a trained artificial intelligence model on a set of input data (e.g., a set of input features) to infer and classify the input data. For example, an image may be input to the AI model to classify whether the image contains a person, a landscape, etc. The trained AI model and input data may also be received from the host system 104 via an interface via the communication link 215.
[0073] In one embodiment, the watermark unit (not shown) in the sensitive resource 270 may include a watermark generator and a watermark recorder (also referred to as a "watermark implanter"). The watermark unit (not shown) may include a watermark kernel executor or kernel processor (not shown) of the sensitive resource 270 to execute the kernel 276. In one embodiment, the kernel may be received from the host 104, or retrieved from a permanent or non-permanent storage, and executed in the kernel memory 276 in the sensitive resource 270 of the DP accelerator 105. The watermark generator is configured to generate a watermark using a predetermined watermark algorithm. Alternatively, the watermark generator may inherit a watermark from an existing watermark, or extract a watermark from another data structure or data object, such as an artificial intelligence model or a set of input data that may be received from the host system 104. The watermark implanter is configured to record or implant a watermark into a data structure such as an artificial intelligence model or output data generated by the artificial intelligence model. The artificial intelligence model or output data in which the watermark is embedded may be returned from the DP accelerator 105 to the host system 104 via the communication link 215. It should be noted that the DP accelerators 105 - 107 have the same or similar structures or components, and the description about the DP accelerator will apply to all DP accelerators throughout the present application.
[0074] Figure 3 The host 104 of the cluster 310 of data processing (DP) accelerators according to an embodiment is shown in block form. The host 104 may include an application 205 (e.g., an artificial intelligence (AI) application), a runtime library 206, one or more drivers 209, an operating system 211, and hardware 213, which have been referred to above. Figure 2A and Figure 2B Each of the above components is described above and therefore will not be repeated here. In a virtual computing embodiment, the host 104 may also include a hypervisor 212, such as , or The hypervisor 212 may be a type 1 "bare metal" or "native" hypervisor that runs directly on the physical server. In one embodiment, the hypervisor 212 may be a type 2 hypervisor that is loaded into and managed by the operating system 211 like any other application. In either case, the hypervisor 212 may support one or more virtual machines (not shown) on the host 104. In such an aspect, the virtual machines (not shown) may be viewed as Figure 1 Client devices 101 and 102.
[0075] The data processing (DP) accelerator cluster 310 may include the above reference Figure 2A and Figure 2BDP accelerators 105-107 are described. Figure 3 , the DP accelerator group 310 may include, for example, eight (8) DP accelerators labeled A through H. Each DP accelerator in the accelerator group 310 may have one or more communication links 215 to one or more other DP accelerators in the accelerator group 310. Figure 2A and Figure 2B A DP accelerator communication link 215 is depicted. Each DP accelerator in cluster 310 is configured according to policies received from driver 209 of host 104. Each DP accelerator in cluster 310 may have sensitive resources 270 and non-sensitive resources 290.
[0076] exist Figure 3 In the example shown, DP accelerators A to DP accelerator D are configured as a first group of four (4) DP accelerators. DP accelerators E to DP accelerator H are configured as a second group of four (4) DP accelerators. In the first group of DP accelerators, each DP accelerator has a communication link directly to another accelerator (e.g., AB, AC, BD, and CD), or has a communication path to another accelerator via one or more intermediate accelerators (e.g., ABD, ACD, etc.). The second group is shown as having a direct communication link between each DP accelerator in the second group and each other DP accelerator in the second group. The driver 209 can generate a policy in which each DP accelerator in the group has a direct communication link with each or some other DP accelerators in the group. In the case of the first group, the driver 209 can generate a policy that also includes, for example, instructions for DP accelerators A and DP accelerator D to generate a communication link between each other and instructions for DP accelerators B and DP accelerator C to generate a communication link between each other. There can be any number of DP accelerators in the cluster 310, and these DP accelerators can be configured into any number of groups.
[0077] In a static policy-based embodiment, a single policy defines the configuration of each of the DP accelerators, and the single policy is transmitted from the driver 209 to all DP accelerators in the cluster 310. In one embodiment, the driver 209 may send the policy to all DP accelerators in the cluster in a single broadcast message. Each DP accelerator reads the policy and establishes (establish link) or breaks (break link) a communication link with one or more DP accelerators in the cluster 310, thereby configuring the DP accelerators into one or more groups. Figure 3, eight (8) DP accelerators are configured as two groups of four (4) DP accelerators. Each DP accelerator in a group has a direct communication link to each DP accelerator in the group or has an indirect communication path to each DP accelerator in the group via one or more DP accelerators that have a direct communication link with the DP accelerator. In a static policy based environment, the scheduler 209A of the driver 209 can use time slicing between users of the application 205 and / or virtual machines to schedule processing tasks on one or more groups of the cluster 310. The static policy can be changed by the driver 209 generating a new policy that describes the configuration of each of the DP accelerators in the cluster 310.
[0078] Each DP accelerator in the cluster 310 (e.g., link configuration module 281 and / or resource manager 282) reconfigures itself according to the policy, and a communication link is established (established link) or disconnected (disconnected link) between the DP accelerator and one or more other DP accelerators in the cluster 310. Static policy-based configuration is fast because the configuration is transmitted in a single (e.g., broadcast) message, and each DP accelerator configures itself substantially in parallel with the other DP accelerators in the cluster 310. Since the policy for all DP accelerators is transmitted to all DP accelerators at the same time, configuration can occur very quickly. For example, if the policy includes instructions for DP accelerator "A" to generate a link to DP accelerator "B", the policy also has instructions for DP accelerator B to generate a link to DP accelerator A. Each DP accelerator can open their own link end substantially simultaneously, thereby opening the link between DP accelerator A and DP accelerator B very quickly. In one embodiment, a single policy can be represented as an adjacency list of DP accelerators.
[0079] Configuration based on static policies is also effective because it supports time-sliced scheduling between different users and supports allocating a user's processing tasks to more than one DP accelerator group in the cluster 310. Static policies can be generated from the analyzer 209B, which determines the characteristics of the processing tasks in the scheduler 209A. For example, the scheduler 209A may include a large number of tasks that use the same AI model to perform inference or further train the AI model. The analyzer can generate a policy to configure multiple DP accelerators to prepare for performing inference or training on the AI model. The configuration may include identifying a grouping of DP accelerators and loading one or more AI models into sensitive memories of one or more of the DP accelerators to prepare for the processing tasks in the scheduler 209A.
[0080] In an embodiment based on dynamic policies, the driver 209 may individually configure each DP accelerator in the cluster 310 to implement the configuration of the DP accelerator. The policy is sent to each DP accelerator individually. In fact, in an embodiment based on dynamic policies, the policies sent to each DP accelerator are usually different from each other. The DP accelerator receives the policy and configures itself according to the policy. The configuration includes configuring the DP accelerator itself into a group in the cluster 310 or configuring the DP accelerator itself to leave the group in the cluster 310. The DP accelerator configures itself into the group by establishing a communication link (establishing a link) with at least one DP accelerator in the group according to the policy. The DP accelerator leaves the group by disconnecting the communication link (disconnecting the link) between the DP accelerator and all DP accelerators in the group. After configuration, if the DP accelerator is not a member of any DP accelerator group, the DP accelerator can be set to a low power mode to reduce heat and save energy. In one embodiment, the scheduler 209A assigns a DP accelerator or a DP accelerator group to each user or application, wherein the scheduler 209A schedules processing tasks to the cluster 310 for the above-mentioned user or application.
[0081] Figure 4 4 is a flow chart illustrating a method 400 for protecting data in a cluster of data processing accelerators partitioned according to a static partitioning policy. The method 400 is an exemplary implementation of partitioning a data processing (DP) accelerator into one or more groups within a cluster of DP accelerators based on a static policy. The method 400 may be performed by an ACM of a DP accelerator, such as ACM 280.
[0082] In operation 401, each of the plurality of DP accelerators receives a configuration policy from a host system. The policy is a single policy containing configuration information for each DP accelerator in the cluster. Each DP accelerator receives the same policy from the host. In one embodiment, the host may broadcast the policy to all DP accelerators in the cluster. DP accelerators cannot broadcast to each other. In order to prevent the policy sent by the host from being destroyed, the DP accelerator is not allowed to use broadcast communication. The DP accelerator cannot simulate the host. The DP accelerator can only communicate with the host and one or more other DP accelerator nodes that have a communication path or communication link with the DP accelerator. In an embodiment where the DP accelerator does not have a communication link to any other DP accelerator, the DP accelerator can only communicate with the host.
[0083] In operation 402, each DP accelerator (e.g., link configuration module 281) reads the portion of the policy that applies to the DP accelerator and generates a communication link to one or more other DP accelerators (establishes a link). For each DP accelerator in the policy that has not been provided with instructions to establish a link, the DP accelerator declares to disconnect the link (disconnect, terminate, or disconnect the communication link). In one embodiment, the DP accelerator may not be instructed to establish a link with any other DP accelerator. In this regard, the DP accelerator may still receive processing tasks from the host device for processing on the DP accelerator.
[0084] In operation 403, a first DP accelerator in a first group receives a processing task from a host. The first DP accelerator (e.g., processing logic 291) uses one or more DP accelerators in the first group to perform the processing task. In one embodiment, each of the one or more DP accelerators may have a communication path with the DP accelerator. The communication path includes a direct communication link between a DP accelerator and another DP accelerator in the group, or an indirect path through one or more other DP accelerators in the group.
[0085] Figure 5A and Figure 5B 1 is a flowchart illustrating a method 500 for protecting data in a cluster of data processing accelerators partitioned according to a static partitioning policy according to an embodiment. The method 500 is an exemplary implementation of partitioning a data processing (DP) accelerator into one or more groups within a DP accelerator cluster based on a static policy.
[0086] Reference now Figure 5A In operation 501, a plurality of data processing (DP) accelerators as a DP accelerator cluster are communicatively coupled to a host device.
[0087] In operation 502, optionally, by default, each of the plurality of DP accelerators may configure itself to have a communication path to all DP accelerators in the cluster. Each DP accelerator has protection resources and non-protection resources. A driver (e.g., driver 209) in a host system (e.g., host 104) may access all resources of all DP accelerators in the cluster, including protection resources and non-protection resources of each DP accelerator in the cluster.
[0088] In operation 503, each of the plurality of DP accelerators receives the same configuration policy from the host system. The configuration policy includes configuration instructions for all DP accelerators in the cluster, including the DP accelerators for which each DP accelerator is to configure a communication link.
[0089] In operation 504, each DP accelerator in the cluster establishes a communication link (establishes a link) with one or more other DP accelerators in the cluster according to the policy, thereby organizing the cluster into one or more non-overlapping groups of DP accelerators.
[0090] In operation 505, after all DP accelerators are configured according to the policy, each DP accelerator in the first group of DP accelerators has a communication path to one or more other DP accelerators in the first group. Each DP accelerator in the second group of DP accelerators has a communication path to one or more other DP accelerators in the second group. All DP accelerators in the first group do not have a communication link to a DP accelerator in the second group, and all DP accelerators in the second group do not have a communication link to a DP accelerator in the first group.
[0091] In operation 506, the first DP accelerator may receive a processing task to be performed, such as artificial intelligence (AI) inference, from the host device. The first DP accelerator may also optionally receive data for performing the processing task.
[0092] In operation 507 , a first DP accelerator in the first group performs a first subtask of the processing task, and the first DP accelerator delegates a second subtask of the processing task to a second DP accelerator in the first group for execution by the second DP accelerator.
[0093] In operation 508, the first DP accelerator obtains a first sub-result of the first sub-task. The first DP accelerator also receives a result of the second sub-task from the second DP accelerator. The first DP accelerator returns the result of the processed task to the host device.
[0094] Figure 6 6 is a flow chart illustrating a method 600 for protecting data in a cluster of data processing (DP) accelerators using resource partitioning for accelerators according to an embodiment. The method 600 involves a firmware or hardware-based partitioning of sensitive resources and non-sensitive resources within each partition. Such partitioning may be part of the manufacturing process of the DP accelerator. The resource partitioning may be performed by, for example, the above reference Figure 2B The described resource manager 282 is implemented.
[0095] In operation 601, a plurality of DP accelerators are organized into a cluster. Each DP accelerator is communicatively coupled to a host device. Each DP accelerator has a plurality of resources. A first DP accelerator in the cluster is communicatively coupled (establishes a link) with at least one second DP accelerator.
[0096] In operation 602, for each DP accelerator, a plurality of resources are divided into sensitive (protected) resources and non-sensitive (non-protected) resources. In one embodiment, sensitive resources may occupy a first address range of the DP accelerator and non-sensitive resources may occupy a second (non-overlapping) address range of the DP accelerator.
[0097] In operation 603, the first DP accelerator may receive an instruction from the host device to access sensitive resources of the first DP accelerator. For example, the host device may instruct the first DP accelerator to store an artificial intelligence (AI) model in a secure storage of the first DP accelerator. In another example, the second DP accelerator may issue a request to the first DP accelerator to access sensitive resources of the first DP accelerator in order to request the first DP accelerator to perform AI inference on a model stored in the secure storage of the first DP accelerator.
[0098] In operation 604 , in response to the instruction instructing the first DP accelerator to access a sensitive resource of the first DP accelerator, the first DP accelerator accesses its own sensitive resource.
[0099] In operation 605, in response to an instruction indicating that the first DP accelerator is permitted to allow the second DP accelerator to access sensitive resources of the first DP accelerator, the first DP accelerator denies the second DP accelerator access to sensitive resources of the first DP accelerator. For example, if the instruction from the second DP accelerator to the first DP accelerator is to instruct the first DP accelerator to read an AI model from a sensitive memory of the first DP accelerator and transmit the AI model to the second DP accelerator, the instruction will be denied by the first DP accelerator.
[0100] In operation 606 , in response to the instruction indicating that the first DP accelerator is permitted to permit the second DP accelerator to access the non-sensitive resource of the first DP accelerator, the first DP accelerator permits the second DP accelerator to access the non-sensitive resource.
[0101] Fig. 7A and Figure 7B is a flowchart illustrating a method 700 for protecting data in a data processing accelerator cluster using dynamic partitioning of accelerators according to an embodiment. In dynamic partitioning, a host device can individually configure each DP accelerator in a DP accelerator cluster via a policy dedicated to the DP accelerator. In dynamic partitioning, the DP accelerators in the cluster can be divided into multiple groups, and each group can be assigned a user or an application. The scheduler (e.g., scheduler 209A) of a driver (e.g., driver 209) of the host device does not schedule time-sliced processing tasks of multiple users into a group of DP accelerators. One group (partition) is assigned to one user. The number of DP accelerators in any particular partition can vary.
[0102] In one embodiment, an analyzer (e.g., analyzer 209B) may analyze the processing tasks in scheduler 209A to determine the best grouping / partitioning of the DP accelerators. The host device may generate a configuration policy for each DP accelerator based on the analysis of the processing tasks in the scheduler. In a dynamic partitioning embodiment, one or more DP accelerators may be disconnected (disconnected from the group in the cluster) and set to a low power mode. Alternatively, processing tasks may be assigned to one or more unlinked DP accelerators to execute one DP accelerator.
[0103] In operation 701, each DP accelerator receives a policy containing configuration instructions specific to the DP accelerator from a driver of a host device. The configuration instructions indicate whether the DP accelerator is to join or leave a group of DP accelerators. The instructions are specific to the DP accelerator receiving the instructions.
[0104] In operation 702, each DP accelerator configures itself according to the instruction for the DP accelerator received from the host device. The configuration includes: in response to the instruction to join the DP accelerator group, the DP accelerator generates a communication link to at least one DP accelerator in the DP accelerator group (establishes a link), otherwise the DP accelerator disconnects the communication link between the DP accelerator and all DP accelerators in the DP accelerator group (disconnects a link).
[0105] In operation 703, after completing the configuration of all DP accelerators in the cluster, each DP accelerator is either communicatively linked to one of the multiple DP accelerator groups in the cluster, or the DP accelerator is non-communicatively linked to any DP accelerator group in the cluster. The multiple DP accelerator groups in the cluster are non-overlapping.
[0106] Reference now Figure 7B In operation 704 , in response to determining that the DP accelerator is not communicatively linked to any DP accelerator in the cluster, the DP accelerator may be placed in a low power state to reduce energy consumption and reduce generated heat.
[0107] In operation 705, the host device assigns each DP accelerator group to a user or application on the host device. The one or more DP accelerator groups perform one or more processing tasks on behalf of the user or application assigned to each of the one or more DP accelerator groups.
[0108] In operation 706, in response to one or more DP accelerators receiving a new configuration instruction from a host device, each of the one or more DP accelerators configures itself according to the instruction for the DP accelerator. If the DP accelerator is assigned to a new or different DP accelerator group, the DP accelerator disconnects the communication link (disconnects the link) between the DP accelerator and any DP accelerator in the previous DP accelerator group, which was previously instructed to join the above-mentioned previous DP accelerator group. The DP accelerator generates a communication link (establishes a link) with at least one DP accelerator in the new or different DP accelerator group, which is specified in the new or different instruction for the DP accelerator. If the DP accelerator was not previously a member of any DP accelerator group and was in a low power state, the DP accelerator powers on and leaves the low power state, and the DP accelerator generates a communication link to at least one DP accelerator, which is a member of the group that the DP accelerator has been instructed to join.
[0109] In operation 707, if the DP accelerator was previously assigned to a group and is no longer assigned to the group based on the newly received instruction, the DP accelerator disconnects all communication links with any DP accelerator in the group (disconnects the link). The DP accelerator may set itself to a low power state. In one embodiment, the received instruction may include an instruction for the DP accelerator not to enter a low power state, even if the DP accelerator is not currently a member of any group. In such an aspect, the DP accelerator remains ready to receive work from a driver of the host device, so that the host device can assign work to an ungrouped DP accelerator. Method 700 ends.
[0110] Figure 8 8 is a flow chart showing a method 800 for protecting data in a data processing accelerator cluster using authentication of a data processing accelerator according to an embodiment. In this embodiment, it is foreseeable that a data processing (DP) accelerator may be added to a cluster of DP accelerators, and the added DP accelerator may be from an unknown source or an untrusted third party. Before the DP accelerator is allowed to access any resources of the first DP accelerator, the untrusted second DP accelerator is authenticated by the first DP accelerator.
[0111] In operation 801, a DP accelerator cluster includes at least two DP accelerators: a first DP accelerator and a second DP accelerator. The first DP accelerator and the second DP accelerator may be grouped into the same DP accelerator group. Each DP accelerator in the cluster has sensitive (protected) resources and non-sensitive (non-protected) resources. All DP accelerators in the cluster are communicatively connected to a host device. The first DP accelerator and the second DP accelerator may also be communicatively connected to each other.
[0112] In operation 802, a first DP accelerator receives a request from a second DP accelerator to access a resource of the first DP accelerator.
[0113] In operation 803, it is determined whether the resource requested by the second DP accelerator is a sensitive resource. This determination may be made, for example, by referring to Figure 2B The resource manager 282 makes the decision. If the resource requested by the second DP accelerator is a sensitive resource, then in operation 804, the first DP accelerator denies the second DP accelerator access to the sensitive resource, and the method 800 ends. Otherwise, the method 800 continues at operation 900.
[0114] In operation 900, the first DP accelerator authenticates the second DP accelerator. Fig. 9 Operation 900 is described.
[0115] In operation 806, it is determined whether the first DP Accelerator successfully authenticates the second DP Accelerator. If yes, then in operation 807, the first DP Accelerator grants the second DP Accelerator access to the resource requested by the second DP Accelerator. Otherwise, in operation 808, the first DP Accelerator denies the second DP Accelerator access to the resource requested by the second DP Accelerator.
[0116] Fig. 9 800 to determine whether the second DP accelerator is allowed to access the resources of the first DP accelerator. Figure 8 Method 800 is described.
[0117] The authentication is premised on both the first DP accelerator and the second DP accelerator having the same shared secret function, which the trusted DP accelerators all have. The secret function is a one-way function. The function cannot be discerned from the output of the function. The function can be a hash function and can contain a secret string. In one embodiment, the secret function is embedded into the trusted DP accelerator during the manufacture of the DP accelerator.
[0118] The first DP accelerator and the second DP accelerator share the same secret function. In operation 901, if the shared secret has been leaked (stolen), the host may update (patch) all DP accelerators in the cluster with an updated shared secret.
[0119] In operation 902, the first DP Accelerator generates a random number and sends the random number to the second DP Accelerator to be authenticated. The first DP Accelerator and the second DP Accelerator (if trusted) share the same secret function.
[0120] In operation 903, the second DP Accelerator (if trusted) uses the random number received from the first DP Accelerator as an input of a confidential function to obtain an output from the confidential function. The second DP Accelerator sends the output of the confidential function to the first DP Accelerator.
[0121] In operation 904, the first DP Accelerator verifies the output received from the second DP Accelerator to determine whether the second DP Accelerator is authentic. The first DP Accelerator uses the same random number sent to the second DP Accelerator as an input to the confidential function on the first DP Accelerator. The first DP Accelerator obtains the output from the confidential function on the first DP Accelerator. If the output received from the second DP Accelerator matches the output generated by the confidential function on the first DP Accelerator, the second DP Accelerator is considered authenticated, otherwise the second DP Accelerator is not authenticated. Method 900 ends and returns to the method that called method 900 with the status of the second DP Accelerator being authenticated or not authenticated.
[0122] Some portions of the preceding detailed description have been presented in terms of algorithms and symbolic representations of operations on data bits within a computer memory. These algorithmic descriptions and representations are the means used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. An algorithm is here, and generally, considered to be a self-consistent sequence of operations leading to a desired result. The operations are those requiring physical manipulations of physical quantities.
[0123] It should be remembered, however, that all of these and similar terms should be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless otherwise specifically indicated apparent from the above discussion, it should be understood that throughout this specification, discussions utilizing terms such as those set forth in the appended claims refer to the actions and processes of a computer system or similar electronic computing device that manipulates data represented as physical (electronic) quantities within the computer system's registers and memories and transforms such data into other data similarly represented as physical quantities within the computer system's memories or registers or other such information storage, transmission, or display devices.
[0124] Embodiments of the present disclosure also relate to devices for performing the operations herein. Such a computer program is stored in a non-transitory computer-readable medium. A machine-readable medium includes any mechanism for storing information in a form readable by a machine (e.g., a computer). For example, a machine-readable (e.g., computer-readable) medium includes a machine (e.g., computer) readable storage medium (e.g., a read-only memory ("ROM"), a random access memory ("RAM"), a magnetic disk storage medium, an optical storage medium, a flash memory device).
[0125] The processes or methods described in the preceding figures may be performed by processing logic comprising hardware (e.g., circuits, dedicated logic, etc.), software (e.g., implemented on a non-transitory computer-readable medium), or a combination of both. Although the processes or methods are described above in terms of some sequential operations, it should be understood that some of the operations described may be performed in a different order. In addition, some operations may be performed in parallel rather than sequentially.
[0126] The embodiments of the present disclosure are not described with reference to any particular programming language. It should be appreciated that a variety of programming languages can be used to implement the teachings of the embodiments of the present disclosure as described herein.
[0127] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0128] In the foregoing description, embodiments of the present disclosure have been described with reference to specific exemplary embodiments of the present disclosure. It will be apparent that various modifications may be made thereto without departing from the broader spirit and scope of the present disclosure as set forth in the appended claims. Therefore, the description and drawings are to be regarded as illustrative rather than restrictive.
Claims
1. A computer-implemented method comprising: In response to configuring a plurality of data processing accelerators communicatively coupled to each other into a data processing accelerator cluster, dividing a plurality of processing resources of a first data processing accelerator into sensitive resources and non-sensitive resources, the first data processing accelerator being one of the plurality of data processing accelerators in the cluster, the first data processing accelerator in the cluster being communicatively coupled to at least one second data processing accelerator; receiving, by the first data processing accelerator, an instruction to access resources of the first data processing accelerator; determining, by the first data processing accelerator, whether the instruction instructs the first data processing accelerator to access sensitive resources of the first data processing accelerator or whether the first data processing accelerator should be permitted to allow the second data processing accelerator to access sensitive resources of the first data processing accelerator; In response to the instruction instructing the first data processing accelerator to access a sensitive resource of the first data processing accelerator, allowing the first data processing accelerator to access the sensitive resource; as well as In response to the instruction that the first data processing accelerator should be permitted to allow a second data processing accelerator to access sensitive resources of the first data processing accelerator, the second data processing accelerator is prohibited from accessing the sensitive resources of the first data processing accelerator.
2. The method according to claim 1, wherein: The division of the plurality of processing resources of each data processing accelerator is a static division.
3. The method according to claim 2, wherein: The static partitioning is implemented in hardware.
4. The method according to claim 1, wherein: The plurality of processing resources include: a memory, one or more processing modules, one or more registers or storages.
5. The method according to claim 1, further comprising: In response to the instruction that the first data processing accelerator should be granted access by a second data processing accelerator to a non-sensitive resource of the first data processing accelerator, the second data processing accelerator is allowed access to the non-sensitive resource of the first data processing accelerator.
6. The method according to claim 1, wherein: The instruction includes one of the following: Instructing the first data processing accelerator to store the artificial intelligence model in a memory of a sensitive partition of the first data processing accelerator; instructing the first data processing accelerator to perform inference using the artificial intelligence model stored in the memory of the sensitive partition of the first data processing accelerator; The first data processing accelerator is instructed to perform an encryption operation using an encryption engine of the sensitive partition.
7. A data processing accelerator, comprising: Resource Manager for: In response to configuring a plurality of data processing accelerators into a data processing accelerator cluster, dividing a plurality of processing resources of the data processing accelerator into sensitive resources and non-sensitive resources, the data processing accelerator being a first data processing accelerator among the plurality of data processing accelerators, the first data processing accelerator in the cluster being communicatively coupled to at least one second data processing accelerator; receiving an instruction to access resources of the first data processing accelerator; determining whether the instruction instructs the first data processing accelerator to access sensitive resources of the first data processing accelerator or whether the first data processing accelerator should be permitted to allow the second data processing accelerator to access sensitive resources of the first data processing accelerator; In response to determining that the instruction indicates access to a sensitive resource of the first data processing accelerator, allowing the first data processing accelerator to access the sensitive resource; as well as In response to the instruction that the first data processing accelerator should be permitted to allow a second data processing accelerator to access sensitive resources of the first data processing accelerator, the second data processing accelerator is prohibited from accessing the sensitive resources of the first data processing accelerator.
8. The data processing accelerator according to claim 7, wherein: The division of the plurality of processing resources of each data processing accelerator is a static division.
9. The data processing accelerator according to claim 8, wherein: The static partitioning is implemented in hardware.
10. The data processing accelerator according to claim 7, wherein: The plurality of processing resources include: a memory, one or more processing modules, one or more registers or storages.
11. The data processing accelerator according to claim 7, wherein: In response to the instruction that the first data processing accelerator should be granted access by a second data processing accelerator to a non-sensitive resource of the first data processing accelerator, the resource manager allows the second data processing accelerator to access the non-sensitive resource of the first data processing accelerator.
12. The data processing accelerator according to claim 7, wherein: The instruction includes one of the following: Instructing the first data processing accelerator to store the artificial intelligence model in a memory of a sensitive partition of the first data processing accelerator; instructing the first data processing accelerator to perform inference using the artificial intelligence model stored in the memory of the sensitive partition of the first data processing accelerator; The first data processing accelerator is instructed to perform an encryption operation using an encryption engine of the sensitive partition.
13. A processing system having at least one hardware processor coupled to a memory programmed with executable instructions that, when executed by the at least one hardware processor, cause the at least one hardware processor to perform operations comprising the steps of: Configuring a plurality of communication-connected data processing accelerators into a data processing accelerator cluster, each data processing accelerator having a plurality of processing resources; dividing a plurality of processing resources of each data processing accelerator into sensitive resources and non-sensitive resources; Receiving, by a first data processing accelerator in the cluster, an instruction to access a resource of the first data processing accelerator, wherein the first data processing accelerator is communicatively coupled to at least one second data processing accelerator; determining, by the first data processing accelerator, whether the instruction instructs the first data processing accelerator to access sensitive resources of the first data processing accelerator or whether the first data processing accelerator should be permitted to allow the second data processing accelerator to access sensitive resources of the first data processing accelerator; as well as In response to the instruction instructing the first data processing accelerator to access a sensitive resource of the first data processing accelerator, allowing the first data processing accelerator to access the sensitive resource of the first data processing accelerator; as well as In response to the instruction that the first data processing accelerator should be permitted to allow a second data processing accelerator to access sensitive resources of the first data processing accelerator, the second data processing accelerator is prohibited from accessing the sensitive resources of the first data processing accelerator.
14. The processing system of claim 13, wherein: The division of the plurality of processing resources of each data processing accelerator is a static division.
15. The processing system of claim 14, wherein: The static partitioning is implemented in hardware.
16. The processing system of claim 13, wherein: The plurality of processing resources include: a memory, one or more processing modules, one or more registers or storages.
17. The processing system of claim 13, wherein: The operations also include: In response to the instruction that the first data processing accelerator should be granted access by a second data processing accelerator to a non-sensitive resource of the first data processing accelerator, the second data processing accelerator is allowed access to the non-sensitive resource of the first data processing accelerator.
18. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6.
19. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.
