# US 2023/0058219 A1 · Secure ensemble training and inference using heterogeneous private machine learning models

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

- Number: US 2023/0058219 A1
- Document ID: US20230058219A1
- Status: Published application
- Kind: A1
- Application number: 17/405,582
- Filed: 2021-08-18
- Published: 2023-02-23
- Earliest claimed: 2021-08-18
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Dhinakaran Vinayagamurthy; Sandeep Nishad; Harsh Chaudhari; Pankaj Satyanarayan Dayama; Saneem Ahmed Chemmengath
- Web page: https://patentgrep.com/patent/US20230058219A1

## CPC

- G06F 16/256: {in federated or virtual databases}
- G06N 20/20: Ensemble learning
- G06F 16/245: Query processing
- G06F 16/285: {Clustering or classification}
- G06N 3/098: Distributed learning, e.g. federated learning
- G06N 20/00: Machine learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

One embodiment provides a method, including: receiving a query from a user; providing the query to data owners, wherein each of the data owners has a local machine learning model and wherein the plurality of data owners train a meta-model; secret sharing model output from the data owners between the other data owners, wherein the model output comprises an output responsive to the query computed using the local machine learning model; receiving, from each of the plurality of data owners, a set of meta-features corresponding to the query; and generating a response to the query, wherein the generating comprises determining, by evaluating the meta-model using the set of meta-features received from each of the plurality of data owners, weights for outputs from the local machine learning models and aggregating the outputs in view of the weights.

## Claims

### Claim 1

A method, comprising:
receiving, at a service provider, a query from a user, wherein the service provider is connected with a plurality of data owners, each of the plurality of data owners having at least one dataset comprising information responsive to the query;
providing, by the service provider, the query to each of the plurality of data owners, wherein each of the plurality of data owners has a local machine learning model trained using a dataset of a corresponding data owner, wherein each data owner provides a commitment of the local machine learning model, and wherein the plurality of data owners train a meta-model by a collaboration facilitated by the service provider using secure multi-party computation, wherein each of the plurality of data owners has a share of the meta-model;
secret sharing, via the service provider, model output from each of the plurality of data owners between the other of the plurality of data owners, wherein the model output comprises an output responsive to the query computed using the local machine learning model corresponding to the data owner and wherein the sharing comprises, each of the plurality of data owners, encrypting, to each other data owner, the model output corresponding to the data owner and encrypting the model output shared from the other of the plurality of data owners;
receiving, at the service provider and from each of the plurality of data owners, a set of meta-features corresponding to the query and comprising forward pass processing of the local machine learning model of a given of the plurality of data owners, post processing of the local machine learning model of the given of the plurality of data owners, and at least one neighborhood of the local machine learning model of the given of the plurality of data owners, wherein each of the set of the meta-features are extracted, from the encrypted secret shares of the model outputs, by a corresponding of the plurality of data owners using meta-training samples from the local machine learning model and cluster centroids from other of the plurality of data owners; and
generating, using the service provider, a response to the query, wherein the generating comprises determining, by evaluating the meta-model using the set of meta-features received from each of the plurality of data owners, weights for outputs from the local machine learning models and aggregating the outputs in view of the weights.

### Claim 2 (depends on 1)

The method of claim 1, wherein each of the plurality of data owners extracts, from the local machine learning model corresponding to the data owner, a set of meta-features.

### Claim 3 (depends on 2)

The method of claim 2, wherein the collaboration comprises the plurality of data owners extracting, by running a multi-party computation, global meta-features across the local machine learning models of the plurality of data owners; and
wherein the meta-model is trained using the set of meta-features from each of the local machine learning models and the global meta-features using secure multi-party computation.

### Claim 4 (depends on 1)

The method of claim 1, wherein the sharing comprises each of the plurality of data owners sampling differential privacy noise based upon agreed upon system privacy parameters corresponding to a given of the plurality of data owners and encrypting the differential privacy noise.

### Claim 5 (depends on 1)

The method of claim 1, wherein the generating comprises adding noise to the model outputs and the weights for the model outputs.

### Claim 6 (depends on 1)

The method of claim 1, wherein each of the plurality of data owners generates the cluster centroids of a corresponding data owner by clustering the meta-training samples of the corresponding local machine learning model and identifying cluster centroids from each meta-training sample cluster.

### Claim 7 (depends on 1)

The method of claim 1, comprising generating a performance proof for benchmarking the performance of the service provider, wherein the query comprises a benchmarking dataset, wherein each of the plurality of data owners produces a vector of outputs for each sample within the benchmarking dataset and a commitment on the vector of outputs, and wherein the set of meta-features comprises a commitment generated for the set of meta-features.

### Claim 8 (depends on 1)

The method of claim 1, wherein each of the plurality of data owners and the service provider are not trusted.

### Claim 9 (depends on 1)

The method of claim 1, wherein each of the local machine learning models are independently trained from and have different data distributions with respect to other of the local machine learning models.

### Claim 10 (depends on 1)

The method of claim 1, wherein the generating comprises ensuring fairness for users providing queries by ensuring the plurality of data owners selected for one of the queries are the same plurality of data owners selected for another of the queries of the same type by cryptographically verifying use of the local machine learning models of the plurality of data owners.

### Claim 11

