Joint learning with training metadata

By using local validation data to calculate evaluation metrics and send training metadata in federated learning, the problem of difficulty in tracking global model performance is solved and model performance and resource utilization efficiency are improved.

CN118765402APending Publication Date: 2024-10-11QUALCOMM INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380023725.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-01-12
Filing Date
2023-01-13
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing joint learning methods cannot effectively track the performance of the global model during training, resulting in the possibility of stopping training too early or too late, resulting in resource waste and poor model performance.

Method used

Evaluation metrics are calculated by using local validation data on the federated learning client, and these metrics are sent to the server as training metadata synchronously or asynchronously with the model update data. After aggregation, they are used to determine the training quality of the global model and the timing to stop training.

Benefits of technology

The joint learning process is improved, resources are saved, the performance and classification accuracy of the model are improved, and the optimization and generalization capabilities of the model are ensured during training.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118765402A_ABST
    Figure CN118765402A_ABST
Patent Text Reader

Abstract

Certain aspects of the present disclosure provide techniques and apparatus for performing joint exercises. One example method generally includes sending model update data to a server, generating training metadata using a trained local machine learning model and local validation data, and sending the training metadata to the server. The trained local machine learning model generally incorporates model update data and global model data defining a global machine learning model, and the training metadata generally includes data regarding the trained local machine learning model for determining when to abort joint learning operations for training the global machine learning model. Another example method generally includes sending a global model to a federated learning client device and receiving training metadata from the federated learning client device.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to U.S. non-provisional application No. 18 / 153,687, filed on January 12, 2023, which claims the benefit and priority of U.S. Provisional Patent Application No. 63 / 268,751, entitled “Federated Learning with Training Metadata,” filed on March 1, 2022, both of which are assigned to the assignee of this application and the contents of which are hereby incorporated by reference in their entirety.

[0003] introduction

[0004] Various aspects of the present disclosure relate to using federated learning techniques to train and update machine learning models.

[0005] Machine learning is generally the process of producing a trained model (e.g., an artificial neural network, a tree (such as a decision tree or series of decision trees in a gradient boosting model), or other structure) that represents a generalized fit to a training data set. Applying the trained model to new data produces inferences, which can be used to gain insights about the new data and trigger the execution of different actions based on these insights.

[0006] As the use of machine learning (sometimes referred to as artificial intelligence tasks) has proliferated in various technology fields, the need to more efficiently process machine learning model data has emerged. For example, "edge processing" devices (such as mobile devices, always-on devices, Internet of Things (IoT) devices, etc.) must balance the implementation of advanced machine learning capabilities with various interrelated design constraints (such as package size, native (local) computing power, power storage and use, data communication capabilities and costs, memory size, heat dissipation, etc.).

[0007] Federated learning is a distributed machine learning framework that enables several clients (such as edge processing devices) to collaboratively train a shared global model without transmitting their local data to a remote server. Generally speaking, a central server coordinates the federated learning process, and each participating client only communicates model parameter information with the central server while keeping its local data private. This distributed approach helps address the problem of client device capacity limitations (because training is federated) and also alleviates data privacy issues in many cases.

[0008] At least some commonly used federated learning approaches are unable to track actual global model performance during training because the central server does not have access to the training data used by the federated clients to test the global model. This can lead to additional, unnecessary training epochs that waste resources and often lack understanding of the actual performance of the global model (e.g., whether the model generalizes appropriately across the data, or whether the model is underfitting or overfitting relative to the training dataset). Summary of the invention

[0009] Certain aspects provide a computer-implemented method comprising: sending model update data to a server; generating training metadata using a trained local model and local validation data, wherein: the trained local machine learning model incorporates the model update data and global model data defining a global machine learning model, and the training metadata includes data about the trained local machine learning model for determining when to terminate a federated learning operation for training a global machine learning model; and sending the training metadata to the server.

[0010] A further aspect provides a computer-implemented method comprising: receiving model update data from a federated learning client; and receiving training metadata from the federated learning client, wherein the training metadata includes data about a trained local machine learning model that incorporates the model update data at the federated learning client for determining when to terminate a federated learning operation for training a global machine learning model.

[0011] A further aspect provides a computer-implemented method comprising: generating training metadata using a global machine learning model and local validation data; and sending the training metadata to a server, wherein the training metadata includes data about the global machine learning model for determining when to terminate a federated learning operation for training the global machine learning model.

[0012] A further aspect provides a computer-implemented method comprising: sending a global machine learning model to a federated learning client device; and receiving training metadata from the federated learning client device, wherein the training metadata includes data about the trained local machine learning model for determining when to terminate a federated learning operation for training the global machine learning model.

[0013] Other aspects provide: a processing system configured to perform the aforementioned methods and those described herein; a non-transitory computer-readable medium comprising instructions that, when executed by a processor of the processing system, cause the processing system to perform the aforementioned methods and those described herein; a computer program product embodied on a computer-readable storage medium comprising code for performing the aforementioned methods and those further described herein; and a processing system comprising means for performing the aforementioned methods and those further described herein.

[0014] The following description and related annexed drawings set forth in detail certain illustrative features of the one or more aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The accompanying drawings depict certain aspects of the disclosure and therefore are not to be considered limiting of the scope of the disclosure.

[0016] Figure 1 Depicted is an example federated learning architecture.

[0017] Figure 2 Depicted are examples of generating training metadata during federated learning in accordance with aspects of the present disclosure.

[0018] Figure 3 Depicted is an example process for pipelined federated learning in generating training metadata in accordance with aspects of the present disclosure.

[0019] Figure 4 Depicted are example processes for generating training metadata using a client device performing model validation in accordance with aspects of the present disclosure.

[0020] Figure 5A and Figure 5B Depicted are example methods for performing federated learning using training metadata in accordance with aspects of the present disclosure.

[0021] Fig. 6A and Figure 6B An example processing system is depicted that may be configured to perform the methods described herein.

[0022] To facilitate understanding, identical reference numerals have been used, where possible, to designate identical elements that are common to the figures. It is contemplated that elements and features of one aspect may be beneficially incorporated in other aspects without further recitation. DETAILED DESCRIPTION

