Distributed learning method, distributed learning system, server, and program

The distributed learning system addresses slow convergence and accuracy issues by employing a monotonically decreasing function to manage training data updates, ensuring faster and safer global model generation.

JP7544272B2Active Publication Date: 2024-09-03NIPPON TELEGRAPH & TELEPHONE CORP
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Distributed learning methods using random numbers for improving safety suffer from slow learning convergence and poor accuracy of the global model.

Method used

A distributed learning system with a global model generation function that incorporates a monotonically decreasing function to adjust the influence of training data on the model update, ensuring faster convergence and improved accuracy.

Benefits of technology

Accelerates convergence and enhances the safety and accuracy of the global model by using a monotonically decreasing function to manage the impact of training data updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007544272000013
    Figure 0007544272000013
  • Figure 0007544272000016
    Figure 0007544272000016
  • Figure 0007544272000017
    Figure 0007544272000017
Patent Text Reader

Abstract

Provided is a distributed training technology capable of speeding up convergence while ensuring security thereof. The present invention comprises: a training step for an i-th client generating a model →wi,j in a j-th cycle using training data; an aggregation step for a server generating a global model →wg,j in the j-th cycle using a predetermined formula from the models →w1,j, …, →wN,j in the j-th cycle; an end condition determination step for the server ending training processing by setting the global model →wg,j in the j-th cycle as a global model →wg if a predetermined end condition is satisfied or otherwise transmitting the global model →wg,j in the j-th cycle to the i-th client; and an initialization step for the i-th client setting the global model →wg,j in the j-th cycle as the initial value of a model →wi,j+1 in a (j+1)-th cycle.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to distributed learning techniques. [Background technology]

[0002] Distributed learning is a method in which a system consisting of N clients and a server learns by associating the learning data accumulated by the clients without passing it to other clients or servers. The process of distributed learning is explained below. Here, i is an integer between 1 and N.

[0003] (1) The i-th client creates a model using the training data it has accumulated. → w i Learn.

[0004] (2) The i-th client is the model → w i to the server.

[0005] (3) The server receives the model from all clients. → w1, …, → w N Receive the model → w1, …, → w N From Global Models → w g Generate the model → w1, …, → w N From Global Models → w g The process of generating this is also called aggregate processing.

[0006] (4) The server provides each client with a global model → w g Send.

[0007] (5) Each client receives a global model → w g The model → wi This is the initial value.

[0008] By repeating the steps (1) to (5), a system consisting of N clients and servers is created as a global model. → w g By processing in this way, the learning data accumulated by each client is not passed on to other clients or the server. The series of processes from (1) to (5) is called a learning cycle.

[0009] The aggregation process of process (3) is vector → w1, …, → w N Using a function A that takes input and outputs a vector, it can be expressed as follows:

number

number

number

[0010] [Non-Patent Document 1] Kang Wei, et al., “Federated Learning with Differential Privacy: Algorithms and Performance Analysis,” IEEE Transactions on Information Forensics and Security, 2020. Summary of the Invention [Problem to be solved by the invention]

[0011] However, the above-mentioned method using random numbers has the problem that the convergence of learning is slow, and even if it does converge, the accuracy of the global model is poor.

[0012] Therefore, an object of the present invention is to provide a distributed learning technique that can speed up convergence while ensuring safety. [Means for solving the problem]

[0013] In one aspect of the present invention, a distributed learning system including N clients and a server (N is an integer equal to or greater than 2) is → w g A distributed learning method for generating A( → w1, …, → w N ) to a vector → w1, …, → w N A function that takes input and outputs a vector, where i is an integer between 1 and N. The i-th client inputs training data D i Using the jth global model → w g,jThe model in the cycle that generates → w i,j A learning step to generate a model in the jth cycle. → w 1,j , …, → w N,j Then, the global model in the jth cycle is → w g,j an aggregation step to generate

number

[0014] According to the present invention, it is possible to speed up convergence while ensuring safety. [Brief description of the drawings]

[0015] [Figure 1] FIG. 1 is a block diagram showing a configuration of a distributed learning system 10. [Diagram 2] FIG. 2 is a block diagram showing the configuration of a client 100. [Diagram 3] FIG. 2 is a block diagram showing the configuration of a server 200. [Figure 4] 4 is a flowchart showing the operation of the distributed learning system 10. [Diagram 5] FIG. 2 is a diagram illustrating an example of a functional configuration of a computer that realizes each device according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] Hereinafter, an embodiment of the present invention will be described in detail. Note that components having the same functions are given the same reference numbers and duplicated explanations will be omitted.

