# US 2023/0421350 A1 · Optimal profile selection for fhe based analytical models

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

- Number: US 2023/0421350 A1
- Document ID: US20230421350A1
- Status: Published application
- Kind: A1
- Application number: 17/809,036
- Filed: 2022-06-27
- Published: 2023-12-28
- Earliest claimed: 2022-06-27
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: OMRI SOCEANU; GILAD EZOV; Ehud Aharoni
- Web page: https://patentgrep.com/patent/US20230421350A1

## CPC

- H04L 9/008: {involving homomorphic encryption}
- G06F 30/20: Design optimisation, verification or simulation (optimisation, verification or simulation of circuit designs G06F30/30)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method and system for evaluating and selecting an optimal packing solution (or solutions) for data that is run through a fully homomorphic encryption (FHE) simulation. In some instances, a user selected model architecture is provided in order to start simulating multiple potential configurations. Additionally, the cost of each simulated configuration is taken into account when determining an optimal packing solution.

## Claims

### Claim 1

A computer-implemented method (CIM) comprising:
receiving a user requirements data set, with the user requirements data set including information indicative of a model architecture in which to generate a plurality of configurations;
generating, by a configuration generator module, a first plurality of configurations for determining an optimal profile, with the first plurality of configurations including information indicative of a first set of packing details and a first set of fully homomorphic encryption (FHE) configuration details;
simulating, by a configuration simulator module, each configuration of the first plurality of configurations in order to produce a first set of simulation output data;
evaluating, by a cost evaluation module, the first plurality of simulated configurations in order to determine costs associated with each configuration for a given user; and
responsive to the evaluation of the plurality of simulated configurations, determining an optimal configuration, with the optimal configuration being a configuration that yields the lowest cost to the given user.

### Claim 2 (depends on 1)

The CIM of claim 1 further comprising:
determining that the first plurality of configurations that are generated does not yield an optimal configuration;
responsive to the determination, generating, by the configuration generator module, a second plurality of configurations for determining the optimal profile, with the second plurality of configurations including information indicative of a second set of packing details and a second set of fully homomorphic encryption (FHE) configuration details;
simulating, by the configuration simulator module, each configuration of the second plurality of configurations in order to determine costs associated with each configuration for the given user;
evaluating, by the cost evaluation module, the second plurality of simulated configurations in order to determine costs associated with each configuration for the given user; and
responsive to the evaluation of the second plurality of simulated configurations, determining the optimal configuration.

### Claim 3 (depends on 1)

The CIM of claim 1 wherein the cost evaluation module iteratively evaluates subsequent pluralities of simulated configurations until the optimal configuration is determined.

### Claim 4 (depends on 1)

The CIM of claim 1 wherein the simulation of each configuration of the first plurality of configurations includes tracking memory usage impact on an encrypted model.

### Claim 5 (depends on 1)

The CIM of claim 1 wherein:
the simulation configuration module sets a first limitation with respect to a time period in which a computation of encrypted data must be performed; and
the simulation configuration module sets a second limitation with respect to an amount of memory that the computation of the encrypted data cannot exceed.

### Claim 6 (depends on 1)

The CIM of claim 1 wherein the configuration simulator module uses a local search mechanism in order to efficiently allow for the determination of the optimal configuration.

### Claim 7

A computer program product (CPP) comprising:
a machine readable storage device; and
computer code stored on the machine readable storage device, with the computer code including instructions and data for causing a processor(s) set to perform operations including the following:
receiving a user requirements data set, with the user requirements data set including information indicative of a model architecture in which to generate a plurality of configurations,
generating, by a configuration generator module, a first plurality of configurations for determining an optimal profile, with the first plurality of configurations including information indicative of a first set of packing details and a first set of fully homomorphic encryption (FHE) configuration details,
simulating, by a configuration simulator module, each configuration of the first plurality of configurations in order to produce a first set of simulation output data,
evaluating, by a cost evaluation module, the first plurality of simulated configurations in order to determine costs associated with each configuration for a given user, and
responsive to the evaluation of the plurality of simulated configurations, determining an optimal configuration, with the optimal configuration being a configuration that yields the lowest cost to the given user.

