Active learning customer selection method and device under cluster federated learning framework

By adopting the active learning customer selection method of the clustered federated learning framework in federated learning, a subset of users with a large amount of information is screened for global model update, which solves the problems of data heterogeneity and class imbalance, and reduces communication costs and training time. , improving model performance.

CN114723074BActive Publication Date: 2024-10-18NAT UNIV OF DEFENSE TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210283551.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-22
Publication Date
2024-10-18
Estimated Expiration
2042-03-22

AI Technical Summary

Technical Problem

In federated learning, data heterogeneity and class imbalance problems lead to model performance degradation, and the communication cost between the client and the server is high, resulting in long training times.

Method used

The active learning customer selection method under the clustered federated learning framework is adopted. By broadcasting model parameters to users, estimating cluster identities and calculating active indicators, a subset of users with a large amount of information is screened out for global model update, reducing communication pressure.

Benefits of technology

It effectively reduces communication costs, improves model training efficiency, adapts to different data distribution situations, reduces conflicts and interference between clients, and improves model accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114723074B_ABST
    Figure CN114723074B_ABST
Patent Text Reader

Abstract

The present application relates to an active learning client selection method and device under a cluster federated learning framework. The method includes: broadcasting model parameters to users so that users estimate cluster identities and calculate local model updates based on the model parameters, and calculating active indicators according to a pre-set active learning strategy, receiving active indicators and cluster identities sent by users, sorting active indicators according to size under the cluster identities, selecting user subsets according to the sorting results, obtaining local parameters obtained by updating the local model for each user in the user subset, and calculating the average value of local parameters under each cluster partition as the model parameters for the next iteration. The use of this method can reduce communication costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an active learning customer selection method and device under a clustering federated learning framework. Background Art

[0002] As a pioneering subfield of machine learning (ML), federated learning (FL) provides distributed training under communication and privacy constraints. In a typical FL process, data is stored in various clients in a decentralized manner, and the central server learns the global model by aggregating user local models. During this learning process, the central server does not need to directly access the client's data. In each round of communication, the updated global model will be broadcast to the clients, and each client will locally calculate the model update based on its own data, and then send the locally updated model back to the central server, and so on. FL has been successfully applied in many data-intensive and privacy-preserving scenarios, such as recommendation systems, image recognition, self-driving cars, and conversational AI.

[0003] Despite the satisfactory performance, federated learning still faces some practical challenges. One major problem is that in real-world applications, data between different clients may contain their own preferences, and data on users are generated in different ways. Therefore, such training data is not independent and identically distributed (non-IID), which is also called data heterogeneity. When data heterogeneity exists, traditional FL methods will suffer significant performance degradation. Another problem is that in real scenarios, data often encounters the problem of class imbalance. When class imbalance occurs, some classes tend to have more samples than other classes. Class imbalance directly leads to the possibility of reduced accuracy of the model on different classes, while some classes may actually play a more prominent role, such as in the medical diagnosis task of detecting diseases, doctors are more concerned about the data of patients diagnosed with the disease. In addition, another major obstacle is the expensive communication between clients and servers. For complex models, the dimensionality of the neural network can reach millions, and the uplink channel from users to servers is usually rate-limited. Excessive traffic will saturate the network capacity, cause server congestion, and greatly prolong the training time. However, this time-consuming training process is unacceptable for many real-time systems. Summary of the invention

[0004] Based on this, it is necessary to provide an active learning customer selection method and device under a clustering federated learning framework that can solve the communication cost problem in response to the above technical problems.

[0005] An active learning customer selection method under a clustering federated learning framework, the method comprising:

[0006] broadcasting model parameters to users so that users can estimate cluster identities and calculate local model updates based on the model parameters, and calculate active indicators based on a pre-set active learning strategy; the cluster identities correspond to cluster partitions;

[0007] Receiving active indicators and cluster identities sent by users, sorting the active indicators according to size under the cluster identities, and selecting a user subset according to the sorting result;

[0008] The local parameters obtained by updating the local model for each user in the user subset are obtained, and the average value of the local parameters in each cluster partition is calculated as the model parameter for the next iteration.

[0009] In one embodiment, the method further includes: calculating the active indicator according to the minimum confidence level as:

[0010]

[0011] Where i∈S j , S j represents the user cluster set, n is the sample size of each user, x i,l represents the characteristics of the lth sample of user i, is the model parameter θ j Next, the class label with the maximum probability.

