How to learn

By assigning different learning methods to client devices in a federated learning system, the method addresses security vulnerabilities and computation time issues, ensuring efficient and robust model training across diverse devices.

JP7548432B2Active Publication Date: 2024-09-10NEC CORP
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2023526772
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-06-10
Publication Date
2024-09-10
Estimated Expiration
2041-06-10

AI Technical Summary

Technical Problem

Federated learning systems are vulnerable to attacks from malicious clients, and adversarial learning increases calculation time, especially on devices with limited computational resources like smartphones.

Method used

A learning method that assigns different learning methods, such as normal and adversarial learning, to various client devices within a federated learning system, aggregating models to enhance security and reduce computational load.

Benefits of technology

This approach reduces calculation time and enhances robustness against adversarial attacks while maintaining model accuracy, even on devices with limited resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007548432000001
    Figure 0007548432000001
  • Figure 0007548432000002
    Figure 0007548432000002
  • Figure 0007548432000003
    Figure 0007548432000003
Patent Text Reader

Abstract

A learning device 100 according to the present invention uses associative learning that causes a plurality of client devices to execute learning on the same model. The learning device 100 comprises an assignment unit 121 that assigns each of the plurality of client devices to execute learning with any of at least two or more different preset learning methods, and an aggregation unit 122 that aggregates the models generated after learning by the plurality of client devices.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a learning method using associative learning. [Background technology]

[0002] Federated learning is one of the methods for learning models in machine learning and deep learning, in which multiple client machines participate in learning in a distributed environment.

[0003] As an example of a learning format of federated learning, there is a format as shown in FIG. 1. The federated learning is performed by a central server 50 that manages the learning, and clients 60-1 to 60-K that are information processing devices that perform the learning itself. The central server 50 includes a client communication device 51 that transmits parameters of the machine learning / deep learning model to be learned to the client, and a model aggregation device 52 that aggregates the trained models transmitted from the client and updates the model parameters. The clients 60-1 to 60-K individually perform learning using their own data sets stored by each client. An example of such federated learning is described in Non-Patent Document 1, Patent Document 1, and Patent Document 2.

[0004] Here, the federated learning system described in Non-Patent Document 1 operates, for example, as shown in the flowchart of Fig. 2. As described above, federated learning by the federated learning system is performed by the central server 50 and all clients 60-1 to 60-K participating in the learning.

[0005] First, the central server 50 inputs parameters as necessary when starting learning (step S51). Then, the federated learning system repeats a series of procedures, defined as a round below, for federated learning a set number of times or until a set evaluation index is reached. The operation of one round is as follows.

[0006] At the start of a round, the central server 50 selects K clients 60-1 to 60-K that will participate in the learning in that round by drawing lots from among all clients (assumed to be N) (step S52). At this time, the number of clients K selected is 1 or more and N or less. Note that FIG. 1 illustrates only the K clients 60-1 to 60-K that will participate in the learning in each round, rather than all N clients in advance. For example, in the case of federated learning in an environment with high computing power using server machines owned by research institutes, etc., where the number of N is several to about 100, learning with the number of K set to about 80% of the number of N is considered. On the other hand, in the case of federated learning using mobile terminals owned by general users, where the number of N is about tens of thousands or more, learning with the number of K set to about 10% of the number of N is considered.

[0007] Next, the central server 50 transmits the machine learning / deep learning model (global model) to be trained to all of the K clients 60-1 to 60-K selected by lottery (step S53). After receiving the global model, the K clients 60-1 to 60-K each perform learning individually using the data stored in the client (step S54). As soon as the learning is completed, the K clients 60-1 to 60-K each transmit the trained model (local model) to the central server 50 (step S55). The central server 50 performs an aggregation operation on the local models transmitted from each of the clients 60-1 to 60-K by a predetermined method, and updates the global model using the calculation result (step S56). The above is the operation of one round of federated learning, and learning progresses by using the update result of the global model in the previous round as the global model transmitted to the client in the next round. When the learning has progressed for a predetermined number of rounds or when a predetermined evaluation index is reached, all learning processes are terminated (Yes in step S57).

[0008] Here, in the above-mentioned federated learning, the central server 50 transmits the global model to the client devices 60-1 to 60-K at each point of learning. Therefore, if a malicious attacker participates in the learning as a client, the attacker can automatically obtain the model information, and there is a problem that the attacker can realize a more sophisticated attack than when the attacker does not have the model information. For example, an attacker may perform an attack using adversarial examples as described below to hinder normal learning of the model, induce the model to malfunction after learning is completed, or steal information that violates privacy, such as restoring learning data from model information.