### Claim 8 (depends on 7)

The CPP of claim 7 further comprising:
determining that the first plurality of configurations that are generated does not yield an optimal configuration;
responsive to the determination, generating, by the configuration generator module, a second plurality of configurations for determining the optimal profile, with the second plurality of configurations including information indicative of a second set of packing details and a second set of fully homomorphic encryption (FHE) configuration details;
simulating, by the configuration simulator module, each configuration of the second plurality of configurations in order to determine costs associated with each configuration for the given user;
evaluating, by the cost evaluation module, the second plurality of simulated configurations in order to determine costs associated with each configuration for the given user; and
responsive to the evaluation of the second plurality of simulated configurations, determining the optimal configuration.

### Claim 9 (depends on 7)

The CPP of claim 7 wherein the cost evaluation module iteratively evaluates subsequent pluralities of simulated configurations until the optimal configuration is determined.

### Claim 10 (depends on 7)

The CPP of claim 7 wherein the simulation of each configuration of the first plurality of configurations includes tracking memory usage impact on an encrypted model.

### Claim 11 (depends on 7)

The CPP of claim 7 wherein:
the simulation configuration module sets a first limitation with respect to a time period in which a computation of encrypted data must be performed; and
the simulation configuration module sets a second limitation with respect to an amount of memory that the computation of the encrypted data cannot exceed.

### Claim 12 (depends on 7)

The CPP of claim 7 wherein the configuration simulator module uses a local search mechanism in order to efficiently allow for the determination of the optimal configuration.

### Claim 13

A computer system (CS) comprising:
a processor(s) set;
a machine readable storage device; and
computer code stored on the machine readable storage device, with the computer code including instructions and data for causing the processor(s) set to perform operations including the following:
receiving a user requirements data set, with the user requirements data set including information indicative of a model architecture in which to generate a plurality of configurations,
generating, by a configuration generator module, a first plurality of configurations for determining an optimal profile, with the first plurality of configurations including information indicative of a first set of packing details and a first set of fully homomorphic encryption (FHE) configuration details,
simulating, by a configuration simulator module, each configuration of the first plurality of configurations in order to produce a first set of simulation output data,
evaluating, by a cost evaluation module, the first plurality of simulated configurations in order to determine costs associated with each configuration for a given user, and
responsive to the evaluation of the plurality of simulated configurations, determining an optimal configuration, with the optimal configuration being a configuration that yields the lowest cost to the given user.

### Claim 14 (depends on 13)

The CS of claim 13 further comprising:
determining that the first plurality of configurations that are generated does not yield an optimal configuration;
responsive to the determination, generating, by the configuration generator module, a second plurality of configurations for determining the optimal profile, with the second plurality of configurations including information indicative of a second set of packing details and a second set of fully homomorphic encryption (FHE) configuration details;
simulating, by the configuration simulator module, each configuration of the second plurality of configurations in order to determine costs associated with each configuration for the given user;
evaluating, by the cost evaluation module, the second plurality of simulated configurations in order to determine costs associated with each configuration for the given user; and
responsive to the evaluation of the second plurality of simulated configurations, determining the optimal configuration.

### Claim 15 (depends on 13)

The CS of claim 13 wherein the cost evaluation module iteratively evaluates subsequent pluralities of simulated configurations until the optimal configuration is determined.

### Claim 16 (depends on 13)

The CS of claim 13 wherein the simulation of each configuration of the first plurality of configurations includes tracking memory usage impact on an encrypted model.

### Claim 17 (depends on 13)

The CS of claim 13 wherein:
the simulation configuration module sets a first limitation with respect to a time period in which a computation of encrypted data must be performed; and
the simulation configuration module sets a second limitation with respect to an amount of memory that the computation of the encrypted data cannot exceed.

### Claim 18 (depends on 13)

The CS of claim 13 wherein the configuration simulator module uses a local search mechanism in order to efficiently allow for the determination of the optimal configuration.
