Learning systems and methods

The learning system addresses the challenge of diverse device environments in federated learning by integrating parameter sets using scalable neural networks, enabling efficient model updates and parameter exchange across devices with varying resources and data scales.

JP7566707B2Active Publication Date: 2024-10-15KK TOSHIBA
View PDF 3 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Federated learning is challenging when multiple devices have different data scales, computer resources, and specifications, making it difficult to realize efficient parameter exchange and model updates.

Method used

A learning system with local devices and a server that includes learning, selection, and communication units, allowing for the integration of parameter sets to update a global model while accommodating varying device capabilities and data scales, using scalable neural networks to adjust model size based on environment needs.

Benefits of technology

Enables flexible and stable federated learning across devices with different environments by adjusting model size and resource utilization, ensuring efficient parameter exchange and model updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007566707000001
    Figure 0007566707000001
  • Figure 0007566707000002
    Figure 0007566707000002
  • Figure 0007566707000003
    Figure 0007566707000003
Patent Text Reader

Abstract

To realize federated learning according to a scale and a demand of each environment.SOLUTION: A learning system concerning an embodiment comprises: a plurality of local devices; and a server. Each local device comprises: a learning unit; a selection unit; and a communication unit. The learning unit learns a local model by using local data. The selection unit selects a first set from a plurality of parameters regarding the local model. The communication unit transmits the first set to the server. In at least one of the plurality of local devices, model size of the local model is different from that of other local models according to resolution of input data. The server comprises: an update unit; a selection unit; and a communication unit. The update unit integrates a first parameter set to update a global model. The selection unit selects a second set corresponding to the first set, respectively from a plurality of parameters regarding the global model. The communication unit transmits the second set to the plurality of local devices.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] SUMMARY OF THE DISCLOSURE FIELD OF THE DISCLOSURE The present invention relates to a learning system, device and method. [Background technology]

[0002] A machine learning model (local model) is trained based on the training data acquired by each of the multiple devices, and the parameters of the trained local model are sent to a server. The server aggregates and integrates the parameters of each local model, and updates the machine learning model (global model) stored on the server. The parameters of the updated global model are distributed to each of the multiple devices. There is a learning technique called federated learning, which repeats this series of processes. In federated learning, since learning is performed on multiple devices, the computational load can be distributed. Furthermore, since only parameters are exchanged between the server and the learning data itself, there is no exchange of the learning data itself. Therefore, it has the advantage of high privacy confidentiality and low communication costs. However, when the data scale, computer resources, and required specifications differ among the multiple devices, it is difficult to realize federated learning. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2020-123379 A Summary of the Invention [Problem to be solved by the invention]

[0004] The present disclosure has been made to solve the above-mentioned problems, and aims to provide a learning system, device, and method that can realize federated learning according to the scale and requirements of each environment. [Means for solving the problem]

[0005] The learning system according to the present embodiment includes a plurality of local devices and a server. Each of the plurality of local devices includes a learning unit, a selection unit, and a communication unit. The learning unit learns a local model using local data. The selection unit selects a first parameter set from a plurality of parameters related to the local model. The communication unit transmits the first parameter set to the server. At least one of the plurality of local devices: The model size of the local model depends on the resolution of the input data. The server includes an update unit, a selection unit, and a communication unit. The server integrates the first parameter sets acquired from the multiple local devices to update a global model. The selection unit selects second parameter sets corresponding to each of the first parameter sets from multiple parameters related to the global model. The communication unit transmits the second parameter sets to the local device that transmitted the corresponding first parameter set. [Brief description of the drawings]

[0006] [Figure 1] FIG. 1 is a conceptual diagram showing an example of an environment in which associative learning is carried out in a learning system according to this embodiment. [Diagram 2] FIG. 2 is a block diagram showing a local device according to the first embodiment. [Diagram 3] FIG. 2 is a block diagram showing a server according to the first embodiment. [Figure 4] 4 is a flowchart showing a learning process of the learning system according to the first embodiment. [Diagram 5] FIG. 13 is a diagram showing an example of a correspondence relationship between a local model and a global model. [Figure 6] FIG. 11 is a block diagram showing a server according to a second embodiment. [Figure 7] 11 is a flowchart showing a learning process of a learning system according to a second embodiment. [Figure 8] FIG. 11 is a block diagram showing a server according to a third embodiment. [Figure 9] 13 is a flowchart showing a case presentation process of a server according to the third embodiment. [Figure 10] FIG. 13 is a block diagram showing a server according to a fourth embodiment. [Figure 11] 13 is a flowchart showing a determination process of a server according to the fourth embodiment. [Figure 12] FIG. 2 is a block diagram showing an example of a hardware configuration of a local device and a server. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0007] Hereinafter, a learning system, an apparatus, and a method according to the present embodiment will be described in detail with reference to the drawings. In the following embodiments, parts with the same reference numerals perform the same operations, and duplicated descriptions will be omitted as appropriate.

