Inferensys

Glossary

Circuit Bootstrapping

A TFHE-specific bootstrapping variant that evaluates a lookup table while simultaneously producing a ciphertext with low noise suitable for subsequent operations, enabling composable function evaluation.
Elegant overhead shot of a polished wooden communal table in a sun-drenched WeWork lounge, laptops and tablets displaying AI workflow dashboards, plants and pendant lights in background.
TFHE FUNCTIONAL BOOTSTRAPPING

What is Circuit Bootstrapping?

Circuit bootstrapping is a specialized TFHE operation that evaluates an arbitrary lookup table while simultaneously refreshing a ciphertext to a low-noise state, enabling composable function evaluation on encrypted bits.

Circuit bootstrapping is a TFHE-specific bootstrapping variant that homomorphically evaluates a decryption circuit and a programmable lookup table in a single operation, producing a refreshed ciphertext with minimal noise. Unlike standard bootstrapping, which only resets the noise budget, circuit bootstrapping simultaneously applies a univariate function encoded in

TFHE FUNCTIONAL BOOTSTRAPPING

Key Features of Circuit Bootstrapping

Circuit bootstrapping is a composable TFHE primitive that evaluates a lookup table while simultaneously refreshing ciphertext noise, enabling the evaluation of subsequent operations without decryption.

01

Functional Bootstrapping

The core mechanism that distinguishes circuit bootstrapping from standard noise reduction. It homomorphically evaluates a Look-Up Table (LUT) encoded in the bootstrapping key. This transforms an encrypted input message into an encrypted output message according to an arbitrary univariate function f(x), while simultaneously resetting the noise budget to a fixed low level. This enables the evaluation of non-linear activation functions directly on encrypted data.

< 50ms
Typical Gate Latency
02

Composability

Unlike leveled FHE where operations consume a finite noise budget, circuit bootstrapping produces a refreshed ciphertext with a guaranteed noise level. This output can immediately serve as input for another bootstrapping operation. This property enables the construction of arbitrarily deep circuits without the noise accumulation that causes decryption failure, making it essential for complex encrypted control flow and iterative algorithms.

03

Programmable Look-Up Tables

The bootstrapping procedure evaluates a univariate function encoded as a look-up table. This allows the direct homomorphic evaluation of functions that are difficult to approximate with polynomials, such as:

  • Sign function and step functions
  • ReLU and other activation functions
  • Rounding and quantization operations
  • Arbitrary boolean gates (AND, OR, XOR) on encrypted bits
04

Vertical Packing

A throughput optimization technique that encodes multiple independent LUT evaluations into a single bootstrapping operation. By packing several plaintext values into the slots of a single RLWE ciphertext and applying a multi-output LUT, circuit bootstrapping can evaluate the same function on multiple encrypted inputs simultaneously. This dramatically improves the amortized cost per operation in batched inference scenarios.

05

Gate Bootstrapping vs. Circuit Bootstrapping

Gate bootstrapping (TFHE's foundational operation) evaluates a single binary gate and produces a ciphertext suitable only for further gate operations. Circuit bootstrapping extends this by producing a ciphertext with a low-noise encoding compatible with leveled operations (additions, multiplications) before the next bootstrap. This bridges the gap between fast boolean circuits and arithmetic operations, enabling mixed-circuit evaluation.

06

External Product Dominance

The computational cost of circuit bootstrapping is dominated by the external product between an RLWE ciphertext and a precomputed Bootstrapping Key (BSK). The BSK encrypts the secret key under itself in a GSW-like format. Optimizing this external product—through hardware acceleration or algorithmic improvements like multi-bit PBS—is the primary focus for reducing latency in production FHE deployments.

CIRCUIT BOOTSTRAPPING EXPLAINED

Frequently Asked Questions

Circuit bootstrapping is a critical extension of TFHE that enables the evaluation of multi-output lookup tables and the composition of arbitrary functions on encrypted data. Below are the most common technical questions about its mechanism, performance, and role in privacy-preserving computation.

Circuit bootstrapping is a TFHE-specific cryptographic technique that simultaneously evaluates a multi-output lookup table (LUT) on an encrypted input while refreshing the ciphertext's noise budget to a fixed low level. Unlike standard programmable bootstrapping, which outputs a single encrypted bit, circuit bootstrapping produces a vector of encrypted bits representing the LUT's output. The mechanism works by homomorphically evaluating the decryption circuit of the input ciphertext, extracting the phase, and using it to index into an encrypted lookup table. The output ciphertexts are refreshed to a noise level low enough to serve as inputs to subsequent operations, enabling composable function evaluation without noise accumulation. This process leverages the external product with a bootstrapping key and key-switching operations to transform the noisy input into clean output ciphertexts suitable for further homomorphic computation.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.