[0009] In addition, as an attack on a machine learning / deep learning model, an attack by an adversarial sample can be mentioned. An adversarial sample is data to which perturbations calculated to cause a machine learning / deep learning model to malfunction are intentionally added. An adversarial sample is a problem that can occur in any machine learning / deep learning model, and is a serious security issue. Up to now, no machine learning / deep learning model that is not affected by the adversarial sample has been proposed, and some additional defense measures must be added to improve the robustness of security. Among these, one of the most useful defense methods known to date is adversarial learning. An example of such adversarial learning is described in Non-Patent Document 2.

[0010] Adversarial learning operates, for example, as shown in the flowchart of Fig. 3. Here, the adversarial learning described below is performed on a single machine, and when combined with federated learning, such adversarial learning on a single machine corresponds to learning on one of multiple clients performing federated learning. Adversarial learning repeats the following process a set number of times, or until the model performance reaches a set evaluation index.

[0011] Specifically, in adversarial learning, first, the client performing the learning selects data to be used for updating the model from the dataset (step S61). Next, the client uses the selected data to generate adversarial samples for the model at the current learning progress (step S62). At this time, although there are differences depending on the generation method, the generation of the adversarial samples generally requires about 10 iterative calculations (step S63). After that, the client updates the model parameters using the generated adversarial samples (step S64). Then, when a predetermined amount of data or its repetitions, or when a predetermined evaluation index is reached, all learning processes are terminated (step S65). [Prior art documents] [Patent documents]

[0012] [Patent Document 1] Special Publication No. 2020-528588 (WO2019 / 032157) [Patent Document 2] Special Publication No. 2020-528589 (WO2019 / 032156) [Non-patent literature]

[0013] [Non-Patent Document 1] Peter Kairouz et al., “Advances and Open Problems in Federated Learning”, 2016 arXiv [Non-Patent Document 2] Aleksandar Madry et al., “Towards deep learning models resistant to adversarial attacks”, ICLR, 2018 Summary of the Invention [Problem to be solved by the invention]

[0014] Here, in the adversarial learning as described above, a separate iterative calculation for generating adversarial samples is performed each time within the iterative calculation that is also included in the normal learning method of updating the model by selecting data. Therefore, the problem of long calculation times occurs. In particular, when adversarial learning is performed within the framework of federated learning as described above, the adversarial learning algorithm is processed by the client, but various types of client machines in federated learning are possible and are not necessarily limited to computers with powerful CPUs, GPUs, or abundant memory. For example, depending on the application, it is assumed that the client machine in federated learning may be a device with poor computing resources such as a smartphone. In such a case, in addition to the long calculation time due to the above-mentioned adversarial learning algorithm, the calculation time will also be long due to the poor computing power of the client.

[0015] Therefore, an object of the present invention is to provide a learning method that can solve the above-mentioned problem of the lengthening of calculation time in associative learning. [Means for solving the problem]

[0016] A learning method according to one aspect of the present invention includes: A learning method using federated learning in which a plurality of client devices execute learning for the same model, comprising: assigning each of the plurality of client devices to perform learning using at least two or more different learning methods that have been set in advance; aggregating the models generated after training by the multiple client devices; The structure is as follows.

[0017] Furthermore, a learning device according to one aspect of the present invention includes: A learning device using federated learning that causes multiple client devices to learn the same model, an allocation unit that allocates each of the plurality of client devices to perform one of learning methods using at least two or more different learning methods that are set in advance; A counting unit that counts models generated after learning by the plurality of client devices; Equipped with The structure is as follows.

[0018] In addition, a program according to one aspect of the present invention includes: In the information processing device, When performing federated learning in which a plurality of client devices are made to perform learning on the same model, each of the plurality of client devices is assigned to perform one of learning methods using at least two or more different learning methods that are set in advance; aggregating the models generated after training by the multiple client devices; Execute the process, The structure is as follows. Effect of the Invention

[0019] By being configured as described above, the present invention can provide a learning method that can prevent the calculation time in associative learning from increasing. is located. [Brief description of the drawings]

[0020] [Figure 1] FIG. 1 is a block diagram showing an example of the configuration of a federated learning system. [Diagram 2] 1 is a flowchart showing an operation example of the federated learning system. [Diagram 3] 11 is a flowchart illustrating an example of an operation of adversarial learning. [Figure 4] 1 is a block diagram showing a configuration of a federated learning system according to a first embodiment of the present invention. [Diagram 5] 5 is a flowchart showing the operation of the federated learning system disclosed in FIG. 4. [Figure 6]FIG. 5 is a sequence diagram showing the operation of the federated learning system disclosed in FIG. [Figure 7] FIG. 11 is a block diagram showing a configuration of a federated learning system according to a second embodiment of the present invention. [Figure 8] 8 is a flowchart showing the operation of the federated learning system disclosed in FIG. 7. [Figure 9] 11 is a table showing a comparison of the effects of the learning method of the present invention and other learning methods. [Figure 10] FIG. 13 is a block diagram showing a hardware configuration of a learning device according to a third embodiment of the present invention. [Figure 11] FIG. 13 is a block diagram showing a configuration of a learning device according to a third embodiment of the present invention. [Figure 12] 13 is a flowchart showing the operation of a learning device in a third embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0021] <First embodiment> A first embodiment of the present invention will be described with reference to Figures 4 to 6. Figure 4 is a diagram for explaining the configuration of a federated learning system, and Figures 5 to 6 are diagrams for explaining the operation of the federated learning system.