[0008] (First embodiment) An example of an implementation environment for associative learning assumed in the learning system according to this embodiment will be described with reference to the conceptual diagram of FIG. As shown in FIG. 1, the learning system 1 assumed in this embodiment includes a plurality of local devices and a server 11. In the example of FIG. 1, it is assumed that the environments in which the local devices are used are different in environment A, environment B, and environment C. Specifically, it is assumed that the factories are different in scale. That is, environment A is a large-scale factory in which the local device 10A is used. environment B is a medium-scale factory in which the local device 10B is used. environment C is a small-scale factory in which the local device 10C is used. Note that the environment in which the local devices are placed is not limited to a factory, and may be any collection of environments such as a hospital, a school, or a home. Hereinafter, for convenience of explanation, when the explanation is common to each of the local devices 10A to 10C, it is simply called the local device 10. The plurality of local devices 10 and the server 11 are connected to each other via a network NW so as to be able to transmit and receive data.

[0009] Each of the local devices 10 includes a network model (hereinafter, referred to as a local model) that shares some of the parameters with a scalable neural network included in a server 11 described later. The scalable neural network is a neural network in which the model size, such as the number of convolution layers of the network model, is variable according to the required amount of calculation or performance. Each of the local devices 10 learns a local model using manufacturing data generated and acquired in each environment as learning data. The local device 10 may be any device equipped with a processing circuit for executing learning, and may be a PC, a workstation, a tablet PC, a smartphone, a microcomputer, or the like. The processing circuit may be any processing circuit, such as a central processing unit (CPU), a graphics processing unit (GPU), a field programmable gate array (FPGA), or an application specific integrated circuit (ASIC). Specifically, the local device 10 learns a local model related to a classification task of classifying inspection images of manufactured products in a factory into good products and defective products from the inspection images as learning data. Each local device 10 performs inference on target data using the trained local model, and performs classification into good and bad products in each environment. The task of the local model is not limited to classification tasks, and may be any task such as object detection, semantic segmentation, action recognition, anomaly detection, and suspicious person detection. In addition, input data for executing the trained data and trained local model is not limited to images, and may be time-series data such as voice, machine sound, and other operating sounds, environmental sounds, acceleration data, and instrument data, and may be any data.

[0010] In the example of FIG. 1, three different types of local devices 10 are assumed according to the scale of the environment. The number of types is not limited to three, and may be two, four or more. The condition for the local devices 10 is that at least one of the multiple local devices 10 is different from the other local devices 10 in at least one of the learning data, computer scale, and local model. In the example of FIG. 1, the local device 10A used in environment A has larger learning data and computer scale than the local device 10C used in environment C. When the learning data is different, the number of learning data, the resolution of the data, kinds For example, if the input data is inspection images, the number of inspection images, image size (resolution), number of types of defective products to be classified, etc. are different. When the local models are different, it indicates that the model structure and the number of parameters such as the model size, weight coefficients, and biases are different. In addition, when the computer scale (specifications) is different, it indicates that, for example, the GPGPU (General Purpose GPU) and CPU specifications are different in each local device 10.

[0011] The server 11 includes a scalable neural network (hereinafter, the scalable neural network held in the server 11 is referred to as a global model). The server 11 updates parameters of the global model and transmits parameters according to the scale of each local model to each local device 10. It is assumed that the global model is equal to or larger than the maximum size of the local models used by the multiple local devices 10.

[0012] Next, the local device 10 according to the first embodiment will be described with reference to the block diagram of FIG. The local device 10 includes a local storage unit 101 , a local acquisition unit 102 , a local learning unit 103 , a local selection unit 104 , and a local communication unit 105 .

[0013] The local storage unit 101 stores local data and local models. The local acquisition unit 102 acquires the learning data by sampling the learning data from the local data. The local learning unit 103 learns a local model using the local data. The local selection unit 104 selects a first parameter set from a plurality of parameters related to the local model to be transmitted to the server 11. Specifically, the first parameter set is a subset of parameters (such as weighting coefficients and biases) of the neural network for sharing the parameters with the global model. The local communication unit 105 transmits the first parameter set to the server and receives the second parameter set transmitted from the server 11 .

[0014] Next, the server 11 according to the first embodiment will be described with reference to the block diagram of FIG. The server 11 according to the first embodiment includes a global storage unit 111, a global update unit 112, a global selection unit 113, and a global communication unit 114.

[0015] The global storage unit 111 stores the global model. The global update unit 112 integrates the first parameter sets received from the multiple local devices 10 to update the global model. The global selection unit 113 selects, from the plurality of parameters relating to the updated global model, second parameter sets corresponding to the first parameter sets, respectively. The global communication unit 114 receives each of the first parameter sets from the multiple local devices 10. The global communication unit 114 transmits the second parameter set selected by the global selection unit 113 to the local device 10 that transmitted the corresponding first parameter set.

[0016] In this embodiment, the network model for the local model and the global model is assumed to be a convolutional neural network including an intermediate layer. However, the present invention is not limited to this, and any network model may be adopted according to the task of the local model as long as it has a model structure used in general machine learning, such as a multilayer perceptron (MLP), a recurrent neural network (RNN), a Transformer, or a Bidirectional Encoder Representations from Transformer (BERT).