[0017] Before describing each embodiment, the notation used in this specification will be described.

[0018] ^ (caret) represents a superscript. For example, x y^z Yes z is a superscript to x, and x y^z Yes z is a subscript to x. Also, _ (underscore) represents a subscript. For example, x y_z Yes z is a superscript to x, and x y_z Yes z is a subscript on x.

[0019] In addition, the superscripts "^" and "~" such as ^x and ~x for a certain letter x should actually be written directly above the "x", but due to the constraints of the description in the specification, they are written as ^x and ~x.

[0020] <Technical background> In the embodiment of the present invention, a series of processes from (1) to (5) described in the [Background Art] is regarded as one cycle, and in process (3), the server → w g,j is generated by the following formula:

number

[0021] By making δ(j) a monotonically decreasing function, the influence of the learning data accumulated by the client on the update of the global model becomes smaller as the learning progresses, so security is not compromised even if the random numbers are made smaller as the cycle progresses. Also, the smaller the random numbers are, the faster the convergence becomes and the more accurate the global model becomes.

[0022] A specific example of the function δ(j) will be described below.

[0023] (Example 1) Let δ(j)=k / α(j), and the function α(j) is, for example, α(j)=j, α(j)=j 2 , α(j)=log(j), α(j)=j 1 / 2 and the adjustment parameter k is a constant, for example, k=1.

[0024] (Example 2) Let δ(j) = k(j) / α(j), the function α(j) be a monotonically increasing function as shown in Example 1, and the adjustment parameter k(j) be k(j) = |A( → w 1,j , …, → w N,j )- → w g,j-1 Let the function be represented as |.

number

[0025] In general, the more cycles are repeated, the more the learning converges, so the difference in the global model | → w g,j - → w g,j-1 | becomes smaller, and as a result, |A( → w 1,j , …, → w N,j )-→ w g,j-1 | / α(j) also becomes smaller.

[0026] In both examples 1 and 2, the random number r can be a number generated according to a Laplace distribution or a Gaussian distribution with mean 0.

[0027] First Embodiment Here, a distributed learning system 10 will be described. The distributed learning system 10 includes N clients and servers (N is an integer equal to or greater than 2), and is implemented as a global model. → w g In this case, the vector → w1, …, → w N A function A( → w1, …, → w N ) is used.

[0028] A distributed learning system 10 will be described with reference to Fig. 1. Fig. 1 is a block diagram showing an example of the configuration of the distributed learning system 10. The distributed learning system 10 includes N clients 100 and a server 200. The N clients 100 and the server 200 are connected to a network 800 such as the Internet, and each client 100 and the server 200 can communicate with each other.

[0029] Next, the client 100 and the server 200 will be described with reference to FIG. 2 and FIG. 3. FIG. 2 is a block diagram showing an example of the configuration of the client 100. The client 100 includes a learning unit 110, an initialization unit 120, a transmission / reception unit 180, and a recording unit 190. The transmission / reception unit 180 is a component for appropriately transmitting and receiving information that the client 100 needs to exchange with other devices. The recording unit 190 is a component for appropriately recording information required for processing by the client 100. The recording unit 190 records, for example, data for learning. FIG. 3 is a block diagram showing an example of the configuration of the server 200. The server 200 includes a counting unit 210, a termination condition determination unit 220, a transmission / reception unit 280, and a recording unit 290. The transmission / reception unit 280 is a component for appropriately transmitting and receiving information that the server 200 needs to exchange with other devices. The recording unit 290 is a component for appropriately recording information required for processing by the server 200.

[0030] The operation of the distributed system 10 will be described with reference to Fig. 4. Hereinafter, i is an integer between 1 and N, and each of the N clients 100 will be referred to as the i-th client 100.

[0031] In S110, the learning unit 110 of the i-th client 100 receives the learning data D i Using the jth global model → w g,j The model in the cycle that generates → w i,j and using the transmitting / receiving unit 180, the model in the j-th cycle → w i,j is sent to the server 200.

[0032] The learning unit 110 of the i-th client 100 uses the model in the first cycle. → w i,1 An appropriate value shall be set as the initial value of the model. → w i,1 The initial value of may be recorded in advance in the recording unit 190.

[0033] Moreover, the learning data D recorded in the recording unit 190 of the i-th client 100 i is not transmitted to other clients 100 or the server 200.