[0022] The federated learning system of the present invention is particularly applicable to tasks where adversarial learning is applicable. For example, the federated learning system of the present invention can be used to generate models for image or audio classification or authentication. However, the federated learning system of the present invention may be used in any field.

[0023] [composition] As shown in Fig. 1, the federated learning system in the first embodiment includes a plurality of (any number N) client learning devices (hereinafter also referred to as "clients") and a central server 10. Here, Fig. 1 illustrates only K client learning devices 20-1 to 20-K that participate in learning selected by lottery in each round as described below. Each of the client learning devices 20-1 to 20-K and the central server 10 are connected to be able to communicate with each other.

[0024] The central server 10 includes therein a client communication device 11, a model counting device 12, and a client allocation device 13. The client communication device 11 and the model counting device 12, and the client communication device 11 and the client allocation device 13 are connected to each other at the center of the central server 10.

[0025] The present invention can also be realized as a federated learning program that causes a computer, i.e., central server 10, to function as a federated learning system. Central server 10, which is a computer, includes a central processing unit (CPU (Central Processing Unit)) into which the federated learning program is loaded and executed, a storage device (hard disk, etc.) that stores data individually in the clients and stores a global model in the central server 10, input device 15, which is an input means such as a keyboard or mouse, and a display device, which is a display means such as a display.

[0026] In the first embodiment of the present invention, the federated learning program loaded into the CPU of the central server 10 configures in that CPU the above-mentioned client communication device 11, model counting device 12, and client allocation device 13. Each component will be described below.

[0027] The client allocation device 13 (allocation unit) designates whether the clients 20-1 to 20-K participating in the learning in each round will perform normal learning or adversarial learning. This designation of the learning method is transmitted to all the clients 20-1 to 20-K participating in the learning in each round through the client communication device 11. At the start of the learning, the client allocation device 13 receives as an input a ratio for allocating normal learning and adversarial learning to the clients 20-1 to 20-K in each round. The allocation ratio of the two learning methods may be input from outside at the start of the learning, or may be automatically calculated from information on the task of the model to be learned, the model structure, and the data. The learning methods may be assigned completely randomly to each client, for example, or may be assigned according to the computational resources, processing speed, and information on the data held by each client. As an example, the total number of clients participating in the learning is several to about 100 in the case of learning using a machine having a relatively large amount of data such as a data center or a company and having excellent computational capabilities. As another example, the total number of clients participating in learning is set to several million or more in the case of learning using clients with few computational resources such as smartphones. Then, for example, normal learning and adversarial learning are assigned to these clients in a ratio of "5:5" or "3:7". However, the total number of clients and the assignment ratio to each learning are not limited to the above values.

[0028] In this embodiment, the client allocation device 13 allocates normal learning to at least one of the selected clients 20-1 to 20-K, and allocates adversarial learning to at least one of the selected clients. However, the client allocation device 13 may allocate any one of the learning methods to all selected clients depending on the situation. For example, the client allocation device 13 may allocate normal learning and adversarial learning in a ratio of "10:0" or "0:10". As an example, in a case where one learning called a round is repeated multiple times as described later, the client allocation device 13 may allocate normal learning and adversarial learning in a ratio of "10:0" or "0:10" in some of the total rounds.

[0029] Furthermore, the learning method that the client allocation device 13 assigns to a client is not necessarily limited to normal learning and adversarial learning. For example, the client allocation device 13 may assign a predetermined first learning and a second learning, the learning method of which is different from that of the first learning, to a client. In this case, the first learning and the second learning are performed on the same model. Furthermore, the client allocation device 13 is not necessarily limited to assigning two different learnings to a client, and may assign three or more different learnings.

[0030] The client communication device 11 (allocation unit, counting unit) has a function of transmitting a global model to the clients 20-1 to 20-K participating in the learning in each round, and transmitting the learning method determined by the client allocation device 13 to each client. The client communication device 11 also receives local models from the clients 20-1 to 20-K that have completed learning. That is, each client performs learning using its own data as described below, and transmits a local model, which is a learned model of the learning result, to the central server 10, and the client communication device 11 receives the local model.