[0017] Next, the learning process of the learning system 1 according to the first embodiment will be described with reference to the sequence diagram of FIG. In step S401, the local acquisition unit 102 of each local device 10 acquires learning data. Here, the input image x → ij are assumed to be acquired as training data. A superscripted arrow indicates that the object to which the arrow is attached is tensor data. The subscript i is the serial number of the environment, and in the example of Figure 1, it is represented as i = 1 (environment A), i = 2 (environment B), and i = 3 (environment C). The subscript j is the serial number of the training data, and j = 1, ..., N i It is expressed as N i is a natural number equal to or greater than 2, which represents the number of training data acquired in environment i. Also, → ij is a pixel set with a width Wi and a height Hi, and is two-dimensional tensor data. The image size (resolution) and number of input images may differ depending on the local device.

[0018] Input image x → ij The target label for t → ij The target label t → ij is a function M whose corresponding elements are 1 and other elements are zero. i It is a vector of dimension M i is the number of taxonomic species desired in environment i, a natural number greater than or equal to 2. iWe assume that the environment is different for different local devices. For example, the larger the environment, the larger the M i It is assumed that M1 is a large value and that the relationship is M1>M2>M3.

[0019] In step S402, the local learning unit 103 of each local device 10 learns a neural network using the learning data, and learns (updates) a local model. → ij , the output of the local model is y → ij Then, it can be expressed by equation (1).

[0020] y → ij =f(x → ij ;Θ → i ) · · · (1)

[0021] Equation (1) expresses the input-output relationship when the i-th environment and the j-th training data are input. Here, f represents the neural network function for the local model, and Θ → i represents the parameter set for the i-th local model. Specifically, Θ → i is composed of output layer parameters unique to each local model that do not share parameters with other local models, and a subset of model parameters of the convolution layer corresponding to at least a part of the global model. Note that the layer having parameters unique to the local model is not limited to the output layer, and the first two layers including the input layer of each local model may be set as layers having parameters unique to each local model, or a part of the intermediate layer may be set as layers having parameters unique to each local model. In addition, when each local model includes a normalization layer, the normalization layer may be a layer having parameters unique to the local model.

[0022] L ij =-t → ijT ln(y → ij ) · · · (2)

[0023] Equation (2) expresses the learning error L when the i-th environment and j-th learning data are input. ij Here, the calculation is performed using cross entropy. In each local device 10, for example, the average of the learning errors of the multiple input images related to the mini-batch is calculated as the loss, and the parameter set Θ of the neural network is calculated by, for example, backpropagation and stochastic gradient descent so as to minimize the loss. → i Update the value of

[0024] In step S403, the local learning unit 103 of each local device 10 determines whether learning of the local model is complete. For example, learning may be determined to be complete when a parameter is updated a predetermined number of times, or learning may be determined to be complete when the absolute value of the parameter update amount or the sum of the absolute values ​​becomes a certain value. Note that the determination of whether learning is complete is not limited to the above example, and a commonly used learning end condition may be adopted. If learning is complete, the process proceeds to step S404, and if learning is not complete, the process returns to step S401 and the same process is repeated.

[0025] In step S404, the local selection unit 104 of each local device 10 selects a first parameter set to be transmitted to the server. It is assumed that the first parameter set is selected from parameters of layers excluding the output layer of each local model, but parameters related to some convolution layers may be selected as the first parameter set.

[0026] In step S405, the local communication unit 105 of each local device 10 transmits information about the first parameter set to the server 11. The information about the first parameter set may be, for example, the value of the parameter after the update, or the amount of change due to the update, for example, the difference between the value of the parameter before the update and the value of the parameter after the update. It may include information indicating the correspondence with the layer of the global model, such as an ID indicating which layer of the global model the first parameter set corresponds to. Furthermore, the local communication unit 105 may compress and transmit data related to the parameter set to be transmitted to the server 11. The data compression process may be lossless compression or lossy compression. By compressing and transmitting data, it is possible to save on communication traffic and communication bandwidth.

[0027] In step S406, the global communication unit 114 of the server 11 receives information about the first parameter set from each local device 10. In step S407, the global update unit 112 of the server 11 integrates the received first parameter sets and updates the parameters of the global model, thereby updating the global model. The integration of the first parameter sets may be performed, for example, by calculating an average or weighted average of each of the first parameter sets related to a layer common between the local models. The global model may be updated, for example, by using a moving average of the parameters related to the global model set before updating the global model and each of the first parameter sets. This updates the global model.

[0028] In step S408, the global selection unit 113 of the server 11 selects a second parameter set to be transmitted from the updated global model to each local device 10. That is, a parameter set of the entire global model or a parameter set that is a subset of the global model, which corresponds to each of the first parameter sets transmitted from each local device, is selected as the second parameter set. In step S409, the global communication unit 114 of the server 11 transmits information about the second parameter set corresponding to each of the first parameter sets to the corresponding local device 10. The information about the second parameter set only needs to correspond to the information about the first parameter set, and may be the value of the parameter after update or the amount of change due to the update.