[0012] In one embodiment, the active index is calculated based on the boundary sampling:

[0013]

[0014] Where i∈S j , S j represents the user cluster set, n is the sample size of each user, x i,l represents the characteristics of the lth sample of user i, is the model parameter θ j Down, and They represent the probabilities of the first possible and second possible category labels of the lth sample in user i respectively.

[0015] In one embodiment, the active index is calculated based on the information entropy as follows:

[0016]

[0017] Where i∈S j , S j represents the user cluster set, n is the sample size of each user, x i,l represents the characteristics of the lth sample of user i, is the model parameter θ j Next, the class label with the maximum probability.

[0018] In one embodiment, the active index is calculated based on the voting entropy as follows:

[0019]

[0020] in, Represents all possible labels.

[0021] In one embodiment, the method further includes: the user estimates the cluster identity according to the model parameters as follows:

[0022]

[0023] in, is a subset of the local data of the i-th user.

[0024] In one embodiment, the method further includes: obtaining local parameters obtained by updating the local model for each user in the user subset, and calculating the average value of the local parameters in each cluster partition:

[0025]

[0026] Among them, D i Represents local data.

[0027] An active learning client selection device under a cluster federated learning framework, the device comprising:

[0028] A broadcast module, configured to broadcast model parameters to users, so that users can estimate cluster identities and calculate local model updates based on the model parameters, and calculate active indicators based on a preset active learning strategy; the cluster identities correspond to cluster partitions;

[0029] An active selection module, used for receiving active indicators and cluster identities sent by users, sorting the active indicators according to size under the cluster identities, and selecting a user subset according to the sorting result;

[0030] The updating module is used to obtain the local parameters obtained by updating the local model of each user in the user subset, and calculate the average value of the local parameters under each cluster partition as the model parameters for the next iteration.

[0031] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0032] broadcasting model parameters to users so that users can estimate cluster identities and calculate local model updates based on the model parameters, and calculate active indicators based on a pre-set active learning strategy; the cluster identities correspond to cluster partitions;

[0033] Receiving active indicators and cluster identities sent by users, sorting the active indicators according to size under the cluster identities, and selecting a user subset according to the sorting result;

[0034] The local parameters obtained by updating the local model for each user in the user subset are obtained, and the average value of the local parameters in each cluster partition is calculated as the model parameter for the next iteration.

[0035] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0036] broadcasting model parameters to users so that users can estimate cluster identities and calculate local model updates based on the model parameters, and calculate active indicators based on a pre-set active learning strategy; the cluster identities correspond to cluster partitions;

[0037] Receiving active indicators and cluster identities sent by users, sorting the active indicators according to size under the cluster identities, and selecting a user subset according to the sorting result;

[0038] The local parameters obtained by updating the local model for each user in the user subset are obtained, and the average value of the local parameters in each cluster partition is calculated as the model parameter for the next iteration.

[0039] The active learning client selection method, device, computer equipment and storage medium under the above-mentioned cluster federated learning framework broadcast parameters to users so that users estimate cluster identities and calculate local model updates based on model parameters. Users calculate active indicators based on pre-set active learning strategies. Active indicators can reflect the amount of user data information. The larger the amount of information, the greater the probability that the user will be selected to participate in the parameters of the global model. In this way, not all users participate in each round of communication, thereby reducing communication pressure. After receiving the active indicators and cluster identities, the server selects a part of users based on the active indicators to build a user subset, and then calculates the parameters of the global model under each cluster partition. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A flowchart of an active learning client selection method under a cluster federated learning framework in one embodiment;

[0041] Figure 2 It is a structural block diagram of an active learning client selection device under a cluster federated learning framework in one embodiment;

[0042] Figure 3 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0044] Federated Learning (FL) is the most widely used collaborative training framework for deep machine learning models. It supports multiple users (such as mobile or IoT devices) to jointly train a deep learning model. Its goal is to learn a unified parameterized model by minimizing the loss function under different user data distributions. Assume that there is a central server and m users. The central server and users can communicate through a communication protocol, but due to privacy protection, local data cannot be shared between users or between users and the central server. The entire federated learning process can be summarized into three steps: (1) In the tth round of loop, user i, i = 1,...,m needs to synchronize the model with the central server s and download the latest central model parameters. And deploy it to your own model (2) After that, each user can i Calculate τ steps of stochastic gradient descent and get the new local model parameters:

[0045]

[0046] Here, SGD(·) represents the gradient and γ represents the learning rate. (3) Finally, all users send the locally updated model parameters back to the central server, which performs a weighted average of all parameters and updates the central server model.

[0047]

[0048] Repeat the above three steps until the maximum number of training rounds T is reached.

[0049] It should be noted that the premise of implementing federated learning is that there is a set of model parameter settings θ * , which can minimize (or partially minimize) the risk to all user data, namely:

[0050]

[0051] Among them, ε is a positive number, F i (θ) represents the risk function of user i.

[0052] However, the assumption of FL is difficult to meet under the conditions of heterogeneous data distribution and class imbalance. In order to break through the limitation of the limited expressive power of a single model in the traditional FL method, the concept of Clustered Federated Learning (CFL) is introduced to generalize this method. Assume that there is a set of partitions K = {1,...,k}, where each partition corresponds to a specific data distribution D j , j∈K, according to the different data distribution, all users can be divided into different partitions without overlap to form a new user clustering set S j ,j∈K. Assume that each user i∈S j contains n data distribution D j Characterized by independent and identically distributed data points z i,1 ,...,z i,n , where each data point consists of a pair of features and a response z i,l =(x i,l ,y i,l ).

[0053] Let f(θ,z):Θ→R be the loss function of data z. Then in CFL, the goal becomes to minimize the loss function of the entire population. But in practice, we can often only search for an approximate optimal solution. Not the optimal solution Since the accessible local data of users is limited in the problem context, an empirical loss function for user i is proposed:

[0054]

[0055] in, is a subset of the local data of the i-th user.

[0056] Under the assumption of clustered federated learning, the model will cluster users into different populations and provide the model that best suits their data distribution based on their local data differences, effectively reducing the conflicts and interference caused by different data distributions between clients. Compared with traditional federated learning, CFL can seamlessly adapt to different situations.

[0057] In one embodiment, Figure 1 As shown, an active learning customer selection method under a clustering federated learning framework is provided, including the following steps:

[0058] Step 102 , broadcasting model parameters to users, so that users estimate cluster identities and calculate local model updates based on the model parameters, and calculate active indicators based on a preset active learning strategy.

[0059] Active indicators can reflect the amount of information in user data. The larger the amount of information, the greater the probability that the user will be selected to participate in the parameters of the global model.

[0060] Cluster identity refers to the corresponding cluster partition. In the cluster federated learning framework, there are multiple cluster partitions, each of which corresponds to a different data distribution. By minimizing the loss, the cluster partition corresponding to the user can be learned.

[0061] Step 104, receiving active indicators and cluster identities sent by users, sorting the active indicators according to size under the cluster identities, and selecting a user subset according to the sorting result.

[0062] Step 106, obtaining local parameters obtained by updating the local model for each user in the user subset, and calculating the average value of the local parameters in each cluster partition as the model parameters for the next iteration.

[0063] In the active learning client selection method under the above cluster federated learning framework, parameters are broadcast to users so that users estimate cluster identities and calculate local model updates based on model parameters. Users calculate active indicators based on pre-set active learning strategies. Active indicators can reflect the amount of user data information. The larger the amount of information, the greater the probability that the user will be selected to participate in the parameters of the global model. In this way, not all users participate in each round of communication, thereby reducing communication pressure. After receiving the active indicators and cluster identities, the server selects a part of users based on the active indicators to build a user subset, and then calculates the parameters of the global model under each cluster partition.

[0064] The goal of active learning (AL) is to train a machine learning model with minimal cost, which just meets the need to reduce communication costs in CFL. In general, all active learning methods involve measuring the amount of information in unlabeled samples. Traditional active learning focuses on the differences between single samples and attempts to query the labels of the samples with the most information. Here, the perspective of sample selection is extended to the perspective of user selection, because the users in FL are actually a collection of many samples. Many methods for formulating such sample selection strategies have been proposed in the literature, and theoretically, many of them are compatible with this framework. However, considering the computational cost on the user side, the following active learning strategy is proposed.

[0065] In one embodiment, for problems with more than two class labels, selecting the sample with the lowest prediction confidence is a common uncertainty sampling strategy. In CFL, this strategy is extended to find the most uncertain user in each cluster. The method for calculating the lowest confidence active indicator is:

[0066]