[0031] Here, as described later, each of the clients 20-1 to 20-K performs either "normal learning" or "adversarial learning" in which an adversarial sample is generated from the learning data at each step of the learning and the adversarial sample is used as the learning data, depending on the allocation of the learning method. At this time, the learning program executed by each of the clients 20-1 to 20-K and a program for a subroutine for generating an adversarial sample when performing the adversarial learning are transmitted to each of the clients 20-1 to 20-K by, for example, the client communication device 11. As a result, the clients 20-1 to 20-K obtain the above-mentioned program at the start of the federated learning, or at the time when it is determined that the client will participate in the learning in each round of the learning. Note that the program used for the learning executed by the clients 20-1 to 20-K is not necessarily provided by the client communication device 11, and the clients 20-1 to 20-K may obtain it by other methods.

[0032] The model tabulation device 12 aggregates the local models received by the client communication device 11 from the clients 20-1 to 20-K by arithmetic processing according to a predetermined algorithm of associative learning, and updates the global model using the results. Specifically, the global model transmitted to the client participating in the learning in each round is independently learned using data unique to each client 20-1 to 20-K, and the local model resulting from the learning is individually transmitted from each client 20-1 to 20-K to the client communication device 11. Then, the model tabulation device 12 calculates the weight parameters of a new global model by an averaging algorithm such as the arithmetic mean of the weight parameters of each local model or an average value that excludes outliers or uses only values ​​near the median. This new updated global model is transmitted to the clients 20-1 to 20-K in the next round by the client communication device 11 as described above.

[0033] The client learning devices 20-1 to 20-K receive the global model transmitted from the central server 10, and perform learning on the global model using individual learning data on each of the clients 20-1 to 20-K. At this time, the clients 20-1 to 20-K perform learning by the learning method assigned by the client allocation device 13 as described above. For example, the clients 20-1 to 20-K perform normal learning, which is learning using normal system data as is, or perform adversarial learning. As the learning data, for example, data that needs to be handled with care from the viewpoint of privacy, such as face image data included in a photo taken by a smartphone or the like, can be used.

[0034] When performing adversarial learning, the clients 20-1 to 20-K repeat a series of processes called the following rounds a predetermined number of times or until the model performance reaches a predetermined evaluation index. First, in the same manner as in normal learning, the clients 20-1 to 20-K select data to be used for learning from among the data they hold at each step of learning. Next, the clients 20-1 to 20-K use the selected data to generate adversarial samples for the model at the current learning progress. Thus, in adversarial learning, unlike the above-mentioned normal learning, a process of generating adversarial samples is added. After that, adversarial learning is performed on the global model using the generated adversarial samples, and the model parameters are updated.

[0035] As described above, the learning method executed by the clients 20-1 to 20-K is determined by the client allocation device 13 and is notified to the clients via the client communication device 11. For example, in the example of Fig. 1, a case is illustrated in which M clients designated by symbols 20-1 to 20-M perform normal learning, and (KM) clients designated by symbols 20-(M+1) to 20-K perform adversarial learning. Then, each of the clients 20-1 to 20-K transmits the trained local model to the client communication device 11 of the central server 10 as soon as learning by the designated method is completed.

[0036] [Operation] Next, the operation of the above-mentioned federated learning system will be described with reference to the flowchart of FIG. 5 and the sequence diagram of FIG.

[0037] First, the central server 10 receives an input from the input device 15 of the ratio of allocation of normal learning and adversarial learning to the clients 20-1 to 20-K participating in the learning in each round (step S1 in FIG. 5, step S11 in FIG. 6). After that, the federated learning system repeats the following learning process a predetermined number of times or until a predetermined evaluation index is reached. This repetitive process is called a round.

[0038] Then, at the start of a new round, the central server 10 selects the clients 20-1 to 20-K that will participate in the learning of that round from among all the clients that will participate in the learning (step S2 in FIG. 5, step S12 in FIG. 6). The central server 10 transmits the global model to these selected clients 20-1 to 20-K (step S3 in FIG. 5, step S13 in FIG. 6). Next, the central server 10 assigns whether the selected clients 20-1 to 20-K will perform normal learning or adversarial learning in that round according to the input learning assignment ratio, and notifies the clients 20-1 to 20-K to learn using the assigned learning method (step S4 in FIG. 5, step S14 in FIG. 6). For example, as shown in FIG. 1, normal learning is assigned to M clients from 20-1 to 20-M, and adversarial learning is assigned to (KM) clients from 20-(M+1) to 20-K.