[0029] In step S410, the local communication unit 105 of each local device receives information about the second parameter set from the server 11. In step S411, the local learning unit 103 of each local device 10 reflects the received second parameter set as parameters of the local model. Thereafter, when a learning process for the local model is required, the process returns to step S401 and the process is repeated in the same manner. By repeatedly updating the parameters of the model between the local device 10 and the server 11 in this way, so-called federated learning is performed.

[0030] Next, an example of the correspondence between the local model and the global model will be described with reference to FIG. An example of a global model 50, which is a neural network included in the server 11, is shown. One rectangular parallelepiped in the global model 50 indicates a feature map after conversion by a convolution layer and, if necessary, an activation layer. Here, the convolution layer (and activation layer) that outputs the feature map is also called a conversion layer. The width is the number of channels of the feature map, and the height and depth represent the size of the feature map. The global model 50 has three feature maps of the same size as one set, and three sets of feature maps with different resolutions are obtained, in other words, three types of feature maps with different resolutions are obtained. In the example of FIG. 5, a global model 50 is represented in which there are three processing stages that perform three conversion processes by three conversion layers. Specifically, the global model 50 includes a feature map group 501 obtained by each process in the first processing stage, a feature map group 502 obtained by each process in the second processing stage, and a feature map group 503 obtained by each process in the third processing stage. One method for generating feature maps with different resolutions is to lower the resolution by setting the stride of the pooling process or the next convolutional layer to 2 or more every three transformations by the convolutional layer (and activation layer). Note that the next stage refers to the second processing stage if you focus on the first processing stage, and the third processing stage if you focus on the second processing stage.

[0031] The local device 10A includes local data 51A and a local model 52A. The local device 10B includes local data 51B and a local model 52B. The local device 10C includes local data 51C and a local model 52C. In FIG. 5, one rectangular parallelepiped of each local model indicates a feature map similar to the global model, and the ellipse is an output layer that performs conversion by a fully connected layer. The height of the output layer (length of the ellipse) represents the number of channels, that is, the number of categories for classification in the case of a classification task. Local data 51 represents the size and number of data of an input image, and large-scale local data 51A has a larger input image size and a larger number of data than small-scale local data 51C.

[0032] The local model 52A used in the large-scale environment A has all the transformation layers of the global model 50, and here, the local model 52A includes nine transformation layers and an output layer 53A. The local model 52A generates the same number of feature maps as the global model 50 through the transformation layers. The local model 52B used in the medium-scale environment B has the first two transformation layers of each processing stage of the global model 50, and here, the local model 52B includes six transformation layers and an output layer 53B. The local model 52B generates feature maps corresponding to the first two of each of the feature map groups 501 to 503 by the transformation layers. The local model 52C used in the small-scale environment C has the first transformation layer of each processing stage of the global model 50, and here, the local model 52C includes three transformation layers and an output layer 53C. The local model 52C generates feature maps corresponding to the first feature maps of the feature map groups 501 to 503 by the transformation layers. In this way, the local models 52A to 52C are either the same size as the global model 50, which is a scalable network, or include a subset of the global model 50. In addition, since it is assumed that the output layers 53A, 53B, and 53C have different configurations for each local model 52, they are held independently in each local device 10.

[0033] The local selection unit 104 of the local device 10A can select parameters for a maximum of nine transformation layers of the entire local model 52A as the above-mentioned first parameter set in the local model 52A. Similarly, the local selection unit 104 of the local device 10B can select parameters for a maximum of two transformation layers in each processing stage, i.e., six transformation layers, as the first parameter set in the local model 52B. The local selection unit 104 of the local device 10C can select parameters for a maximum of one transformation layer in each processing stage, i.e., three transformation layers, as the first parameter set in the local model 52C. On the other hand, the global selection unit 113 of the server 11 selects, as the second parameter set, parameters of the transformation layer of the global model 50 corresponding to the transformation layer of the first parameter set.

[0034] Each local model 52 is assumed to have a network structure of a fully convolutional neural network, and can input any image size. That is, an input image of a different image size can be input to each local model 52. Also, the output layer 53 in each local model 52 includes a global average pooling layer, a fully connected layer, and a softmax layer, and has a dimensionality M ij Output vector y → ij The output vector y → ij is the output from the softmax layer, so the output vector y → ij The elements of are non-negative and sum to 1.

[0035] In this way, the size, such as the number of layers, of the network model trained as the local model 52 can be variably set according to the size of the local data 51, the scale of the computer, and the scale of the environment.

[0036] In addition, the selection of the model size of the local model in each environment is assumed to be set according to the inspection image size of each environment, but is not limited thereto. For example, the larger the computer scale of each local device, the larger the model size of the local model may be set. In addition, according to the throughput required in each environment, for example, when a processing speed is required, the speed may be prioritized and the model size may be set small. In addition, when a processing speed is not required but accuracy is required, the accuracy may be prioritized and the model size may be set large. Furthermore, the model size may be determined according to the communication environment of each environment. For example, if the communication speed between the local device 10 and the server is high, the model size may be set large, and if the communication speed is low, the model size may be set small.

