# US 2021/0081203 A1 · System and method for approximating branching operations for use with data encrypted by fully homomorphic encryption (fhe)

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

- Number: US 2021/0081203 A1
- Document ID: US20210081203A1
- Status: Published application
- Kind: A1
- Application number: 16/568,988
- Filed: 2019-09-12
- Published: 2021-03-18
- Earliest claimed: 2019-09-12
- Assignees: Intuit Inc.
- Applicants: Intuit Inc.
- Inventors: Margarita VALD; Yaron SHEFFER; Yehezkel Shraga RESHEFF; Tzvika BARENHOLZ
- Web page: https://patentgrep.com/patent/US20210081203A1

## CPC

- G06F 9/30058: {Conditional branch instructions}
- G06F 21/602: {Providing cryptographic facilities or services}
- G06F 21/6227: {where protection concerns the structure of data, e.g. records, types, queries}
- H04L 9/008: {involving homomorphic encryption}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Systems and methods that approximate and use branching operations on data encrypted by fully homomorphic encryption (FHE). The systems and methods may use polynomial approximation to convert “if” statements into “soft if” statements that may be applied to the FHE encrypted data in a manner that preserves the security of the systems and methods.

## Claims

### Claim 1

A computer implemented method comprising:
inputting, at a first computing device and from a second computing device connected to the first computing device through a network connection, a computation to be applied to encrypted data and executed on the first computing device;
determining that the computation includes a branching operation;
replacing the branching operation with an approximated branching operation; and
performing the computation on the encrypted data using the approximated branching operation to obtain an encrypted result of the computation.

### Claim 2 (depends on 1)

The method of claim 1, wherein replacing the branching operation with the approximated branching operation comprises approximating the branching operation using a polynomial approximation.

### Claim 3 (depends on 1)

The method of claim 1, wherein replacing the branching operation with the approximated branching operation comprises approximating the branching operation using a means square integral polynomial approximation.

### Claim 4 (depends on 1)

The method of claim 1, wherein replacing the branching operation with the approximated branching operation comprises:
determining a step function having an input range corresponding to an input range of the computation; and
integrating the step function with a polynomial approximating the step function over the input range of the step function.

### Claim 5 (depends on 4)

The method of claim 4, wherein the integrating step uses a weighting function to normalize its output.

### Claim 6 (depends on 1)

The method of claim 1, wherein determining that the computation includes a branching operation comprises determining that the computation includes an “if” statement.

### Claim 7 (depends on 1)

The method of claim 1, further comprising storing the encrypted result of the computation in a database connected to the first computing device via the network connection.

### Claim 8

A computer implemented method comprising:
inputting, at a first computing device, one or more computations to be applied to encrypted data received at the first computing device over a network connection;
determining that the one or more computations comprise a branching operation;
for each of the one or more computations comprising a branching operation:
replacing the branching operation with an approximated branching operation; and
performing the computation on the encrypted data using the approximated branching operation to obtain an encrypted result of the computation.

### Claim 9 (depends on 8)

The method of claim 8, wherein replacing the branching operation with the approximated branching operation comprises approximating the branching operation using a means square integral polynomial approximation.

### Claim 10 (depends on 8)

The method of claim 8, wherein replacing the branching operation with the approximated branching operation comprises:
determining a step function having an input range corresponding to an input range of the computation; and
integrating the step function with a polynomial approximating the step function over the input range of the step function.

### Claim 11 (depends on 8)

The method of claim 8, wherein determining that the computation includes a branching operation comprises determining that the computation includes an “if” statement.

### Claim 12

A system for approximating a branching operation in a computation to be applied to encrypted data, said system comprising:
a first computing device connected to a second computing device through a network connection, the first computing device configured to:
input, from the second computing device, the computation to be applied to the encrypted data and executed on the first computing device,
determine that the computation includes the branching operation,
replace the branching operation with an approximated branching operation, and
perform the computation on the encrypted data using the approximated branching operation to obtain an encrypted result of the computation.

### Claim 13 (depends on 12)

The system of claim 12, wherein the first computing device is configured to replace the branching operation with the approximated branching operation by approximating the branching operation using a polynomial approximation.

### Claim 14 (depends on 12)

The system of claim 12, wherein the first computing device is configured to replace the branching operation with the approximated branching operation by approximating the branching operation using a means square integral polynomial approximation.

### Claim 15 (depends on 12)

The system of claim 12, wherein the first computing device is configured to replace the branching operation with the approximated branching operation by:
determining a step function having an input range corresponding to an input range of the computation; and
integrating the step function with a polynomial approximating the step function over the input range of the step function.

### Claim 16 (depends on 15)

The system of claim 15, wherein integrating the step function uses a weighting function to normalize its output.

### Claim 17 (depends on 12)

The system of claim 12, wherein the first computing device is configured to determine that the computation includes a branching operation by determining that the computation includes an “if” statement.

### Claim 18 (depends on 12)

The system of claim 12, wherein the first computing device is configured to store the encrypted result of the computation in a database connected to the first computing device via the network connection.

### Claim 19 (depends on 12)

The system of claim 12, wherein the network connection is a cloud-based connection.