[0039] Then, the clients 20-1 to 20-K that have received the instruction to assign the learning method perform learning using the data sets that they individually own with the assigned learning method (step S5 in FIG. 5). At this time, the clients 20-1 to 20-M to which normal learning is assigned perform normal learning on the global model, which is learning using the data they hold as is, and generate a local model with updated model parameters (step S15 in FIG. 6). On the other hand, the clients 20-(M+1) to 20-K to which adversarial learning is assigned first generate adversarial samples from the data they hold when performing adversarial learning. Then, the clients 20-(M+1) to 20-K perform adversarial learning on the global model using the generated adversarial samples, and generate a local model with updated model parameters (step S16 in FIG. 6).

[0040] After that, the clients 20-1 to 20-K that have completed the learning individually transmit the local models to the central server 10 (step S6 in FIG. 5, steps S17 and S18 in FIG. 6). The central server 10 aggregates the received local models from the multiple clients 20-1 to 20-K using a predetermined federated learning algorithm, updates the global model, and ends the round (step S7 in FIG. 5, steps S19 and S20 in FIG. 6). The updated global model is to be transmitted by the central server 10 to the clients 20-1 to 20-M in the next round (No, S2, and S3 in step S8 in FIG. 5). Then, the central server 10 repeatedly executes the learning process called the above-mentioned round until the learning progresses for a predetermined number of rounds or a predetermined evaluation index is reached (No in step S8 in FIG. 5). On the other hand, when the central server 10 meets the learning end requirement (Yes in step S8 in FIG. 5), it ends all the learning processes and outputs the learned global model to an output device not shown.

[0041] [effect] As described above, in the federated learning system in the first embodiment, in each round, not all clients perform normal learning using normal data as in normal federated learning, nor do all clients perform adversarial learning, but rather some clients perform normal learning at a certain ratio and the remaining clients perform adversarial learning. Therefore, learning using normal data can reduce computational resources compared to adversarial learning, and can reduce the overall amount of computation while ensuring robustness against adversarial samples and accuracy for normal data.

[0042] <Second embodiment> Next, a second embodiment of the present invention will be described with reference to Fig. 7 and Fig. 8. Fig. 7 is a diagram for explaining the configuration of a federated learning system, and Fig. 8 is a diagram for explaining the processing operation of the federated learning system.

[0043] [composition] As shown in Fig. 7, in the federated learning system of this embodiment, in addition to the configuration of the central server 10 described in the first embodiment, the central server 10 further includes a client ratio adjustment device 14 (change unit). This client ratio adjustment device 14 is constructed in a CPU included in the central server 10 by loading a federated learning program into the CPU. Note that the other components included in the central server 10 are the same as those in the first embodiment, and therefore are denoted by the same reference numerals as in Fig. 1, and detailed description thereof will be omitted.

[0044] The client ratio adjustment device 14 has a function of changing and updating the allocation ratio of the learning methods of the clients 20-1 to 20-K participating in the learning in each round based on a preset criterion. This configuration is the main difference from the first embodiment, and the main differences will be described in detail below.

[0045] The client ratio adjustment device 14 is connected to the client allocation device 13 at the center of the central server 10. The client ratio adjustment device 14 updates the allocation ratio of the learning method at each stage of learning, called a round, as described above, and transmits it to the client allocation device 13. The client allocation device 13 allocates the learning method to be performed by the clients 20-1 to 20-K participating in the learning in each round to each client according to the ratio transmitted from the client ratio adjustment device 14. The client ratio adjustment device 14 may receive the allocation ratio of the learning method of the client as an input at the start of learning in the form of a pair of the learning progress and the allocation ratio corresponding to that time. Alternatively, the client ratio adjustment device 14 may receive only the allocation ratio at the start of learning as an input, and adaptively adjust the allocation ratio at each point of learning by using the performance and statistics of the global model or multiple local models.

[0046] As an example of a method for adjusting the allocation ratio, for example, the learning allocation ratio for the progress of the round is determined in advance, and the client ratio adjustment device 14 changes the ratio according to the actual progress of the round. As an example, when a total of 100 rounds of learning are performed, the ratio between clients performing normal learning and clients performing adversarial learning may be 8:2 from the first 50 rounds, and then the ratio between clients performing normal learning and clients performing adversarial learning may be 2:5 from the 51st round to the 100th round, or the ratio may be changed stepwise as the round progresses.

[0047] The client ratio adjustment device 14 may change the allocation ratio as follows. For example, when 100 rounds of learning are performed, the ratio between clients performing normal learning and clients performing adversarial learning may be 10:0 from the first 50 rounds, i.e., all clients participating in learning perform normal learning, and thereafter the ratio may be 0:10, i.e., all clients participating in learning perform adversarial learning. In this way, the client ratio adjustment device 14 may change the allocation of learning methods to clients depending on the round and time.