An apparatus, comprising:
at least one processor; and
a computer readable storage medium having computer readable program code embodied therewith and executable by the at least one processor;
wherein the computer readable program code is configured to receive, at a service provider, a query from a user, wherein the service provider is connected with a plurality of data owners, each of the plurality of data owners having at least one dataset comprising information responsive to the query;
wherein the computer readable program code is configured to provide, by the service provider, the query to each of the plurality of data owners, wherein each of the plurality of data owners has a local machine learning model trained using a dataset of a corresponding data owner, wherein each data owner provides a commitment of the local machine learning model, and wherein the plurality of data owners train a meta-model by a collaboration facilitated by the service provider using secure multi-party computation, wherein each of the plurality of data owners has a share of the meta-model;
wherein the computer readable program code is configured to secret share, via the service provider, model output from each of the plurality of data owners between the other of the plurality of data owners, wherein the model output comprises an output responsive to the query computed using the local machine learning model corresponding to the data owner and wherein the sharing comprises, each of the plurality of data owners, encrypting, to each other data owner, the model output corresponding to the data owner and encrypting the model output shared from the other of the plurality of data owners;
wherein the computer readable program code is configured to receive, at the service provider and from each of the plurality of data owners, a set of meta-features corresponding to the query and comprising forward pass processing of the local machine learning model of a given of the plurality of data owners, post processing of the local machine learning model of the given of the plurality of data owners, and at least one neighborhood of the local machine learning model of the given of the plurality of data owners, wherein each of the set of the meta-features are extracted, from the encrypted secret shares of the model outputs, by a corresponding of the plurality of data owners using meta-training samples from the local machine learning model and cluster centroids from other of the plurality of data owners; and
generate, using the service provider, a response to the query, wherein the generating comprises determining, by evaluating the meta-model using the set of meta-features received from each of the plurality of data owners, weights for outputs from the local machine learning models and aggregating the outputs in view of the weights.

### Claim 12

A computer program product, comprising:
a computer readable storage medium having computer readable program code embodied therewith, the computer readable program code executable by a processor;
wherein the computer readable program code is configured to receive, at a service provider, a query from a user, wherein the service provider is connected with a plurality of data owners, each of the plurality of data owners having at least one dataset comprising information responsive to the query;
wherein the computer readable program code is configured to provide, by the service provider, the query to each of the plurality of data owners, wherein each of the plurality of data owners has a local machine learning model trained using a dataset of a corresponding data owner, wherein each data owner provides a commitment of the local machine learning model, and wherein the plurality of data owners train a meta-model by a collaboration facilitated by the service provider using secure multi-party computation, wherein each of the plurality of data owners has a share of the meta-model;
wherein the computer readable program code is configured to secret share, via the service provider, model output from each of the plurality of data owners between the other of the plurality of data owners, wherein the model output comprises an output responsive to the query computed using the local machine learning model corresponding to the data owner and wherein the sharing comprises, each of the plurality of data owners, encrypting, to each other data owner, the model output corresponding to the data owner and encrypting the model output shared from the other of the plurality of data owners;
wherein the computer readable program code is configured to receive, at the service provider and from each of the plurality of data owners, a set of meta-features corresponding to the query and comprising forward pass processing of the local machine learning model of a given of the plurality of data owners, post processing of the local machine learning model of the given of the plurality of data owners, and at least one neighborhood of the local machine learning model of the given of the plurality of data owners, wherein each of the set of the meta-features are extracted, from the encrypted secret shares of the model outputs, by a corresponding of the plurality of data owners using meta-training samples from the local machine learning model and cluster centroids from other of the plurality of data owners; and
generate, using the service provider, a response to the query, wherein the generating comprises determining, by evaluating the meta-model using the set of meta-features received from each of the plurality of data owners, weights for outputs from the local machine learning models and aggregating the outputs in view of the weights.

### Claim 13 (depends on 12)

The computer program product of claim 12, wherein each of the plurality of data owners extracts, from the local machine learning model corresponding to the data owner, a set of meta-features.

### Claim 14 (depends on 13)

The computer program product of claim 13, wherein the collaboration comprises the plurality of data owners extracting, by running a multi-party computation, global meta-features across the local machine learning models of the plurality of data owners; and
wherein the meta-model is trained using the set of meta-features from each of the local machine learning models and the global meta-features using secure multi-party computation.

### Claim 15 (depends on 12)

The computer program product of claim 12, wherein the sharing comprises each of the plurality of data owners sampling differential privacy noise based upon agreed upon system privacy parameters corresponding to a given of the plurality of data owners and encrypting the differential privacy noise.

### Claim 16 (depends on 12)

The computer program product of claim 12, wherein the generating comprises adding noise to the model outputs and the weights for the model outputs.

### Claim 17 (depends on 12)

The computer program product of claim 12, wherein each of the plurality of data owners generates the cluster centroids of a corresponding data owner by clustering the meta-training samples of the corresponding local machine learning model and identifying cluster centroids from each meta-training sample cluster.

### Claim 18 (depends on 12)

The computer program product of claim 12, comprising generating a performance proof for benchmarking the performance of the service provider, wherein the query comprises a benchmarking dataset, wherein each of the plurality of data owners produces a vector of outputs for each sample within the benchmarking dataset and a commitment on the vector of outputs, and wherein the set of meta-features comprises a commitment generated for the set of meta-features.

### Claim 19 (depends on 12)

The computer program product of claim 12, wherein each of the plurality of data owners and the service provider are not trusted.

### Claim 20 (depends on 12)

The computer program product of claim 12, wherein each of the local machine learning models are independently trained from and have different data distributions with respect to other of the local machine learning models.
