# US 2026/0039449 A1 · Increasing the speed of homomorphic encryption encoding

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

- Number: US 2026/0039449 A1
- Document ID: US20260039449A1
- Status: Published application
- Kind: A1
- Application number: 18/791,566
- Filed: 2024-08-01
- Published: 2026-02-05
- Earliest claimed: 2024-08-01
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Subhankar Pal; Nir Drucker; Ehud Aharoni
- Web page: https://patentgrep.com/patent/US20260039449A1

## CPC

- H04L 9/008: {involving homomorphic encryption}
- H04L 2209/125: Parallelization or pipelining, e.g. for accelerating processing of cryptographic operations
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Mechanisms are provided for increasing the speed of an encoding process. The mechanisms classify operations in the encoding process based on learned associations between patterns of input data and corresponding encoding result types generated from encoding the patterns of input data. The mechanisms identify operations in the encoding process that can be pruned based on the classifications, to thereby generate a set of prune operations. In addition, the mechanisms replace operations in the set of prune operations with replacement operations that retrieve a corresponding previously generated result. Moreover, the mechanisms emit optimized encoding code comprising the replacement operations in replacement of the set of prune operations that are pruned, for execution of the encoding process using the optimized encoding code.

## Claims

### Claim 1

A computer-implemented method, in a data processing system, for increasing the speed of an encoding process, the method comprising:
classifying operations in the encoding process based on learned associations between patterns of input data and corresponding encoding result types generated from encoding the patterns of input data;
identifying operations in the encoding process that can be pruned based on the classifications, to thereby generate a set of prune operations;
replacing operations in the set of prune operations with replacement operations that retrieve a corresponding previously generated result; and
emitting optimized encoding code comprising the replacement operations in replacement of the set of prune operations that are pruned, for execution of the encoding process using the optimized encoding code.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the replacement operations comprise a copy operation, a copy-conjugate operation, or an assignment operation for assigning a result value to a predetermined value.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the encoding process corresponds to original encoding code provided by an orchestrator computing system, and wherein the optimized encoding code is output to a client computing device for execution on the client computing device as part of an encoder that encodes an input workload for homomorphic encryption operations.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, wherein the encoder operates to compare first metadata of an input workload to second metadata associated with the optimized encoding code, and in response to the first metadata matching the second metadata, the optimized encoding code is executed on the input workload to encode the input workload.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the learned associations between patterns of input data and corresponding encoding result types comprises patterns of metadata specifying a structure of the input data that correspond to encoding operations whose results are duplicative of other encoding operations or whose results are a zero value.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, wherein the duplicative operations comprise duplicate conjugate operations.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the optimized encoding code comprises at least one of an optimized Discrete Fourier Transform (DFT) algorithm, an optimized scale-and-round algorithm, an optimized Number Theoretic Transform (NTT) algorithm, or a mask for an optimized hardware implementation of one or more of the DFT, scale-and-round, or NTT algorithms.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein the encoding process is a homomorphic encryption (HE) encoding process executed by a HE circuit.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein the classifying, identifying, and replacing operations are performed for a client specified encoding process comprising a discrete Fourier transform (DFT) operation, a scale-and-round operation, and a Number Theoretic Transform (NTT) operation, and wherein the classifying, identifying, and replacing operations are repeated for each of the DFT operation, scale-and-round operation, and NTT operation.

### Claim 10 (depends on 9)

The computer-implemented method of claim 9, where the DFT or the NTT operation operate over mathematical structures defined by a homomorphic encryption scheme.

### Claim 11

A computer program product comprising a computer readable storage medium having a computer readable program stored therein, wherein the computer readable program, when executed in a data processing system, causes the data processing system to:
classify operations in the encoding process based on learned associations between patterns of input data and corresponding encoding result types generated from encoding the patterns of input data;
identify operations in the encoding process that can be pruned based on the classifications, to thereby generate a set of prune operations;
replace operations in the set of prune operations with replacement operations that retrieve a corresponding previously generated result; and
emit optimized encoding code comprising the replacement operations in replacement of the set of prune operations that are pruned, for execution of the encoding process using the optimized encoding code.

### Claim 12 (depends on 11)

The computer program product of claim 11, wherein the replacement operations comprise a copy operation, a copy-conjugate operation, or an assignment operation for assigning a result value to a predetermined value.

### Claim 13 (depends on 11)

The computer program product of claim 11, wherein the encoding process corresponds to original encoding code provided by an orchestrator computing device, and wherein the optimized encoding code is output to a client computing device for execution on the client computing device as part of an encoder that encodes an input workload for homomorphic encryption operations.

### Claim 14 (depends on 13)

The computer program product of claim 13, wherein the encoder operates to compare first metadata of an input workload to second metadata associated with the optimized encoding code, and in response to the first metadata matching the second metadata, the optimized encoding code is executed on the input workload to encode the input workload.

### Claim 15 (depends on 11)

The computer program product of claim 11, wherein the learned associations between patterns of input data and corresponding encoding result types comprises patterns of metadata specifying a structure of the input data that correspond to encoding operations whose results are duplicative of other encoding operations or whose results are a zero value.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the duplicative operations comprise duplicate conjugate operations.

### Claim 17 (depends on 11)

The computer program product of claim 11, wherein the optimized encoding code comprises at least one of an optimized Discrete Fourier Transform (DFT) algorithm, an optimized scale-and-round algorithm, an optimized Number Theoretic Transform (NTT) algorithm, or a mask for an optimized hardware implementation of one or more of the DFT, scale-and-round, or NTT algorithms.

### Claim 18 (depends on 11)

The computer program product of claim 11, wherein the encoding process is a homomorphic encryption (HE) encoding process executed by a HE circuit.

### Claim 19 (depends on 11)

The computer program product of claim 11, wherein the classifying, identifying, and replacing operations are performed for a client specified encoding process comprising a discrete Fourier transform (DFT) operation, a scale-and-round operation, and a Number Theoretic Transform (NTT) operation, and wherein the classifying, identifying, and replacing operations are repeated for each of the DFT operation, scale-and-round operation, and NTT operation.

### Claim 20

An apparatus comprising:
at least one processor; and
at least one memory coupled to the at least one processor, wherein the at least one memory comprises instructions which, when executed by the at least one processor, cause the at least one processor to:
classify operations in the encoding process based on learned associations between patterns of input data and corresponding encoding result types generated from encoding the patterns of input data;
identify operations in the encoding process that can be pruned based on the classifications, to thereby generate a set of prune operations;
replace operations in the set of prune operations with replacement operations that retrieve a corresponding previously generated result; and
emit optimized encoding code comprising the replacement operations in replacement of the set of prune operations that are pruned, for execution of the encoding process using the optimized encoding code.
