# US 2024/0005215 A1 · Training models for federated learning

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

- Number: US 2024/0005215 A1
- Document ID: US20240005215A1
- Status: Published application
- Kind: A1
- Application number: 17/809,826
- Filed: 2022-06-29
- Published: 2024-01-04
- Earliest claimed: 2022-06-29
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Yuya Jeremy Ong; Yi Zhou; Nathalie Baracaldo Angel
- Web page: https://patentgrep.com/patent/US20240005215A1

## CPC

- G06N 5/01: Dynamic search techniques; Heuristics; Dynamic trees; Branch-and-bound
- G06N 20/20: Ensemble learning
- G06N 5/04: Inference or reasoning models
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method, system, and computer program product for training models for federated learning. The method determines, by a federated learning aggregator, a set of sample ratios for a set of participant systems. Each sample ratio is associated with a distinct participant system. A set of participant epsilon values are generated for the set of participant systems with each participant epsilon value being associated with a participant system of the set of participant systems. A set of surrogate data sets are received for the set of participant systems with each surrogate data set representing a data set of a participant system. The federated learning aggregator generates a set of local models. Each local model is generated based on a first global model. The method generates a second global model based on a prediction set generated by the set of participant systems using the set of local models.

## Claims

### Claim 1

A computer-implemented method, comprising:
determining, by a federated learning aggregator, a set of sample ratios for a set of participant systems, each sample ratio associated with a distinct participant system;
generating a set of participant epsilon values for the set of participant systems, each participant epsilon value being associated with a participant system of the set of participant systems;
receiving a set of surrogate data sets for the set of participant systems, each surrogate data set representing a data set of a participant system;
generating, by the federated learning aggregator, a set of local models, each local model generated based on a first global model; and
generating, by the federated learning aggregator, a second global model based on a prediction set generated by the set of participant systems using the set of local models.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining the set of sample ratios further comprises:
determining a number of samples within a data set of each participant system;
determining a total sample size for the set of participant systems; and
generating a sample ratio for each participant system based on the total sample size and the number of samples within a data set of each participant system.

### Claim 3 (depends on 2)

The method of claim 2, wherein generating the set of participant epsilon values further comprises:
generating a global epsilon parameter;
for each participant system, generating a participant epsilon value based on the global epsilon parameter and the sample ratio associated with that participant system; and
transmitting the set of participant epsilon values to the set of participant systems, each participant system receiving the participant epsilon value generated based on the sample ratio of that participant system.

### Claim 4 (depends on 2)

The method of claim 2, wherein the receiving the set of surrogate data sets further comprises:
generating, by each participant system, a surrogate histogram distribution based on the participant epsilon value and the data set of the participant system; and
transmitting, by each participant system, the surrogate histogram distribution to the federated learning aggregator.

### Claim 5 (depends on 4)

The method of claim 4, wherein generating the surrogate histogram distribution further comprises:
generating the surrogate histogram using the participant epsilon value to define a bin size of the histogram distribution;
generating a gamma value used to generate a quantile sketch given the participant epsilon value;
for each sample in the data set of the participant system, identifying a corresponding bin index; and
for each sample in the data set of the participant system, determining a relative percentile.

### Claim 6 (depends on 4)

The method of claim 4, wherein transmitting the surrogate histogram distribution further comprises:
compressing a payload of the surrogate histogram distribution to generate a compressed histogram distribution; and
transmitting the compressed histogram distribution to the federated learning aggregator.

### Claim 7 (depends on 1)

The method of claim 1, the method further comprising:
determining, by the federated learning aggregator, a new participant system has been added to the set of participant systems;
generating a new participant epsilon value for the new participant system, the new participant epsilon value generated independently of the participant systems of the set of participant systems; and
receiving a new surrogate data set for the new participant system.

### Claim 8

A system, comprising:
one or more processors; and
a computer-readable storage medium, coupled to the one or more processors, storing program instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising:
determining, by a federated learning aggregator, a set of sample ratios for a set of participant systems, each sample ratio associated with a distinct participant system;
generating a set of participant epsilon values for the set of participant systems, each participant epsilon value being associated with a participant system of the set of participant systems;
receiving a set of surrogate data sets for the set of participant systems, each surrogate data set representing a data set of a participant system;
generating, by the federated learning aggregator, a set of local models, each local model generated based on a first global model; and
generating, by the federated learning aggregator, a second global model based on a prediction set generated by the set of participant systems using the set of local models.

