# US 2023/0267216 A1 · Machine learning models with multi-budget differential privacy

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

- Number: US 2023/0267216 A1
- Document ID: US20230267216A1
- Status: Published application
- Kind: A1
- Application number: 17/678,449
- Filed: 2022-02-23
- Published: 2023-08-24
- Earliest claimed: 2022-02-23
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Anderson Santana De Oliveira; Caelin Kaplan
- Web page: https://patentgrep.com/patent/US20230267216A1

## CPC

- G06F 21/60: Protecting data
- G06V 10/7747: {Organisation of the process, e.g. bagging or boosting}
- G06V 10/776: Validation; Performance evaluation
- G06F 21/6245: {Protecting personal data, e.g. for financial or medical purposes}
- G06F 21/6254: {by anonymising data, e.g. decorrelating personal data from the owner's identification}
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/08: Learning methods
- G06N 7/01: Probabilistic graphical models, e.g. probabilistic networks
- G06N 20/20: Ensemble learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06V 10/82: using neural networks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Various examples are directed to systems and methods for using a machine learning model. A computing system may access training data comprising a plurality of training data items. Each of the plurality of training data items may comprise a plurality of features. From a first training data item of the plurality of training data items, the computing system may generate a first transformed training data item using a first privacy budget corresponding to a first portion of the first training data item and a second privacy budget corresponding to a second portion of the first training data item. The computing system may train a machine learning model using the first transformed training data item and use the trained machine learning model to generate at least one class probability for a data item.

## Claims

### Claim 1

A computing system, comprising:
at least one processor programmed to perform operations comprising:
accessing training data, the training data comprising a plurality of training data items, each of the plurality of training data items comprising a plurality of features;
from a first training data item of the plurality of training data items, generating a first transformed training data item using a first privacy budget corresponding to a first portion of the first training data item and a second privacy budget corresponding to a second portion of the first training data item;
training a machine learning model using the first transformed training data item to generate a trained machine learning model; and
using the trained machine learning model to generate at least one class probability for a data item.

### Claim 2 (depends on 1)

The computing system of claim 1, the operations further comprising:
selecting a first noise level for a first feature of the first training data item using the first privacy budget;
applying the first noise level to the first feature of the first training data item;
selecting a second noise level for a second feature of the first training data item using the second privacy budget; and
applying the second noise level to the second feature of the first training data item.

### Claim 3 (depends on 2)

The computing system of claim 2, the operations further comprising generating a second transformed training data item from a second training data item of the plurality of training data items, the generating of the second transformed training data item comprising:
applying the first noise level to a first feature of the second training data item; and
applying the second noise level to a second feature of the second training data item.

### Claim 4 (depends on 1)

The computing system of claim 1, the operations further comprising:
applying an encoder model to the first training data item to generate a first set of latent variable values, the first set of latent variable values comprising a first latent variable value and a second latent variable value;
selecting a first noise level for the first latent variable value using the first privacy budget;
applying the first noise level to first latent variable value;
selecting a second noise level for the second latent variable value using the second privacy budget;
applying the second noise level to the second latent variable value; and
applying a decoder model to generate the first transformed training data item.

### Claim 5 (depends on 1)

The computing system of claim 1, the operations further comprising:
applying the trained machine learning model to the training data to generate at least one class probability for the plurality of training data items;
applying the trained machine learning model to test data comprising a plurality of test data items to generate at least one class probability for the plurality of test data items; and
training an adversary machine learning model using training data, the at least one class probability for the plurality of training data items, the test data, and the at least one class probability for the plurality of test data items.

### Claim 6 (depends on 5)

The computing system of claim 5, the operations further comprising:
using the adversary machine learning model to determine a training data membership loss;
using the adversary machine learning model to determine a test data membership loss; and
using the training data membership loss and the test data membership loss to update at least one weight of the adversary machine learning model.

### Claim 7 (depends on 1)

The computing system of claim 1, the operations further comprising applying a feature importance tool to the machine learning model to determine a first importance value for a first feature of the plurality of features and a second importance value for a second feature of the plurality of features.

### Claim 8 (depends on 7)

The computing system of claim 7, the operations further comprising:
accessing sensitivity data describing at least a first sensitivity level for the first feature and a second sensitivity value for the second feature; and
using the sensitivity data and the first importance value for the first feature to determine a modified first feature privacy budget.

### Claim 9 (depends on 7)

The computing system of claim 7, the operations further comprising:
sending the first importance value for the first feature to a user computing device; and
receiving, from the user computing device, an indication of modified first feature privacy budget.

### Claim 10

A computer-implemented method, comprising:
accessing training data, the training data comprising a plurality of training data items, each of the plurality of training data items comprising a plurality of features;
from a first training data item of the plurality of training data items, generating a first transformed training data item using a first privacy budget corresponding to a first portion of the first training data item and a second privacy budget corresponding to a second portion of the first training data item;
training a machine learning model using the first transformed training data item to generate a trained machine learning model; and
using the trained machine learning model to generate at least one class probability for a data item.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
selecting a first noise level for a first feature of the first training data item using the first privacy budget;
applying the first noise level to the first feature of the first training data item;
selecting a second noise level for a second feature of the first training data item using the second privacy budget; and
applying the second noise level to the second feature of the first training data item.

### Claim 12 (depends on 11)

The method of claim 11, further comprising generating a second transformed training data item from a second training data item of the plurality of training data items, the generating of the second transformed training data item comprising:
applying the first noise level to a first feature of the second training data item; and
applying the second noise level to a second feature of the second training data item.

### Claim 13 (depends on 10)

The method of claim 10, further comprising:
applying an encoder model to the first training data item to generate a first set of latent variable values, the first set of latent variable values comprising a first latent variable value and a second latent variable value;
selecting a first noise level for the first latent variable value using the first privacy budget;
applying the first noise level to first latent variable value;
selecting a second noise level for the second latent variable value using the second privacy budget;
applying the second noise level to second latent variable value; and
applying a decoder model to generate the first transformed training data item.

### Claim 14 (depends on 10)

The method of claim 10, further comprising:
applying the trained machine learning model to the training data to generate at least one class probability for the plurality of training data items;
applying the trained machine learning model to test data comprising a plurality of test data items to generate at least one class probability for the plurality of test data items; and
training an adversary machine learning model using training data, the at least one class probability for the plurality of training data items, the test data, and the at least one class probability for the plurality of test data items.

### Claim 15 (depends on 14)

The method of claim 14, further comprising:
using the adversary machine learning model to determine a training data membership loss;
using the adversary machine learning model to determine a test data membership loss; and
using the training data membership loss and the test data membership loss to update at least one weight of the adversary machine learning model.

### Claim 16 (depends on 10)

The method of claim 10, further comprising applying a feature importance tool to the machine learning model to determine a first importance value for a first feature of the plurality of features and a second importance value for a second feature of the plurality of features.

### Claim 17 (depends on 16)

The method of claim 16, further comprising:
accessing sensitivity data describing at least a first sensitivity level for the first feature and a second sensitivity value for the second feature; and
using the sensitivity data and the first importance value for the first feature to determine a modified first feature privacy budget.

### Claim 18

A non-transitory machine-readable medium comprising instructions thereon that, when executed by at least one processor, causes the at least one processor to perform operations comprising:
accessing training data, the training data comprising a plurality of training data items, each of the plurality of training data items comprising a plurality of features;
from a first training data item of the plurality of training data items, generating a first transformed training data item using a first privacy budget corresponding to a first portion of the first training data item and a second privacy budget corresponding to a second portion of the first training data item;
training a machine learning model using the first transformed training data item to generate a trained machine learning model; and
using the trained machine learning model to generate at least one class probability for a data item.

### Claim 19 (depends on 18)

The medium of claim 18, the operations further comprising:
selecting a first noise level for a first feature of the first training data item using the first privacy budget;
applying the first noise level to the first feature of the first training data item;
selecting a second noise level for a second feature of the first training data item using the second privacy budget; and
applying the second noise level to the second feature of the first training data item.

### Claim 20 (depends on 18)

The medium of claim 18, the operations further comprising:
applying an encoder model to the first training data item to generate a first set of latent variable values, the first set of latent variable values comprising a first latent variable value and a second latent variable value;
selecting a first noise level for the first latent variable value using the first privacy budget;
applying the first noise level to first latent variable value;
selecting a second noise level for the second latent variable value using the second privacy budget;
applying the second noise level to second latent variable value; and
applying a decoder model to generate the first transformed training data item.
