# US 2022/0293093 A1 · Mixed client-server federated learning of machine learning model(s)

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0293093 A1
- Document ID: US20220293093A1
- Status: Published application
- Kind: A1
- Application number: 17/197,954
- Filed: 2021-03-10
- Published: 2022-09-15
- Earliest claimed: 2021-03-10
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Françoise Beaufays; Andrew Hard; Swaroop Indra Ramaswamy; Om Dipakbhai Thakkar; Rajiv Mathews
- Web page: https://patentgrep.com/patent/US20220293093A1

## CPC

- G10L 15/065: Adaptation
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/0895: Weakly supervised learning, e.g. semi-supervised or self-supervised learning
- G06N 3/09: Supervised learning
- G06N 3/098: Distributed learning, e.g. federated learning
- G06N 20/00: Machine learning
- G06V 10/95: {structured as a network, e.g. client-server architectures}
- G10L 13/00: Speech synthesis; Text to speech systems
- G10L 13/04: Details of speech synthesis systems, e.g. synthesiser structure or memory management
- G10L 15/063: {Training}
- G10L 15/26: Speech to text systems (G10L15/08 takes precedence)
- G10L 15/30: Distributed recognition, e.g. in client-server systems, for mobile phones or network applications
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G10L 2015/0635: {updating or merging of old and new templates; Mean values; Weighting}
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Implementations disclosed herein are directed to federated learning of machine learning (“ML”) model(s) based on gradient(s) generated at corresponding client devices and a remote system. Processor(s) of the corresponding client devices can process client data generated locally at the corresponding client devices using corresponding on-device ML model(s) to generate corresponding predicted outputs, generate corresponding client gradients based on the corresponding predicted outputs, and transmit the corresponding client gradients to the remote system. Processor(s) of the remote system can process remote data obtained from remote database(s) using global ML model(s) to generate additional corresponding predicted outputs, generate corresponding remote gradients based on the additional corresponding predicted outputs. Further, the remote system can utilize the corresponding client gradients and the corresponding remote gradients to update the global ML model(s) or weights thereof. The updated global ML model(s) and/or the updated weights thereof can be transmitted back to the corresponding client devices.

## Claims

### Claim 1

A method implemented by one or more processors, the method comprising:
receiving a plurality of client gradients from a plurality of corresponding client devices, wherein each of the plurality of client gradients is generated locally at a given one of the plurality of corresponding client devices based on processing corresponding audio data that captures at least part of a corresponding spoken utterance of a corresponding user of the given one of the plurality of corresponding client devices;
generating a plurality of remote gradients, wherein generating each of the plurality of remote gradients comprises:
obtaining additional audio data that captures at least part of an additional spoken utterance of an additional user;
processing, using a global machine learning (ML) model stored remotely at the remote system, the additional audio data to generate predicted output; and
generating an additional gradient, for inclusion in the plurality of remote gradients, based on comparing the additional predicted output to ground truth output corresponding to the additional audio data;
selecting a set of client gradients from among the plurality of client gradients;
selecting an additional set of remote gradients from among the plurality of remote gradients; and
utilizing the set of client gradients and the additional set of remote gradients to update weights of the global ML model.

### Claim 2 (depends on 1)

The method of claim 1, wherein utilizing the set of client gradients and the additional set of remote gradients to update the weights of the global ML model comprises:
utilizing the set of client gradients to update the weights of the global ML model; and
subsequent to utilizing the set of client gradients to update the weights of the global ML model:
utilizing the additional set of remote gradients to further update the weights of the global ML model.

### Claim 3 (depends on 1)

The method of claim 1, wherein utilizing the set of client gradients and the additional set of remote gradients to update the weights of the global ML model comprises:
utilizing the additional set of remote gradients to update the weights of the global ML model; and
subsequent to utilizing the additional set of remote gradients to update the weights of the global ML model:
utilizing the set of client gradients to further update the weights of the global ML model.

### Claim 4 (depends on 1)

The method of claim 1, wherein utilizing the set of client gradients and the additional set of remote gradients to update the weights of the global ML model comprises:
utilizing the set of client gradients to update first weights of a first instance the global ML model;
utilizing, in parallel, the additional set of remote gradients to update to update second weights of a second instance of the global ML model; and
utilizing the updated first weights of the first instance of the global ML model and the updated second weights of the second instance of the global ML model to update the weights of the global ML model.

### Claim 5 (depends on 4)

The method of claim 4, wherein utilizing the updated first weights of the first instance of the global ML model and the updated second weights of the second instance of the global ML model to update the weights of the global ML model comprises:
determining an average of the updated first weights of the first instance of the global ML model and the updated second weights of the second instance of the global ML model; and
utilizing the average of the updated first weights and the updated second weights to update the weights of the global ML model.

### Claim 6 (depends on 1)

The method of claim 1, wherein the threshold quantity of additional gradients is based on a quantity of the plurality of gradients received from the plurality of corresponding client devices.

### Claim 7 (depends on 1)