[0037] According to the first embodiment described above, a scalable neural network capable of adjusting the size of input data and the number of transformation layers is used as a global model present in the server. Meanwhile, in each local device, a local model including at least one transformation layer of the global model, which is adjusted according to its own computer resources and required specifications, is learned using learning data acquired in the environment of each local device. The parameters transmitted from each local device are integrated and updated as parameters of the scalable network on the server, and a second parameter set related to the updated parameters is transmitted to the local device. This makes it possible to flexibly realize federated learning even when the scale and requirements of the environment in which the local device is used are different.

[0038] Second embodiment The second embodiment differs from the first embodiment in that the server 11 also executes learning using learning data.

[0039] The server 11 according to the second embodiment will be described with reference to the block diagram of FIG. The server 11 according to the second embodiment includes a global storage unit 601, a global acquisition unit 602, a global update unit 112, a global learning unit 603, a global selection unit 113, and a global communication unit 114.

[0040] The global storage unit 601 stores global data in addition to the global model. The global data is assumed to be data that is independent of each environment and common to each environment, in other words, general and universal data. Specifically, if each environment is a hospital and the local data is medical images related to patients in the hospital, a human body model or image data disclosed in a textbook that is unrelated to the privacy of patients may be used as the global data. Note that the global model according to the second embodiment differs from the first embodiment in that it includes an output layer (not shown) in order to assume that the global model is updated by the server 11 using learning data based on global data.

[0041] The global acquisition unit 602 acquires the learning data by sampling the learning data from the global data stored in the global storage unit 601 . The global learning unit 603 uses the learning data to learn the global model. Since a general method such as supervised learning using the learning data may be used as the learning method, a detailed description thereof will be omitted here.

[0042] Next, a learning process of the learning system according to the second embodiment will be described with reference to the flowchart of FIG. The processing of the local device 10 (steps S401 to S405, step S410, and step S411) is similar to that in the first embodiment, and therefore a description thereof will be omitted here.

[0043] In step S701, the global acquisition unit 602 acquires learning data by sampling from the global data. Note that, from the viewpoint of integrating each environment, it is desirable that the data size (e.g., image size) and the number of types of target labels of the global data held on the server 11 are equal to or larger than the maximum number of local data, but it is preferable that the data size is small and the number of types of target labels is small.

[0044] In step S702, the global learning unit 603 learns a global model using the learning data and updates the parameters of the global model.

[0045] In step S703, the global learning unit 603 determines whether or not the learning of the global model is completed. If the learning of the global model is completed, the process proceeds to step S406, and if the learning of the global model is not completed, the process returns to step S701 and the same process is repeated.

[0046] After receiving the first parameter sets from each local device 10 in step S406, in step S704, the global update unit 112 updates the global model. The global model may be updated using an average or weighted average of a value obtained by integrating each of the first parameter sets and a parameter value of the global model in the latest update for the corresponding transformation layer, or a moving average of a parameter of the global model before the update, a value obtained by integrating each of the first parameter sets, and a parameter value of the global model in the latest update.

[0047] In addition, in updating the global model, by increasing the weight of the parameters related to the update of the global model calculated by the global learning unit 603, it is possible to realize stable parameter integration processing while reducing the influence specific to the local model, which is prone to distribution deviation and bias. On the other hand, by decreasing the weight of the parameters related to the update of the global model, it is possible to increase the influence of the local model, and it is possible to realize parameter integration processing in accordance with the update direction (update tendency) of the local model.

[0048] Thereafter, as in the first embodiment, a second parameter set to be transmitted to each local device 10 is selected from the updated global model, and the selected second parameter set is transmitted to each local device 10.

[0049] According to the second embodiment described above, the server also learns a global model based on global data related to superordinate concepts of local data or contents common to local data. This makes it possible to stably execute parameter integration between the local model and the global model, thereby realizing stable associative learning. Furthermore, when updating the global model, the weight of the parameter related to the update of the global model can be adjusted to reduce or increase the influence of the update direction of the local model.

[0050] (Third embodiment) The third embodiment differs from the above-described embodiments in that an example explaining the grounds for an inference is presented to a local device. The server 11 according to the third embodiment will be described with reference to the block diagram of FIG. The server 11 according to the third embodiment includes a global storage unit 601 , a global acquisition unit 602 , a global update unit 112 , a global learning unit 603 , a global selection unit 113 , a global communication unit 114 , and a case presentation unit 801 .

[0051] In response to a request from the local device 10, the example presenting unit 801 extracts global data that can be the basis for inference in the local model of the local device 10. The global communication unit 114 transmits the global data extracted by the example presentation unit 801 to the local device 10 that transmitted the request.

[0052] Next, a case example presentation process of the server according to the third embodiment will be described with reference to the flowchart of Fig. 9. Fig. 9 shows the process of the server 11 alone.

[0053] In step S901, the global communication unit 114 receives a request for data on which inference is based and first intermediate data from the local device 10. The first intermediate data is, for example, a feature map in an intermediate layer of a local model. Specifically, the local device 10 transmits a feature map that is an output of the intermediate layer when an inference result is obtained. It is preferable that the feature map is as close to the output layer as possible. The request may simply be an instruction to request the presentation of a case example, or may include the inference result in addition to the instruction. Furthermore, by receiving intermediate data from the local device 10, it may be considered that the local device 10 has made a request for the presentation of a case example.

