Learning system, learning server device, processing device, learning method, and program
By integrating Federated Learning with NAS Without Training, the method accelerates neural architecture search in Federated Learning, reducing search time and maintaining high learning accuracy.
Patent Information
- Application Number
- JP2023539387
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-08-02
- Publication Date
- 2024-10-23
- Estimated Expiration
- 2041-08-02
AI Technical Summary
Neural Architecture Search (NAS) in Federated Learning is time-consuming, making it impractical for certain use cases.
Combining Federated Learning with the NAS Without Training method, which focuses on weight correlation in neural networks, to accelerate the search for efficient neural architectures by omitting time-consuming training processes and optimizing the search range, scoring, and aggregation of neural networks.
Significantly reduces NAS search time while maintaining high learning accuracy, enabling practical machine learning within a reasonable timeframe.
Smart Images

Figure 0007571887000010 
Figure 0007571887000011 
Figure 0007571887000012
Abstract
Description
[Technical Field]
[0001] The present invention relates to federated learning that incorporates AutoML (Automated Machine Learning) techniques. [Background technology]
[0002] Unlike conventional neural network design, NAS (Neural Architecture Search) is a method that does not require humans to define the network structure (architecture), but instead automatically optimizes the architecture itself, and is the basis of AutoML.
[0003] Non-Patent Document 1 is known as a method for incorporating NAS into Federated Learning as FedNAS (Federated NAS). This method makes it possible to realize AutoML in Federated Learning without looking at the data structure. [Prior art documents] [Non-patent literature]
[0004] [Non-Patent Document 1] Chaoyang He, Murali Annavaram, Salman Avestimehr, "FedNAS: Federated Deep Learning via Neural Architecture Search", 2020 Conference on Computer Vision and Pattern Recognition, 2020 Summary of the Invention [Problem to be solved by the invention]
[0005] However, NAS takes a long time, making it unusable in some use cases.
[0006] The present invention aims to provide a learning system, a learning server device, a processing device, a learning method, and a program that significantly shortens NAS search time and enables machine learning in a practical amount of time. [Means for solving the problem]
[0007] In order to solve the above problems, according to one aspect of the present invention, a learning system includes a learning server device and n processing devices i, where i=1, 2, ..., n and r=0, 1, ..., A-1. The processing device i has a second federated learning unit and local data d for each of A neural networks r. i The score s when applying ir The learning server device includes a first federated learning unit and an aggregation unit that aggregates A neural networks using A×n scores and selects the optimal neural network. The first federated learning unit and the second federated learning units of n processing devices i cooperate to perform federated learning using the selected optimal neural network as the first global model. The score s ir includes indicators that can be used to search for neural networks with high learning effectiveness. [Effects of the Invention]
[0008] According to the present invention, the NAS search time can be significantly reduced, and machine learning can be performed within a practical time frame. [Brief explanation of the drawings]
[0009] [Figure 1] FIG. 1 is a diagram showing an example of the configuration of a learning system according to a first embodiment. [Figure 2] FIG. 2 is a functional block diagram of a learning server device according to the first embodiment. [Figure 3] FIG. 2 is a functional block diagram of the processing apparatus according to the first embodiment. [Figure 4] FIG. 1 is a diagram showing a processing sequence of a learning system. [Figure 5] FIG. 10 is a diagram showing an example of a processing flow of an aggregation unit. [Figure 6] FIG. 10 is a diagram showing an example of a processing flow of an aggregation unit. [Figure 7] FIG. 1 is a diagram showing an example of the configuration of a computer to which the present technique is applied. DETAILED DESCRIPTION OF THE INVENTION
[0010] Hereinafter, an embodiment of the present invention will be described. In the drawings used in the following description, components having the same functions and steps performing the same processing are denoted by the same reference numerals, and duplicated explanations will be omitted. In the following description, processing performed on each element of a vector or matrix is assumed to apply to all elements of that vector or matrix, unless otherwise specified.
[0011] <Key Points of the First Embodiment> In research on NAS, the NAS Without training method has been proposed, which focuses on the low correlation between weights within a neural network and searches for useful neural architectures without time-consuming training (see Reference 1).
[0012] (Reference 1) Joseph Mellor, Jack Turner, Amos Storkey, Elliot J. Crowley, "Neural Architecture Search without Training", 2021 International Conference on Machine Learning, 2021 In this embodiment, we combine the existing Federated Learning method with the NAS Without training method, and speed up learning by adding some ingenuity to the implementation.
[0013] Existing method 1: Federated Learning method: Data learning is performed on the data holder's terminal, and a highly accurate learning model is generated based on data from multiple data holders by running a loop of collecting → aggregating → distributing → re-learning the learned model.
[0014] Existing Method 2: When applying a randomly generated neural network to data, if the correlation between the weights within the network is small, it is believed that the learning effect will be high. Searching for such a neural architecture can be done in an overwhelmingly shorter time than existing NAS, which trains each architecture separately.
[0015] Proposed method: We propose a method that applies existing method 2 to federated learning and optimizes processing. This will enable a significant increase in the speed of NAS in federated learning and the efficiency of the output network (performing highly accurate learning and prediction with a small network).
[0016] The proposed method enables significantly faster neural architecture search in federated learning and more efficient output networks (highly accurate learning and prediction with a small network).
[0017] in particular, (1) To significantly reduce the search time of NAS and enable machine learning in a practical timeframe, we omit the time-consuming training of each search neural architecture in NAS using the NAS without Training method.
[0018] (2) To make the learning practical without significantly reducing the accuracy of the optimal neural architecture search results, we use the output of NAS without Training to enable highly accurate learning.
[0019] More specifically, (A) The server controls the architecture search range in the initial phase (processing to address (1) above).
[0020] (B) Each worker evaluates the correlation score of the weights when applying the given architecture to the local data (a process corresponding to (1) above).
[0021] (C) Each worker sends the correlation score for each architecture to the server (processing to address (1) above).
[0022] (D) The server aggregates the correlation scores and selects the optimal architecture (a process to address (2) above).
[0023] (E) Each worker performs learning based on the optimal architecture (processing to address (1) above).
[0024] <Features of this embodiment> By running NAS without training as the initial phase of Federated Learning, the calculation time of NAS can be significantly reduced.
[0025] The score evaluation of NAS without training can be calculated with a load of about one epoch of learning.
[0026] A simple NAS narrows down the networks while learning from a large number of networks. For example, when searching for the optimal network from 1,000 types of networks, it will perform learning up to 1,000 times. However, even including the time required for score evaluation, this can be reduced to less than 2 / 1,000 of the learning time.
[0027] It is known that there are generally several neural networks with low correlation that can improve learning accuracy without training. By selecting one of these neural networks with a small structure in aggregation, performance tuning (speeding up) compatible with Federated Learning can be achieved.
[0028] In general, the learning parameters can be reduced and the learning time can be shortened.
[0029] Federated learning, which transfers models over a network, can also reduce communication time and the amount of aggregation calculations on the aggregation server.
[0030] In addition to IID (Independent and Identically Distributed), where workers uniformly hold similar data, Non-IID occurs in federated learning, where the amount and type of data varies from worker to worker. In some cases, NAS without training, which calculates correlation scores by referencing data, cannot be used as is. Therefore, by adding a confirmation phase to the selected neural network, NAS without training can be used for Non-IID data.
[0031] At this time, by verifying the neural network selected in the "selection network confirmation phase," it becomes possible to select a neural architecture that assumes non-IID.
[0032] A learning system that realizes the above-mentioned processing will be described below.
[0033] <Learning system according to the first embodiment> Figure 1 shows an example of the configuration of a learning system according to the first embodiment. The learning system includes a learning server device 100 and n processing devices 200-i, and the learning server device 100 and the processing devices 200-i can communicate with each other via a communication line, where i = 1, 2, ..., n. The learning server device 100 corresponds to the server described above, and the processing devices 200-i correspond to the worker described above.
[0034] 2 and 3 are functional block diagrams of the learning server device 100 and the processing device 200-i according to the first embodiment, respectively.
[0035] The learning server device 100 includes a transmitting unit 110, a receiving unit 120, a search range determining unit 130, an aggregating unit 140, a selected network confirming unit 150, a federated learning unit 160, a neural network storage unit 170, a global model storage unit 180, and a local model storage unit 190.
[0036] The processing device 200-i includes a transmitting unit 210, a receiving unit 220, a search target list creation unit 230, a score calculation unit 240, a selected network confirmation unit 250, a federated learning unit 260, a neural network memory unit 270, a local data memory unit 275, a global model memory unit 280, and a local model memory unit 290.
[0037] The learning server device 100 and the processing devices 200-i are special devices configured by loading special programs into publicly known or dedicated computers having, for example, a central processing unit (CPU) and a main memory (RAM: Random Access Memory). The learning server device 100 and the processing devices 200-i execute each process under the control of, for example, the central processing unit. Data input to the learning server device 100 and the processing devices 200-i and data obtained from each process are stored, for example, in the main memory, and the data stored in the main memory is read by the central processing unit as needed and used for other processes. At least a portion of each processing unit of the learning server device 100 and the processing devices 200-i may be configured with hardware such as integrated circuits. Each storage unit of the learning server device 100 and the processing devices 200-i can be configured, for example, with a main memory such as a RAM (Random Access Memory) or middleware such as a relational database or key-value store. However, each memory unit does not necessarily have to be installed inside the learning server device 100 and the processing device 200-i, but may be configured as an auxiliary memory device made up of a hard disk, optical disk, or semiconductor memory element such as flash memory, and may be configured to be installed outside the learning server device 100 and the processing device 200-i. The processing sequence of the learning system will be described below.
[0038] <Processing sequence> FIG. 4 shows the processing sequence of the learning system.
[0039] <Search range determination process S130> The search range determination unit 130 of the learning server device 100 determines the NAS search range (S130), and transmits information indicating the NAS search range (hereinafter also referred to as search range information P) to each of the n processing devices 200-i via the transmission unit 110. Note that the search range information P is information common to the n processing devices 200-i.
[0040] For example, the neural network storage unit 170 stores K neural networks and their indexes k, where k = 1, 2, ..., K. The K neural networks are randomly generated, for example, as in Reference 1.
[0041] The search range determination unit 130 determines A neural networks out of K neural networks stored in the neural network storage unit 170 as the NAS search range. K and A are integers equal to or greater than 2, and satisfy K≧A. For example, the search range determination unit 130 determines a combination of a random number seed indicating the start point and A indicating the range as search range information P. For example, let K=10000 and A=1000.
[0042] The neural network storage unit 270 stores the same information as that stored in the neural network storage unit 170. That is, the neural network storage unit 270 stores K neural networks and their indexes k.
[0043] <Search target list creation process S230> The search target list creation unit 230 of the processing device 200-i receives the search range information P via the receiving unit 220, and creates a list of NAS search target networks from the information stored in the neural network storage unit 270 based on the search range information P (S230). For example, when the random number seed is s, the search target list creation unit 230 creates a list of A neural networks corresponding to k=s, s+1, ..., s+A-1.
[0044] <Score calculation process S240> The score calculation unit 240 of the processing device 200-i calculates the local data d stored in the local data storage unit 275. i The local data d i is data that differs for each processing device 200-i and is data that is input to the neural network. The score calculation unit 240 assigns local data d i The correlation score s of the weights when applying ir is calculated (S240). As in the prior art, if the correlation score of the weight is small, it is considered that the learning effect is high. i is an index indicating the processing device, and r is an index indicating the neural network, where r=0, 1, ..., A-1. Therefore, the correlation score s ir indicates the correlation score of the weight of the neural network r in the processing device 200-i. The score calculation unit 240 transmits the index r of the neural network and its correlation score s via the transmission unit 210. ir and local data d i Number of data D i and transmits the result to the learning server device 100.
[0045] <Aggregation process S140> The aggregating unit 140 of the learning server device 100 receives A indexes r and correlation scores s from one processing device 200-i via the receiving unit 120. ir The combination of the data and the number of data D iSince data is received from n processing devices 200-i, a total of A×n indexes r and correlation scores s are received. ir and the number of n data D i and receive.
[0046] The aggregation unit 140 aggregates A×n correlation scores s ir and the number of n data D i Using the above, A neural networks are aggregated (S140) and an optimal neural network is selected. The optimal neural network here is a neural network that enables highly accurate learning.
[0047] 5 and 6 show an example of the processing flow of the aggregation unit 140. FIG.
[0048] The aggregation unit 140 calculates the correlation score s of each processing device 200-i for each neural network. ir The variation in the value of the variance is calculated (S140A), and it is determined whether the variation is greater than a predetermined threshold value (S140B).
[0049] If the variation is equal to or less than a predetermined threshold, the aggregation unit 140 determines that general-purpose network learning is possible, and calculates the score for each neural network using a formula specified by the user (S140C). For example, if the total score for all terminals is used, the formula is as follows:
number
number
[0050] The above-described processes S140A to S140E are performed for all neural networks (S140F).
[0051] The aggregation unit 140 aggregates A S r In the process of determining whether to select an optimal neural network based on the user settings (S140G), a number of S r The smallest score is S min The scores S of the pre-set comparison targets P in ascending order are min ,S min+1 ,…,S min+P Take out the smallest score S min From the difference with
number
[0052] (Candidate Selection Process) When the optimal neural network cannot be selected in the aggregation unit 140, the aggregation unit 140 selects Q candidates for the optimal neural network and outputs the indices of the selected Q candidates to the selected network confirmation unit 150. Q is any integer greater than or equal to 2 and satisfies Q < A and Q < n. Here, the case where the optimal neural network cannot be selected means, for example, (A) when a bias in data types is assumed, (B) when the variation in the correlation score s ir is large and the number of classifications is large, making it difficult to narrow down within the number of data D i in the processing device 200-i, (C) when it is not known whether consideration of the data number is appropriate for non-IID, (D) when the difference obtained by S140G is smaller than a predetermined threshold and there are two or more neural networks with the smallest network size, etc. For example, the aggregation unit 140 selects Q neural networks whose difference obtained by S140G is smaller than a predetermined threshold and whose network size is smaller than a predetermined threshold as candidates for the optimal neural network.
[0053] <Selected Network Confirmation Process S150> The selection network confirmation process S150 in the selection network confirmation unit 150 of the learning server device 100 is executed only when an optimal neural network cannot be selected, and is therefore indicated by a dashed line in FIG. 4 . The selection network confirmation unit 150 of the learning server device 100 divides n processing devices 200-i into Q groups. Each group contains (n / Q) processing devices 200-i. The selection network confirmation unit 150 receives the indices of the Q candidates and transmits the indices of the Q candidates to the processing devices 200-i belonging to each of the Q groups via the transmission unit 110. The selection network confirmation unit 150 extracts Q neural networks corresponding to the indices of the Q candidates from the neural network storage unit 170 and performs short-term normal federated learning in cooperation with the selection network confirmation units 250 of the processing devices 200-i belonging to the Q groups, using each of these as an initial global model. Examples of normal federated learning include the federated learning described in Non-Patent Document 1, but other federated learning methods may also be used. The selected network confirmation unit 150 and the selected network confirmation units 250 of the (n / Q) processing devices 200-i belonging to one group cooperate to perform federated learning using one neural network as the initial global model, and perform federated learning using a total of Q neural networks as the initial global models. The global model storage unit 180 stores the selected or updated global model used in the federated learning, and the local model storage unit 190 stores the n local models updated in each processing device 200-i to be used in the federated learning.
[0054] The selected network confirmation unit 250 of the processing device 200-i receives the index of the candidate neural network via the receiving unit 220, extracts the neural network corresponding to the index from the neural network storage unit 270, and performs short-term normal federated learning using this as a global model in cooperation with the selected network confirmation unit 150 of the learning server device 100. The global model storage unit 280 stores the global model selected or updated by the selected network confirmation unit 150 of the learning server device 100 and used in the federated learning, and the local model storage unit 290 stores one local model updated by the processing device 200-i and used in the federated learning.
[0055] The selected network confirmation unit 150 of the learning server device 100 compares the accuracy of the Q optimal neural network candidates after short-term normal federated learning, selects the one with the higher accuracy as the optimal neural network (S150), and outputs its index to the aggregation unit 140. By providing the selected network confirmation process S150, the possibility of selecting the optimal neural network increases. Note that the (n / Q) processing devices 200-i corresponding to the optimal neural network can be properly trained using the selected network confirmation process S150, so the trained model can be reused. However, the learning results of the remaining (nn / Q) selected network confirmation process S160 are discarded.
[0056] The aggregation unit 140 of the learning server device 100 outputs the index of the optimal neural network to the federated learning unit 160.
[0057] <Federal Learning Process S160> The federated learning unit 160 receives the index of the optimal neural network, and performs normal federated learning in cooperation with the federated learning unit 260 of the processing device 200-i, using the neural network corresponding to this index as the initial global model (S160).
[0058] <Effects> The above configuration significantly reduces the NAS search time, enabling machine learning in a practical timeframe. It also makes the learning accuracy practical without significantly degrading the optimal neural architecture search results. <Variation 1> In the first embodiment, the correlation score s is used to search for a neural network with a high learning effect. ir However, other indices may be used as long as they are indices that can search for neural networks with high learning effects.
[0059] <Variation 2> In the first embodiment, in step S140E, the number of data D i The score is calculated taking into consideration the influence of the above, but the score may also be calculated by a user-defined aggregation operation such as the following methods (1) to (6).
[0060] (1) Taking into account the average score for each data, the score S is calculated using the following formula: r Calculate.
number
number
[0061] (3) Taking into account the overall average score, the score S is calculated using the following formula: r Calculate.
number
number
[0062] (5) Taking into account the overall most frequent score, the score S is calculated using the following formula: r Calculate.
number
number
[0063] In process S140E, the above-mentioned score S r However, other scores may be calculated as long as they are capable of searching for neural networks with high learning effects.
[0064] <Variation 3> In the first embodiment, a score S is calculated for each neural network based on the magnitude relationship between the variation and a predetermined threshold. r Although the calculation method of is different, for all neural networks, the score S r In other words, the A scores S r Then, we obtain the score S r Then, as in the first embodiment, a difference calculation S140G is performed using the magnitude relationship between the variation and a predetermined threshold. For example, if the variation is greater than the predetermined threshold, the score S obtained by equation (1) is r If the variance is below a predetermined threshold, the score S obtained by equation (2) is used. rCalculate the difference using
[0065] <Variation 4> In the first embodiment, the aggregation unit 140 calculates the correlation score s of each processing device 200-i for each neural network. ir The variation in the score is calculated (S140A), and it is determined whether the variation is greater than a predetermined threshold (S140B). However, if (i) it is known in advance that the variation is small, S140A and S140B can be omitted, and the score S can be calculated by the formula (1). r Alternatively, (ii) if it is known in advance that there is a large variation, S140A and S140B can be omitted and the score S can be calculated using formula (2). r (iii) If variability is not taken into consideration, S140A and S140B can be omitted and the score S can be calculated using formula (1). r may be calculated.
[0066] <Other variations> The present invention is not limited to the above-described embodiments and modifications. For example, the various processes described above may not only be executed in chronological order as described, but may also be executed in parallel or individually depending on the processing capabilities of the devices that execute the processes or as needed. Other modifications are possible within the scope of the present invention.
[0067] <Programs and recording media> The various processes described above can be implemented by loading a program that executes each step of the above method into the memory unit 2020 of the computer shown in Figure 7 and operating the control unit 2010, input unit 2030, output unit 2040, etc.
[0068] The program describing the processing contents can be recorded on a computer-readable recording medium, which may be, for example, a magnetic recording device, an optical disk, a magneto-optical recording medium, a semiconductor memory, or any other suitable recording medium.
[0069] The program may be distributed, for example, by selling, transferring, lending, etc. a portable recording medium such as a DVD or CD-ROM on which the program is recorded. Furthermore, the program may be stored in a storage device of a server computer, and then transferred from the server computer to another computer via a network, thereby distributing the program.
[0070] A computer that executes such a program may first temporarily store the program recorded on a portable recording medium or transferred from a server computer in its own storage device. Then, when executing a process, the computer reads the program stored on its own recording medium and executes the process in accordance with the read program. Alternatively, the computer may read the program directly from a portable recording medium and execute the process in accordance with the program. Furthermore, the computer may execute the process in accordance with the received program each time a program is transferred from a server computer to the computer. Alternatively, the server computer may not transfer the program to the computer, but may execute the process through a so-called ASP (Application Service Provider) service, which realizes the processing function by issuing an execution instruction and obtaining the results. In this embodiment, the program includes information used for processing by a computer that is equivalent to a program (such as data that is not a direct instruction to the computer but has properties that define computer processing).
[0071] Furthermore, in this embodiment, the device is configured by executing a predetermined program on a computer, but at least a part of the processing contents may be realized by hardware.
Claims
1. A learning system including a learning server device and n processing devices i, Let i = 1, 2, ..., n, and r = 0, 1, ..., A-1. The processing device i includes: The Second Federal Learning Department, A neural networks r each have local data d i The score s when applying ir A score calculation unit that calculates The learning server device First Federal Learning Department, A × n scores s ir and an aggregation unit for aggregating A neural networks using the neural network identification number and selecting an optimal neural network; The first federated learning unit and the second federated learning unit of the n processing devices i cooperate to perform federated learning using the selected optimal neural network as an initial global model; The score s ir contains indicators that can search for neural networks with high learning effectiveness, Learning system.
2. The learning system of claim 1, The score s ir is the local data d in the neural network r i is the correlation score of the weights when The aggregation unit calculates the score s for each neural network r. ir If the variation is greater than a predetermined threshold, the local data d i Considering the number of data, the score S for each neural network r r If the variance is less than a certain threshold, the local data d i The score S for each neural network r without considering the number of data r Calculate Learning system.
3. The learning system according to claim 1 or 2, The learning server device includes a first selected network confirmation unit, The processing device i includes a second selected network confirmation unit, When the aggregation unit is unable to select an optimal neural network, the aggregation unit selects Q optimal neural network candidates; the first selection network confirmation unit divides the n processing devices i into Q groups, and performs federated learning in cooperation with the second selection network confirmation unit of the processing devices belonging to each group using the Q optimal neural network candidates as initial global models, compares the accuracy of the Q optimal neural network candidates after the federated learning, and selects the one with the higher accuracy as the optimal neural network; Learning system.
4. A learning server device of the learning system according to any one of claims 1 to 3.
5. A processing device for the learning system according to any one of claims 1 to 3.
6. A learning method using a learning server device and n processing devices i, Let i = 1, 2, ..., n, and r = 0, 1, ..., A-1. The score calculation unit of the processing device i calculates local data d i The score s when applying ir A score calculation step of calculating The aggregator of the learning server device aggregates A×n scores s ir aggregating A neural networks using the above and selecting an optimal neural network; a federated learning step in which a first federated learning unit of the learning server device and a second federated learning unit of the n processing devices i cooperate to perform federated learning using the selected optimal neural network as an initial global model; The score s ir contains indicators that can search for neural networks with high learning effectiveness, How to learn.
7. A program for causing a computer to function as the learning server device of claim 4 or the processing device of claim 5.
Citation Information
Patent Citations
Federated learning model training method and device
CN110263921A
