Distributed learning program, method, and device
By detecting failures and redistributing learning tasks among remaining workers, the system minimizes learning time increases and maintains continuous learning in distributed systems, addressing the issue of worker failures in distributed learning systems.
Patent Information
- Application Number
- JP2023022504
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-16
- Publication Date
- 2024-08-28
AI Technical Summary
In distributed learning systems, when a failure occurs in one worker, the remaining workers continue learning, risking a decrease in learning accuracy, and restarting with a new worker increases learning time, especially when securing a new worker is time-consuming.
A management worker detects failures in workers and determines whether to continue distributed learning with remaining workers, redistributing the learning process to these workers, minimizing the impact of failures by sharing the workload and potentially securing a substitute worker.
This approach suppresses the increase in learning time even if a worker fails, ensuring continuous learning by redistributing tasks among remaining workers and optionally securing a substitute worker.
Smart Images

Figure 2024116727000001_ABST
Abstract
Description
[Technical field]
[0001] The disclosed technology relates to a distributed learning program, a distributed learning method, and a distributed learning device. [Background technology]
[0002] Conventionally, a technique for distributed learning has been proposed in which machine learning of a machine learning model such as a neural network is performed on multiple nodes. For example, a method for decentralized distributed deep learning in a computing environment using one or more processors has been proposed. The method generates a list of neighboring nodes for each node among the multiple nodes, and creates a first thread for continuous communication according to a weight management operation and a second thread for continuous calculation of the gradient of each node. The method includes a step of performing asynchronous distributed training of one or more machine learning models, in which one or more variables are shared between the first thread and the second thread. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Special Publication No. 2022-511716 Summary of the Invention [Problem to be solved by the invention]
[0004] When multiple workers use the same machine learning model and perform distributed learning using data parallelism, even if one worker fails, it is possible for the remaining workers to continue learning, although there is a risk of a decrease in learning accuracy.
[0005] However, in the case of distributed learning of multiple neural networks, which integrates the inference results of multiple neural networks to output a final inference result, there is a problem that learning cannot be continued if a failure occurs in any of the workers. In order to continue learning, it is necessary to secure a new worker to replace the worker who left due to the failure and then resume distributed learning. In other words, a waiting time occurs until the new worker is ready, which leads to an increase in learning time, especially when it takes time to secure a new worker.
[0006] In one aspect, the disclosed technology aims to suppress an increase in the learning time of a machine learning model even when a failure occurs in a worker performing distributed learning. [Means for solving the problem]
[0007] In one aspect, the disclosed technology relates to distributed learning in which a plurality of workers are in charge of learning processes of a plurality of neural networks of a multiple neural network that integrates inference results of the plurality of neural networks to output a final inference result. The disclosed technology detects whether or not a failure has occurred in each of the plurality of workers. When a failure has been detected in one or more first workers among the plurality of workers, the disclosed technology determines whether or not to cause a second worker among the plurality of workers other than the first worker to continue the distributed learning. When the distributed learning is to be continued, the disclosed technology distributes the learning process handled by the first worker to the second worker to continue the distributed learning. Effect of the Invention
[0008] One aspect is that it has the effect of suppressing an increase in the learning time of the machine learning model even if a failure occurs in a worker performing distributed learning. [Brief description of the drawings]
[0009] [Figure 1]1 is a block diagram showing a schematic configuration of an information processing system according to an embodiment of the present invention. [Diagram 2] FIG. 1 is a diagram for explaining a specific example of a multiple neural network. [Diagram 3] FIG. 13 is a diagram for explaining the output of a multiple neural network. [Figure 4] FIG. 13 is a diagram for explaining distributed learning using data parallelism. [Diagram 5] FIG. 13 is a diagram for explaining a problem that occurs when a worker fails during distributed learning of a multiple neural network. [Figure 6] FIG. 13 is a diagram for explaining a problem that occurs when a worker fails during distributed learning of a multiple neural network. [Figure 7] FIG. 2 is a functional block diagram of a management worker. [Figure 8] 13 is a diagram for explaining the continuation of distributed learning in the remaining worker group. FIG. [Figure 9] FIG. 13 is a diagram for explaining distribution of learning data to a remaining worker group. [Figure 10] FIG. 13 is a diagram for explaining a batch size per worker during data-parallel distributed learning. [Figure 11] FIG. 13 is a diagram for explaining batch size calculation for a continuation model. [Figure 12] FIG. 1 is a block diagram showing a schematic configuration of a computer that functions as a computer system. [Figure 13] 13 is a flowchart illustrating an example of a distributed learning process. [Figure 14] 13 is a flowchart illustrating an example of a distribution process. [Figure 15] 13 is a flowchart illustrating an example of a proxy worker process. [Figure 16] 13 is a flowchart showing another example of the distributed learning process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, an example of an embodiment of the disclosed technology will be described with reference to the drawings.
[0011] 1, an information processing system 100 according to this embodiment includes a computer system 10 and a plurality of user terminals 50. The computer system 10 and each of the user terminals 50 are connected to each other via a network so that they can communicate with each other. The information processing system 100 is a system that allocates resources owned by the computer system 10 to a job submitted by a user via the user terminal 50, and executes the job using the allocated resources.
[0012] The user terminal 50 is an information processing terminal used by a user of the information processing system 100, and is realized, for example, by a personal computer, a tablet terminal, a smartphone, etc. The user terminal 50 accepts jobs input by the user and transmits them to the computer system 10. The user terminal 50 also receives execution results of jobs transmitted from the computer system 10, and presents the execution results to the user by displaying them on a display device, for example.
[0013] In this embodiment, the job is machine learning of a machine learning model. In particular, this embodiment targets distributed learning of multiple neural networks that integrates inference results of multiple neural networks to output a final inference result.
[0014] The computer system 10 includes one or more computers, which function as a management unit 20 and a group of workers. The computer system 10 also includes a storage device, which stores a learning dataset 52, which is a plurality of pieces of learning data used for learning the machine learning model, and a checkpoint 54, which is information on the machine learning model in the latest state at the time of execution of learning. The computer system 10 may be, for example, a high-performance computer.
[0015] The management unit 20 includes a queue 22, a job deployment unit 24, and a job management unit 26. The queue 22 is a storage area in which jobs transmitted from the user terminal 50 are sequentially stored. The job deployment unit 24 retrieves jobs one by one from the queue 22, assigns a worker to execute the retrieved job, and has the worker execute the job. The job management unit 26 obtains the results of job execution by the worker, and transmits the obtained execution results to the user terminal 50 via the network.
[0016] The worker group includes a plurality of workers. Here, a worker is a unit that executes an assigned job or a part of a job, and may be, for example, one or more computers, or one or more processors. In this embodiment, for convenience of explanation, a worker that executes distributed learning is referred to as an execution worker 30, and a worker that manages the execution of jobs by the execution workers 30 is referred to as a management worker 40. In the following, each execution worker 30 of the execution worker group that distributes and executes one job is also referred to as "worker k". k is an identification number of the execution worker 30 included in the execution worker group, and in this embodiment, k=0, 1, 2, . . .
[0017] Here, a specific example of a multiple neural network will be described with reference to Fig. 2. Fig. 2 shows an example of HDNNP (High-Dimensional Neural Network Potential), which is an example of a multiple neural network that calculates the potential energy of an entire atomic (molecular) system by machine learning. As shown in the upper diagram of Fig. 2, when an atomic system includes an atom i (i = a, b, c), a neural network (NN: Neural Network) for atom i, as shown in the lower diagram of Fig. 2, is i , respectively, Data G i Enter the potential energy E of atom i. i Then, calculate E i The sum of these is calculated as the potential energy E of the entire atomic system.
[0018] In parallel learning of multiple neural networks, i.e., distributed learning, as shown in Figure 3, each neural network NN i An execution worker 30 (worker k, k=0, 1, 2 in the example of FIG. 3) is assigned to each of the workers k. Then, each worker k acquires the calculation results from the other workers k through all-reduce communication, and calculates the sum of its own calculation result and the acquired calculation results of the other workers k.
[0019] Next, to explain the problem when a worker fails in distributed learning of a multiple neural network, we will first explain cases other than multiple neural networks. For example, as shown in FIG. 4, consider a case where the same machine learning model is used in each worker k, the learning data set is divided among the workers, and distributed learning is performed by data parallelism. In distributed learning by data parallelism, for example, the learning data is divided into mini-batches, and each worker calculates a gradient for each mini-batch to reduce the loss of the neural network. Then, by synchronizing and communicating between the workers, the average of the gradients calculated by each worker k is calculated and the weights of the neural network are updated. In this case, for example, if a failure occurs in worker 2, the failed worker 2 leaves the distributed learning, and the calculation results of worker 2 are no longer reflected, so there is a risk of a decrease in learning accuracy. However, it is possible to continue learning by workers 0 and 1.
[0020] However, in the case of multiple neural networks, as shown in Figure 5, the teacher value (correct answer data) exists for the sum of the outputs of each neural network, so it becomes impossible to calculate the loss when a failure occurs. Specifically, under normal circumstances, the predicted value E=Σ calculated by communication between workers i E i and the teacher value E true However, if worker 2 fails, the loss is calculated by comparing the a The predicted value of E a and N.N. b The predicted value of E b The predicted value E' calculated from c The predicted value of Ec Since it does not include the teacher value E true It is not possible to make a proper comparison with the actual amount, and it is not possible to calculate the losses.
[0021] In this case, in order to continue distributed learning, a new worker (hereinafter referred to as a "substitute worker") is secured to replace the worker who left distributed learning (hereinafter referred to as a "leaving worker"). The substitute worker is then added to the remaining workers (hereinafter referred to as "remaining workers") for which no failures have occurred, and distributed learning can be resumed. For example, as shown in FIG. 6, when worker 2 leaves, worker 2' is secured as a substitute worker, and the model used by worker 2' is set to NN from checkpoint 54. c Then, Worker 2' restores the latest state of NN c After that, distributed learning is performed by the execution worker group consisting of worker 0, worker 1, and worker 2'.
[0022] In this way, when replacing a departing worker with a substitute worker, a waiting time occurs in distributed learning until the substitute worker is ready. In particular, in an environment where it is difficult to secure a substitute worker, for example, when the computer system 10 is congested with jobs and there are no available execution workers 30, the waiting time increases.
[0023] Therefore, in this embodiment, the remaining worker group shares the learning process of the departing worker, so that the remaining worker group continues the distributed learning. The function of the management worker 40 for realizing this process will be described in detail below. Note that the management worker 40 is an example of a distributed learning device of the disclosed technology.
[0024] One administrative worker 40 is provided for each execution worker group that executes one job. As shown in FIG.
[0025] The detection unit 42 detects whether or not a failure has occurred in each of the execution workers 30. For example, the detection unit 42 periodically receives keep-alives from each execution worker 30, thereby monitoring the alive status of each execution worker 30. The detection unit 42 detects the occurrence of a failure for an execution worker 30 from which a keep-alive has not been received for a certain period of time or longer. When the detection unit 42 detects the occurrence of a failure, it notifies the determination unit 44 of the identification number of the execution worker 30 from which the failure has occurred.
[0026] When a failure is detected in one or more execution workers 30 among the execution worker group executing one job, the determination unit 44 determines whether or not to allow the execution workers 30 among the execution worker group in which a failure has not been detected, i.e., the remaining worker group, to continue distributed learning. Specifically, when the time required to secure a substitute worker to replace the execution worker 30 in which a failure has been detected, i.e., the leaving worker, is equal to or greater than a threshold, the determination unit 44 determines to continue distributed learning by the remaining worker group.
[0027] Specifically, the determination unit 44, for example, executes a command to obtain the congestion degree of a job in the computer system 10 to obtain the congestion degree, and estimates the time required from requesting a substitute worker to securing the substitute worker based on the obtained congestion degree. In addition, in the case of a system that returns a predicted time at which a substitute worker will be secured in response to a request for a substitute worker, the determination unit 44 may estimate the time required from requesting a substitute worker to securing the substitute worker from the predicted time. In addition, the determination unit 44 may set the threshold to a predetermined time, or may set it to an estimated value of the learning time that will increase when the remaining worker group is allowed to continue distributed learning. The determination unit 44 calculates an estimated value of the increased learning time based on, for example, the processing capacity of the execution worker 30, the size of the target machine learning model, the size of the learning data, and the like. The determination unit 44 notifies the control unit 46 of the determination result of whether or not to allow the remaining worker group to continue distributed learning.
[0028] The control unit 46 controls each of the execution workers 30 to execute the learning process for which it is responsible. Furthermore, when the control unit 46 is notified by the determination unit 44 of the determination result indicating that the remaining workers are to continue distributed learning, the control unit 46 distributes the learning process handled by the departing worker to each of the remaining workers and sets the remaining workers to continue distributed learning. Specifically, as shown in FIG. 8, when worker 2 leaves, the control unit 46 sets NN as the model to be used by worker 0 and worker 1 from checkpoint 54. c The control unit 46 restores the latest state of the NN used by the departing worker that is restored for use by the remaining workers to the NN used by the departing worker. c The control unit 46 also sets the AllReduce communication to be performed between the worker 0 and the worker 1, and assigns the NN a Calculation and NN c Worker 1 is assigned to NN b Calculation and NN c In addition, Worker 2 is an example of a first worker, and Worker 0 and Worker 1 are examples of a second worker.
[0029] In addition, the control unit 46 divides the part of the learning data set 52 that was assigned to the departing worker among the remaining workers, as shown in FIG. 9. In the example of FIG. 9, Data 2 that was assigned to the departing worker is divided into Data 2 a and Data 2 b Split into 2 and 3. a to worker 0, data 2 b The control unit 46 distributes the data distributed from the departing workers to the remaining workers to the restored NN c In other words, the control unit 46 sets the worker 0 to input each mini-batch obtained by dividing data 0 into a predetermined batch size into a NN a Enter the data into the data box and perform calculations. a Each mini-batch is divided into a predetermined batch size and then processed by NN. cSimilarly, the control unit 46 sets the worker 1 to input each mini-batch obtained by dividing the data 1 into a predetermined batch size into the NN b Enter the data into the data box and perform calculations. b Each mini-batch is divided into a predetermined batch size and then processed by NN. c Set it up so that calculations can be performed by entering the following:
[0030] As a result, as shown in Figure 8, the learning process that the departing worker was in charge of (NN shown by the dashed line in the example of Figure 8) is now in charge of c The increase in training time can be minimized by dividing the remaining workers into groups and executing them in parallel.
[0031] Here, as shown in Figure 10, when the batch size per worker is s during data-parallel distributed learning, each worker k calculates the gradient in mini-batch units (number of data s) ((1) in Figure 10). Then, the average value of the gradients is calculated between the workers using all-reduce communication ((2) in Figure 10), and each worker updates the model using the calculated average value of the gradients ((3) in Figure 10). In this way, since the calculated gradient is the average value between the workers, the batch size for the entire distributed learning is proportional to the number of workers performing distributed learning.
[0032] Therefore, the control unit 46 sets the batch size of all remaining workers for the continuation model to be the same as the batch size per departing worker. For example, as shown in Fig. 11, when the batch size per worker is s = 64 and the number of remaining workers is n = 2, the control unit 46 sets the batch size per remaining worker for the continuation model to s / n = 32. As a result, the effective batch size of all remaining workers for the continuation model becomes s = 64 due to averaging of gradients by all-reduce communication between worker 0 and worker 1.
[0033] Furthermore, when the control unit 46 is notified by the determination unit 44 of the determination result indicating that distributed learning with the remaining worker group will not be continued, the control unit 46 temporarily suspends distributed learning and requests the job deployment unit 24 to secure a substitute worker. Once a substitute worker has been secured, the control unit 46 replaces the departing worker with the substitute worker, as described in Fig. 6, i.e., resumes distributed learning using the remaining worker and the substitute worker. The substitute worker is an example of a third worker.
[0034] The computer system 10 is realized by a computer 60 as shown in Fig. 12, for example. The computer 60 includes a CPU (Central Processing Unit) 61, a GPU (Graphics Processing Unit) 62, a memory 63 as a temporary storage area, and a non-volatile storage device 64. The computer 60 also includes an input / output device 65 such as an input device and a display device, and an R / W (Read / Write) device 66 that controls reading and writing of data from and to a storage medium 69. The computer 60 also includes a communication I / F (Interface) 67 that is connected to a network such as the Internet. The CPU 61, the GPU 62, the memory 63, the storage device 64, the input / output device 65, the R / W device 66, and the communication I / F 67 are connected to one another via a bus 68.
[0035] The storage device 64 is, for example, a hard disk drive (HDD), a solid state drive (SSD), a flash memory, etc. The storage device 64 as a storage medium stores a distributed learning program 70 for causing the computer 60 to function as the management worker 40 of the computer system 10. In addition to the distributed learning program 70, the storage device 64 also includes programs for realizing the functions of the management unit 20 and the execution worker 30, but detailed explanations are omitted in this embodiment. The distributed learning program 70 has a detection process control command 72, a determination process control command 74, and a control process control command 76.
[0036] The CPU 61 reads out the distributed learning program 70 from the storage device 64, expands it in the memory 63, and sequentially executes the control instructions of the distributed learning program 70. The CPU 61 operates as the detection unit 42 shown in FIG. 7 by executing the detection process control instruction 72. The CPU 61 also operates as the determination unit 44 shown in FIG. 7 by executing the judgment process control instruction 74. The CPU 61 also operates as the control unit 46 shown in FIG. 7 by executing the control process control instruction 76. As a result, the computer 60 that has executed the distributed learning program 70 functions as the management worker 40 of the computer system 10. The CPU 61 that executes the program is hardware. A part of the program may be executed by the GPU 62.
[0037] The functions realized by the distributed learning program 70 may be realized, for example, by a semiconductor integrated circuit, more specifically, an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or the like.
[0038] Next, the operation of the information processing system 100 according to this embodiment will be described. When a job instructing execution of distributed learning of a multiple neural network is submitted from a user terminal 50 to the computer system 10, the job deployment unit 24 deploys an execution worker 30 and a management worker 40 to execute the job. Then, the management worker 40 executes the distributed learning process shown in Fig. 13. Note that the distributed learning process is an example of a distributed learning method of the disclosed technology.
[0039] In step S10, the control unit 46 causes the group of execution workers in charge of distributed learning to start distributed learning of the multiple neural network. Next, in step S12, the control unit 46 determines whether or not to continue learning. If a predetermined termination condition is not met, such as when the number of learning repetitions reaches a predetermined number, when the loss becomes equal to or less than a predetermined value, when the loss converges, or the like, it is determined that learning is to be continued, and the process proceeds to step S14.
[0040] In step S14, the detection unit 42 determines whether a failure has occurred in any of the execution workers 30 that execute the distributed learning. If a failure has occurred in any of the execution workers 30, the process proceeds to step S16, and if a failure has not occurred in any of the execution workers 30, the process returns to step S12. In step S16, the control unit 46 removes the execution worker 30 in which a failure has been detected from the group of execution workers that execute the distributed learning.
[0041] Next, in step S18, the determination unit 44 determines whether or not to allow the remaining worker group to continue distributed learning. For example, if the time required to secure a substitute worker is equal to or greater than a threshold, it is determined that the remaining worker group should continue distributed learning, and the process proceeds to step S20, where distribution processing is executed. On the other hand, if the time required to secure a substitute worker is less than the threshold, it is determined that the remaining worker group should not continue distributed learning, and the process proceeds to step S40, where substitute worker processing is executed.
[0042] Now, the distribution process will be described with reference to FIG.
[0043] In step S22, the control unit 46 restores the latest state of the model (neural network) used by the departing worker from the checkpoint 54 as a continuing model to be used by each remaining worker. Next, in step S24, the control unit 46 distributes the portion of the learning dataset 52 that was assigned to the departing worker to each remaining worker.
[0044] Next, in step S26, the control unit 46 calculates the batch size for each remaining worker for the continuing model so that the batch size for the remaining workers as a whole for the continuing model is the same as the batch size per departing worker. Next, in step S28, the control unit 46 sets each remaining worker to apply the data distributed in step S24 above to the continuing model in a mini-batch divided by the batch size calculated in step S26 above to execute the learning process. Then, the distribution process ends, and the process returns to the distributed learning process (FIG. 13) and returns to step S12. This allows the distributed learning by the remaining workers to continue.
[0045] Next, the proxy worker process will be described with reference to FIG.
[0046] In step S42, the control unit 46 temporarily suspends distributed learning. Next, in step S44, the control unit 46 requests the job deployment unit 24 to secure a substitute worker. Next, in step S46, the control unit 46 determines whether or not a substitute worker has been secured. If a substitute worker has been secured, the process proceeds to step S48, and if a substitute worker has not been secured, the process waits until a substitute worker is secured.
[0047] In step S48, when a substitute worker is secured, the control unit 46 replaces the departing worker with the substitute worker, i.e., resumes distributed learning using the remaining worker and the substitute worker, as described in Fig. 6. Then, the substitute worker process ends, and the process returns to the distributed learning process (Fig. 13) and to step S12. In step S12, when the control unit 46 determines that a predetermined end condition is met and learning is to be ended, the distributed learning process ends.
[0048] As described above, this embodiment relates to distributed learning in which multiple workers are responsible for the learning process of each of multiple neural networks of a multiple neural network that integrates inference results of multiple neural networks to output a final inference result. In this embodiment, the management worker detects whether or not a failure has occurred in each of the multiple workers. In addition, when a failure has been detected in one or more of the multiple workers, the management worker determines whether or not to allow a worker in which a failure has not been detected to continue the distributed learning. Then, when continuing the distributed learning, the management worker distributes the learning process handled by the worker in which a failure has been detected to a worker in which a failure has not been detected to continue the distributed learning. This makes it possible to suppress an increase in the learning time of the machine learning model even if a failure occurs in a worker that performs distributed learning.
[0049] In the above embodiment, the case where the remaining worker group shares the learning process of the leaving worker and continues the distributed learning, and the case where a substitute worker is secured and the distributed learning is continued are described as an alternative, but the present invention is not limited to this. For example, the remaining worker group may be made to continue the distributed learning while being requested to secure a substitute worker. In this case, the remaining worker group continues the distributed learning until the substitute worker is secured. Then, when the substitute worker is secured, the substitute worker is added to the remaining worker group, and the learning process of the leaving worker that was shared by the remaining worker group is reassigned to the substitute worker, i.e., the original state is restored, and the distributed learning is resumed.
[0050] More specifically, the distributed learning process in this case will be described with reference to the flowchart shown in Fig. 16. Note that in the distributed learning process shown in Fig. 16, the same processes as those in the distributed learning process of the above embodiment (Figs. 13 to 15) are given the same step numbers and detailed descriptions thereof will be omitted.
[0051] After steps S10 to S16, in the next step S60, the judgment unit 44 judges whether or not to allow the remaining worker group to continue distributed learning. If the remaining worker group is to continue distributed learning, the process proceeds to step S20, where a distribution process is executed, and then the process proceeds to step S44. On the other hand, if the remaining worker group is not to continue distributed learning, the process proceeds directly to step S44. In step S44, the control unit 46 requests the allocation of a substitute worker. Next, in step S62, the control unit 46 judges whether or not a substitute worker has been allocated, and if so, the process proceeds to step S64, and if not, the process returns to step S12.
[0052] In step S64, the control unit 46 determines whether the remaining worker group is continuing distributed learning, i.e., whether the remaining worker group is performing distributed learning by sharing the learning process of the departed worker. If the remaining worker group is continuing distributed learning, the process proceeds to step S66, and if it is not continuing, i.e., if distributed learning is being performed by the original worker group or the worker group to which a substitute worker has been added, the process proceeds to step S68.
[0053] In step S66, the control unit 46 ends the distributed learning being continued in the remaining worker group. Next, in step S68, the control unit 46 adds a substitute worker to the remaining worker group, restores the state, resumes distributed learning, and returns to step S12.
[0054] In this way, distributed learning by the remaining group of workers continues until a substitute worker can be secured, and once a substitute worker is secured, the original state is restored and distributed learning is resumed, thereby minimizing the increase in learning time even if a worker fails.
[0055] In the above embodiment, the distributed learning program is stored (installed) in advance in the storage device, but this is not limiting. The program according to the disclosed technology may be provided in a form stored in a storage medium such as a CD-ROM, a DVD-ROM, or a USB memory.
[0056] Regarding the above embodiment, the following supplementary notes are further disclosed.
[0057] (Appendix 1) In distributed learning of a multiple neural network in which inference results of a plurality of neural networks are integrated to output a final inference result, the learning process of each of the plurality of neural networks is handled by a plurality of workers, Detecting whether a failure has occurred in each of the plurality of workers; When a failure is detected in one or more first workers among the plurality of workers, determining whether or not to allow a second worker other than the first worker among the plurality of workers to continue the distributed learning; When the distributed learning is to be continued, the learning process handled by the first worker is distributed to the second worker, and the distributed learning is continued. A distributed learning program for causing a computer to execute a process including the steps of:
[0058] (Appendix 2) The distributed learning program described in Appendix 1, wherein the process of determining whether to continue the distributed learning includes determining to continue the distributed learning if the time required to secure a third worker other than the multiple workers to replace the first worker is equal to or longer than a threshold.
[0059] (Appendix 3) 3. The distributed learning program of claim 2, wherein the threshold is an estimate of the learning time that will increase if the second worker is allowed to continue the distributed learning.
[0060] (Appendix 4) The distributed learning program according to any one of appendices 1 to 3, wherein the process of distributing to the second workers includes setting a value obtained by dividing a batch size per first worker by the number of second workers as a batch size for the learning process handled by the first worker and distributed to each of the second workers.
[0061] (Appendix 5) When it is determined that the distributed learning is not to be continued, a request is made to secure a third worker other than the plurality of workers to substitute for the first worker; When the third worker is secured, the distributed learning is resumed using the second worker and the secured third worker. 5. The distributed learning program according to claim 1, for causing the computer to execute a process including the steps of:
[0062] (Appendix 6) The second worker is caused to continue the distributed learning, and the first worker is requested to secure a third worker other than the plurality of workers; When the third worker is secured, the learning process of the first worker that was distributed to the second worker is reallocated to the secured third worker, and the distributed learning is resumed. 5. The distributed learning program according to claim 1, for causing the computer to execute a process including the steps of:
[0063] (Appendix 7) In distributed learning of a multiple neural network in which inference results of a plurality of neural networks are integrated to output a final inference result, the learning process of each of the plurality of neural networks is handled by a plurality of workers, Detecting whether a failure has occurred in each of the plurality of workers; When a failure is detected in one or more first workers among the plurality of workers, determining whether or not to allow a second worker other than the first worker among the plurality of workers to continue the distributed learning; When the distributed learning is to be continued, the learning process handled by the first worker is distributed to the second worker to continue the distributed learning. The present invention relates to a distributed learning method, and more particularly to a distributed learning method according to the present invention.
[0064] (Appendix 8) The distributed learning method of claim 7, wherein the process of determining whether to continue the distributed learning includes determining to continue the distributed learning if the time required to secure a third worker other than the plurality of workers to substitute for the first worker is equal to or longer than a threshold value.
[0065] (Appendix 9) 9. The distributed learning method according to claim 8, wherein the threshold is an estimate of the learning time that will increase if the second worker is allowed to continue the distributed learning.
[0066] (Appendix 10) The distributed learning method according to any one of Supplementary Note 7 to Supplementary Note 9, wherein the process of distributing to the second workers includes setting a value obtained by dividing a batch size per the first worker by the number of the second workers as a batch size for the learning process handled by the first worker and distributed to each of the second workers.
[0067] (Appendix 11) When it is determined that the distributed learning is not to be continued, a request is made to secure a third worker other than the plurality of workers to substitute for the first worker; When the third worker is secured, the distributed learning is resumed using the second worker and the secured third worker. 11. The distributed learning method according to claim 7, for causing the computer to execute a process including the steps of:
[0068] (Appendix 12) Requesting the second worker to continue the distributed learning and to secure a third worker other than the plurality of workers to substitute for the first worker; When the third worker is secured, the learning process of the first worker that was distributed to the second worker is reallocated to the secured third worker, and the distributed learning is resumed. 11. The distributed learning method according to claim 7, for causing the computer to execute a process including the steps of:
[0069] (Appendix 13) In distributed learning of a multiple neural network in which inference results of a plurality of neural networks are integrated to output a final inference result, the learning process of each of the plurality of neural networks is handled by a plurality of workers, A detection unit that detects whether or not a failure has occurred in each of the plurality of workers; a determination unit that, when a failure is detected in one or more first workers among the plurality of workers, determines whether or not to allow a second worker other than the first worker among the plurality of workers to continue the distributed learning; a control unit that distributes the learning process handled by the first worker to the second worker when the distributed learning is to be continued, and continues the distributed learning; A distributed learning device comprising:
[0070] (Appendix 14) The distributed learning device of claim 13, wherein the determination unit determines to continue the distributed learning if the time required to secure a third worker other than the plurality of workers to substitute for the first worker is equal to or greater than a threshold.
[0071] (Appendix 15) 15. The distributed learning device according to claim 14, wherein the threshold is an estimated value of a learning time that will increase if the second worker is allowed to continue the distributed learning.
[0072] (Appendix 16) The distributed learning device according to any one of Supplementary Note 13 to Supplementary Note 15, wherein the control unit sets a value obtained by dividing the batch size per first worker by the number of second workers as a batch size for the learning process handled by the first worker and distributed to each of the second workers.
[0073] (Appendix 17) The control unit is When it is determined that the distributed learning is not to be continued, a request is made to secure a third worker other than the plurality of workers to substitute for the first worker; When the third worker is secured, the distributed learning is resumed using the second worker and the secured third worker. The distributed learning device according to any one of claims 13 to 16.
[0074] (Appendix 18) The control unit is Requesting the second worker to continue the distributed learning and to secure a third worker other than the plurality of workers to substitute for the first worker; When the third worker is secured, the learning process of the first worker that was distributed to the second worker is reassigned to the secured third worker, and the distributed learning is resumed. The distributed learning device according to any one of claims 13 to 16. [Explanation of symbols]
[0075] 100 Information Processing Systems 10. Computer Systems 20 Management Department 22 Queue 24 Job Placement Department 26 Job Management Department 30 Execution Workers 40 Administrative Worker 42 Detection unit 44 Judgment section 46 Control Unit 50 User terminal 52 Training Data Set 54 Checkpoint 60 Computer 61 CPU 62 GPU 63 Memory 64 Storage device 65 I / O Devices 66 R / W device 67 Communication I / F 68 Bus 69 Storage medium 70 Distributed Learning Program 72 Detection process control instructions 74 Decision process control instructions 76 Control Process Control Instructions
Claims
1. In distributed learning of a multiple neural network in which inference results of a plurality of neural networks are integrated to output a final inference result, the learning process of each of the plurality of neural networks is handled by a plurality of workers, Detecting whether a failure has occurred in each of the plurality of workers; When a failure is detected in one or more first workers among the plurality of workers, determining whether or not to allow a second worker other than the first worker among the plurality of workers to continue the distributed learning; When the distributed learning is to be continued, the learning process handled by the first worker is distributed to the second worker, and the distributed learning is continued. A distributed learning program for causing a computer to execute a process including the steps of:
2. The distributed learning program of claim 1, wherein the process of determining whether to continue the distributed learning includes determining to continue the distributed learning if the time required to secure a third worker other than the multiple workers to replace the first worker is equal to or longer than a threshold value.
3. The distributed learning program according to claim 2 , wherein the threshold value is an estimated value of an increase in learning time when the second worker is caused to continue the distributed learning.
4. The distributed learning program according to any one of claims 1 to 3, wherein the process of distributing to the second workers includes setting a value obtained by dividing a batch size per the first worker by the number of the second workers as a batch size for the learning process handled by the first worker and distributed to each of the second workers.
5. When it is determined that the distributed learning is not to be continued, a request is made to secure a third worker other than the plurality of workers to substitute for the first worker; When the third worker is secured, the distributed learning is resumed using the second worker and the secured third worker. The distributed learning program according to any one of claims 1 to 3, for causing the computer to execute a process including the steps of:
6. Requesting the second worker to continue the distributed learning and to secure a third worker other than the plurality of workers to substitute for the first worker; When the third worker is secured, the learning process of the first worker that was distributed to the second worker is reallocated to the secured third worker, and the distributed learning is resumed. The distributed learning program according to any one of claims 1 to 3, for causing the computer to execute a process including the steps of:
7. In distributed learning of a multiple neural network in which inference results of a plurality of neural networks are integrated to output a final inference result, the learning process of each of the plurality of neural networks is handled by a plurality of workers, Detecting whether a failure has occurred in each of the plurality of workers; When a failure is detected in one or more first workers among the plurality of workers, determining whether or not to allow a second worker other than the first worker among the plurality of workers to continue the distributed learning; When the distributed learning is to be continued, the learning process handled by the first worker is distributed to the second worker, and the distributed learning is continued. The present invention relates to a distributed learning method, and more particularly to a distributed learning method according to the present invention.
8. In distributed learning of a multiple neural network in which inference results of a plurality of neural networks are integrated to output a final inference result, the learning process of each of the plurality of neural networks is handled by a plurality of workers, A detection unit that detects whether or not a failure has occurred in each of the plurality of workers; a determination unit that, when a failure is detected in one or more first workers among the plurality of workers, determines whether or not to allow a second worker other than the first worker among the plurality of workers to continue the distributed learning; a control unit that distributes the learning process handled by the first worker to the second worker when the distributed learning is to be continued, and continues the distributed learning; A distributed learning device comprising:
Citation Information
Patent Citations
Decentralized, distributed deep learning
JP2022511716A