[0054] In step S902, the example presentation unit 801 extracts second intermediate data in the global model similar to the first intermediate data. The method of extracting the second intermediate data is, for example, that the global storage unit 111 uses the global model to hold in advance a feature map of each transformation layer (intermediate layer) for each piece of learning data. The example presentation unit 801 compares the similarity between the feature map, which is the first intermediate data, and the feature map stored in the global storage unit 111, and extracts the feature map having the maximum similarity as the second intermediate data. In addition, the case presentation unit 801 may extract a first feature from the feature map, which is the first intermediate data, by a feature extraction process, and select, from the feature maps stored in the global storage unit 111, the feature map that has the highest similarity to the second feature extracted by the feature extraction process, as the second intermediate data.

[0055] In step S903, the example presentation unit 801 extracts global data, which is learning data corresponding to the second intermediate data. In step S904, the global communication unit 114 transmits at least the global data to the local device 10 that transmitted the request. The second intermediate data extracted in step S902 may be transmitted to the local device 10. In general, when comparing the global data with the feature map, the feature map is considered to have low readability. Therefore, when transmitting the second intermediate data to the local device 10, information regarding the similarity with the first intermediate data may be transmitted together. Furthermore, second intermediate data indicating a region in the second intermediate data that is particularly similar to the first intermediate data may be transmitted. The similar region may be specified, for example, by performing a pattern matching process between the first intermediate data and the second intermediate data and specifying a pixel region in which the similarity is equal to or greater than a threshold value. Furthermore, the second intermediate data is not limited to being the one feature map with the highest similarity. For example, multiple second intermediate data corresponding to multiple feature maps with similarities equal to or greater than a threshold value, together with their similarities, may be transmitted to the local device 10.

[0056] From the viewpoint of data confidentiality, the local device 10 may not transmit the feature map as the first intermediate data, but may perform a feature extraction process on the feature map in the local device 10 and transmit the generated first feature to the server 11. The server 11 may extract, as the second intermediate data, a feature map having the maximum similarity between the first feature and the second feature calculated by the above-mentioned method.

[0057] According to the third embodiment described above, the server presents at least one of the feature map and the global data in the global model to the local device as examples for the inference in the local device. This allows the presentation of examples that serve as the basis for the inference using global data that has a large amount of data and a large amount of variation, thereby achieving highly convincing explainability even when the amount of learning data and the amount of variation are small in the environment of the local device.

[0058] (Fourth embodiment) The fourth embodiment differs from the above-described embodiments in that the server determines a change in the environment in which the local device is placed.

[0059] The server 11 according to the fourth embodiment will be described with reference to the block diagram of FIG. The server 11 according to the fourth embodiment includes a global storage unit 601 , a global acquisition unit 602 , a global update unit 112 , a global learning unit 603 , a global selection unit 113 , a global communication unit 114 , and a management unit 1001 .

[0060] The management unit 1001 compares the update amount based on the parameters before and after learning of the local model (called the first update amount) with the update amount based on the parameters before and after learning of the global model (called the second update amount), and if the difference in the update tendency between the first update amount and the second update amount is equal to or greater than a threshold, it determines that the environment of the corresponding local device has changed.

[0061] Next, a determination process of the server 11 according to the fourth embodiment will be described with reference to the flowchart of Fig. 11. Fig. 11 shows the process of the server 11 alone.

[0062] In step S1101, the global communication unit 114 receives information about the first parameter set from each local device 10. In step S1102, the management unit 1001 calculates the difference between the previous first parameter set and the currently received first parameter set as the first update amount. Also, by referring to the positive or negative sign of the first update amount, the update tendency can be determined. In step S1103, the management unit 1001 calculates a second update amount for the parameters of the global model. The second update amount is, for example, the difference between the second parameter set calculated in the learning by the global learning unit 603 and the second parameter set before learning (before updating). The update tendency of the second update amount can also be determined by referring to the positive or negative.

[0063] In step S1104, the management unit 1001 compares the first update amount with the second update amount, and determines whether the difference in update tendency is equal to or greater than a threshold. For example, if the difference between the first update amount and the second update amount is equal to or greater than a threshold, it is determined that the difference in update tendency is equal to or greater than a threshold. If the difference in update tendency is equal to or greater than the threshold, the process proceeds to step S1105, and if the difference in update tendency is less than the threshold, the process ends with no change in the environment in the local model.

[0064] In step S1105, the management unit 1001 determines that the difference in update tendency occurs because a change has occurred in the environment in which the local device 10 that transmitted the first parameter set is placed. In step S1106, the management unit 1001 transmits, via the global communication unit 114, to the local device 10 in which it has been determined that an environmental change has occurred, a message indicating that the environment in which the local device is placed has changed. In addition, in the local device 10 where an environmental change has occurred, there is a possibility that it is no longer necessary to reflect the second parameter set of the global model. Therefore, the management unit 1001 may transmit a message to the local device inquiring whether or not to continue the associative learning. In addition, the process of step S1106 is not essential, and the server 11 side may simply grasp the determination result regarding the environmental change.