[0048] As another example, the client ratio adjustment device 14 may change the learning ratio according to a specific index determined before the start of learning. For example, the performance of the global model and the local model of the learning result of each client is calculated at the end of each round, and the allocation ratio is changed if these exceed a certain threshold. In this case, for example, in the case of a classification problem, the classification accuracy rate for normal data and the classification failure rate for adversarial samples can be cited as the evaluation index of the model performance. In addition, a method of adjusting the learning ratio according to statistics regarding the progress of learning, such as the degree to which these performance evaluation indexes vary or converge between each trained local model, can also be considered.

[0049] [Operation] Next, the operation of the above-mentioned federated learning system will be described with reference to the flowchart in Fig. 8. Note that the same operations as those in the first embodiment are given the same reference numerals as in Fig. 5, and detailed description thereof will be omitted.

[0050] The operation of the federated learning system in this embodiment differs from that of the first embodiment in the following respects. In each round of learning, the client ratio adjustment device 14 of the central server 10 updates the global model in step S7, and then updates the allocation ratio of normal learning and adversarial learning to clients to be used in the next round according to the transition of the allocation ratio input in advance or by adaptive adjustment (step S7' in FIG. 8). For example, the client ratio adjustment device 14 changes the allocation ratio according to the progress of the round, or changes the allocation ratio according to the evaluation results of the generated local model and the updated global model. Then, when the central server 10 does not satisfy the requirements for ending learning (No in step S8 in FIG. 8), the client allocation device 13 allocates the learning method of the client with the changed allocation ratio, and makes the client learn.

[0051] [effect] As described above, in this embodiment, the ratio of clients performing normal learning and adversarial learning is changed in each round. For example, in the early stage of learning, many clients perform normal learning, and as learning progresses, the ratio of adversarial learning is increased, thereby reducing the calculation time required for performing a large amount of adversarial learning while ensuring the robustness of adversarial learning.

[0052] Here, the accuracy and learning time of the model generated by actually learning using the learning method of the present invention are shown in FIG. 9. Here, a 10-class image classification problem using public data is handled. First, in "Learning Method 1," adversarial learning is incorporated into federated learning, and all clients perform adversarial learning at all points in learning. In "Learning Method 2," all clients perform learning using normal data in each round until 30% of the total number of learning rounds determined in advance is reached, and then all clients perform adversarial learning in each round. In "Learning Method 3," the ratio of the number of clients performing adversarial learning among the clients participating in learning in each round is gradually increased from 0% to 70% every time 25% of the total learning rounds have elapsed. As evaluation indices for the models trained by these three methods, the classification accuracy for normal data, the classification accuracy for adversarial samples, and the ratio of the number of iterative calculations required to complete the learning of each model based on "Learning Method 1" were calculated. As shown in Figure 9, "Learning Method 2" and "Learning Method 3" have succeeded in reducing the number of calculations while maintaining the same classification accuracy for normal data and adversarial samples as "Learning Method 1."

[0053] <Embodiment 3> Next, a third embodiment of the present invention will be described with reference to Fig. 10 to Fig. 12. Fig. 10 to Fig. 11 are block diagrams showing the configuration of a learning device in the third embodiment, and Fig. 12 is a flowchart showing the operation of the learning device. Note that this embodiment shows an outline of the configuration of the learning device and learning method described in the above embodiments.

[0054] First, the hardware configuration of the learning device 100 in this embodiment will be described with reference to Fig. 10. The learning device 100 is configured as a general information processing device, and is equipped with the following hardware configuration, as an example. ·CPU(Central Processing Unit)101(Arithmetic unit) ROM (Read Only Memory) 102 (storage device) RAM (Random Access Memory) 103 (storage device) · Programs 104 loaded into RAM 103 A storage device 105 for storing a program group 104 A drive device 106 that reads and writes data from a storage medium 110 external to the information processing device A communication interface 107 for connecting to a communication network 111 outside the information processing device Input / output interface 108 for inputting and outputting data Bus 109 connecting each component

[0055] The learning device 100 can be equipped with the allocation unit 121 and the tallying unit 122 shown in Fig. 11 by having the CPU 101 acquire and execute the group of programs 104. The group of programs 104 is stored in the storage device 105 or the ROM 102 in advance, for example, and the CPU 101 loads the group of programs 104 into the RAM 103 and executes it as necessary. The group of programs 104 may be supplied to the CPU 101 via the communication network 111, or may be stored in the storage medium 110 in advance, and the drive device 106 may read out the programs and supply them to the CPU 101. However, the allocation unit 121 and the tallying unit 122 described above may be constructed of dedicated electronic circuits for realizing such means.

[0056] 10 shows an example of the hardware configuration of the information processing device that is the learning device 100, and the hardware configuration of the information processing device is not limited to the above-mentioned case. For example, the information processing device may be configured with a part of the above-mentioned configuration, such as not having the drive device 106.

[0057] The learning device 100 then executes the learning method shown in the flowchart of FIG. 12 using the functions of the allocation unit 121 and the counting unit 122 that are constructed by the program as described above.

[0058] As shown in FIG. 12, the learning device 100 When performing federated learning in which multiple client devices are made to learn the same model, Assigning each of the plurality of client devices to perform one of at least two or more different learning methods set in advance (step S101); The models generated after learning by the multiple client devices are collected (step S102); The following process is executed.

[0059] The present invention, configured as described above, performs associative learning in which multiple client devices execute learning using different learning methods, and then tally up the models after learning. This allows the characteristics of the different learning methods to be reflected in the model, making it possible to generate a high-quality model and suppressing the increase in calculation time due to associative learning.

[0060] The above-mentioned program can be stored and supplied to a computer using various types of non-transitory computer readable media. The non-transitory computer readable medium includes various types of tangible storage media. Examples of the non-transitory computer readable medium include magnetic recording media (e.g., flexible disks, magnetic tapes, hard disk drives), magneto-optical recording media (e.g., magneto-optical disks), CD-ROM (Read Only Memory), CD-R, CD-R / W, and semiconductor memory (e.g., mask ROM, PROM (Programmable ROM), EPROM (Erasable PROM), flash ROM, RAM (Random Access Memory)). The program may also be supplied to a computer by various types of transitory computer readable media. Examples of the transitory computer readable medium include electric signals, optical signals, and electromagnetic waves. The transitory computer readable medium can supply the program to a computer via a wired communication path such as an electric wire and an optical fiber, or via a wireless communication path.

[0061] Although the present invention has been described above with reference to the above-mentioned embodiment, the present invention is not limited to the above-mentioned embodiment. Various modifications that can be understood by a person skilled in the art can be made to the configuration and details of the present invention within the scope of the present invention. In addition, at least one or more functions of the above-mentioned allocation unit 121 and counting unit 122 may be executed by an information processing device installed and connected anywhere on a network, that is, they may be executed by so-called cloud computing.

[0062] <Additional Notes> A part or all of the above-described embodiments can be described as follows: The following is an outline of the configurations of the learning method, learning device, and program of the present invention. However, the present invention is not limited to the following configurations. (Appendix 1) A learning method using federated learning in which a plurality of client devices execute learning for the same model, comprising: assigning each of the plurality of client devices to perform learning using at least two or more different learning methods that have been set in advance; aggregating the models generated after training by the multiple client devices; How to learn. (Appendix 2) 2. The learning method according to claim 1, further comprising: causing at least one predetermined client device to execute a first learning, and assigning at least one other of the client devices to execute a second learning, the second learning being a learning method different from that of the first learning and involving a process of generating learning data; How to learn. (Appendix 3) 3. The learning method according to claim 2, further comprising: assigning the predetermined client device to perform normal learning as the first learning, and the other client devices to perform adversarial learning involving generating adversarial samples and learning processing of the adversarial samples as the second learning; How to learn. (Appendix 4) A learning method according to any one of Supplementary Notes 1 to 3, aggregating the models generated after the learning is performed by the multiple client devices to generate a new model; Furthermore, the method assigns the client devices to perform learning of the new model using at least two or more different learning methods that are set in advance. How to learn. (Appendix 5) A learning method according to any one of claims 1 to 4, assigning the plurality of client devices to execute one of the learning methods according to an allocation ratio of at least two preset learning methods; How to learn. (Appendix 6) 6. The learning method according to claim 5, further comprising: aggregating models generated after the execution of learning by the multiple client devices, and then changing the allocation ratio; and allocating the plurality of client devices to execute any one of the learning operations in accordance with the changed allocation ratio. How to learn. (Appendix 7) 7. The learning method according to claim 6, further comprising: changing the allocation ratio based on a progress of learning executed by the plurality of client devices; How to learn. (Appendix 8) The learning method according to claim 6 or 7, changing the allocation ratio based on a model aggregated from a plurality of the client devices; How to learn. (Appendix 9) 9. The learning method according to claim 8, further comprising: changing the allocation ratio based on a result of evaluating the performance of the model aggregated from the plurality of client devices; How to learn. (Appendix 10) A learning device using federated learning that causes multiple client devices to learn the same model, an allocation unit that allocates each of the plurality of client devices to perform one of learning methods using at least two or more different learning methods that are set in advance; A counting unit that counts models generated after learning by the plurality of client devices; A learning device equipped with (Appendix 11) 11. The learning device according to claim 10, the allocation unit causes at least one predetermined client device to execute a first learning, and allocates at least one other of the client devices to execute a second learning, the second learning being a learning method different from that of the first learning and involving a process of generating learning data; Learning device. (Appendix 12) 12. The learning device according to claim 11, The allocation unit causes the predetermined client device to perform normal learning as the first learning, and assigns the other client devices to perform adversarial learning involving generating adversarial samples and learning processing of the adversarial samples as the second learning. Learning device. (Appendix 13) 13. The learning device according to any one of claims 10 to 12, The aggregation unit aggregates models generated after the execution of learning by the multiple client devices to generate a new model; The allocation unit further allocates the client devices to execute learning of the new model using at least two or more different learning methods that are set in advance. Learning device. (Appendix 14) 14. The learning device according to any one of claims 10 to 13, the allocating unit allocates the plurality of client devices to execute one of the learning methods in accordance with an allocation ratio of at least two preset learning methods; Learning device. (Appendix 15) 15. The learning device according to claim 14, a change unit that changes the allocation ratio after aggregating models generated after execution of learning by the plurality of client devices; The allocation unit further allocates the plurality of client devices to execute any one of the learning operations in accordance with the changed allocation ratio. Learning device. (Appendix 16) 16. The learning device according to claim 15, the change unit changes the allocation ratio based on a progress of learning executed by the plurality of client devices. Learning device. (Appendix 17) 17. The learning device according to claim 15 or 16, the change unit changes the allocation ratio based on a model aggregated from the plurality of client devices. Learning device. (Appendix 18) 18. The learning device according to claim 17, the change unit changes the allocation ratio based on a result of evaluating the performance of the model aggregated from the plurality of client devices. Learning device. (Appendix 19) In the information processing device, When performing federated learning in which a plurality of client devices are made to perform learning on the same model, each of the plurality of client devices is assigned to perform one of learning methods using at least two or more different learning methods that are set in advance; aggregating the models generated after training by the multiple client devices; A computer-readable storage medium that stores a program for executing processing. [Explanation of symbols]

[0063] 10 Central Server 11 Client communication device 12 Model counting device 13 Client Allocation Device 14 Client ratio adjustment device 15 Input Devices 20-1~20-K Client 50 Central Server 51 Client communication device 52 Model counting device 60-1~60-K Clients 100 Learning Device 101 CPU 102 ROM 103 RAM 104 Programs 105 Storage device 106 Drive device 107 Communication Interface 108 Input / Output Interface 109 Bus 110 Storage medium 111 Communication Network 121 Allocation Section 122 Counting Department 200 Client Device

Claims

1. A learning method using federated learning in which an information processing device causes multiple client devices to execute learning for the same model, comprising: The information processing device, assigning each of the plurality of client devices to perform learning using at least two or more different learning methods that have been set in advance; aggregating the models generated after training by the multiple client devices; How to learn.

2. 2. The learning method according to claim 1, causing at least one predetermined client device to execute a first learning, and assigning at least one other of the client devices to execute a second learning, the second learning being a learning method different from that of the first learning and involving a process of generating learning data; How to learn.

3. The learning method according to claim 2, assigning the predetermined client device to perform normal learning as the first learning, and the other client devices to perform adversarial learning involving generating adversarial samples and learning processing of the adversarial samples as the second learning; How to learn.

4. A learning method according to any one of claims 1 to 3, aggregating the models generated after the learning is performed by the multiple client devices to generate a new model; Furthermore, the method assigns the client devices to perform learning of the new model using at least two or more different learning methods that are set in advance. How to learn.

5. A learning method according to any one of claims 1 to 4, assigning the plurality of client devices to execute one of the learning methods according to an allocation ratio of at least two preset learning methods; How to learn.

6. The learning method according to claim 5, aggregating models generated after the execution of learning by the multiple client devices, and then changing the allocation ratio; and allocating the plurality of client devices to execute any one of the learning operations in accordance with the changed allocation ratio. How to learn.

7. The learning method according to claim 6, changing the allocation ratio based on a progress of learning executed by the plurality of client devices; How to learn.

8. The learning method according to claim 6 or 7, changing the allocation ratio based on a model aggregated from a plurality of the client devices; How to learn.

9. A learning device using federated learning that causes multiple client devices to learn the same model, an allocation unit that allocates, to each of the plurality of client devices, learning to be performed using one of at least two or more different learning methods that are set in advance; A counting unit that counts models generated after learning by the plurality of client devices; A learning device equipped with

10. In the information processing device, When performing federated learning in which a plurality of client devices are made to perform learning on the same model, each of the plurality of client devices is assigned to perform one of learning methods using at least two or more different learning methods that are set in advance; aggregating the models generated after training by the multiple client devices; A program for executing a process.

Citation Information

Patent Citations

  • CLR、2018

  • On-device machine learning platform

    JP2020528588A

  • On-device machine learning platform

    JP2020528589A

  • Method and system for scalable and decentralized incremental machine learning which protects data privacy

    US20210097439A1

  • On-device machine learning platform

    WO2019032156A1