[0034] In S210, the aggregation unit 210 of the server 200 uses the transmission / reception unit 280 to obtain the model in the j-th cycle. → w i,j The aggregation unit 210 of the server 200 receives the model in the j-th cycle. → w 1,j , …, → w N,j Then, the global model in the jth cycle is → w g,j Generate.

number

number

[0035] In S220, if a predetermined termination condition is satisfied, the termination condition determination unit 220 of the server 200 determines whether the global model in the j-th cycle is → w g,j The global model → w g otherwise, the global model in the jth cycle is → w g,jto the i-th client. The termination condition may be, for example, whether or not the upper limit T of the cycle has been reached.

[0036] In S120, the initialization unit 120 of the i-th client 100 uses the transmission / reception unit 180 to generate a global model in the j-th cycle. → w g,j The initialization unit 120 of the i-th client 100 receives the global model in the j-th cycle. → w g,j Let us assume that the model in the j+1th cycle → w i,j+1 is set as the initial value, and the process returns to S110.

[0037] In addition, the distributed learning system 10 uses secure computation to generate a global model → w g may be configured to generate

[0038] According to an embodiment of the present invention, it is possible to speed up convergence while ensuring safety.

[0039] <Additional Notes> 5 is a diagram showing an example of the functional configuration of a computer that realizes each of the above-mentioned devices. The processing in each of the above-mentioned devices can be performed by having a recording unit 2020 load a program for causing a computer to function as each of the above-mentioned devices, and having the control unit 2010, input unit 2030, output unit 2040, etc. operate.

[0040] The device of the present invention has, as a single hardware entity, an input section to which a keyboard or the like can be connected, an output section to which a liquid crystal display or the like can be connected, a communication section to which a communication device (e.g., a communication cable) capable of communicating with the outside of the hardware entity can be connected, a CPU (which may also have a central processing unit, cache memory, registers, etc.), memories such as RAM and ROM, an external storage device such as a hard disk, and buses connecting the input section, output section, communication section, CPU, RAM, ROM, and external storage device so that data can be exchanged between them. If necessary, the hardware entity may also be provided with a device (drive) capable of reading and writing a recording medium such as a CD-ROM. A physical entity equipped with such hardware resources is, for example, a general-purpose computer.

[0041] The external storage device of the hardware entity stores the programs required to realize the above-mentioned functions and the data required in the processing of these programs (not limited to the external storage device, but for example the programs may be stored in a ROM, which is a read-only storage device). Data obtained by the processing of these programs is stored appropriately in the RAM, the external storage device, etc.

[0042] In the hardware entity, each program stored in an external storage device (or ROM, etc.) and the data required for processing each program are loaded into memory as necessary, and interpreted, executed, and processed by the CPU as appropriate, so that the CPU realizes a predetermined function (each component represented as the above, "unit," "means," etc.).

[0043] The present invention is not limited to the above-described embodiment, and can be modified as appropriate without departing from the spirit of the present invention. In addition, the processes described in the above-described embodiment are not limited to being executed in chronological order according to the order described, but may be executed in parallel or individually depending on the processing capacity of the device that executes the processes or as necessary.

[0044] As described above, when the processing functions of the hardware entities (the devices of the present invention) described in the above embodiments are realized by a computer, the processing contents of the functions that the hardware entities should have are described by a program. Then, by executing this program on a computer, the processing functions of the hardware entities are realized on the computer.

[0045] The program describing the processing contents can be recorded on a computer-readable recording medium. The computer-readable recording medium 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. Specifically, for example, a hard disk drive, a flexible disk, a magnetic tape, or the like can be used as the magnetic recording device, a DVD (Digital Versatile Disc), a DVD-RAM (Random Access Memory), a CD-ROM (Compact Disc Read Only Memory), a CD-R (Recordable) / RW (ReWritable), or the like can be used as the optical disk, an MO (Magneto-Optical disc), or the like can be used as the magneto-optical recording medium, and an EEP-ROM (Electronically Erasable and Programmable-Read Only Memory) or the like can be used as the semiconductor memory.

[0046] The program may be distributed, for example, by selling, transferring, lending, etc. portable recording media such as DVDs and CD-ROMs on which the program is recorded. Furthermore, the program may be distributed by storing the program in a storage device of a server computer and transferring the program from the server computer to other computers via a network.