[0065] In the above example, it is assumed that the difference in update tendency is determined once in step S1104, but the process from step S1101 to step S1104 shown in Fig. 11 may be repeated multiple times, and if the number of times the difference in update tendency is equal to or greater than the first threshold is equal to or greater than the second threshold, it may be determined that there is an environmental change. In other words, by determining that there is an environmental change when a difference in update tendency is detected multiple times, a more stable determination process can be realized.

[0066] 11 shows an example in which the local device 10 transmits the first parameter set described in the first to third embodiments without being aware of the first update amount, and the server 11 calculates the first update amount. Without being limited to this, each local device 10 may calculate the first update amount and transmit the calculated first update amount to the server 11. For example, the local storage unit 101 may hold the first parameter set previously transmitted to the server 11, and the difference between the first parameter set and the newly calculated first parameter set may be calculated as the first update amount and transmitted to the server 11. The server 11 may continue the same process.

[0067] According to the fourth embodiment described above, the first update amount on the local device side is compared with the second update amount on the server side to determine whether the update trends of the local device and the server are different. If the update trends are different, it can be determined that a change has occurred in the environment of the local device, and maintenance of the local model can be performed.

[0068] In the above-described embodiment, it is assumed that the layer structure of the local model included in each local device 10 is fixed. However, when the performance of the local model is desired due to a change in the learning data or when the computer scale is improved due to replacement of the PC including the local device, the layer structure of the local model may be changed. For example, the local learning unit 103 of the local device 10 calculates a performance index of the learned local model, such as recall or precision, and judges whether the performance index is equal to or lower than a threshold. If the performance index is equal to or lower than the threshold, the local learning unit 103 determines that the desired performance has not been obtained, and therefore may construct a local model with an increased number of transformation layers corresponding to the scalable neural network, which is a global model. Specifically, the local learning unit 103 may calculate the performance index of the learned local model, such as recall or precision, from the local model of the local device 10C. Layer It is sufficient to scale up to a local model with an increased number of local devices 10B.

[0069] To what size of local model to scale up, for example, the local device 10 transmits a request for scaling up the local model to the server 11. The server 11 can grasp the layer configuration of each local model from the first parameter set. Therefore, the server 11 can transmit, for example, information on the layer configuration of a local model having a greater number of transformation layers than the local model that transmitted the request, and the corresponding second parameter set, to the local device 10 that transmitted the request. This allows the local device that transmitted the request to scale up the local model.

[0070] An example of the hardware configuration of the local device 10 and the server 11 according to the above embodiment is shown in a block diagram in FIG. The local device 10 and the server 11 each include a CPU (Central Processing Unit) 1201, a RAM (Random Access Memory) 1202, a ROM (Read Only Memory) 1203, a storage 1204, a display device 1205, an input device 1206, and a communication device 1207, each of which is connected by a bus.

[0071] The CPU 1201 is a processor that executes arithmetic processing and control processing according to a program. The CPU 1201 executes the processing of each part of the local device 10 and the server 11 described above in cooperation with the programs stored in the ROM 1203 and the storage 1204, etc., using a predetermined area of ​​the RAM 1202 as a working area.

[0072] The RAM 1202 is a memory such as a Synchronous Dynamic Random Access Memory (SDRAM), and functions as a working area for the CPU 1201. The ROM 1203 is a memory that stores programs and various types of information in a non-rewritable manner.

[0073] The storage 1204 is a device that writes and reads data to and from a magnetic recording medium such as a hard disk drive (HDD), a semiconductor storage medium such as a flash memory, or an optically recordable storage medium, etc. The storage 1204 writes and reads data to and from the storage medium under the control of the CPU 1201.

[0074] The display device 1205 is a display device such as an LCD (Liquid Crystal Display), etc. The display device 1205 displays various information based on a display signal from the CPU 1201.

[0075] The input device 1206 is an input device such as a mouse, a keyboard, etc. The input device 1206 receives information input by a user as an instruction signal, and outputs the instruction signal to the CPU 1201.

[0076] The communication device 1207 communicates with external devices via a network under the control of the CPU 1201 .

[0077] The instructions shown in the processing procedure shown in the above-mentioned embodiment can be executed based on a program, which is software. A general-purpose computer system can store this program in advance and obtain the same effect as the control operation of the learning system (local device and server) described above by reading this program. The instructions described in the above-mentioned embodiment are recorded as a program that can be executed by a computer on a magnetic disk (flexible disk, hard disk, etc.), an optical disk (CD-ROM, CD-R, CD-RW, DVD-ROM, DVD±R, DVD±RW, Blu-ray (registered trademark) Disc, etc.), a semiconductor memory, or a recording medium similar thereto. The recording medium may be in any storage format as long as it is readable by a computer or an embedded system. The computer can realize the same operation as the control of the learning system (local device and server) of the above-mentioned embodiment by reading the program from the recording medium and having the CPU execute the instructions described in the program based on this program. Of course, when the computer acquires or reads the program, it may acquire or read it through a network. In addition, an OS (operating system), database management software, network, or other MW (middleware) running on a computer may execute some of the processes required to realize this embodiment based on instructions from a program installed on the computer or embedded system from a recording medium. Furthermore, the recording medium in this embodiment is not limited to a medium independent of a computer or an embedded system, but also includes a recording medium that stores or temporarily stores a program downloaded via a LAN, the Internet, or the like. Furthermore, the number of recording media is not limited to one, and a case where the processing in this embodiment is executed from a plurality of media is also included in the recording media in this embodiment, and the media may have any configuration.