[0023] Aspects of the present disclosure provide apparatus, methods, processing systems, and non-transitory computer-readable media for generating model update metadata during federated learning.

[0024] In centralized machine learning, where a single computing device is used to train a machine learning model, the progress of training the machine learning model is monitored by periodically measuring evaluation metrics such as training loss and task accuracy (e.g., classification accuracy). However, in federated learning, where model training is performed by a federated learning client using local data that is not shared with a training coordinator (e.g., a federated learning server) or other centralized systems, no data is available at the training coordinator, and therefore common training metrics such as training loss and task accuracy cannot be calculated at the training coordinator. Although these training metrics can be calculated by the federated learning client, such local metrics cannot be used alone to determine the quality of training of the global model and / or determine when to stop training when training is available. As such, training may end too quickly, resulting in a suboptimal model (e.g., a model that overfits or underfits the training data and therefore fails to generalize the training data into a usable model that generates usable inferences for data different from the training data), or training may continue too long, resulting in a loss of resources (e.g., unnecessary use of power, computing resources, networking bandwidth, etc.).

[0025] In order to allow the use of federated learning techniques that meet various inference performance characteristics (e.g., classification accuracy) to train machine learning models, the various aspects described herein include sending local training metrics from a federated learning client to a training coordinator so that the metrics can be aggregated and a view of the global model training quality can be provided. In some aspects, local evaluation metrics are calculated by the federated learning client using validation data on the same device where the local model is trained. Subsequently, these local evaluation metrics may be sent to the training coordinator by the federated learning client as training metadata along with the model update data (e.g., synchronously). In other aspects, the training metadata may be sent separately from the model update data based on availability. In various aspects, local evaluation metrics may be aggregated (e.g., averaged) by the training coordinator to produce evaluation metrics that provide an overall measure of the training quality of the global model, which improves the determination of successful federated learning.

[0026] During the training process, local metadata (such as local training loss, local training accuracy, and local validation accuracy) is reported by each device back to the coordinator server.

[0027] The various aspects described herein thus improve the federated learning process and the resulting models generated by the federated learning. For example, during training, the aggregated local evaluation metrics allow for improved determination of global model performance and improved control of when to stop the federated learning process, thereby saving important resources that may otherwise be wasted due to executing unnecessary training epochs of the global model. Further, due to better control of the training process using the aggregated local evaluation metrics, the resulting models generally can have better performance (e.g., classification accuracy or other inference performance). Such models can be used for a wide variety of machine learning model (or artificial intelligence) tasks, such as (but not limited to) image classification based on local image data, sound classification based on local sound data, and authentication based on local biometric data. It is worth noting that these are just a few examples, and other examples are also possible.

[0028] A brief overview of federated learning

[0029] Figure 1 An example federated learning architecture 100 is depicted.

[0030] In this example, client devices 102A-C (which may be collectively referred to as client devices 102) each have a local data store 104A-C, respectively, storing local data, and a local machine learning model instance 106A-C, respectively. For example, client device 102A is accompanied by an initial machine learning model instance 106A (or receives the initial machine learning model instance 106A from, for example, a federated learning server 108). Each of client devices 102A-C may use its respective machine learning model instance (106A-C) for some useful task (such as processing local data 104A-C), and further perform local training and optimization of its respective machine learning model instance (referred to as a local machine learning model instance).

[0031] For example, client device 102A may use its local machine learning model 106A to perform facial recognition on pictures stored as data 104A on client device 102A. Because these pictures may be considered private, client device 102A may not share its picture data with federated learning server 108, or may be blocked from sharing its picture data with federated learning server 108. However, client device 102A may wish or be permitted to share its local model updates 107A, such as updates to model weights and parameters, with federated learning server 108. Similarly, client devices 102B and 102C may use their respective local machine learning model instances 106B and 106C in the same manner, and also share their respective local model updates 107B and 107C with federated learning server 108, without sharing the underlying data used to generate the local model updates (e.g., local data 104B and local data 104C, respectively).

[0032] The federated learning server 108 (alternatively referred to as a global model coordinator or central server) can use all of the local model updates 107 to determine a global (or consensus) model update, which can then be distributed to the client devices 102A-C. In this way, machine learning can take advantage of the client devices 102A-C without centralizing training data and processing.

[0033] Thus, the federated learning architecture 100 allows for decentralized deployment and training of machine learning models.