[0067] Where i∈S j , S j represents the user cluster set, n is the sample size of each user, x i,l represents the characteristics of the lth sample of user i, is the model parameter θ j Next, the class label with the maximum probability.

[0068] In one of the embodiments, the disadvantage of the minimum confidence strategy is that it only cares about the information of the most likely label and discards the information about the distribution of the remaining labels. To solve this problem, another multi-class uncertainty sampling variant is proposed, called margin sampling. The purpose of margin sampling is to find samples with smaller boundaries because these samples are more ambiguous. Therefore, training on these samples will help the model distinguish them more effectively. Inspired by this, the margin active indicator can be calculated as:

[0069]

[0070] Where i∈S j , S j represents the user cluster set, n is the sample size of each user, x i,l represents the characteristics of the lth sample of user i, is the model parameter θ j Down, and They represent the probabilities of the first possible and second possible category labels of the lth sample in user i respectively.

[0071] In one embodiment, among all the uncertainty sampling variants, using entropy as the uncertainty measure is a more general strategy. As an information theory measure, entropy is often regarded as a measure of uncertainty or impurity in the field of machine learning. In the context of CFL, the entropy active indicator is calculated as follows:

[0072]

[0073] Where i∈S j , S j represents the user cluster set, n is the sample size of each user, x i,l represents the characteristics of the lth sample of user i, is the model parameter θ j Next, the class label with the maximum probability.

[0074] In one of the embodiments, Query-by-committee (QBC) is another theory-driven AL framework. Traditional QBC has a committee of models that are all trained on the current dataset but represent competing hypotheses. Each committee member can then vote on the labels of candidate samples. The most informative candidate samples are considered to be the ones they disagree with the most. Voting entropy is a way to measure the degree of disagreement in QBC. Although there is quite a lot of literature on building model committees in QBC, building a model committee in CFL is very simple and straightforward because each cluster has a different model. Therefore, in the CFL setting, the voting entropy active indicator is calculated to find the users with the most divergent models across all clusters. The active indicator is calculated based on voting entropy:

[0075]

[0076] in, Represents all possible labels.

[0077] In one embodiment, the user estimates the cluster identity based on the model parameters as:

[0078]

[0079] in, is a subset of the local data of the i-th user.

[0080] In one embodiment, local parameters obtained by updating the local model for each user in the user subset are obtained, and the average value of the local parameters in each cluster partition is calculated as:

[0081]

[0082] Among them, D i Represents local data.

[0083] After users upload their active indicators to the central server, the server can easily pick out the users with the most information. Assume that m j is the cluster S j The number of users in the server, specifying a participation ratio ρ to control the number of users uploading active indicators to the server ρ·m j The central server will sample users according to the greedy strategy, selecting a random user with probability ε, otherwise selecting the user with the largest active index ρ·m j Users as a subset Members of .

[0084] It should be understood that although Figure 1The steps in the flowchart are shown in sequence as indicated by the arrows, but the steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of the steps, and the steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0085] In one embodiment, Figure 2 As shown, an active learning client selection device under a cluster federated learning framework is provided, comprising: a broadcast module 202, an active selection module 204 and an update module 206, wherein:

[0086] A broadcast module 202, configured to broadcast model parameters to users, so that the users estimate cluster identities and calculate local model updates based on the model parameters, and calculate active indicators based on a preset active learning strategy; the cluster identities correspond to cluster partitions;

[0087] An active selection module 204 is used to receive active indicators and cluster identities sent by users, sort the active indicators according to size under the cluster identities, and select a user subset according to the sorting result;

[0088] The updating module 206 is used to obtain the local parameters obtained by updating the local model of each user in the user subset, and calculate the average value of the local parameters in each cluster partition as the model parameter for the next iteration.

[0089] In one embodiment, the broadcast module 202 is further configured to calculate the active indicator according to the minimum confidence level as:

[0090]

[0091] Where i∈S j , S j represents the user cluster set, n is the sample size of each user, x i,l represents the characteristics of the lth sample of user i, is the model parameter θ j Next, the class label with the maximum probability.

[0092] In one embodiment, the broadcast module 202 is further configured to calculate the active index according to the boundary sampling as:

[0093]

[0094] Where i∈S j , S j represents the user cluster set, n is the sample size of each user, x i,l represents the characteristics of the lth sample of user i, is the model parameter θ j Down, and They represent the probabilities of the first possible and second possible category labels of the lth sample in user i respectively.