[0047] A computer that executes such a program, for example, first stores the program recorded on a portable recording medium or the program transferred from a server computer in its own storage device. Then, when executing a process, the computer reads the program stored in its own storage device and executes a process according to the read program. As another execution form of the program, the computer may directly read the program from the portable recording medium and execute a process according to the program, or may execute a process according to the received program each time a program is transferred from the server computer to the computer. The server computer may not transfer the program to the computer, but may execute the above-mentioned process by a so-called ASP (Application Service Provider) type service that realizes the processing function only by issuing an execution instruction and obtaining the result. Note that the program in this embodiment includes information used for processing by an electronic computer that is equivalent to a program (data that is not a direct instruction to the computer but has a nature that specifies the processing of the computer, etc.).

[0048] In addition, in this embodiment, a hardware entity is configured by executing a specific program on a computer, but at least a part of the processing contents may be realized by hardware.

[0049] The foregoing description of the embodiments of the invention has been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise form disclosed. Modifications and variations are possible in light of the above teachings. The embodiments have been chosen and depicted to provide a best illustration of the principles of the invention and to enable those skilled in the art to utilize the invention in various embodiments and with various modifications as may be suitable for the practical use contemplated. All such modifications and variations are within the scope of the invention as defined by the appended claims interpreted in accordance with the breadth to which they are fairly, legally, and equitably entitled.

Claims

1. A distributed learning system including N clients and servers (N is an integer greater than or equal to 2) is a global model. → w g A distributed learning method for generating A( → w 1 , …, → w N ) to a vector → w 1 , …, → w N A function that takes input and outputs a vector, where i is an integer between 1 and N, The i-th client receives the training data D i Using the jth global model → w g,j The model in the cycle that generates → w i,j a learning step to generate The server calculates the model in the jth cycle. → w 1,j , …, → w N,j Then, the global model in the jth cycle is → w g,j an aggregation step to generate [0097] (where r is a random number and δ(j) is a monotonically decreasing function) If a predetermined termination condition is satisfied, the server → w g,j The global model → w g otherwise, the global model in the jth cycle is → w g,j a termination condition determination step of transmitting the The i-th client is the global model in the j-th cycle. → w g,j Let us assume that the model in the j+1th cycle → w i,j+1 an initialization step for setting the initial value of A distributed learning method including:

2. 2. The distributed learning method according to claim 1, Let function α(j) be a monotonically increasing function and k be a given constant, The function δ(j) is expressed as δ(j)=k / α(j). A distributed learning method comprising:

3. 2. The distributed learning method according to claim 1, Let function α(j) be a monotonically increasing function, The function δ(j) is expressed by the following formula: [0089] A distributed learning method comprising:

4. 2. The distributed learning method according to claim 1, The random number r is generated according to a Laplace distribution or a Gaussian distribution with mean 0. A distributed learning method comprising:

5. A global model that includes N clients and servers (N is an integer greater than or equal to 2). → w g A distributed learning system for generating A( → w 1 , …, → w N ) to a vector → w 1 , …, → w N A function that takes input and outputs a vector, where i is an integer between 1 and N, The i-th client is Learning data D i Using the jth global model → w g,j The model in the cycle that generates → w i,j A learning unit that generates Global model in the jth cycle → w g,j Let us assume that the model in the j+1th cycle → w i,j+1 and an initialization unit for setting the initial value of The server Model at jth cycle → w 1,j , …, → w N,j Then, the global model in the jth cycle is → w g,j and a counting unit for generating ##EQU00011## (where r is a random number and δ(j) is a monotonically decreasing function) If a certain termination condition is met, the global model in the jth cycle → w g,j The global model → w g otherwise, the global model in the jth cycle is → w g,j and a termination condition determination unit that transmits the Distributed learning system.

6. Global Model → w g A server included in a distributed learning system that generates A( → w 1 , …, → w N ) to a vector → w 1 , …, → w N A function that takes input and outputs a vector, where i is an integer between 1 and N, → w i,j The i-th client uses the training data D i Using the jth global model → w g,j Let the model be the model generated in the jth cycle (hereinafter referred to as the jth cycle). Model at jth cycle → w 1,j , …, → w N,j Then, the global model in the jth cycle is → w g,j and a counting unit for generating ##EQU00012## (where r is a random number and δ(j) is a monotonically decreasing function) If a certain termination condition is met, the global model in the jth cycle → w g,j The global model → w g otherwise, the global model in the jth cycle is → w g,j a termination condition determination unit that transmits the i-th client; The server that contains

7. A program for causing a computer to function as the server according to claim 6.

Citation Information

Patent Citations

  • System for secure federated learning

    US20200285980A1

  • Private and federated learning

    US20200358599A1