### Claim 9 (depends on 8)

The system of claim 8, wherein determining the set of sample ratios further comprises:
determining a number of samples within a data set of each participant system;
determining a total sample size for the set of participant systems; and
generating a sample ratio for each participant system based on the total sample size and the number of samples within a dataset of each participant system.

### Claim 10 (depends on 9)

The system of claim 9, wherein generating the set of participant epsilon values further comprises:
generating a global epsilon parameter;
for each participant system, generating a participant epsilon value based on the global epsilon parameter and the sample ratio associated with that participant system; and
transmitting the set of participant epsilon values to the set of participant systems, each participant system receiving the participant epsilon value generated based on the sample ratio of that participant system.

### Claim 11 (depends on 9)

The system of claim 9, wherein the receiving the set of surrogate data sets further comprises:
generating, by each participant system, a surrogate histogram distribution based on the participant epsilon value and the data set of the participant system; and
transmitting, by each participant system, the surrogate histogram distribution to the federated learning aggregator.

### Claim 12 (depends on 11)

The system of claim 11, wherein generating the surrogate histogram distribution further comprises:
generating the surrogate histogram using the participant epsilon value to define a bin size of the histogram distribution;
generating a gamma value used to generate a quantile sketch given the participant epsilon value;
for each sample in the data set of the participant system, identifying a corresponding bin index; and
for each sample in the data set of the participant system, determining a relative percentile.

### Claim 13 (depends on 11)

The system of claim 11, wherein transmitting the surrogate histogram distribution further comprises:
compressing a payload of the surrogate histogram distribution to generate a compressed histogram distribution; and
transmitting the compressed histogram distribution to the federated learning aggregator.

### Claim 14 (depends on 8)

The system of claim 8, wherein the operations further comprise:
determining, by the federated learning aggregator, a new participant system has been added to the set of participant systems;
generating a new participant epsilon value for the new participant system, the new participant epsilon value generated independently of the participant systems of the set of participant systems; and
receiving a new surrogate data set for the new participant system.

### Claim 15

A computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions being executable by one or more processors to cause the one or more processors to perform operations comprising:
determining, by a federated learning aggregator, a set of sample ratios for a set of participant systems, each sample ratio associated with a distinct participant system;
generating a set of participant epsilon values for the set of participant systems, each participant epsilon value being associated with a participant system of the set of participant systems;
receiving a set of surrogate data sets for the set of participant systems, each surrogate data set representing a data set of a participant system;
generating, by the federated learning aggregator, a set of local models, each local model generated based on a first global model; and
generating, by the federated learning aggregator, a second global model based on a prediction set generated by the set of participant systems using the set of local models.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein determining the set of sample ratios further comprises:
determining a number of samples within a data set of each participant system;
determining a total sample size for the set of participant systems; and
generating a sample ratio for each participant system based on the total sample size and the number of samples within a data set of each participant system.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein generating the set of participant epsilon values further comprises:
generating a global epsilon parameter;
for each participant system, generating a participant epsilon value based on the global epsilon parameter and the sample ratio associated with that participant system; and
transmitting the set of participant epsilon values to the set of participant systems, each participant system receiving the participant epsilon value generated based on the sample ratio of that participant system.

### Claim 18 (depends on 16)

The computer program product of claim 16, wherein the receiving the set of surrogate data sets further comprises:
generating, by each participant system, a surrogate histogram distribution based on the participant epsilon value and the data set of the participant system; and
transmitting, by each participant system, the surrogate histogram distribution to the federated learning aggregator.

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein generating the surrogate histogram distribution further comprises:
generating the surrogate histogram using the participant epsilon value to define a bin size of the histogram distribution;
generating a gamma value used to generate a quantile sketch given the participant epsilon value;
for each sample in the data set of the participant system, identifying a corresponding bin index; and
for each sample in the data set of the participant system, determining a relative percentile.

### Claim 20 (depends on 15)

The computer program product of claim 15, wherein the operations further comprise:
determining, by the federated learning aggregator, a new participant system has been added to the set of participant systems;
generating a new participant epsilon value for the new participant system, the new participant epsilon value generated independently of the participant systems of the set of participant systems; and
receiving a new surrogate data set for the new participant system.