[0095] In one embodiment, the broadcast module 202 is further configured to calculate the active index according to the information entropy as:

[0096]

[0097] Where i∈S j , S j represents the user cluster set, n is the sample size of each user, x i,l represents the characteristics of the lth sample of user i, is the model parameter θ j Next, the class label with the maximum probability.

[0098] In one embodiment, the broadcast module 202 is further configured to calculate the active index according to the voting entropy as:

[0099]

[0100] in, Represents all possible labels.

[0101] In one embodiment, the broadcast module 202 is further configured for the user to estimate the cluster identity according to the model parameters as:

[0102]

[0103] in, is a subset of the local data of the i-th user.

[0104] In one embodiment, the updating module 206 is further used to obtain local parameters obtained by updating the local model for each user in the user subset, and calculate the average value of the local parameters in each cluster partition as follows:

[0105]

[0106] Among them, D i Represents local data.

[0107] For the specific definition of the active learning customer selection device under the cluster federated learning framework, please refer to the definition of the active learning customer selection method under the cluster federated learning framework above, which will not be repeated here. Each module in the active learning customer selection device under the cluster federated learning framework can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0108] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 3 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an active learning customer selection method under a clustering federated learning framework is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0109] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0110] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method in the above embodiment when executing the computer program.

[0111] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method in the above embodiment are implemented.

[0112] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0113] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0114] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. An active learning customer selection method under a cluster federated learning framework, characterized in that: The method comprises: broadcasting model parameters to users so that users can estimate cluster identities and calculate local model updates based on the model parameters, and calculate active indicators based on a pre-set active learning strategy; the cluster identities correspond to cluster partitions; Receiving active indicators and cluster identities sent by users, sorting the active indicators according to size under the cluster identities, and selecting a user subset according to the sorting result; Obtaining local parameters obtained by updating the local model for each user in the user subset, and calculating the average value of the local parameters in each cluster partition as the model parameters for the next iteration; Active metrics are calculated based on pre-set active learning strategies, including: The active indicator is calculated based on the minimum confidence level: Where i∈S j , S j represents the user cluster set, n is the sample size of each user, x i,l represents the characteristics of the lth sample of user i, is the model parameter θ j Next, the category label with the maximum probability; Pre-set active learning strategies calculate active metrics, including: The active index calculated based on boundary sampling is: Where i∈S j , S j represents the user cluster set, n is the sample size of each user, x i,l represents the characteristics of the lth sample of user i, is the model parameter θ j Down, and Respectively represent the probabilities of the first possible and second possible category labels of the lth sample of user i; Pre-set active learning strategies calculate active metrics, including: The active indicators calculated based on information entropy are: Where i∈S j , S j represents the user cluster set, n is the sample size of each user, x i,l represents the characteristics of the lth sample of user i, is the model parameter θ j Next, the category label with the maximum probability; Pre-set active learning strategies calculate active metrics, including: The active index is calculated based on voting entropy: in, Represents all possible labels; The user estimates the cluster identity based on the model parameters, including: The user estimates the cluster identity based on the model parameters as: in, is a subset of the local data of the i-th user.

2. The method according to claim 1, characterized in that Obtaining local parameters obtained by updating the local model for each user in the user subset, and calculating the average value of the local parameters in each cluster partition as the model parameters for the next iteration, including: The local parameters obtained by updating the local model for each user in the user subset are obtained, and the average value of the local parameters in each cluster partition is calculated as follows: Among them, D i Represents local data.

3. An active learning customer selection device under a cluster federated learning framework, used to implement the active learning customer selection method under a cluster federated learning framework as shown in claim 1 or 2, characterized in that: The device comprises: A broadcast module, configured to broadcast model parameters to users, so that users can estimate cluster identities and calculate local model updates based on the model parameters, and calculate active indicators based on a preset active learning strategy; the cluster identities correspond to cluster partitions; An active selection module, used for receiving active indicators and cluster identities sent by users, sorting the active indicators according to size under the cluster identities, and selecting a user subset according to the sorting result; The updating module is used to obtain the local parameters obtained by updating the local model of each user in the user subset, and calculate the average value of the local parameters under each cluster partition as the model parameters for the next iteration.

4. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 2 are implemented.

5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 2 are implemented.

Citation Information

Patent Citations

  • Layered federal learning method and system applying differential privacy protection

    CN113361694A

  • Federated learning-based noise label correction method

    CN113379071A