[0034] In some aspects, federated learning can be implemented using the FedAvg algorithm. In federated learning using the FedAvg algorithm, a model can be trained using multiple communication rounds. In each communication round t performed when training a model using the FedAvg algorithm, a server (e.g., Figure 1 The federated learning server 108 in the training sends a message to all S clients participating in the training (e.g., Figure 1 At least a subset S' of the client devices 102A, 102B and / or 102C in the example sends the current model parameters w (t) Each client s in this subset updates the model w provided by the server (t) (e.g., via stochastic gradient descent) to fit a loss function of size N using a loss function such as given below s The local dataset d s (For example, Figure 1 Data in 104A, 104B and / or 104C):

[0035]

[0036] Where L s represents the loss to be minimized (or at least reduced) when training the model, and d si represents the local data d of the i-th client device in the subset S' of client devices participating in the training model s .

[0037] After optimization of E epochs of the local dataset, the client-side optimization procedure results in an updated model The client is based on the updated model The update to the global model is calculated according to the following formula:

[0038]

[0039] And communicate the update to the server. Generally refers to model parameters generated based on training the model using a local dataset (e.g., updating the model The model parameters w provided to the client device before the model is trained using local data at the client device (t) ). The server then aggregates the client-specific updates according to the following formula to receive a new global model at the next communication round t+1:

[0040]

[0041] This server-side averaging scheme will The server-side model can be interpreted as a "gradient" and implement more advanced update schemes such as adaptive momentum (e.g., Adam algorithm). However, in other aspects, federated learning can be implemented using one or more other suitable algorithms.

[0042] Training metadata computation in federated learning

[0043] Figure 2 An example of generating training metadata during federated learning conducted between a federated learning server 108 and a federated learning client device 102 (e.g., client devices 102A-102C) is depicted. In general, a federated learning server can be any type of server or other computing device configured to manage training of a global model using remote training resources, such as Figure 1 Similarly, the federated learning client device 102 is generally a device configured to receive data from the federated learning server and perform local training of the model based on the data using local data, such as about Figure 1 Generally described.

[0044] In the depicted example, the federated learning server 108 sends global model data 203 to the federated learning client device 102. The global model data 203 may include an entire global model (e.g., all parameters for a machine learning model, such as weights, biases, architecture, etc.) or a collection of model updates that allow the federated learning client device 102 to update an existing model.

[0045] The federated learning client device 102 may use the received global model data 203 to build or update the local model 106, and thereafter perform local training using the training data 104. For example, the training data 104 may be any data stored on the federated learning client device 102 or otherwise directly accessible to the federated learning client device 102. The result of the local training is training metadata 204. In some aspects, the training metadata 204 may include (but is not limited to) one or more training loss values ​​(e.g., generated by a loss function during training) and / or one or more model performance metrics, such as (but not limited to) accuracy, true positive rate (TPR), false positive rate (FPR), receiver operating characteristic (ROC) curve, area under the ROC curve (AUC) curve, false recognition rate (FRR), and others.

[0046] The federated learning client device 102 may also perform validation testing using the validation data 206 to generate training metadata 208, which may include one or more model performance metrics, such as those mentioned above with reference to the training metadata 204. In some aspects, the validation data 206 may be local data stored at the federated learning client device 102, which is used to validate the performance of the local model 106. In general, the validation data 206 may include known labels or classifications associated with each of the multiple input data sets, and the task of the local model 106 is to generate inferences that match the known labels or classifications of the given input data set from the multiple data sets. For example, an inference performance metric (such as accuracy, false acceptance rate, false rejection rate, etc.) may be obtained based on the difference between the labels assigned to the input data sets in the input. Other inference performance metrics (such as inference time, etc.) may be measured based on performing inference on the validation data 206 before using the local model 106 to process subsequent inferences on another data set in the validation data 206.

[0047] The federated learning client device 102 may then send any model updates 107 based on local training and training metadata 210 (e.g., 204 and / or 208) based on local training and / or local validation to the federated learning server 108. The federated learning server 108 may then use a model update aggregator 212 to aggregate model updates from multiple federated learning client devices (e.g., one or more federated learning client devices 102). The federated learning server 108 may then update the global model 202 accordingly.

[0048] Further, the federated learning server 108 may use the metadata aggregator 214 to aggregate any training metadata from multiple federated learning client devices (e.g., one or more federated learning client devices 102). The aggregated training metadata may then be provided to the training controller 216 to determine, for example, the current performance of the global model based on the aggregated metadata. Further, the training controller 216 may determine whether to continue training based on the aggregated metadata. For example, if the aggregated metadata shows that the global model is performing at or above a performance threshold, the training controller 216 may suspend the federated learning, thereby freeing up computing resources and saving networking resources. In some aspects, the server 108 may not need to update the global model 202 with a model update associated with the training metadata. Conversely, if the aggregated metadata shows that the global model is performing below a performance threshold, the training controller 216 may continue the federated training, thereby ensuring that the final global model meets the performance target.

[0049] In some aspects, the training controller 216 may decide to continue or abort the federated learning based on the gradient of a performance metric, such as (but not limited to) those described above. In this way, when the performance of the global model 202 begins to converge, training can be interrupted without performing additional training epochs that barely increase the performance of the final global model.

[0050] It is worth noting that although shown at 210 as synchronous transmission of model updates and training metadata, as described with respect to Figure 3 As described, such transmissions may be asynchronous, such as sending the model update data first and subsequently sending the training metadata as the training metadata becomes available.

[0051] Pipeline Federated Learning with Training Metadata Generation

[0052] Figure 3 An example process 300 for pipelined federated learning while generating training metadata is depicted.

[0053] Because it takes time to generate certain training metadata (such as validation data) using a local validation dataset, it may be beneficial to send model update data once local training is complete, and then subsequently send training metadata once that metadata is generated (e.g., based on local training and / or local validation). In this way, the federated learning server 108 can increase the speed at which the server pushes model updates to federated learning client devices (e.g., one or more federated learning client devices 102) without having to wait for training metadata.

[0054] Accordingly, if Figure 3As depicted, the federated learning server 108 may initially send global model data (eg, a model or an update to a model) to the federated learning client device 102 at transmission 302. In this example, the global model data may be indexed as t=0, eg, referring to the first training iteration.

[0055] At block 304 , the federated learning client device 102 trains a local model based on the global model data received at transmission 302 and using the local data.

[0056] At transmission 306, the federated learning client device 102 sends the model update data to the federated learning server 108. In this example, the model update data is indexed as t=0, referring to the first training iteration. Because the federated learning client device 102 has not yet performed model validation after training at block 304 at this point, there is no local validation-based training metadata (e.g., Figure 2 However, at this point there may be metadata based on local training (e.g., Figure 2 training metadata 204 in ).

[0057] In this example, the federated learning client device 102 waits to send training metadata to the federated learning server 108 until all training metadata based on the global model data indexed at t=0 is available. Thus, in some aspects, the metadata update at transmission 306 may be depicted as "empty". This "empty" indication assumes a predefined data exchange format (e.g., a message format) configured to include both model update data and training metadata, such that the metadata update is marked as empty because no training metadata is sent. However, in other situations, this may not be necessary. That is, the model update and training metadata may be sent in an unstructured data format.

[0058] At block 308, the federated learning client device 102 performs model validation using the local validation data. The result of the validation data may be training metadata, such as Figure 2 The training metadata 208 in .

[0059] At transmission 310, the federated learning server 108 sends the global model data (indexed as t = 1), and thus represents the next training iteration, which in this example begins while the federated learning client device 102 is still performing validation on the global model indexed as t = 0. Thus, the pipeline creates an interleaving of model updates, model validation, and training metadata generation and exchange during the entire federated learning process.

[0060] At block 312 , the federated learning client device 102 trains its local model based on the global model data received at transmission 310 and the local training data at the federated learning client device 102 .

[0061] At block 314, federated learning client device 102 sends a model update based on the global model data received at transmission 310 (indexed as t=1), and sends training metadata based on the global model data received at transmission 302 (indexed as t=0). Thus, the sending of model update data and training metadata may be described as asynchronous because, in this example, federated learning client device 102 sends model update data at one time and sends training metadata associated with the model update at a second time that is later than the first time.

[0062] At block 316 , the federated learning client device 102 performs model validation using the local validation data. In this case, model validation is performed based on the global model data received at transmission 310 (indexed as t=1).

[0063] Process 300 may continue iteratively until the federated learning server 108 determines to interrupt training (eg, when a performance metric of the global model converges, when model performance (eg, inference accuracy) reaches a threshold level, etc.).

[0064] In this example, federated learning client device 102 sends a model update based on the global model data received at transmission 310 (indexed as t=X), and sends training metadata based on the global model data received at transmission 302 (indexed as t=X-1). In other aspects, the index difference may separate more than one transmission.

[0065] Figure 4 An example process 400 for generating training metadata using a client device 102A, 102B performing model validation is described. In this example, the client device may generate training metadata based on local data, but may not participate in training a machine learning model (e.g., generating updates to the machine learning model using local data and providing such updates to a federated learning server for aggregation or inclusion into a global model).

[0066] Specifically, in this example, the federated learning server 108 sends global model data 404 defining the current state of the global model 402 (e.g., the global model 202) to the client devices 102A and 102B. Each of the client devices 102A and 102B performs local validation using local models 406A and 406B and local validation data 407A and 407B, respectively. The client devices 102A and 102B send the resulting training metadata 408A and 408B generated based on the local validation of the global model 402 to the federated learning server 108. The federated learning server 108 may then aggregate the training metadata via a metadata aggregator 414 (e.g., the metadata aggregator 214) and provide the aggregated training metadata to a training controller 416 (e.g., the training controller 216) so that the federated learning server 108 and / or the training controller 416 can decide whether to continue training.

[0067] It is worth noting that in this example, client devices 102A and 102B are only used for local validation and generation of training metadata (e.g., model performance metrics, such as those discussed above) based on the validation. However, client devices 102A and 102B may have previously or may in the future participate in local training as well as local validation, such as with respect to Figure 2 In the described example, the benefit of using only authenticated client devices for federated learning is to increase the speed of testing the global model 402 on a wide range of client device specific data sets. Figure 3 As discussed, because verification may take additional time, which delays the transmission of the training metadata to the federated learning server 108, using only verification client devices may reduce the latency of generating the training metadata.

[0068] Method for performing federated learning using training metadata

[0069] Figure 5A An example method 500 for performing federated learning using training metadata is described. In some aspects, the method 500 may be performed by a federated learning client device, as described above with respect to Figure 1-4 as described.

[0070] At block 502, the client device may send model update data to the server, such as, but not limited to, Figure 2 and Figure 3 Depicted and described.

[0071] Method 500 then proceeds to block 504, where training metadata is generated by the client device using the trained local machine learning model and the local validation data, such as (but not limited to) about Figure 2 and Figure 3Depicted and described. In some aspects, the trained local machine learning model incorporates model update data and global model data defining a global machine learning model. The training metadata may generally include data about the trained local machine learning model for determining when to terminate a federated learning operation for training a global machine learning model.

[0072] Method 500 then proceeds to block 506, where training metadata is sent by the client device to the server, such as (but not limited to) information about Figure 2-4 as described.

[0073] In some aspects, method 500 further includes receiving, by the client device from the server, global model data, such as (but not limited to) Figure 2 and Figure 3 as described.

[0074] In some aspects, method 500 further includes generating, by the client device, a local machine learning model based on the global model data, such as (but not limited to) Figure 2 and Figure 3 as described.

[0075] In some aspects, method 500 further includes training, by the client device, a local machine learning model using the local training data to generate model update data, such as (but not limited to) regarding Figure 2 and Figure 3 as described.

[0076] In some aspects, model update data and training metadata are sent synchronously by the client device to the server, such as (but not limited to) Figure 2 In other aspects, model update data and training metadata are sent asynchronously by the client device to the server, such as (but not limited to) Figure 3 as described.

[0077] In some aspects, updated global model data may be received by the client device from the server prior to sending training metadata to the server, such as, but not limited to, Figure 3 as described.

[0078] In some aspects, the training metadata includes one or more of a first accuracy value based on testing the trained local model with the local training data or a loss value associated with training the local model based on the local training data. The training metadata generally includes a second accuracy value associated with testing the trained local model using the local validation data.

[0079] In some aspects, method 500 further includes receiving, by the client device, updated global model data from the server, and processing local data using the updated global machine learning model based on the updated global model to perform a task. In some aspects, the task includes one of: image classification based on local image data; sound classification based on local sound data; or authentication based on local biometric data.

[0080] Although not in Figure 5A , but in some aspects, such as when the federated learning client device performs only local authentication, block 502 may be omitted, such as (but not limited to) regarding Figure 4 as described.

[0081] Notice, Figure 5A This is merely one example of a method, and other methods including fewer, additional, or alternative operations may also be consistent with the present disclosure.

[0082] Figure 5B An example method 550 for performing federated learning using training metadata is described. In some aspects, the method 500 may be performed by a federated learning server, as described above (but not limited to) with respect to Figure 1-4 as described.

[0083] At block 552, the server may receive model update data from the federated learning client, such as (but not limited to) Figure 2 and Figure 3 Depicted and described.

[0084] Method 550 then proceeds to block 554, where training metadata is received by the server from the federated learning client, such as (but not limited to) information about Figure 2-4 Depicted and described. The training metadata generally includes data about a trained local machine learning model that incorporates model update data at a federated learning client. The training metadata generally can be used to determine when to terminate a federated learning operation for training a global machine learning model.

[0085] In some aspects, the model update data and the training metadata are received synchronously by the server. In other aspects, the model update data and the training metadata are received asynchronously by the server.

[0086] In some aspects, method 550 further includes sending, by the server to the federated learning client, data defining the global machine learning model, such as (but not limited to) Figure 2 and Figure 3 Depicted and described.

[0087] In some aspects, method 550 further includes updating, by the server, the global machine learning model based at least in part on the model update data from the federated learning client, such as (but not limited to) Figure 2 and Figure 3 Depicted and described.

[0088] In some aspects, method 550 further includes sending, by the server to the federated learning client prior to receiving the training metadata from the federated learning client, data defining the updated global machine learning model, such as (but not limited to) Figure 3 Depicted and described.

[0089] In some aspects, the training metadata includes one or more of a first accuracy value of a federated learning client local model trained using the federated learning client local training data, or a loss value associated with a federated learning client local model based on the federated learning client local training data. In some aspects, the training metadata generally includes a second accuracy value of the federated learning client local model tested using the federated learning client local validation data.

[0090] In some aspects, method 550 further includes determining, by the server, to continue or suspend training of the global model based at least in part on the training metadata, such as (but not limited to) regarding Figure 2 and 3 as described.

[0091] In some aspects, method 550 further includes aggregating, by the server, the training metadata received from the federated learning client with additional training metadata received from one or more other federated learning clients; and determining, by the server at least in part based on the aggregated training metadata, to continue or suspend training of the global machine learning model, such as (but not limited to) regarding Figure 2 and 3 as described.

[0092] Although not in Figure 5B , but in some aspects, such as when receiving training metadata from a federated learning client device that performs only local validation, block 552 may be omitted, as described with respect to Figure 4 as described.

[0093] Notice, Figure 5B This is merely one example of a method, and other methods including fewer, additional, or alternative operations may also be consistent with the present disclosure.

[0094] Example processing system for federated learning with metadata generation

[0095] Fig. 6A Describes methods for performing (such as described herein, for example, with respect to Figure 1-5AThe processing system 600 may be a federated learning client device (such as Figure 2-4 An example of a federated learning client device 102 in FIG.

[0096] Processing system 600 includes a central processing unit (CPU) 602, which in some examples may be a multi-core CPU. Instructions executed at CPU 602 may be loaded, for example, from a program memory associated with CPU 602, or may be loaded from memory 624.

[0097] Processing system 600 also includes additional processing components tailored for specific functions, such as a graphics processing unit (GPU) 604 , a digital signal processor (DSP) 606 , a neural processing unit (NPU) 608 , a multimedia processing unit 610 , and wireless connectivity components 612 .

[0098] An NPU, such as NPU 608, is generally a dedicated circuit configured to implement control and arithmetic logic for executing machine learning algorithms, such as algorithms for processing artificial neural networks (ANNs), deep neural networks (DNNs), random forests (RFs), etc. An NPU is sometimes referred to interchangeably as a neural signal processor (NSP), a tensor processing unit (TPU), a neural network processor (NNP), an intelligence processing unit (IPU), a vision processing unit (VPU), or a graphics processing unit.

[0099] An NPU, such as NPU 608, is configured to accelerate the execution of common machine learning tasks, such as image classification, machine translation, object detection, and various other predictive models. In some examples, multiple NPUs may be instantiated on a single chip, such as a system on a chip (SoC), while in other examples, the NPU may be part of a dedicated neural network accelerator.

[0100] The NPU can be optimized for training or inference, or in some cases configured to balance performance between the two. For NPUs that can perform both training and inference, the two tasks can generally still be performed independently.

[0101] NPUs designed to accelerate training are generally configured to accelerate the optimization of new models, which is a highly computationally intensive operation that involves inputting an existing data set (generally labeled or tagged), iterating on the data set, and then adjusting model parameters (such as weights and biases) to improve model performance. Generally, optimization based on error prediction involves passing back through the layers of the model and determining gradients to reduce prediction errors. In some cases, the NPU can be configured to perform the joint learning methods described herein.

[0102] NPUs designed to accelerate inference are generally configured to operate on complete models. Such NPUs can thus be configured to input new data segments and quickly process the new segments through the trained model to generate model outputs (e.g., inferences).

[0103] In one implementation, the NPU 608 is part of one or more of the CPU 602 , the GPU 604 , and / or the DSP 606 .

[0104] In some examples, wireless connectivity component 612 may include, for example, subcomponents for third generation (3G) connectivity, fourth generation (4G) connectivity (e.g., 4G LTE), fifth generation connectivity (e.g., 5G or NR), Wi-Fi connectivity, Bluetooth connectivity, and other wireless data transmission standards. Wireless connectivity component 612 is further connected to one or more antennas 614. In some examples, wireless connectivity component 612 allows for federated learning according to the methods described herein to be performed over a variety of wireless data connections, including cellular connections.

[0105] The processing system 600 may also include one or more sensor processing units 616 associated with any manner of sensors, one or more image signal processors (ISPs) 618 associated with any manner of image sensors, and / or a navigation component 620, which may include a satellite-based positioning system component (e.g., GPS or GLONASS) and an inertial positioning system component.

[0106] The processing system 600 may also include one or more input and / or output devices 622, such as a screen, a touch-sensitive surface (including a touch-sensitive display), physical buttons, speakers, microphones, and the like.

[0107] In some examples, one or more processors of processing system 600 may be based on the ARM or RISC-V instruction set.

[0108] The processing system 600 further includes a memory 624, which represents one or more static and / or dynamic memories, such as dynamic random access memory, flash-based static memory, etc. In this example, the memory 624 includes computer-executable components that can be executed by one or more of the aforementioned processors of the processing system 600.

[0109] Specifically, in this example, the memory 624 includes a receiving component 624A, a model training component 624B, a sending component 624C, and a model validation component 624D. The depicted components, as well as other components not depicted, may be configured to perform various aspects of the methods described herein.

[0110] In general, the processing system 600 and / or its components may be configured to perform the methods described herein.

[0111] It is worth noting that in other cases, aspects of the processing system 600 may be omitted or added. For example, in other aspects, the multimedia processing unit 610, the wireless connectivity component 612, the sensor processing unit 616, the ISP 618, and / or the navigation component 620 may be omitted. Further, aspects of the processing system 600 may be distributed among multiple devices.

[0112] Figure 6B Describes methods for performing (such as described herein, for example, with respect to Figure 1-4 and Figure 5B Another example processing system 650 for federated learning described herein. The processing system 650 may be a federated learning server (such as Figure 2-4 An example of a federated learning server 108 in .

[0113] In general, CPU 652, GPU 654, NPU 658, and I / O 672 are as described above with respect to Fig. 6A . The same elements as in are described herein.

[0114] The processing system 650 further includes a memory 674 , which represents one or more static and / or dynamic memories, such as dynamic random access memory, flash-based static memory, etc. In this example, the memory 674 includes computer-executable components that are executable by one or more of the aforementioned processors of the processing system 650 .

[0115] Specifically, in this example, memory 674 includes a receiving component 674A, a model updating component 674B, a sending component 674C, and an aggregation component 674D. The depicted components, as well as other components not depicted, may be configured to perform various aspects of the methods described herein.

[0116] In general, the processing system 650 and / or its components may be configured to perform the methods described herein.

[0117] It is worth noting that in other cases, aspects of the processing system 650 may be omitted or added. In addition, aspects of the processing system 650 may be distributed among multiple devices, such as in a cloud-based service. For the sake of clarity and brevity, the components depicted are limited.

[0118] Sample Clauses

[0119] Implementation details of various aspects of the present disclosure are described in the following numbered clauses:

[0120] Clause 1: A computer-implemented method comprising: sending model update data to a server; generating training metadata using a trained local machine learning model and local validation data, wherein: the trained local machine learning model incorporates the model update data and global model data defining a global machine learning model, and the training metadata includes data about the trained local machine learning model for determining when to terminate a federated learning operation for training a global machine learning model; and sending the training metadata to the server.

[0121] Clause 2: The method of Clause 1 further comprises: receiving global model data from a server; generating a local machine learning model based on the global model data; and training the local machine learning model using local training data to generate model update data.

[0122] Clause 3: A method as in clause 2, wherein the model update data and the training metadata are sent synchronously to the server.

[0123] Clause 4: The method of clause 2, wherein the model update data and the training metadata are sent to the server asynchronously.

[0124] Clause 5: The method of clause 2, further comprising receiving updated global model data from the server before sending the training metadata to the server.

[0125] Clause 6: A method as in any of clauses 2-5, wherein: the training metadata includes one or more of the following: a first accuracy value based on testing the trained local model using local training data; and a loss value associated with training the local model based on the local training data, and the training metadata includes a second accuracy value associated with testing the trained local model using local validation data.

[0126] Clause 7: The method of any one of clauses 2-6 further comprises: receiving updated global model data from a server; and processing local data using an updated global machine learning model based on the updated global model to perform a task.

[0127] Clause 8: The method of clause 7, wherein the task comprises one of: image classification based on local image data; voice classification based on local voice data; or authentication based on local biometric data.

[0128] Clause 9: A computer-implemented method comprising: receiving model update data from a federated learning client; and receiving training metadata from the federated learning client, wherein the training metadata includes data about a trained local machine learning model that incorporates the model update data at the federated learning client for determining when to terminate a federated learning operation for training a global machine learning model.

[0129] Clause 10: The method of clause 9, wherein the model update data and the training metadata are received synchronously.

[0130] Clause 11: The method of clause 9, wherein the model update data and the training metadata are received asynchronously.

[0131] Clause 12: The method of Clause 9 further comprises: sending data defining a global machine learning model to a federated learning client; updating the global machine learning model based at least in part on model update data from the federated learning client; and sending data defining an updated global machine learning model to the federated learning client before receiving training metadata from the federated learning client.

[0132] Clause 13: A method as in any of clauses 9-12, wherein: the training metadata includes one or more of the following: a first accuracy value of a federated learning client local model trained using federated learning client local training data; and a loss value associated with the federated learning client local model based on the federated learning client local training data, and the training metadata includes a second accuracy value of the federated learning client local model tested using federated learning client local validation data.

[0133] Clause 14: A method as in any of clauses 9-13, further comprising determining to continue or suspend training of the global machine learning model based at least in part on the training metadata.

[0134] Clause 15: The method of any of clauses 9-14, further comprising aggregating the training metadata received from the federated learning client with additional training metadata received from one or more other federated learning clients.

[0135] Clause 16: The method of clause 15, further comprising determining to continue or terminate training of the global machine learning model based at least in part on the aggregated training metadata.

[0136] Clause 17: A computer-implemented method comprising: generating training metadata using a global model and local validation data; and sending the training metadata to a server, wherein the training metadata includes data about the global machine learning model for determining when to terminate a federated learning operation for training the global machine learning model.

[0137] Clause 18: The method of clause 17, wherein the training metadata comprises an accuracy value associated with testing the global model using the local validation data.

[0138] Clause 19: A method as in any of Clauses 17-18, further comprising: receiving a global machine learning model from a server; receiving updated global machine learning model data from the server; and processing local data using the updated global machine learning model based on the updated global machine learning model data to perform a task.

[0139] Clause 20: The method of clause 19, wherein the task comprises one of: image classification based on local image data; voice classification based on local voice data; or authentication based on local biometric data.

[0140] Clause 21: A computer-implemented method comprising: sending a global machine learning model to a federated learning client device; and receiving training metadata from the federated learning client device, wherein the training metadata includes data about the trained local machine learning model for determining when to terminate a federated learning operation for training the global machine learning model.

[0141] Clause 22: The method of clause 21, wherein the training metadata comprises an accuracy value associated with a federated learning client local model tested using the federated learning client local validation data.

[0142] Clause 23: A method as in any of clauses 21-22, further comprising determining to continue or suspend training of the global machine learning model based at least in part on the training metadata.

[0143] Clause 24: A method as in any of clauses 21-23, further comprising: aggregating training metadata received from a federated learning client with additional training metadata received from one or more other federated learning clients; and determining to continue or terminate training of a global machine learning model based at least in part on the aggregated training metadata.

[0144] Clause 25: A processing system comprising: a memory including computer-executable instructions; and a processor configured to execute the computer-executable instructions and cause the processing system to perform the method according to any of clauses 1-24.

[0145] Clause 26: A processing system comprising means for performing the method according to any of clauses 1-24.

[0146] Clause 27: A non-transitory computer readable medium comprising computer executable instructions which, when executed by a processor of a processing system, cause the processing system to perform the method according to any of clauses 1-24.

[0147] Clause 28: A computer program product embodied on a computer readable storage medium, the computer readable storage medium comprising code for performing the method according to any of clauses 1-24.

[0148] Additional considerations

[0149] The previous description is provided to enable any person skilled in the art to practice the various aspects described herein. The examples discussed herein are not limitations on the scope, applicability, or aspects set forth in the claims. Various modifications to these aspects will be readily apparent to those skilled in the art, and the universal principles defined herein may be applied to other aspects. For example, the functions and arrangements of the elements discussed may be changed without departing from the scope of the present disclosure. Various examples may appropriately omit, replace, or add various procedures or components. For example, the described method may be performed in an order different from that described, and various steps may be added, omitted, or combined. Moreover, the features described with reference to some examples may be combined in some other examples. For example, any number of aspects set forth herein may be used to implement a device or practice a method. In addition, the scope of the present disclosure is intended to cover such devices or methods practiced using other structures, functionality, or structures and functionality that are supplementary to or different from the various aspects of the present disclosure set forth herein. It should be understood that any aspect of the present disclosure disclosed herein may be implemented by one or more elements of the claims.

[0150] As used herein, the word “exemplary” means “serving as an example, instance, or illustration.” Any aspect described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other aspects.

[0151] As used herein, a phrase referring to "at least one of" a list of items refers to any combination of those items, including single members. As an example, "at least one of a, b, or c" is intended to cover: a, b, c, ab, ac, bc, and abc, as well as any combination with multiple identical elements (e.g., aa, aaa, aab, aac, abb, acc, bb, bbb, bbc, cc, and ccc, or any other ordering of a, b, and c).

[0152] As used herein, the term "determining" encompasses a wide variety of actions. For example, "determining" may include calculating, computing, processing, deriving, investigating, searching (e.g., searching in a table, a database, or another data structure), ascertaining, and the like. Also, "determining" may include receiving (e.g., receiving information), accessing (e.g., accessing data in a memory), and the like. Also, "determining" may include resolving, selecting, choosing, establishing, and the like.

[0153] Each method disclosed herein includes one or more steps or actions for implementing the method. These method steps and / or actions can be interchangeable with each other without departing from the scope of the claims. In other words, unless a specific order of steps or actions is specified, the order and / or use of specific steps and / or actions can be changed without departing from the scope of the claims. In addition, the various operations of the above-mentioned methods can be performed by any suitable device capable of performing the corresponding functions. These devices may include various hardware and / or software components and / or modules, including but not limited to circuits, application specific integrated circuits (ASICs), or processors. Generally, where there are operations illustrated in the accompanying drawings, these operations may have corresponding paired devices plus functional components with similar numbers.

[0154] The following claims are not intended to be limited to the various aspects shown herein, but should be granted the full scope consistent with the language of the claims. Within the claims, references to singular elements are not intended to mean "there is and only one" (unless specifically stated), but "one or more". Unless otherwise specifically stated, the term "some / some" refers to one or more. No element of the claim should be interpreted under the provisions of 35 U.S.C. § 112 (f), unless the element is explicitly described using the phrase "device for..." or in the case of a method claim, the element is described using the phrase "step for...". The elements of the various aspects described throughout this disclosure are all structural and functional equivalents currently or hereafter known to those of ordinary skill in the art, and are expressly incorporated herein by reference, and are intended to be covered by the claims. In addition, nothing disclosed herein is intended to be donated to the public, regardless of whether such disclosure is explicitly recorded in the claims.

Claims

1. A computer-implemented method comprising: The client device sends model update data to the server; Generating training metadata by the client device using the trained local machine learning model and local validation data, wherein: The trained local machine learning model incorporates the model update data and global model data defining a global machine learning model, and The training metadata includes data about the trained local machine learning model for determining when to terminate a federated learning operation for training the global machine learning model; as well as The training metadata is sent by the client device to the server.

2. The method of claim 1, further comprising: receiving, by the client device, the global model data from the server; generating, by the client device, the local machine learning model based on the global model data; as well as The local machine learning model is trained by the client device using local training data to generate the model update data.

3. The method of claim 2, wherein the model update data and the training metadata are sent to the server synchronously. 4 . The method of claim 2 , further comprising receiving, by the client device, updated global model data from the server before sending the training metadata to the server.

5. The method of claim 2, wherein: The training metadata includes one or more of the following: (i) based on testing a first accuracy value of the trained local machine learning model using the local training data, or (ii) a loss value associated with training the local machine learning model based on the local training data; and The training metadata includes a second accuracy value associated with testing the trained local machine learning model using the local validation data.

6. The method of claim 2, further comprising: receiving, by the client device, updated global model data from the server; as well as The client device processes local data using the updated global machine learning model based on the updated global model data to perform a task.

7. The method of claim 6, wherein the task comprises one of: Image classification based on local image data; Sound classification based on local sound data; or Authentication based on local biometric data.

8. A computer-implemented method comprising: The server receives model update data from the federated learning client; as well as The server receives training metadata from the federated learning client, The training metadata includes data about a trained local machine learning model that incorporates the model update data at the federated learning client for determining when to terminate a federated learning operation for training a global machine learning model.

9. The method of claim 8, wherein the model update data and the training metadata are received synchronously.

10. The method of claim 8, further comprising: The server sends data defining the global machine learning model to the federated learning client; updating, by the server, the global machine learning model based at least in part on the model update data from the federated learning client; as well as Data defining an updated global machine learning model is sent by the server to the federated learning client before receiving the training metadata from the federated learning client.

11. The method of claim 8, wherein: The training metadata includes one or more of the following: (i) a first accuracy value of a federated learning client-local machine learning model trained using the federated learning client-local training data; or (ii) a loss value associated with the federated learning client-local machine learning model based on the federated learning client-local training data; and The training metadata includes a second accuracy value of the federated learning client-local machine learning model tested using the federated learning client-local validation data.

12. The method of claim 8, further comprising determining, by the server, whether to continue or suspend training of the global machine learning model based at least in part on the training metadata.

13. The method of claim 8, further comprising aggregating, by the server, the training metadata received from the federated learning client with additional training metadata received from one or more other federated learning clients.

14. The method of claim 13, further comprising determining, by the server, whether to continue or suspend training of the global machine learning model based at least in part on the aggregated training metadata.

15. A computer-implemented method comprising: The client device generates training metadata using the global machine learning model and local validation data; as well as The training metadata is sent by the client device to the server, wherein the training metadata includes data about the global machine learning model for determining when to terminate a federated learning operation for training the global machine learning model.

16. The method of claim 15, wherein the training metadata comprises an accuracy value associated with testing the global machine learning model using the local validation data.

17. The method of claim 15, further comprising: receiving, by the client device, the global machine learning model from the server; receiving, by the client device, updated global machine learning model data from the server; as well as The client device utilizes the updated global machine learning model to process local data based on the updated global machine learning model data to perform a task.

18. The method of claim 17, wherein the task comprises one of: Image classification based on local image data; Sound classification based on local sound data; or Authentication based on local biometric data.

19. A computer-implemented method comprising: The server sends the global machine learning model to the federated learning client device; as well as Training metadata is received by the server from the federated learning client device, wherein the training metadata includes data about the trained local machine learning model for determining when to terminate a federated learning operation for training the global machine learning model.

20. The method of claim 19, wherein the training metadata comprises an accuracy value associated with a federated learning client-local model tested using federated learning client-local validation data.

21. The method of claim 19, further comprising determining by the server whether to continue or terminate training of the global machine learning model based at least in part on the training metadata.

22. The method of claim 19, further comprising: aggregating, by the server, the training metadata received from the federated learning client with additional training metadata received from one or more other federated learning clients; as well as Determining, by the server, to continue or suspend training of the global machine learning model based at least in part on the aggregated training metadata.

23. A system comprising: a memory including computer-executable instructions; as well as a processor configured to execute the computer-executable instructions so that the system: Send model update data to the server; Generate training metadata using a trained local machine learning model and local validation data, where: The trained local machine learning model incorporates the model update data and global model data defining a global machine learning model, and The training metadata includes data about the trained local machine learning model for determining when to terminate a federated learning operation for training the global machine learning model; as well as The training metadata is sent to the server.

24. The system of claim 23, wherein the processor is further configured to cause the system to: receiving the global model data from the server; generating the local machine learning model based on the global model data; and The local machine learning model is trained using the local training data to generate the model update data.

25. The system of claim 24, wherein the model update data and the training metadata are sent to the server asynchronously.

26. The system of claim 24, wherein the processor is configured to cause the system to: receive updated global model data from the server before sending the training metadata to the server.

27. The system of claim 24, wherein: The training metadata includes one or more of the following: (i) based on testing a first accuracy value of the trained local machine learning model using the local training data, or (ii) a loss value associated with training the local machine learning model based on the local training data; and The training metadata includes a second accuracy value associated with testing the trained local machine learning model using the local validation data.

28. The system of claim 24, wherein the processor is further configured to cause the system to: receiving updated global model data from the server; and The updated global machine learning model is used to process local data based on the updated global model data to perform a task.

29. The system of claim 28, wherein the task comprises one of: Image classification based on local image data; Sound classification based on local sound data; or Authentication based on local biometric data.

30. A system comprising: a memory, wherein executable instructions are stored in the memory; as well as a processor configured to execute the executable instructions so that the system: Receive model update data from the federated learning client; as well as receiving training metadata from the federated learning client, The training metadata includes data about a trained local machine learning model that incorporates the model update data at the federated learning client for determining when to terminate a federated learning operation for training a global machine learning model.

31. The system of claim 30, wherein the model update data and the training metadata are received synchronously.

32. The system of claim 30, wherein the processor is further configured to cause the system to: The server sends data defining the global machine learning model to the federated learning client; updating, by the server, the global machine learning model based at least in part on the model update data from the federated learning client; and Data defining the updated global machine learning model is sent by the server to the federated learning client before receiving the training metadata from the federated learning client.

33. The system of claim 30, wherein: The training metadata includes one or more of the following: (i) a first accuracy value of a federated learning client-local machine learning model trained using the federated learning client-local training data; or (ii) a loss value associated with the federated learning client-local machine learning model based on the federated learning client-local training data; and The training metadata includes a second accuracy value of the federated learning client-local machine learning model tested using the federated learning client-local validation data.

34. The system of claim 30, wherein the processor is further configured to cause the system to: determine whether to continue or terminate training of the global machine learning model based at least in part on the training metadata.

35. The system of claim 30, wherein the processor is further configured to cause the system to: aggregate, by the server, the training metadata received from the federated learning client with additional training metadata received from one or more other federated learning clients.

36. A system as described in claim 35, wherein the processor is further configured to cause the system to: determine whether to continue or terminate training of the global machine learning model based at least in part on the aggregated training metadata.

37. A system comprising: a memory, wherein executable instructions are stored in the memory; as well as a processor configured to execute the executable instructions so that the system: The client device generates training metadata using the global machine learning model and local validation data; as well as The training metadata is sent by the client device to the server, wherein the training metadata includes data about the global machine learning model for determining when to terminate a federated learning operation for training the global machine learning model.

38. The system of claim 37, wherein the training metadata comprises an accuracy value associated with testing the global machine learning model using the local validation data.

39. The system of claim 37, wherein the processor is further configured to: receiving the global machine learning model from the server; receiving updated global machine learning model data from the server; and The updated global machine learning model is used to process local data based on the updated global machine learning model data to perform a task.

40. The system of claim 39, wherein the task comprises one of: Image classification based on local image data; Sound classification based on local sound data; or Authentication based on local biometric data.

41. A system comprising: a memory, wherein executable instructions are stored in the memory; as well as a processor configured to execute the executable instructions so that the system: The server sends the global machine learning model to the federated learning client device; as well as Training metadata is received by the server from the federated learning client device, wherein the training metadata includes data about the trained local machine learning model for determining when to terminate a federated learning operation for training the global machine learning model.

42. The system of claim 41, wherein the training metadata comprises an accuracy value associated with a federated learning client-local model tested using federated learning client-local validation data.

43. A system as described in claim 41, wherein the processor is further configured to: determine whether to continue or terminate training of the global machine learning model based at least in part on the training metadata.

44. The system of claim 41 , wherein the processor is further configured to cause the system to: aggregating the training metadata received from the federated learning client device with additional training metadata received from one or more other federated learning client devices; and Determining whether to continue or suspend training of the global machine learning model based at least in part on the aggregated training metadata.