[0078] The computer or embedded system in this embodiment is for executing each process in this embodiment based on a program stored in a recording medium, and may be configured as any one of a device such as a personal computer or a microcomputer, or a system in which multiple devices are connected to a network. In addition, the computer in this embodiment is not limited to a personal computer but also includes an arithmetic processing device, a microcomputer, etc. included in information processing equipment, and is a general term for equipment or devices that can realize the functions in this embodiment by a program.

[0079] Although several embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope and spirit of the invention, and are included in the scope of the invention and its equivalents described in the claims. [Explanation of symbols]

[0080] 1...learning system, 10, 10A to 10C...local device, 11...server, 50...global model, 51, 51A to 51C...local data, 52, 52A to 52C...local model, 53A to 53C...output layer, 101...local storage unit, 102...local acquisition unit, 103...local learning unit, 104...local selection unit, 105...local communication unit, 111, 601...global storage unit, 112...global update unit, 113...global selection unit, 114...global communication unit, 501 to 503...feature map group, 602...global acquisition unit, 603...global learning unit, 801...example presentation unit, 1001...management unit, 1201...CPU, 1202...RAM, 1203...ROM, 1204...storage, 1205...display device, 1206...input device, 1207...communication device.

Claims

1. A learning system including a plurality of local devices and a server, Each of the plurality of local devices comprises: A learning unit that learns a local model using local data; A selection unit that selects a first parameter set from a plurality of parameters related to the local model; A communication unit that transmits the first parameter set to the server, at least one of the plurality of local devices has a model size of the local model that is different from other local devices in accordance with a resolution of input data; The server, an update unit that integrates the first parameter sets acquired from the plurality of local devices and updates a global model; a selection unit that selects a second parameter set corresponding to each of the first parameter sets from a plurality of parameters related to the global model; a communication unit configured to transmit the second parameter set to a local device that transmitted the corresponding first parameter set; A learning system comprising:

2. At least one of the plurality of local devices has a different model structure of the local model; The learning system of claim 1 , wherein each of the local models included in the plurality of local devices corresponds to a layer structure of at least a portion of the global model.

3. The learning system according to claim 2 , wherein the model structure is determined by at least one of a computer scale of the local device on which the local model is installed, a size of the local data, and a processing speed required in the local device.

4. The learning system according to claim 1 , wherein the global model is equal to or larger than the maximum size of the local models used by the multiple local devices.

5. The server, A learning unit that learns the global model using global data, The learning system according to claim 1 , wherein the update unit updates the global model using a plurality of parameters related to a trained global model and each of the first parameter sets.

6. each of the local model and the global model includes one or more hidden layers; The server further includes a case presentation unit, The communication unit receives, from a first local device, first intermediate data that is output data from an intermediate layer of the local model; the example presentation unit extracts second intermediate data which is output data from an intermediate layer of the global model and is similar to the first intermediate data, and extracts global data corresponding to the second intermediate data; The learning system according to claim 1 , wherein the communication unit transmits global data corresponding to the second intermediate data to the first local device.

7. The learning system according to claim 6 , wherein the communication unit transmits the second intermediate data to the first local device.

8. The server, 8. The learning system according to claim 1, further comprising a management unit that detects a difference in update trends between the local model and the global model based on a first update amount based on parameters of the local model before and after learning and a second update amount related to parameters of the global model before and after updating, and determines that an environment in which the local model is placed has changed if the difference is equal to or greater than a threshold value.

9. The learning system according to claim 1 , wherein the second parameter set is a parameter set for a model structure of a global model that corresponds to a model structure of the local model to which the parameters selected as the first parameter set are applied.

10. A learning method for a learning system including a plurality of local devices and a server, comprising: Each of the plurality of local devices comprises: Train a local model using the local data, Selecting a first set of parameters from a plurality of parameters for the local model; Sending the first parameter set to the server; at least one of the plurality of local devices has a model size of the local model that is different from other local devices in accordance with a resolution of input data; The server, Integrating the first parameter sets obtained from the plurality of local devices to update a global model; selecting a second parameter set corresponding to each of the first parameter sets from a plurality of parameters related to the global model; transmitting the second parameter set to a local device that transmitted the corresponding first parameter set.

Citation Information

Patent Citations

  • Heterogeneous edge device, method, and system for machine learning

    JP2020123379A

  • Federated learning using heterogeneous model types and architectures

    WO2021064737A1

  • Federated mixture models

    WO2021119601A1