Secure federation of distributed stochastic gradient descent
By using public appended homomorphic encryption and private key technology, the problem of confidentiality and privacy leakage when sharing machine learning model weights in a multi-entity environment is solved, and distributed, federated and secure deep learning model training is achieved.
Patent Information
- Application Number
- CN202080079660.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-11-15
- Filing Date
- 2020-11-05
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-11-05
AI Technical Summary
When training deep learning models in a multi-entity environment, sharing data can lead to issues of confidentiality and privacy leakage, and it is difficult to implement distributed, joint, and secure iterative optimization algorithms with traditional methods.
Using a public appended homomorphic encryption (AHE) key and a private AHE key, the public AHE key is generated and distributed through the encryption manager. The entity manager locally bootstraps and aggregates the encrypted machine learning model weights, and utilizes the private AHE key to decrypt and The sum of shared encryption weights.
It realizes the merging of encryption weights without sharing plain text data, ensuring data confidentiality and privacy, while supporting distributed, federated and secure machine learning model training.
Smart Images

Figure CN114731274B_ABST
Abstract
Description
Technical Field
[0001] The present invention generally relates to training machine learning models, including deep neural networks, based on gradient descent. More specifically, embodiments relate to collaboration for training machine learning models in a distributed, federated, private, and secure manner based on iterative algorithms. Background Art
[0002] Artificial intelligence (AI) is a field of computer science that deals with computers and computer behavior related to humans. AI refers to intelligence when a machine is able to make decisions based on information, which maximizes the chances of success in a given subject. More specifically, AI is able to learn from data sets to solve problems and provide relevant recommendations. For example, in the field of artificial intelligence computer systems, natural language systems (such as IBM Artificial intelligence computer systems or other natural language query answering systems) process natural language based on the knowledge acquired by the system. To process natural language, the system can be trained with data derived from a database or knowledge corpus, but the results obtained may be incorrect or inaccurate for a variety of reasons.
[0003] Machine learning (ML) is a subset of artificial intelligence (AI) that uses algorithms to learn from data and create foresight based on this data. ML is the application of AI through the creation of models that include neural networks that can demonstrate learning behavior by performing tasks that are not explicitly programmed. Deep learning is a type of ML in which the system can complete complex tasks by using multiple layers of selection based on the output of previous layers, thereby creating increasingly intelligent and more abstract conclusions. Deep learning uses neural networks (referred to herein as artificial neural networks), models complex relationships between inputs and outputs, and identifies patterns therein.
[0004] The core and associated reasoning of AI lies in the concept of similarity. The process of understanding natural language and objects requires reasoning from a relational perspective which can be challenging. Structures (both static and dynamic) specify a certain output or action given a certain input. More specifically, the determined output or action is based on explicit or inherent relationships within the structure. This arrangement can be satisfactory for selected situations and conditions. However, it should be understood that dynamic structures are inherently subject to change, and the output or action can be subject to change accordingly. Summary of the invention
[0005] In one aspect of the present invention, a system for use with an artificial intelligence (AI) platform to train a machine learning model is provided. A processing unit is operably coupled to a memory and communicates with the AI platform, which is embedded with tools in the form of a registration manager, an encryption manager, and an entity manager. The registration manager is used to register participating entities into a collaborative relationship, arrange the registered entities in a topology, and establish a topological communication direction. The encryption manager is used to generate a public additive homomorphic encryption (AHE) key and distribute it to each registered entity. The entity manager is used to locally guide the encryption of entity local machine learning model weights using a corresponding distributed AHE key. The entity manager is further used to selectively aggregate the encrypted local machine learning weights in response to the topological communication direction, and distribute the aggregated weights to one or more entities in the topology. The encryption manager decrypts the aggregated sum of the encrypted local machine learning model weights using the corresponding private AHE key, and distributes the aggregated sum to each entity in the topology. The encryption manager further acts to share the decrypted aggregated sum of the encrypted local machine learning model weights with the registered participating entities.
[0006] In another aspect, a computer program product for training a machine learning model is provided. The computer program product includes a computer-readable storage medium having a program code contained therein, the program code being executable by a processor for registering participating entities in a collaborative relationship, arranging the registered entities in a topology, and establishing a topological communication direction. Program code is provided for generating a public additional homomorphic encryption (AHE) key and distributing it to each registered entity. The program code locally guides the encryption of entity local machine learning model weights using the corresponding distributed AHE key. The local machine learning model weights are selectively aggregated, and the aggregated weights are distributed to one or more entities in the topology in response to the topological communication direction. Program code is further provided for decrypting the aggregated sum of the encrypted local machine learning model weights using the corresponding private AHE key. The decrypted aggregated sum is distributed to each entity in the topology, wherein the decrypted aggregated sum of the encrypted local machine learning model weights is shared with the registered participating entities.
[0007] In yet another aspect, a method for training a machine learning model is provided. Participating entities are registered in a collaborative relationship. The registered participating entities are arranged in a topology, and a topological communication direction is established. Each registered participating entity receives a public additive homomorphic encryption (AHE) key, and encrypts a local machine learning model weight using the received key. In response to the topological communication direction, the encrypted local machine learning model weights are selectively aggregated, and the selectively aggregated encrypted weights are distributed to one or more participating entities in the topology. The aggregated sum of the encrypted local machine learning model weights is decrypted using the corresponding private AHE key. The decrypted aggregated sum of the encrypted local machine learning model weights is shared with the registered participating entities.
[0008] These and other features and advantages will become apparent from the following detailed description of the preferred embodiments of the present invention taken in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The accompanying drawings referenced herein form a part of the specification. Unless otherwise indicated, the features shown in the accompanying drawings are meant to be illustrative of some embodiments only, rather than all embodiments.
[0010] Figure 1 A flow diagram illustrating a system connected in a secure federated network environment supporting distributed stochastic gradient descent is depicted.
[0011] Figure 2 Describes how Figure 1 A block diagram of the artificial intelligence platform and tools and their associated application program interfaces as shown and described.
[0012] Figure 3 A block diagram illustrating management domains and aggregation within domains is depicted.
[0013] Figure 4 A flow diagram illustrating a process for performing intra-domain aggregation of management domains is depicted.
[0014] Figure 5 A flowchart illustrating a process for inter-domain collaboration and training of ML programs is described.
[0015] Figure 6 Depicted showing support Figure 5 A block diagram of an example ring topology of the processes shown and described in FIG.
[0016] Figure 7 A flow chart illustrating a process for arranging entities in a fully connected topology and employing a broadcast communication protocol over that topology is described.
[0017] Figure 8A flow chart of a process for supporting and implementing weighted encryption and aggregation on a channel or broadcast group whose membership changes dynamically is shown.
[0018] Fig. 9 A flow chart illustrating a process for encrypting blocks of a local weight array and synchronizing parallel aggregate arrays is described.
[0019] Fig.10 Depicted is a block diagram showing an example of a computer system / server of a cloud-based support system for implementing the above-described Figures 1 to 9 Describe the systems and processes.
[0020] Fig.11 A block diagram illustrating a cloud computer environment is depicted.
[0021] Fig.12 Depicted is a block diagram illustrating a set of functional abstraction model layers provided by a cloud computing environment. DETAILED DESCRIPTION
[0022] It will be readily understood that the components of the present embodiments, as generally described and illustrated in the drawings herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of embodiments of the apparatus, system, method, and computer program product of the present embodiments as presented in the drawings is not intended to limit the scope of the claimed embodiments, but is merely representative of selected embodiments.
[0023] Reference throughout this specification to "a selected embodiment," "one embodiment," or "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment. Thus, the appearances of the phrases "a selected embodiment," "in one embodiment," or "in an embodiment" in various places throughout this specification are not necessarily referring to the same embodiment.
[0024] The illustrated embodiments will be best understood by referring to the accompanying drawings, wherein like parts are represented by like reference numerals throughout. The following description is intended to be by way of example only and simply presents certain selected embodiments of devices, systems, and processes consistent with the embodiments claimed herein.
[0025] Deep learning is a machine learning method that combines neural networks in successive layers to learn from data in an iterative manner. Neural networks are models of the way the human brain processes information. The basic unit of a neural network is called a neuron, which is usually organized into layers. Neural networks work by simulating a large number of interconnected processing units that are similar to abstract versions of neurons. There are usually three parts in a neural network, including an input layer (with units representing input fields), one or more hidden layers, and an output layer (with one or more units representing target fields). These units are connected with varying connection strengths or weights. Input data is presented to the first layer, and values are propagated from each neuron to each neuron in the next layer. Ultimately, the results are passed from the output layer. Deep learning complex neural networks are designed to simulate how the human brain works, so computers can be trained to support poorly defined abstractions and problems. Neural networks and deep learning are often used in image recognition, speech, and computer vision applications.
[0026] A neural network includes interconnected layers and corresponding algorithms and adjustable weights. The optimization function that adjusts the weights is called gradient descent. More specifically, gradient descent is an optimization algorithm for minimizing a function by iteratively moving in the direction of the steepest descent defined by a negative gradient. In ML, gradient descent is used to update the parameters of a neural network and the corresponding neural model. This is direct when training on a single physical machine or between computers within a single entity. However, when multiple entities are included, data may not be shared due to communication restrictions or due to legal reasons (such as regulations of HIPAA, etc.). One solution is to then share weights and insights from each participating entity. It is understood in the art that sharing insights from data can lead to building a desired or improved neural model. However, sharing data can lead to other problems, such as confidentiality and privacy leakage caused by reverse engineering (e.g., reconstruction) of data from shared insights by other participating entities. Therefore, as shown and described herein, a system, a computer program product, and a method are provided that merge encrypted weights by sharing encrypted model parameters without sharing data or weights in plain text (e.g., plain text).
[0027] As shown and described herein, encryption keys and corresponding encryption platforms are used to encrypt shared weights, and algorithms or processes are used to support and implement aggregation of encrypted weights. The encryption platform utilizes, for example, additive homomorphic encryption (AHE), such as Paillier encryption, which is a type of key pair-based cryptography that utilizes a public key and a corresponding private key. Each entity uses the same public key to support and implement homomorphism for each training job. AHE provides additive homomorphism, which enables messages or corresponding data to be added together when they are in encrypted form, and further supports appropriate decryption of the additional encrypted form using the corresponding private key. As shown and described herein, AHE is applied to ML to encrypt the weights of the corresponding neural network, and the encrypted weights are shared with registered participating entities of the collaborative environment without encrypting or sharing the corresponding data.
[0028] refer to Figure 1 , a schematic diagram (100) is provided to illustrate a secure federation of distributed stochastic gradient descent. As shown, a server (110) is provided that communicates with multiple computing devices (180), (182), (184), (186), (188), and (190) across a network connection (105). The server (110) is configured with a processing unit (112) that communicates with a memory (116) across a bus (114). The server (110) is shown as having an artificial intelligence (AI) platform (150) to support collaboration to train a machine learning model based on an iterative optimization algorithm in a distributed, federated, private, and secure environment. The server (110) communicates with one or more of the computing devices (180), (182), (184), (186), (188), and (190) via a network (105). More specifically, computing devices (180), (182), (184), (186), (188), and (190) communicate with each other and other devices or components via one or more wired and / or wireless data communication links, where each communication link may include one or more of wires, routers, switches, transmitters, receivers, etc. In this networked arrangement, server (110) and network connection (105) enable communication detection, identification, and resolution. Other embodiments of server (110) may be used with components, systems, subsystems, and / or devices other than those depicted herein.
[0029] The AI platform (150) is shown herein as being configured to receive input (102) from different sources. For example, the AI platform (150) can receive input from the network (105) and utilize a data source (160) (also referred to herein as a corpus or knowledge base) to create output or response content. As shown, the data source (160) is configured with a library (162), or in one embodiment, multiple libraries, and the library (162) includes one or more deep neural networks, referred to herein as neural models, including models A (164 A ),Model B (164 B ),Model C (164 C ) and models D (164 D ). In one embodiment, the library (162) may include a reduced amount of models or an enlarged amount of models. Similarly, in one embodiment, the library in the data source (160) may be organized by common themes or topics, although this is not a requirement. The models populated into the library may come from similar or dissimilar sources.
[0030] The AI platform (150) is equipped with tools to support and enable machine learning collaboration. Different computing devices (180), (182), (184), (186), (188) and (190) in communication with the network (105) may include access points for models of data sources (160). The AI platform (150) acts as a platform for enabling and supporting collaboration without sharing insights or data. As shown and described herein, the collaboration employs a public key infrastructure (PKI) that isolates AHE key generation from weight encryption and aggregation. More specifically, as described in detail herein, additional homomorphic encryption is utilized to enable identified or selected entities to share neural model weights in encrypted form without sharing data. A response output (132) in the form of a neural model with a desired accuracy is obtained and shared with entities covered and participating in the collaboration. In one embodiment, the AI platform (150) communicates the response output (132) to members of the collaboration topology, such as in Figure 6 and Figure 7 As shown and described in , the server ( 110 ) or one or more of the computing devices ( 180 )-( 190 ) are operably coupled across a network ( 105 ).
[0031] In various embodiments, the network (105) may include local network connections and remote connections, so that the AI platform (150) can operate in environments of any size, including, for example, local and global, such as the Internet. The AI platform (150) serves as a backend system to support collaboration. In this manner, some processing populates the AI platform (150), wherein the AI platform (150) also includes an input interface that receives requests and responds accordingly.
[0032] The AI platform (150) is shown herein as having several tools for supporting neural model collaboration, including a registration manager (152), an encryption manager (154), and an entity manager (156). The registration manager (152) is used to register participating entities into a collaborative relationship, including the arrangement of registered entities in a topology, and establishing communication directions and communication protocols between entities in the topology. For example, in one embodiment, and as shown and described below, the registered entities are arranged in a ring topology. However, the communication protocol may be different. Examples of protocols include, but are not limited to: a linear direction protocol, a broadcast protocol, and an All-Reduce protocol. As further shown and described herein, an additional homomorphic PKI encryption platform is used to share and collaborate on neural model weights. The encryption manager (154) shown herein is operatively coupled to the registration manager (152) for generating and distributing a public additional homomorphic encryption (AHE) key for each training job to the registered entities. This distribution is typically done based on the machine learning training job, although it can also be done based on each iteration. The corresponding private AHE key is generated but not distributed. The public key is retained by the corresponding recipient entity. For example, the private AHE key (hereinafter referred to as the private key) associated with each of the distributed public AHE keys is not shared with any recipient entity (e.g., participating entity). Therefore, the registration manager (152) and the encryption manager (154) are used to register entities participating in the collaboration, establish communication protocols, and generate and selectively distribute AHE public encryption keys.
[0033] As shown, the entity manager (156) is operatively coupled to the registration and encryption managers (152) and (154), respectively. The entity manager (156) is used to locally direct the encryption of the entity local machine learning model weights using the corresponding distributed AHE key, followed by aggregation. For example, in one embodiment, the model shown herein A (164 A ),Model B (164 B ),Model C (164 C ) and models D (164 D) is associated with a corresponding set of entities. In one embodiment, the entities may be any of the computing machines (180)-(190) operatively coupled to the server (110). Each model has one or more corresponding weights that are the subject of the collaboration. For example, in one embodiment, the model A (164 A ) has the corresponding weight (166 A ),Model B (164 B ) has the corresponding weight (166 B ), model model C (164 C ) has the corresponding weight (166 C ), and models D (164 D ) has the corresponding weight (166 D ). The entity manager (156) selectively aggregates the encrypted local machine learning model weights with the corresponding public key. Different aggregation and collaboration protocols can be used, including but not limited to linear transmission, broadcast, and All-Reduce. Regardless of the collaboration protocol, at some point in the collaboration and aggregation process, each entity model weight is encrypted with the corresponding public AHE key. As shown in this article, the weight (166 A ) with the corresponding AHE public key (168 A ) encryption, weight (166 B ) with the corresponding AHE public key (168 A ) encryption, weight (166 C ) with the corresponding AHE public key (168 A ) encryption, weight (166 D ) with the corresponding AHE public key (168 A ) is encrypted. Therefore, the same corresponding AHE public key (168 A ) to encrypt each weight separately.
[0034] It is understood in the art that AHE supports additional attributes. This allows the weights of the corresponding models to be aggregated when in encrypted form. The encrypted weights are aggregated at different stages according to the communication and collaboration protocol. For example, in a linear ring topology, the registration manager (152) assigns a rank to each participating entity in the topology. Each of the model weights is incrementally encrypted and aggregated based on its corresponding rank and the established communication direction. The entity manager (156) encrypts the weights with a locally provided AHE public key (e.g., public key (168A)) and transmits the encrypted weights to adjacently located entities for aggregation. More specifically, the entity manager (156) aggregates the AHE encrypted weights along the topology without facilitating or implementing decryption. The registration manager (152) establishes and, in one embodiment, modifies the communication direction. For example, in a ring topology, the registration manager can establish a clockwise or counterclockwise communication direction and can change the direction. For example, in one embodiment, the registration manager (152) can change the direction based on available bandwidth. In the broadcast protocol, the registration manager (152) establishes local encryption of weights and communication of encrypted weights from each entity to other entities and the AI platform. Thus, the entity manager (156) supports and implements aggregation and distribution of encrypted weights based on or in response to topological directions and communication protocols.
[0035] A public AHE key has a corresponding private key that is not shared with participating entities. In one embodiment, the private key (e.g., key P (168 P )) is maintained locally in the encryption manager (154) of the AI platform (150). It should be understood that the aggregated and encrypted weights are decrypted based on the communication protocol. When decryption is appropriate, the encryption manager (154) causes the encrypted weights (166 P,E ) is subjected to decryption using a private key (e.g., key P (168 P )), thereby creating the aggregate sum of the decrypted weights (166 P,UE The encryption manager (154) aggregates and decrypts the sum of the local weights (166 P,UE ) is distributed or otherwise shared to each of the participating and contributing entities. Thus, each entity that contributes to the aggregation receives the aggregated and decrypted sum.
[0036] It should be understood that a participating entity may include a single sub-entity, or in one embodiment, include multiple internal sub-entities. In one embodiment, each entity has a single set of security and configuration policies for a network domain. For a demonstration of an exemplary entity including multiple internal sub-entities, see Figure 3The entity manager (156) is configured to support and implement collaborative aggregation based on weights of a single sub-entity or multiple sub-entities. More specifically, the entity manager (156) performs intra-entity aggregation representing weights of homogeneous data types from each internal sub-entity, and subjects the intra-entity aggregation to encryption with the entity's AHE public key. Thus, the intra-entity aggregation is performed before the aggregation is AHE encrypted.
[0037] The entity manager (156) subjects the intra-entity aggregates to encryption using a local public AHE encryption key. Thereafter, the encrypted aggregates are subjected to inter-entity distribution across the topology. As described above, the inter-entity distribution includes an aggregate of encrypted weights. After inter-entity aggregation of weights and decryption with corresponding private keys, the entity manager (156) propagates the aggregated sum to each of the internal sub-entities. Thus, each participating entity and its associated internal sub-entities benefit from and participate in the collaboration.
[0038] The registration manager (152) is responsible for establishing the topology and communication protocol. In one embodiment, the registration manager (152) establishes a fully connected topology, also known as a mesh topology, and a corresponding broadcast protocol, in which each participating entity sends, for example, broadcasts their encrypted local weights across the topology and directly to each other participating entity in the topology. The entity manager (156) further supports and implements selective aggregation, which in this embodiment covers each participating entity to locally aggregate all received broadcast encrypted weights. The encryption manager (154) subjects each local aggregation to participation verification. The goal of aggregation is to enable each participating entity to receive and benefit from the encrypted weights of other participating entities. However, it is challenging to identify whether one or more of the entities in the topology have no contribution or no contribution to the weight aggregation. In a mesh topology, each participating member entity can communicate directly with the encryption manager (154), and in this way, the encryption manager (154) is configured to evaluate whether it receives different aggregated weight values from different members of the topology. For example, if there are four participating entities, and three of the entities have the same aggregated weight value and one of the entities has a different aggregated weight value, the encryption manager (154) can identify the non-contributing entity. In one embodiment, the encryption manager (154) can restrict the decrypted aggregated weight sum to be shared with the contributing entities, or request the identified non-contributing entity to broadcast its encrypted local weight to each of the participating members of the topology. Thus, as shown and described herein, the mesh topology employs a broadcast protocol and, in one embodiment, entity participation verification is used to support federated machine learning.
[0039] like Figure 1As shown and described in, the registration manager (152) may implement an All-Reduce algorithm or protocol for collaboration. In this embodiment, the entity manager (156) represents the weight of each entity as an array of weights. The entity manager (156) encrypts the array with the corresponding entity AHE public key, divides the encrypted array into two or more blocks, and synchronously aggregates the blocks in parallel and in response to the topology. When each participating entity in the collaboration is receiving a single aggregated chunk, the entity manager (156) ends the synchronous aggregation. Each aggregated chunk is decrypted by the encryption manager (154) with the corresponding private key, and the decrypted chunks are then concatenated and the concatenated decrypted chunks are distributed to the registered participating entities. Therefore, the All-Reduce protocol is an algorithm that is efficiently adopted in this article in a parallel and collective manner.
[0040] In some demonstrative embodiments, the server (110) may be an IBM ® 4000 ® available from International Business Machines Corporation in Armonk, New York. system, which is augmented with the mechanisms of the illustrative embodiments described below. The IBM The system includes a tool for implementing federated machine learning based on an iterative optimization algorithm. The tool enables selective aggregation of encrypted model weights without sharing the underlying data, thereby enabling the data to remain confidential or private.
[0041] A registration manager (152), an encryption manager (154), and an entity manager (156), hereinafter collectively referred to as an AI tool or an AI platform tool, are shown as being embodied in or integrated within the AI platform (150) of the server (110). The AI tool may be implemented in a separate computing system (e.g., 190) connected to the server (110) across a network (105). Wherever implemented, the AI tool is used to support and implement federated machine learning in an iterative manner, including encryption of local model weights and sharing of encrypted local model weights between participating entities without sharing or exposing the underlying data. The output content (132) may be in the form of a decrypted format of aggregated weights communicated between entities.
[0042] The types of information processing systems that can utilize the AI platform (150) range from small handheld devices such as handheld computers / mobile phones (180) to large mainframe systems such as mainframe computers (182). Examples of handheld computers (180) include personal digital assistants (PDAs), personal entertainment devices such as MP4 players, portable televisions, and compact disk players. Other examples of information processing systems include pen or tablet computers (184), laptop or notebook computers (186), personal computer systems (188), and servers (190). As shown, different information processing systems can be networked together (105) using a computer network. Types of computer networks (105) that can be used to interconnect different information processing systems include local area networks (LANs), wireless local area networks (WLANs), the Internet, public switched telephone networks (PSTNs), other wireless networks, and any other network topologies that can be used to interconnect information processing systems. Many information processing systems include non-volatile data storage devices, such as hard drives and / or non-volatile memories. Some information handling systems may use separate non-volatile data storage (e.g., the server (190) uses non-volatile data storage (190) A ), and the mainframe computer (182) utilizes non-volatile data storage (182 A )). Non-volatile data storage (182 A ) can be components external to different information handling systems or can be within one of the information handling systems.
[0043] The information processing system used to support the AI platform (150) can take many forms, some of which are Figure 1 For example, an information handling system may take the form of a desktop, server, portable, laptop, notebook, or other form factor computer or data processing system. In addition, an information handling system may take other form factors such as a personal digital assistant (PDA), a gaming device, an ATM machine, a portable telephone device, a communication device, or other device that includes a processor and a memory. Furthermore, an information handling system need not necessarily embody a northbridge / southbridge controller architecture, as it will be appreciated that other architectures may also be employed.
[0044] An application programming interface (API) is understood in the art as software that is an intermediate between two or more applications. Figure 1 In the AI platform (150) shown and described in the accompanying drawings, one or more APIs may be used to support one or more of the tools (152)-(156) and their associated functionality. Figure 2, a block diagram (200) showing tools (152)-(156) and their associated APIs is provided. As shown, multiple tools are embedded in the AI platform (205), wherein the tools include a registration manager (252) associated with API0 (212), an encryption manager (254) associated with API1 (222), and an entity manager (256) associated with API2 (232). Each of the APIs can be implemented in one or more languages and interface specifications. API0 (212) provides functional support to register participating entities, arrange topologies, and establish communication protocols; API1 (222) provides functional support to generate and distribute public AHE keys for each registered entity, manage decryption of aggregation weights using corresponding private keys, and manage the allocation of decrypted weights; and API2 (232) provides functional support to guide intra-entity aggregation and inter-entity aggregation in response to topology. As shown, each of the APIs (212), (222), and (232) is operably coupled to an API orchestrator (260), which is otherwise referred to as an orchestration layer, which is understood in the art to act as an abstraction layer to transparently thread separate APIs together. In one embodiment, the functionality of the separate APIs may be joined or combined. As such, the configuration of the APIs shown herein should not be considered restrictive. Therefore, as shown herein, the functionality of a tool may be embodied or supported by its corresponding API.
[0045] refer to Figure 3 , a block diagram (300) illustrating management domains and intra-domain aggregation is provided. Registered participating entities (310) are referred to herein as local aggregators (LAs) that are operably coupled to one or more local computing entities. In the example shown herein, there are four local computing entities, including entity 0 (320), entity 1 (330), entity 2 (340), and entity 3 (350). Each computing entity includes or utilizes one or more machine learning programs (referred to herein as learners) supported by operationally coupled data. As shown herein, entity 0 (320) is shown as having learner 0 (322) and operationally coupled data 0 (324), entity 1 (330) is shown as having learner 1 (332) and operationally coupled data 1 (334), entity 2 (340) is shown as having learner 2 (342) and operationally coupled data 2 (344), and entity 3 (350) is shown as having learner 3 (352) and operationally coupled data 3 (354). Each machine learning program (eg, learner) extracts local data and processes it into a corresponding local neural model.
[0046] Data originating from the same classification may be applied to construct or utilize different neural models of the same data classification. In the example shown herein, each of the learners (322), (332), (342), and (352) represents the same machine learning program for, for example, the same data type (homogeneous data classification), but with different data. The LA (310) supports and enables learners to share weights with or without sharing underlying data. The LA (310) performs aggregation of received weights, and in one embodiment, averages the received weights without performing AHE encryption. Thus, the management domain shown and described herein represents an entity, which in one embodiment may be a business entity or domain, to support internal aggregation of weights from processes within the domain, for example, intra-entity aggregation.
[0047] Reference Figure 4 A flow chart (400) is provided to illustrate a process for performing intra-domain aggregation of a management domain. Variable X Total The amount of computing entities in the domain is represented (402). A domain may include a single or multiple computing entities. Figure 3 As shown, each computational entity has a machine learning program and locally coupled data, where each machine learning program represents a homogeneous category of data. Total Indicates the amount of data types that may be present in the locally coupled data (404). In one embodiment, the value of the data type is aligned with the amount of machine learning program. Initializes data type count variable Y (406). For each computational entity X, the corresponding data type Y The weights in the ML program, such as the weights Y , are identified and aggregated (408). The process of aggregating weights can be applied to different ML programs for different data types. As shown, after step (408), the data type count variable Y is incremented (410) to consider the next ML program, and it is determined whether each of the data types has been processed for weight aggregation (412). A negative response to the determination is followed by a return to step (408), and an affirmative response to the determination ends the aggregation. In one embodiment, a data type can be specified, and aggregation can be limited to the specified data type. Therefore, intra-entity aggregation of weights can be performed across two or more computing entities residing in a specified or defined domain without performing or adopting any AHE encryption.
[0048] Multiple domains may be arranged in a defined topology. Each domain has a corresponding LA operably coupled to one or more entities and associated ML programs. Weights from ML programs may be shared on an inter-domain basis without sharing data. More specifically, weights are encrypted in a manner that supports aggregation while maintaining encryption. Inter-domain sharing of weights supports and enables collaborative and enhanced training of ML programs. References Figure 5, a flowchart (500) is provided to illustrate the process for inter-domain collaboration and training of ML programs. Variable N total The amount (502) assigned to the LAs subject to collaboration. It should be understood that each LA is addressable and has a corresponding address identifier. Each LA is arranged in the topology and is assigned a ranking (504) in response to its corresponding position in the topology. In addition, a communication protocol for inter-domain communication is established within the topology. For the purpose of description, the topology used in this article is a linear ring topology, in which the LAs are connected within the ring and pass information to or from each other according to their adjacent proximity within the ring structure and a specified direction (e.g., clockwise or counterclockwise). Servers (such as in Figure 6 The central server (620) shown and described in the figure) is also referred to as a third-party coordinator (in one embodiment, an AI platform (150) local to the central server (110)), which is configured to communicate with the topology and the LAs assigned to the topology, and is used to generate and distribute encryption keys. Each LA in the topology is assigned an encryption key. As shown, the AI platform (150) generates a public encryption key and sends the public encryption key to each LA in the topology (506). The public key has a corresponding private key, which is retained by the central server. The encryption platform used by the central server utilizes additional homomorphic encryption (AHE), such as Paillier encryption. Therefore, the topology and communication protocol are established using three or more LAs populated into the topology.
[0049] like Figure 3 and Figure 4 As shown and described, each ML program represents a specific data type. Each LA may have one or more ML programs, where each program is associated or assigned a different data type. Total is assigned to represent the quantity of the data type (508), and the data type count variable and the LA count variable are initialized separately at (510) and (512), respectively. Thereafter, the weight aggregation process is initiated. As shown in the figure, LA N Identified and used for data types Y LA N The weights of the local ML programs are aggregated and encrypted with a common encryption key (514). In one embodiment, the LA N Restricted to data types Y A single ML program of . After step (514), the LA count variable is incremented (516), and then a determination is made as to whether there are any LAs in the topology that have not undergone weight aggregation (518). A negative response to the determination at step (518) is followed by the LA N -1 will be used for ML program Y , the weight of N-1 is sent to LA N(520). After receiving the weight, the data type Y LA N The weights of the local ML programs are locally aggregated and encrypted with a public encryption key (522). N-1 The encrypted weights received are used for the ML program Y,N The encrypted weights are aggregated (524). Once in LA N Aggregation at is complete and the process returns to step (516). Thus, aggregation of weights occurs on an intra-domain and inter-domain basis.
[0050] A positive response to the determination at step (518) is an indication that each of the LAs in the topology has completed the rotation of the ring. As shown herein, the weights of each of the LAs are completed in encrypted form, where each contributing LA's weight has the same public encryption key. The aggregated and encrypted weights are from the LAs. N Total Sent to the central server (526). The only entity with full aggregation is LA NTotal The central server uses the private key associated with the public key distributed in the topology and decrypts the data for the data type Y The central server will be used for data types Y The decrypted aggregates are distributed to each LA in the topology (530). Upon receiving the decrypted aggregates from the central server, the corresponding LA propagates the weights downstream to the internal learner processes (532). Thereafter, the data type count variable is incremented (534), and each of the data types is determined, e.g., Figure 4 The ML program shown and described in has been processed with respect to weight aggregation (536). A negative response to the determination is followed by a return step (514), and an affirmative response ends the aggregation process. Thus, the aggregation shown and described herein is limited to the weights in the corresponding ML program and does not extend to the associated data.
[0051] Reference Figure 6 , a block diagram (600) is provided to illustrate support Figure 5 6. As shown, the central server (620) (also referred to herein as a third party coordinator) is configured or provided with a key generator (622) to generate public keys for distribution and private keys (680) to be retained locally. In this example, there are four LAs represented in the topology (610), including LA0 (630), LA1 (640), LA2 (650), and LA3 (660), however the number of LAs is for descriptive purposes and should not be considered limiting. Each individual LA may include a single learner or multiple learners, such as Figure 3As shown, an internal domain is formed. The central server (620) is operably coupled to each LA in the topology. More specifically, the central server (620) creates a public key for each LA (630), (640), (650) and (660), and transmits the public key across the corresponding communication channel. As shown in this article, the server (620) transmits the public key (632) to LA0 (630) across communication channel 0 (634). Similarly, the server (620) transmits the public key (642) to LA1 (640) across communication channel 1 (644), transmits the public key (652) to LA2 (650) across communication channel 2 (654), and transmits the public key (662) to LA3 (660) across communication channel 3 (664). The public keys (632) (642), (652) and (662) are the same public keys for each LA and support AHE encryption.
[0052] As shown herein, the encryption of the weights in this example originates from LA0 (630). For a particular data type or data classification, the weights of the local model at LA0 (630) are calculated and encrypted with Key 0 (632) and transmitted across the communication channel. 0,1 (670) is transmitted to LA1 (640). The encrypted weight for LA0 (630) is referred to herein as weight 0 (636). After receiving weight 0 (636) from LA0 (630), the weight of the local model for the same specific data type or data classification at LA1 (640) is calculated and encrypted with key 1 (642). The encrypted weight of LA1 (640) is referred to herein as weight 1 (646). The encrypted weight of the local model LA1 (640), weight 1 (646), is aggregated with the encrypted weight weight 0 (636) of the local model LA0 (630). The aggregation is also referred to herein as the first aggregation, for example, aggregation 0 (648). The process of encryption and aggregation continues across the ring topology in the established direction. As shown, aggregation 0 (648) spans the communication channel 1,2 (672) is transmitted to LA2 (650). After receiving Aggregate 0 (648) from LA1 (640), the weights of the local model for the same specific data type or data classification at LA2 (650) are calculated and encrypted with Key 2 (652). The encrypted weights (650) of LA2 are referred to as Weights 2 (656) in this article. The encrypted weights (650) and Weights 2 (656) of the local model LA2 are aggregated with Aggregate 0 (648) received from LA1 (640). This aggregation is also referred to as a second aggregation in this article, for example, Aggregate 1 (658). As shown in the figure, Aggregate 1 (658) is across the communication channel 2,3(674) is transmitted to LA3 (660). After receiving Aggregate 1 (658) from LA2 (650), the weights of the local model at LA3 (660) for the same specific data type or data classification are calculated and encrypted with Key 3 (662). The encrypted weights of LA3 (660) are referred to herein as Weight 3 (666). The encrypted weights, Weight 3 (666) of the local model LA3 (660) are aggregated with Aggregate 1 (658) received from LA2 (650). In this article, the aggregation is also referred to as a third aggregation, for example, Aggregate 2 (668). Therefore, the weights are encrypted and aggregated across the topology in a specified direction.
[0053] After the aggregation is completed at LA3 (660), Aggregate 2 (668) is passed to the central server (620), e.g., a third-party coordinator, via a communication channel (664). The central server (620) does not have the underlying data associated with the weights of the aggregation or the individual weights comprising the aggregation. The central server (620) possesses a private key (680) associated with the public key. The central server (620) decrypts the aggregation (e.g., Aggregate 2 (668)) using the private key (680) and sends the decrypted aggregation to each LA that is a member of the topology. As shown herein, the decrypted aggregation is transmitted to LA0 (630) across communication channel 0 (634), and is further transmitted to LA1 (640) across communication channel 1 (644), to LA2 (650) across communication channel 2 (654), and to LA3 (660) across communication channel 3 (664). Thus, the homomorphic encryption platform shown and described herein with respect to a ring topology supports additional encryption of weights associated with each neural model while maintaining the privacy and confidentiality of the corresponding data.
[0054] Figure 6 The encryption platform shown and described in is a ring topology for homogeneous data types, e.g., a single data type. In one embodiment, the aggregation and encryption supported in the platform can be used for a second or different data type, where encryption and aggregation of each data type occurs serially or in parallel.
[0055] like Figure 1 The topology and corresponding communication protocol shown and described in are not limited to a ring topology. Figure 7 A flow chart (700) is provided to illustrate a process for arranging entities in a fully connected topology and employing a broadcast communication protocol over the topology. Variable N TotalRepresents the amount of entities in the topology (702). The entities are arranged in a fully connected topology, also referred to herein as a mesh topology, (704). In one embodiment, each participating entity includes a LA or takes the form of a LA. Each participating entity has a locally encrypted weight and sends its locally encrypted weight, for example. AHE encrypted weights, directly to each participating entity in the topology (706). Aggregation of the AHE encrypted weights occurs locally. More specifically, each participating entity aggregates all received encrypted weights. Each participating entity is operably coupled to a decryptor (e.g., a third party coordinator) and sends their aggregated weights to the decryptor for decryption using a corresponding private key (708).
[0056] Based on the topology and the established communication protocol, the decryptor is configured to share decryption with each participating entity, and in one embodiment, participation can be verified. After step (708), it is determined whether to conduct a verification protocol (710). After a negative response to this determination, the decrypted aggregation is returned to the participating entity so that each participating entity receives the decrypted aggregation (712). It should be understood in the art that there may be bandwidth constraints. In one embodiment, a single participating entity can be designated to communicate with the decryptor for transmitting the sum of encrypted aggregations. Similarly, in one embodiment, each participating entity can communicate with the decryptor separately for sending the sum of encrypted aggregations and receiving the sum of decrypted aggregations. In one embodiment, the participating entities do not have knowledge or details of the other participating entities, and therefore, the decryptor is responsible for the transmission of the decrypted aggregation of the weights.
[0057] In theory, each of the participating entities should have the same encrypted aggregation. A positive response to the determination of step (710) is followed by execution of the verification protocol. The weights of the decrypted aggregations received from each participating entity are compared to identify non-participating entities (714). In one embodiment, in step (714), the amount of the received encrypted weighted aggregation is compared with the amount of the requested decryption. Similarly, in one embodiment, in step (714), the values of the received encrypted weighted aggregations are compared to determine whether there are outliers. If a non-participating entity is identified in step (716), the return of the decrypted aggregation can be limited to the participating entity (716). Similarly, if no non-participating entity is identified in step (718), the decrypted aggregation is transmitted to each of the registered participating entities (720). Therefore, the topology shown and described herein supports and implements the identification of non-participating entities.
[0058] The aggregation protocol may be altered or modified to support dynamic modification of membership within a topology, e.g. membership of a local aggregator. Figure 8A flow chart (800) is provided to illustrate a process for supporting and implementing weighted encryption and aggregation on a channel or broadcast group whose membership changes dynamically. The server or third-party coordinator generates a Paillier public key and a corresponding private key, and prepares to share the public key with the LA in the topology (802). Variable N Total The amount allocated to the LAs in the topology, or in one embodiment, the initial amount allocated to the LAs in the topology (804). The generated Paillier public key is shared with each LA in the topology (806). In one embodiment, when a LA joins a topology (also referred to herein as a set of interconnected LAs), the server or third-party coordinator generates a Paillier public key and a corresponding private key and shares the public key with each joining or joining LA, or shares a previously generated Paillier public key with the LA joining the topology. Thus, each LA that is a member of the topology communicates with the central server and receives a Paillier public key for weight encryption.
[0059] The LAs that receive the encryption key form a group. However, each LA in the formed group does not necessarily know the other LAs. As shown in this article, the LAs in the group (referred to herein as LAs) N ) encrypts its weight using the public key, and then broadcasts the encrypted weight to all other LAs in the group (808). N After broadcasting the encrypted weights, LA N Receive encrypted weights from all other LAs that are members of the group (810). N The encrypted weight is added to each of the received encrypted weights (812), hereinafter referred to as the aggregated encrypted weight, and the aggregated encrypted weight is sent to a central server, e.g., a third party coordinator (814). The central server decrypts the aggregated encrypted weight using a private key (816) and distributes the decrypted aggregated weight to each of the member LAs (818). Thus, the process described herein utilizes encryption keys in a broadcast scenario.
[0060] It is understood in the field of AI and ML that as Figure 6 One or more LAs that are members of the topology shown and described (eg, a ring topology) may have a large array of weights corresponding to the results of local aggregation. Fig. 9 , a flow chart (900) is provided to illustrate the process for encrypting blocks of a local weight array and a synchronous parallel aggregation array. Multiple LAs are arranged in a ring topology and establish a communication direction (902), as in Figure 6 Variable N Total The amount (904) allocated to the LAs that are members of the topology. Each LA (e.g., LA N) encrypts its local weight array using the Paillier public key (906). Instead of sending the weight array in its entirety across the topology in a ring or broadcast fashion, each LA divides the encrypted array into segments referred to herein as chunks (908), where the number of chunks in each LA array is equal to the number N of LAs that are members of the topology Total The circular All-Reduce algorithm is called by initializing LA and the block count variable N (910). LA N Block N Sent to the next LA in the ring, such as LA N+1 , while it, for example, LA N Responding to the communication direction, blocks are simultaneously received from the previous LA in the topology N-1 (912). Each LA in the topology then aggregates the blocks it receives N-1 and its own corresponding block N-1 , and aggregate the blocks N-1 The next LA in the ring is sent, for example. Thereafter, the counting variable N is incremented (916), and then it is determined whether N is greater than N. Total (918). A negative response to the determination of step (918) is followed by a return to step (912), and a positive response is an indication of the aggregated blocks that each LA has weights. The blocks are aggregated synchronously and in parallel across the ring topology. Thus, each LA adds its local block to the received blocks and sends it to the next LA in response to the communication direction.
[0061] After a positive response to the determination of step (918), each LA in the topology has an aggregated block of Paillier encrypted weights. In the example with four LAs, LA1 has aggregated block 2, LA2 has aggregated block 3, LA3 has aggregated block 4, and LA4 has aggregated block 1. Each LA sends its aggregated block to a third-party coordinator (920), which is used to decrypt the aggregated encrypted weights arriving from each LA (922). The third-party coordinator cascades the decrypted weights and distributes them to each of the LAs in the topology (924). Therefore, the process shown and described herein adapts the All-reduce algorithm to the efficient and secure aggregation of weights between LAs arranged in a topology.
[0062] Aspects of the functional tools (152)-(156) and their associated functionality may be embodied in a computer system / server in a single location, or in one embodiment, may be configured in a cloud-based system that shares computing resources. Fig.10 , a block diagram (1000) is provided showing an example of a computer system / server (1002), hereinafter referred to as a host (1002) in communication with a cloud-based support system to implement the above Figures 1 to 9 The host computer (1002) may be operable with many other general or special purpose computing system environments or configurations. Examples of well-known computing systems, environments, and / or configurations that may be suitable for use with the host computer (1002) include, but are not limited to, personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputer systems, mainframe computer systems, and file systems including any of the above systems, devices, and their equivalents (e.g., distributed storage environments and distributed cloud computing environments).
[0063] The host (1002) may be described in the general context of computer system executable instructions (e.g., program modules) executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform specific tasks or implement specific abstract data types. The host (1002) may be implemented in a distributed cloud computing environment (1080), where tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules may be located in local and remote computer system storage media including memory storage devices.
[0064] like Fig.10 As shown, the host (1002) is shown in the form of a general-purpose computing device. The components of the host (1002) may include, but are not limited to, one or more processors or processing units (1004), for example. A hardware processor, a system memory (1006), and a bus (1008) that couples different system components including the system memory (1006) to the processor (1004). The bus (1008) represents any one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. As an example and not limitation, such architectures include an industry standard architecture (ISA) bus, a microchannel architecture (MCA) bus, an enhanced ISA (EISA) bus, a video electronics standard association (VESA) local bus, and a peripheral component interconnect (PCI) bus. The host (1002) typically includes various computer system readable media. Such a medium can be any available medium that can be accessed by the host (1002), and it includes volatile and non-volatile media, removable and non-removable media.
[0065] The memory (1006) may include computer system readable media in the form of volatile memory, such as random access memory (RAM) (1030) and / or cache memory (1032). By way of example only, the storage system (1034) may be configured to read from and write to a non-removable, non-volatile magnetic medium (not shown, and commonly referred to as a "hard drive"). Although not shown, a disk drive for reading from or writing to a removable non-volatile disk (e.g., a "floppy disk") may be provided, as well as an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media). In such a case, each may be connected to the bus (1008) via one or more data media interfaces.
[0066] A program / utility (1040) having a set (at least one) of program modules (1042) as well as an operating system, one or more application programs, other program modules, and program data may be stored in the memory (1006) by way of example and not limitation. Each or some combination of the operating system, one or more application programs, other program modules, and program data may include an implementation of a network environment. The program modules (1042) generally perform the functions and / or methods of the embodiments to dynamically communicate, evaluate, and process query identification. For example, the set of program modules (1042) may include, for example, Figure 1 Tools (152)-(156) described in.
[0067] The host (1002) may also communicate with one or more external devices (1014) (such as a keyboard, pointing device, etc.), a display (1024), one or more devices that enable a user to interact with the host (1002); and / or any device that enables the host (1002) to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may occur via an input / output (I / O) interface (1022). In addition, the host (1002) may communicate with one or more networks such as a local area network (LAN), a general wide area network (WAN), and / or a public network (e.g., the Internet) via a network adapter (1020). As depicted, the network adapter (1020) communicates with other components of the host (1002) via a bus (1008). In one embodiment, multiple nodes of a distributed file system (not shown) communicate with the host (1002) via an I / O interface (1022) or via a network adapter (1020). It should be understood that, although not shown, other hardware and / or software components may be used in conjunction with the host (1002). Examples include, but are not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archival storage systems, etc.
[0068] In this document, the terms "computer program medium," "computer usable medium," and "computer readable medium" are used to broadly refer to media such as main memory (1006) (including RAM (1030)), cache (1032), and storage systems (1034) (such as removable storage drives and hard disks installed in hard drives).
[0069] A computer program (also referred to as computer control logic) is stored in the memory (1006). The computer program may also be received via a communication interface, such as a network adapter (1020). Such a computer program, when run, enables the computer system to perform features of the present embodiment as discussed herein. Specifically, the computer program, when run, enables the processing unit (1004) to perform features of the computer system. Thus, such a computer program represents a controller of the computer system.
[0070] Computer readable storage media can be a tangible device that can retain and store instructions for use by instruction execution devices. Computer readable storage media can be, for example but not limited to, electronic storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination of the above. A non-exhaustive list of more specific examples of computer readable storage media includes the following: portable computer disks, hard disks, dynamic or static random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), magnetic storage devices, portable compact disk read-only memories (CD-ROM), digital versatile disks (DVD), memory sticks, floppy disks, mechanical encoding devices such as punch cards, or protruding structures in grooves with instructions recorded thereon, and any suitable combination of the above. Computer readable storage media as used herein should not be interpreted as temporary signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagated by waveguides or other transmission media (e.g., light pulses passing through fiber optic cables), or electrical signals sent by wires.
[0071] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to a corresponding computing / processing device via a network (e.g., the Internet, a local area network, a wide area network, and / or a wireless network), or downloaded to an external computer or external storage device. The network can include copper transmission cables, optical transmission fibers, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions to be stored in a computer-readable storage medium in the corresponding computing / processing device.
[0072] The computer-readable program instructions for performing the operation of the present embodiment can be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages (such as Java, Smalltalk, C++, etc.) and conventional process programming languages (such as "C" programming languages or similar programming languages). The computer-readable program instructions can be executed completely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer, partially on the remote computer, or completely on the remote computer or server or server cluster. In the latter case, the remote computer can be connected to the user's computer by any type of network (including local area network (LAN) or wide area network (WAN)), or can be connected to an external computer (for example, using an Internet service provider through the Internet). In certain embodiments, the electronic circuit including, for example, a programmable logic circuit, a field programmable gate array (FPGA) or a programmable logic array (PLA) can be personalized to perform computer-readable program instructions by utilizing the state information of the computer-readable program instructions to personalize the electronic circuit, so as to perform the aspects of the embodiment.
[0073] In one embodiment, the host (1002) is a node of a cloud computing environment. As is known in the art, cloud computing is a model of service delivery for enabling convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) that can be quickly provisioned and released with minimal management effort or interaction with the provider of the service. The cloud model can include at least five characteristics, at least three service models, and at least four deployment models. Examples of such characteristics are as follows:
[0074] On-demand self-service: Cloud consumers can unilaterally and automatically provision computing capabilities, such as server time and network storage, as needed, without requiring human interaction with the provider of the service.
[0075] Broad network access: Capabilities are available over the network and accessed through standard mechanisms that facilitate the use of heterogeneous thin-client platforms or thick-client platforms (e.g., mobile phones, laptops, and PDAs).
[0076] Resource pooling: A provider's computing resources are pooled to serve multiple consumers using a multi-tenant model, where different physical and virtual resources are dynamically assigned and reassigned as needed. There is a sense of location independence, as consumers typically do not have control or knowledge of the exact location of the provided resources, but may be able to specify the location at a higher level of abstraction (e.g., country, state, or data center).
[0077] Rapid elasticity: The ability to quickly and elastically provision capacity, in some cases automatically scaling down quickly and releasing quickly to scale up quickly. To the consumer, the capacity available for provisioning generally appears unlimited and can be purchased in any quantity at any time.
[0078] Measured services: Cloud systems automatically control and optimize resource usage by leveraging metering capabilities at some abstraction level appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported, providing transparency to both providers and consumers of the utilized services.
[0079] The service model is as follows:
[0080] Software as a Service (SaaS): The capability provided to the consumer is to use the provider's applications running on a cloud infrastructure. The applications can be accessed from different client devices through a thin client interface such as a web browser (e.g., web-based email). The consumer does not manage or control the underlying cloud infrastructure including the network, servers, operating systems, storage, or even individual application capabilities, with the possible exception of limited user-specific application configuration settings.
[0081] Platform as a Service (PaaS): The capability provided to consumers is to deploy applications created or acquired by consumers using programming languages and tools supported by the provider onto the cloud infrastructure. Consumers do not manage or control the underlying cloud infrastructure including networks, servers, operating systems or storage, but have control over the deployed applications and possible configuration of the application hosting environment.
[0082] Infrastructure as a Service (IaaS): The capabilities provided to consumers are the provision of processing, storage, networking, and other basic computing resources on which consumers can deploy and run arbitrary software, which may include operating systems and applications. Consumers do not manage or control the underlying cloud infrastructure, but have control over the operating system, storage, deployed applications, and possibly limited control over selected networking components (e.g., host firewalls).
[0083] The deployment model is as follows:
[0084] Private Cloud: Cloud infrastructure is operated only for the organization. It can be managed by the organization or a third party and can exist on-premises or off-premises.
[0085] Community Cloud: Cloud infrastructure is shared by several organizations and supports a specific community with shared concerns (e.g., mission, security requirements, policies, and compliance considerations). It can be managed by the organization or a third party and can exist on-premises or off-premises.
[0086] Public cloud: Cloud infrastructure is made available to the public or large industry groups and is owned by an organization that sells cloud services.
[0087] Hybrid cloud: A cloud infrastructure is a combination of two or more clouds (private, community, or public) that remain unique entities but are bound together by standardized or proprietary technologies that enable data and application portability (e.g., cloud bursting for load balancing between clouds).
[0088] Cloud computing environments are service-oriented and focus on statelessness, low coupling, modularity, and semantic interoperability. At the core of cloud computing is the infrastructure that includes a network of interconnected nodes.
[0089] See now Fig.11 , illustrative cloud computing network (1100). As shown, the cloud computing network (1100) includes a cloud computing environment (1150) having one or more cloud computing nodes (1110), with which local computing devices used by cloud consumers can communicate. Examples of these local computing devices include, but are not limited to, personal digital assistants (PDAs) or cellular phones (1154A), desktop computers (1154B), laptop computers (1154C), and / or automotive computer systems (1154N). Individual nodes within a node (1110) can further communicate with each other. They can be physically or virtually grouped (not shown) in one or more networks, such as a private cloud, community cloud, public cloud, or hybrid cloud, or a combination thereof, as described above. This allows the cloud computing environment (1100) to provide infrastructure, platform, and / or software as a service for which cloud consumers do not need to maintain resources on local computing devices. It should be understood that Fig.11 The types of computing devices (1154A-N) shown in are intended to be illustrative only, and the cloud computing environment (1150) may communicate with any type of computerized device over any type of network and / or network addressable connection (eg, using a web browser).
[0090] See now Fig.12 , showing that Fig.11 A set of functional abstraction layers (1200) provided by the cloud computing network. It should be understood in advance that Fig.12The components, layers, and functions shown in are intended to be illustrative only, and the embodiments are not limited thereto. As depicted, the following layers and corresponding functions are provided: hardware and software layer (1210), virtualization layer (1220), management layer (1230), and workload layer (1240).
[0091] The hardware and software layer (1210) includes hardware and software components. Examples of hardware components include mainframes, in one example, System; a server based on RISC (Reduced Instruction Set Computer) architecture, in one example IBM System; IBM System; IBM systems; storage devices; network and networking components. Examples of software components include network application server software, in one example IBM Application server software; and database software, in one example IBM Database software. (IBM, zSeries, ... pSeries, xSeries, BladeCenter, WebSphere and DB2 are trademarks of International Business Machines Corporation, registered in many jurisdictions worldwide).
[0092] The virtualization layer (1220) provides an abstraction layer from which the following examples of virtual entities can be provided: virtual servers; virtual storage; virtual networks, including virtual private networks; virtual applications and operating systems; and virtual clients.
[0093] In one example, the management layer (1230) may provide the following functionality: resource provisioning, metering and pricing, a user portal, service tier management, and SLA planning and fulfillment. Resource provisioning provides dynamic procurement of computing resources and other resources for performing tasks within a cloud computing environment. Metering and pricing provide cost tracking as resources are utilized within the cloud computing environment, and billing or invoicing for the consumption of these resources. In one example, these resources may include application software licenses. Security provides authentication for cloud consumers and tasks, as well as protection for data and other resources. The user portal provides access to the cloud computing environment for consumers and system administrators. Service tier management provides cloud computing resource allocation and management so that the required service tier is met. Service tier agreement (SLA) planning and fulfillment provides pre-deployment and procurement of cloud computing resources in anticipation of future requirements for the cloud computing resources based on the SLA.
[0094] The workload layer (1240) provides examples of functionality that can utilize a cloud computing environment. Examples of workloads and functions that can be provided from this layer include, but are not limited to: mapping and navigation; software development and lifecycle management; virtual classroom education delivery; data analytics processing; transaction processing; and federated machine learning.
[0095] It will be appreciated that disclosed herein is a system, method, apparatus, and computer program product for evaluating natural language input, detecting queries in corresponding communications, and resolving the detected queries with answers and / or supporting content.
[0096] Although specific embodiments of the present embodiment have been shown and described, it will be apparent to those skilled in the art that changes and modifications can be made based on the teachings herein without departing from the embodiments and their broader aspects. Therefore, the appended claims will cover all such changes and modifications within the true scope of the embodiments within their scope. In addition, it should be understood that the embodiments are limited only by the appended claims. It will be understood by those skilled in the art that if a specific number of introduced claim elements is intended, such intention will be explicitly stated in the claims, and in the absence of such a statement, there is no such limitation. As a non-limiting example, to aid understanding, the following appended claims contain the use of introductory phrases "at least" and "one or more" to introduce claim elements. However, the use of such phrases should not be interpreted as implying that any particular claim containing such introduced claim elements by introducing claim elements with the indefinite article "a" or "an" will be limited to an embodiment containing only one such element, even when the same claim includes the introductory phrases "one or more" or "at least one" and indefinite articles such as "a" or "an"; the same applies to the use of definite articles in claims.
[0097] The present embodiment may be a system, method and / or computer program product. In addition, selected aspects of the present embodiment may take the form of a full hardware embodiment, a full software embodiment (including firmware, resident software, microcode, etc.), or an embodiment of a combination of software and / or hardware aspects, which may be collectively referred to herein as a "circuit," "module," or "system." In addition, aspects of the present embodiment may take the form of a computer program product embodied in a computer-readable storage medium (or multiple media) having computer-readable program instructions thereon for causing a processor to perform aspects of the present embodiment. So embodied, the disclosed systems, methods, and / or computer program products operate to improve the functionality and operation of an artificial intelligence platform to address interrogators having intent identifications and corresponding responses associated with the identified intents.
[0098] Computer readable storage media can be a tangible device that can retain and store instructions for use by instruction execution devices. Computer readable storage media can be, for example but not limited to, electronic storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination of the above. A non-exhaustive list of more specific examples of computer readable storage media includes the following: portable computer disks, hard disks, dynamic or static random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), magnetic storage devices, portable compact disk read-only memories (CD-ROM), digital versatile disks (DVD), memory sticks, floppy disks, mechanical encoding devices such as punch cards, or protruding structures in grooves with instructions recorded thereon, and any suitable combination of the above. Computer readable storage media as used herein should not be interpreted as temporary signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagated by waveguides or other transmission media (e.g., light pulses passing through fiber optic cables), or electrical signals sent by wires.
[0099] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to a corresponding computing / processing device via a network (e.g., the Internet, a local area network, a wide area network, and / or a wireless network), or downloaded to an external computer or external storage device. The network can include copper transmission cables, optical transmission fibers, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions to be stored in a computer-readable storage medium in the corresponding computing / processing device.
[0100] The computer-readable program instructions for performing the operation of the present embodiment can be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages (such as Java, Smalltalk, C++, etc.) and conventional process programming languages (such as "C" programming languages or similar programming languages). The computer-readable program instructions can be executed completely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer, partially on the remote computer, or completely on the remote computer or server or server cluster. In the latter case, the remote computer can be connected to the user's computer by any type of network (including local area network (LAN) or wide area network (WAN)), or can be connected to an external computer (for example, using an Internet service provider through the Internet). In certain embodiments, the electronic circuit including, for example, a programmable logic circuit, a field programmable gate array (FPGA) or a programmable logic array (PLA) can be personalized to perform computer-readable program instructions by utilizing the state information of the computer-readable program instructions to personalize the electronic circuit, so as to perform the aspects of the embodiment.
[0101] This article describes various aspects of the present embodiment with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0102] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device create components for implementing the functions / actions specified in one or more boxes of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, which instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable storage medium in which the instructions are stored includes an article of manufacture containing instructions for implementing aspects of the functions / actions specified in one or more boxes of the flowchart and / or block diagram.
[0103] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device, so that a series of operational steps are performed on the computer, other programmable apparatus, or other device to produce computer-implemented processing, so that the instructions executed on the computer, other programmable apparatus, or other device implement the functions / actions specified in or in multiple boxes in the flowchart and / or block diagram.
[0104] The flow chart and block diagram in the figure illustrate the architecture, function and operation of the possible implementation of the system, method and computer program product according to the different embodiments of the present embodiment. To this end, each box in the flow chart or block diagram may represent a module, segment or part of an instruction, which includes one or more executable instructions for realizing a specified logical function. In some alternative implementations, the function marked in the box may not occur in the order marked in the figure. For example, depending on the function involved, the two blocks shown in succession can actually be performed substantially simultaneously, or these blocks can sometimes be performed in reverse order. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be realized by a dedicated hardware-based system that performs a specified function or action or performs a combination of special hardware and computer instructions.
[0105] It should be understood that although specific embodiments have been described herein for purposes of illustration, various modifications may be made without departing from the scope of the invention. Therefore, the scope of protection of the embodiments is limited only by the appended claims and their equivalents.
Claims
1. A system comprising: a processing unit operatively coupled to the memory; An artificial intelligence (AI) platform, in communication with the processing unit, the AI platform being used to train a machine learning model, the AI platform comprising: A registration manager is used to register participating entities into a collaborative relationship, arrange the registered entities in the topology, and establish the topological communication direction; A cryptographic manager that generates and distributes public Additively Homomorphic Encryption (AHE) keys to each registered entity; an entity manager for locally encrypting entity local machine learning model weights using corresponding public AHE keys, selectively aggregating the encrypted local machine learning model weights, and distributing the selectively aggregated encrypted weights to one or more entities in the topology in response to the topology communication direction; The encryption manager is used to decrypt the encrypted aggregate sum of local machine learning model weights using a private AHE key corresponding to the public AHE key, and distribute the decrypted aggregate sum to each entity in the topology.
2. The system of claim 1, wherein a single participating entity comprises two or more internal entities, and further comprising the entity manager for: aggregating weights from one or more machine learning models locally coupled to the two or more internal entities; and Aggregated weights are locally encrypted using the public AHE key, where the aggregated weights represent a homogeneous data type.
3. The system of claim 2, further comprising the entity manager for receiving the decrypted aggregate sum from the encryption manager and propagating the aggregate sum to the two or more locally coupled machine learning models.
4. A system according to claim 1, wherein the topology is a ring topology, and further includes the registration manager for assigning a ranking to each participating entity in the topology, and in response to the ranking assigned in the topology, incrementally encrypting and aggregating machine learning model weights in a first topological direction.
5. The system of claim 4, further comprising the registration manager for modifying the first topology direction in response to available communication bandwidth.
6. The system according to claim 1, further comprising the registration manager for arranging the participating entities in a fully connected topology, and the system further comprising: The entity manager is operable to participate in a broadcast protocol, wherein each participating entity broadcasts encrypted local machine learning model weights across the topology, and wherein the selectively aggregating further comprises: each participating entity is operable to locally aggregate the received broadcast encrypted weights; and The encryption manager is used to verify the entity participation in each local aggregation.
7. The system of claim 1, further comprising the entity manager for representing the local machine learning model weights as a weight array, partitioning the encrypted array into two or more blocks, wherein the amount of blocks is an integer representing the amount of registered participants, locally encrypting each block using the public AHE key, and synchronously aggregating the blocks in parallel and in response to the topology.
8. A computer program product for training a machine learning model, the computer program product comprising a computer readable storage medium having program code embodied therewith, the program code executable by a processor to: Register participating entities in a collaborative relationship, arrange the registered entities in the topology, and establish the topological communication direction; Generate a public Additively Homomorphic Encryption (AHE) key and distribute it to each registered entity; encrypting entity local machine learning model weights locally using corresponding public AHE keys, selectively aggregating the encrypted local machine learning model weights, and distributing the selectively aggregated encrypted weights to one or more entities in the topology in response to the topology communication direction; and The encrypted aggregate sum of local machine learning model weights is decrypted using a private AHE key corresponding to the public AHE key, and the decrypted aggregate sum is distributed to each entity in the topology.
9. The computer program product of claim 8, wherein the single participating entity comprises two or more internal entities, and further comprising program code for: aggregating weights from one or more machine learning models locally coupled to the two or more internal entities; and Aggregated weights are locally encrypted using the public AHE key, where the aggregated weights represent a homogeneous data type.
10. The computer program product of claim 9, further comprising program code for receiving the decrypted aggregate sum and propagating the aggregate sum to the two or more internal entities.
11. A computer program product according to claim 8, wherein the topology is a ring topology, and further comprising product code for assigning a ranking to each participating entity in the topology, and responsive to the ranking assigned in the topology, incrementally encrypting and aggregating machine learning model weights in a first topological direction.
12. The computer program product of claim 11, further comprising program code for modifying the first topology direction in response to available communication bandwidth.
13. The computer program product of claim 8, further comprising program code for representing the local machine learning model weights as a weight array, partitioning the encrypted array into two or more blocks, wherein the number of blocks is an integer representing the number of registered participants, locally encrypting each block using the public AHE key, and synchronously aggregating the blocks in parallel and in response to the topology.
14. The computer program product of claim 8, wherein the topology is fully connected, and further comprising program code for: broadcasting the encrypted local machine learning model weights across the topology; The encrypted weight of the broadcast received by the local aggregation; and Verify that entities participate in each local aggregate.
15. A method comprising: Register participating entities in a collaborative relationship to train machine learning models; Arrange the registered participating entities in the topology and establish the topological communication direction; Each registered participating entity receives a public additively homomorphic encryption (AHE) key and uses the received key to encrypt the local machine learning model weights; In response to the topology communication direction, selectively aggregating encrypted local machine learning model weights, and distributing the selectively aggregated encrypted weights to one or more participating entities in the topology; as well as The encrypted aggregated sum of local machine learning model weights is decrypted using a private AHE key corresponding to the public AHE key, and the decrypted aggregated sum is distributed to the registered entities.
16. The method of claim 15, wherein a single participating entity comprises two or more internal entities, and the method further comprises: aggregating weights from one or more machine learning models locally coupled to the two or more internal entities; locally encrypting the aggregated weights using the public AHE key, wherein the aggregated weights represent a homogeneous data type; and The single participating entity receives the decrypted aggregated sum and propagates the aggregated sum to the two or more internal entities.
17. A method according to claim 15, wherein the topology is a ring topology, and further includes assigning a ranking to each participating entity in the topology, and responsive to the ranking assigned in the topology, incrementally encrypting and aggregating machine learning model weights in a first topological direction.
18. The method according to claim 15 further includes representing the local machine learning model weights as a weight array; dividing the encrypted array into two or more blocks, where the amount of blocks is an integer representing the amount of registered participants; locally encrypting each block using the public AHE key; and synchronously aggregating the blocks in parallel and in response to the topology.
19. The method of claim 18, further comprising ending the synchronous aggregation when each participating entity is receiving a single aggregated block, transmitting the single aggregated block to a decryption entity, decrypting the transmitted block using a corresponding private AHE key, concatenating the decrypted blocks, and distributing the concatenated decrypted blocks to registered participating entities.
20. The method of claim 15, wherein the topology is fully connected, and the method further comprises: Each participating entity broadcasts encrypted local machine learning model weights across the topology; wherein the selectively aggregating further comprises each participating entity locally aggregating the encrypted weights of the received broadcasts; as well as Verify that entities participate in each local aggregate.
