hottub.patents
US 12,701,002 B2#3172659 Most CitedActiveUnited States (USPTO)Utility

Method of optimizing linear transformation

0Forward Citations (#3172659 Global)
0.0/yrCitation Velocity (#3172659 Global)
0.00Citation PageRank (#3172659 Global)
65Prior Art Cited
8Structured Claims
0Drawings / Sheets

Abstract

A method and system for optimizing compute runtime and memory footprint of a linear transformation process are provided. The method includes determining a set of optimal rotation parameters, wherein the optimal rotation parameters provide an optimal tradeoff between runtime compute resources and a memory footprint for a runtime execution of the linear transformation process; initializing the linear transformation process to run a boosting technique with the determined set of optimal rotation parameters, wherein the boosting technique, when executed at runtime as part of the linear transformation process, performs at least one iteration that yields rotated ciphertexts, and wherein the at least one iteration is based on the determined set optimal rotation parameters and at least one key switching key (KSK); and loading the initialized linear transformation process to an internal memory of a hardware accelerator.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 65 · Forward citations: 0.

Claims (8)

  1. Claim 1Independent Claim

    A method for optimizing compute runtime and memory footprint of a linear transformation process, comprising: determining a set of optimal rotation parameters, wherein the optimal rotation parameters provide an optimal tradeoff between runtime compute resources and a memory footprint for a runtime execution of the linear transformation process; wherein the linear transformation process is a linear transformation of a ciphertext by a matrix with nonzero diagonals; wherein the rotation parameters include: a number of baby steps ( β), a number of giant steps ( γ), a boosting factor (bf), and a ConAcc activation flag; wherein the ConAcc activation flag indicates whether a contiguous accumulation routine is utilized as part of the linear transformation process; and wherein the optimal tradeoff comprises selecting, among configurations that satisfy a hardware memory constraint, one with a shortest program runtime; initializing the linear transformation process to run a boosting technique with

  2. Claim 2Depends on #1

    The method of claim 1, further comprising: determining the optimal rotation parameters based on a size of the internal memory, hardware constraints of the hardware accelerator including a total memory limit for the hardware processing capabilities, a number of accelerators, multipliers, and CPU cores, and global parameters of a program including the linear transformation process.

  3. Claim 3Depends on #2

    The method of claim 2, wherein determining the optimal rotation parameters further comprises: generating a plurality of configurations based on possible combinations of the global program parameters, including rotation parameters; evaluating runtime compute resources and memory footprint required for each configuration of the plurality of configurations; and selecting a configuration out of the plurality of configurations that satisfies the hardware memory constraint and has the shortest program runtime.

  4. Claim 4Depends on #3

    The method of claim 3, wherein the runtime compute resources are based in part on a number of digit decomposition operations, including number-theoretical transforms (NTTs) and multiplications.

  5. Claim 5Depends on #1

    The method of claim 1, further comprising: initializing the boosting technique to perform a contiguous accumulation routine, when the ConAcc activation flag is set to true.

  6. Claim 6Depends on #5

    The method of claim 5, wherein performing the contiguous accumulation routine further comprises: generating β ciphertext outputs one by one; and for each generated ciphertext output, accumulating the ciphertext output's contribution to each of γ accumulator ciphertexts corresponding to γ partial sums by computing the products of the ciphertext output by associated diagonals.

  7. Claim 7Depends on #6

    The method of claim 6, wherein the contiguous accumulation routine further comprises: reducing peak memory footprint in the process of multiplying diagonals by rotated ciphertext and summing products resulting from the multiplying during runtime.

  8. Claim 8Depends on #1

    The method of claim 1, wherein performing the at least one iteration further comprises: computing one digit decomposition phase that generates temporary polynomials in a larger modulus QP from coefficients of an input polynomial; computing a number of bf MultSum phases with bf KSKs, each MultSum phase computing two inner products between a decomposed array of polynomials and respective parts of a KSK; and computing a number of bf permute phases of two ciphertext polynomials, wherein each MultSum phases outputs two ciphertext polynomials for the permute phases, and wherein each permute phase deterministically rearranges elements of a polynomial according to a parameter r to encode a rotation.

Technical Overview & Description

CROSS-REFERENCE TO RELATED APPLICATIONS This application claims the benefit of U.S. Provisional Application No. 63/568,472 filed on Mar. 22, 2024, the contents of which are hereby incorporated by reference. TECHNICAL FIELD The present disclosure relates generally to fully homomorphic encryption (FHE) schemes and, more specifically, to a linear transformation. BACKGROUND FHE enables computations on encrypted data without needing to decrypt it first. The Cheon-Kim-Kim-Song (CKKS) scheme is one of the encryption methods used in FHE, particularly well-suited for dealing with arithmetic on complex numbers. The core feature of FHE is performing computations on encrypted data. With CKKS, one can perform addition, subtraction, and multiplication on ciphertexts. These operations correspond to similar operations on the original plaintext numbers. To make the scheme more efficient, a sequence of values can be encrypted into a single ciphertext, this sequence can be rotated. Importantly, CKKS allows for these operations to be performed with relatively low noise growth, which is a significant challenge in FHE. As operations are performed on ciphertexts, noise within the encrypted data accumulates. If the noise grows too large, it can make the decrypted result incorrect. CKKS also manages this noise by scaling down ciphertexts after multiplications. The CKKS scheme includes a technique for controlling this noise called Rescaling, which also reduces the size of the ciphertext. When the size of a ciphertext reaches a threshold, the bootstrapping process can be applied. The bootstrapping process refreshes the ciphertext, increasing its size and enabling more computations to be performed. Bootstrapping is a crucial process that allows FHE schemes to practically perform an unlimited number of homomorphic computations on encrypted data. CKKS is a potent FHE scheme, enabling arithmetic operations on approximate number vectors of length n. The scheme supports various operations such as a

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

References Cited — Backward Prior Art (65)

PatentTitleYearCitations
US 2025/0005101 A1TECHNIQUES FOR TWIDDLE FACTOR GENERATION FOR NUMBER-THEORETIC- TRANSROM AND INVERSE-NUMBER-THEORETIC-TRANFORM COMPUTATIONS—4
US 2025/0023715 A1ELECTRIC DEVICE AND KEY SWITCHING METHOD THEREOF—5
US 2025/0047484 A1POLYNOMIAL MULTIPLICATION OF ENCRYPTED VALUES—4
US 2025/0055672 A1CRYPTOGRAPHIC PROCESSOR FOR FULLY HOMOMORPHIC ENCRYPTION (FHE) APPLICATIONS—2
US 2025/0112757 A1TECHNIQUES FOR USE OF MIXED WORD SIZE MULTIPLICATION FOR FULLY HOMOMORPHIC ENCRYPTION RELINEARIZATION—2
US 2025/0150254 A1EFFICIENT COMPUTATION OF MATRIX DETERMINANTS UNDER FULLY HOMOMORPHIC ENCRYPTION (FHE) USING SINGLE INSTRUCTION MULTIPLE DATA (SIMD)—4
US 2025/0167976 A1METHOD FOR ACCELERATING BOOTSTRAPPING IN A CRYPTOGRAPHIC APPLICATION—7
US 2025/0211435 A1CONFIGURABLE VARIABLE-WORD SIZE XORSHIFT RANDOM NUMBER GENERATOR—5
US 2025/0266984 A1ELECTRONIC APPARATUS AND PERFORMING OPERATIONS ON HOMOMORPHIC CIPHERTEXT AND CONTROL METHOD THEREOF—4
US 2025/0279886 A1PROCESSING SYSTEM AND METHOD RELATED TO ENCRYPTION—2
US 2025/0300806 A1A METHOD OF OPTIMIZING LINEAR TRANSFORMATION—6
US 2025/0300807 A1TECHNIQUES FOR OPTIMIZING BOOTSTRAPPING EXECUTION OF A FULLY HOMOMORPHIC ENCRYPTION—7
US 2025/0300832 A1METHOD FOR ENHANCING KEY-SWITCHING EFFICIENCY FOLLOWING MODRAISE IN FULLY HOMOMORPHIC ENCRYPTION—4
US 2025/0337560 A1METHOD FOR PROCESSING HOMOMORPHIC CIPHERTEXT AND ELECTRONIC APPARATUS—4
US 2025/0343671 A1METHOD FOR PROCESSING HOMOMORPHIC ENCRYPTION AND ELECTRONIC APPARATUS—4

Non-Patent Literature (10)

  • Wonkyung et al.
  • “
  • Over 100x faster bootstrapping in fully homomorphic encryption through memory-centric optimization with GPUs.
  • ”
  • , IACR Transactions on Cryptographic Hardware and Embedded Systems (2021): 114-148; Apr. 23, 2021, https://ia.cr/2021/508 (Year: 2021).
  • Over 100x faster bootstrapping in fully homomorphic encryption through memory-centric optimization with GPUs (Year: 2021).
  • Bossuat, Jean-Philippe, Mouchet, Christian, Troncoso-Pastoriza, Juan, and Hubaux, Jean-Pierre,
  • “
  • Efficient Bootstrapping for Approximate Homomorphic Encryption with Non-Sparse Keys
  • ”