The method of claim 1, wherein selecting the set of client gradients comprises:
selecting one or more of the plurality of client gradients for inclusion in the set of client gradients based on the one or more of the plurality of client gradients being a particular type of gradient.

### Claim 8 (depends on 7)

The method of claim 7, wherein selecting the additional set of remote gradients comprises:
selecting one or more of the plurality of remote gradients for inclusion in the additional set of remote gradients based on the one or more of the plurality of remote gradients being the particular type of gradient.

### Claim 9 (depends on 1)

The method of claim 1, wherein selecting the set of client gradients comprises:
selecting one or more of the plurality of client gradients for inclusion in the set of client gradients based on the one or more of the plurality of client gradients being a particular type of gradient.

### Claim 10 (depends on 9)

The method of claim 9, wherein selecting the additional set of remote gradients comprises:
selecting one or more of the plurality of remote gradients for inclusion in the additional set of remote gradients based on the one or more of the plurality of remote gradients being the particular type of gradient.

### Claim 11 (depends on 1)

The method of claim 1, further comprising:
analyzing a distribution of remote gradients stored in one or more databases that are accessible by the remote system to identify a particular type of gradient, and
wherein the plurality of remote gradients that are generated conform to the particular type of gradient.

### Claim 12 (depends on 11)

The method of claim 11, wherein identifying the particular type of gradient comprises:
determining, based on analyzing the distribution of remote gradients, that the distribution of remote gradients does not include a threshold quantity of remote gradients of the particular type of gradient.

### Claim 13 (depends on 1)

The method of claim 1, further comprising:
transmitting, to the client device, the updated global ML model or the updated global weights of the global ML model, wherein transmitting the global ML model or the updated global weights is subsequent to the remote system updating the global weights of the global ML model based on the set of client gradients and the additional set of remote gradients; and
wherein transmitting the updated global ML model or the updated global weights to the client device causes the client device to replace, in local storage of the client device, an on-device ML model with the updated global ML model or local weights of the on-device ML model with the updated global weights of the global ML model.

### Claim 14 (depends on 1)

The method of claim 1, wherein the ground truth output corresponding to the additional audio data is based on the additional spoken utterance captured in the additional audio data.

### Claim 15 (depends on 14)

The method of claim 14, wherein the additional spoken utterance captured in the additional audio data includes a particular word or phrase, and wherein the ground truth output corresponding to the additional audio data includes an indication of whether the additional spoken utterance captures the particular word or phrase.

### Claim 16 (depends on 14)

The method of claim 14, wherein the additional spoken utterance captured in the additional audio data includes one or more terms, and wherein the ground truth output corresponding to the additional audio data includes a transcription of the one or more terms.

### Claim 17

A method comprising:
by one or more client processors of a client device:
detecting, via one or more microphones of the client device, audio data that captures at least part of a spoken utterance of a user of the client device;
processing, using an on-device machine learning (ML) model stored locally on the client device, the audio data to generate predicted output;
generating a client gradient based on the predicted output; and
transmitting, to a remote system and from the client device, the client gradient;
by one or more remote processors of the remote system:
obtaining additional audio data that captures at least part of an additional spoken utterance of an additional user;
processing, using a global ML model stored remotely at the remote system, the additional audio data to generate additional predicted output;
generating a remote gradient based on the additional predicted output; and
utilizing the client and the remote gradient to update weights of the global ML model.

### Claim 18 (depends on 17)

The method of claim 17, further comprising:
by one or more remote processors of the remote system:
transmitting, to the client device, the updated global ML model or the updated global weights of the global ML model, wherein transmitting the global ML model or the updated global weights is subsequent to the remote system updating the global weights of the global ML model based on the client gradient and the remote gradient.

### Claim 19 (depends on 18)

The method of claim 18, further comprising:
by one or more of the processors of the client device:
receiving, from the remote system, the updated global ML model or the updated global weights of the global ML model; and
causing the client device to replace, in local storage of the client device, the on-device ML model with the updated global ML model or local weights of the on-device ML model with the updated global weights of the global ML model.

### Claim 20

A method comprising:
by one or more client processors of at a client device:
identifying a textual segment stored locally at the client device of a user;
processing, using an on-device text-to-speech (US) model stored locally on the client device, the textual segment to generate synthesized speech audio data that includes synthesized speech corresponding to the textual segment;
processing, using a local machine learning (ML) model stored locally on the client device, the synthesized speech audio data to generate predicted output;
generating a gradient based on comparing the predicted output to ground truth output corresponding to the textual segment; and
transmitting, to a remote system and from the client device, the generated gradient;
by one or more remote processors of the remote system:
obtaining an additional textual segment that is accessible by the remote system;
processing, using a global US model stored remotely at the remote system, the additional textual segment to generate additional synthesized speech audio data that includes additional synthesized speech corresponding to the additional textual segment;
processing, using a global ML model stored remotely at the remote system, the additional synthesized speech audio data to generate additional predicted output;
generating an additional gradient based on comparing the additional predicted output to additional ground truth output corresponding to the additional textual segment; and
utilizing at least the gradient received from the client device and the additional gradient generated at the remote system to update weights of the global US model.
