How a server computes on data it cannot read

Fully Homomorphic Encryption (FHE) lets a server compute on data it cannot read. The server receives encrypted inputs, works on them without ever decrypting them, and returns an encrypted result that only the key holder can open. The idea is almost fifty years old, but it took until 2009 to show it was possible and another fifteen years to make it practical. This section explains how that works and what changed to make it fast enough for AI.

Toy example: m = 3 and f(m) = m × m + 1. Follow a route to f(m).

Figure 3: Computing function f() on encrypted data and then decrypting gives f(m), the same result as computing on the plaintext.

Under FHE, data is turned into ciphertexts that can be computed on. FHE schemes define operations on these ciphertexts that mirror arithmetic on the hidden data: a homomorphic addition of two ciphertexts yields an encryption of their sum, and a homomorphic multiplication yields an encryption of their product. In principle, any computation built from homomorphic additions and multiplications can therefore run without decrypting anything (Figure 3).

FHE is built on lattice-based cryptography, the foundation of most new public-key cryptography standards: in August 2024, NIST based two of its first three post-quantum standards, ML-KEM and ML-DSA, on lattices . Lattice schemes hide the data, known as the plaintext, by mixing it with the secret key and a small amount of random noise. Without the noise, the key would be easy to recover using simple linear algebra. With the noise, recovering the key or the plaintext becomes a problem that no known algorithm solves efficiently. This includes quantum algorithms running on a quantum computer. Therefore, FHE is considered post-quantum secure.

The noise that makes the encryption secure also limits what can be computed. Every operation on a ciphertext adds more noise to it, and after a certain number of operations the noise distorts the plaintext and decryption fails. Without a way to reset it, a scheme can only run computations of a limited length that is fixed in advance.

Bootstrapping, introduced by Craig Gentry in 2009 , overcomes this limitation. It is a complex procedure that brings the noise back down to a low level (Figure 4). The result is a ciphertext that behaves like a fresh encryption, so every output can feed further operations without limit.

Over the years, researchers have built on Gentry's idea with new schemes, each making FHE better suited to a different kind of data and application.

SchemeYearWorks onGood at
BGV / BFV 2011-2012Integers, thousands per ciphertextExact arithmetic, such as counting, statistics or database queries
TFHE 2016Bits and small integers, one per ciphertextFunctions best expressed as a lookup table, such as comparisons
CKKS 2016Real numbers, thousands per ciphertextApproximate arithmetic, as used in machine learning and AI

TFHE handles comparisons and lookup functions well, and Belfort already has an accelerator for it, called Velox . In this paper, however, we focus on CKKS, the scheme best matched to encrypted AI workloads. The next sections explain CKKS and its main performance bottlenecks.

What makes encrypted computing expensive

APacking

Plain values
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  1. 1
  2. 2
  3. 3
  4. 4
  1. 5
  2. 6
  3. 7
  4. 8
Two ciphertexts, megabytes each

Thousands of values in one ciphertext

BNative operations

Slot by slot, on all values at once

CNoise and bootstrapping

Noise budget left
3 multiplications left
Time spent 0 ms

Bootstrapping refills it, at a high cost

Run an operation in B: it acts on all 8 slots at once

Figure 4: Packing puts thousands of values into the slots of a ciphertext. Additions, multiplications and rotations act slot by slot, on all packed values at once. Each multiplication drains the noise budget. Bootstrapping refills it, at the highest cost. Try it: toy parameters and illustrative costs.

Encrypted computing comes at a price. With Fully Homomorphic Encryption, an operation that takes a single cheap instruction on plaintext data, such as an addition, a multiplication or a comparison, becomes a far more complex computation on encrypted data. FHE therefore carries a built-in overhead that better engineering can reduce but not remove. In practice, three things shape how FHE programs are written and how fast they run (Figure 4): large ciphertexts, the limited set of native operations, and the handling of noise and bootstrapping.

  • A. Ciphertexts are large. A CKKS ciphertext is a vector, with slots that hold up to 65,536 values at once. Operations on a ciphertext process all the values simultaneously, much like a vector instruction on a processor. The size of a ciphertext is fixed by the encryption parameters whether or not every slot is used. Ciphertexts are therefore always large objects, typically megabytes each, so moving them between memory and compute units, rather than the arithmetic itself, often limits speed.
  • B. Only additions, multiplications and rotations are native. The operations that we can natively perform on ciphertext vectors are limited to element-wise additions, element-wise multiplications, and vector rotations. Rotations shift the values stored side by side in the slots of a ciphertext, so that values in different positions can be combined. Every computer program can be broken down into additions and multiplications, so FHE can run anything an ordinary computer can. However, in this model, non-polynomial operations such as divisions, exponentials and comparisons cannot be done natively and have to be approximated by polynomials. For example, a comparison is implemented through an approximation of the sign function. The more precise this approximation has to be, the higher the cost.
  • C. Bootstrapping is expensive. CKKS ciphertexts are secure because of the noise present inside them. Additions between ciphertexts increase this noise slightly, while multiplications increase it considerably. In practice, only a certain number of multiplications can be performed in sequence before the noise grows too large. This number is called the multiplicative depth. Once the multiplicative depth is exhausted, bootstrapping is required. Bootstrapping often dominates the cost of applications, so how frequently a computation bootstraps largely sets its speed.

The cryptographic algorithms are improving

The cost gap between computing on plaintext and on ciphertext is not new, and two decades ago, data in transit was in the same position. Cryptography existed, but encryption was considered too expensive to use for every communication link. In the early 2000s, encrypting web traffic consumed so much of the CPU that companies bought dedicated SSL accelerator cards, and most websites only encrypted their login pages, if anything.

A decade of faster processors and better implementations changed that. When Google switched Gmail to HTTPS by default in January 2010, it found that TLS took less than 1% of CPU load, under 10 KB of memory per connection and under 2% of network overhead. Google published the numbers to show that the cost argument no longer held . Today 91.1% of websites use HTTPS by default .

Encrypted computing is on the same path. Through better algorithms, better implementations and better hardware, CKKS bootstrapping, the most expensive operation, is more than 12,000× faster now than it was in 2018: from 2.6 minutes on a CPU in 2018 to under 13 milliseconds on a single GPU in 2025 . On top of that, newer results process twice as much data per ciphertext at higher security. That is a speed-up of roughly 4× every year.

Why GPUs are today's best answer for encrypted computing

FHE is a highly parallel workload: every operation on a ciphertext applies the same arithmetic to thousands of values at once. GPUs are built for exactly this, with thousands of cores computing in parallel. That makes GPUs the natural first platform for fast encrypted computing. With terabytes per second of memory bandwidth, they can also move the megabyte-sized ciphertexts and keys fast enough to keep those cores busy.

Turning that fit into real speed takes efficient cryptographic implementation at every level, from the application down to the hardware, which is a specialty of the Belfort team. Cyclops, Belfort's GPU library for CKKS, brings this expertise together across the full stack:

  • At the application level, it maps workloads such as ResNets, transformers and LLMs onto FHE, choosing how to pack data and structure the computation so it runs efficiently under encryption.
  • At the algorithmic level, it builds on the state-of-the-art FHE cryptography.
  • At the hardware level, it squeezes the maximum performance out of the GPU by minimizing memory load times and idle times.

We applied Cyclops to machine learning first, with ResNet-20 as the first milestone: Cyclops classifies an encrypted CIFAR-10 image in 29.5 ms, about 20,000× faster than Orion on a CPU (618 s) and 15× faster than Cerium (456 ms), the previous fastest GPU implementation (Figure 5).

Encrypted ResNet-20 (CIFAR-10) inference, ms, lower is better
618,200
570
467
456
29.5
Figure 5: Cyclops classifies an encrypted CIFAR-10 image with ResNet-20 in 29.5 ms, 15 times faster than the previous fastest GPU result and about 20,000 times faster than Orion on a CPU.

Machine learning's next frontier is Large Language Models. Recent progress in AI has come from scaling models up, and organizations now want to use LLMs on their sensitive data without exposing it. This is a big jump: ResNet-20 has 0.27 million parameters, while Llama 3.1 8B has 8 billion, about 30,000 times more. Bel-0 makes the jump by bringing together everything in Cyclops, from the cryptography and mathematics to the engineering.

References 13
  1. [16] NIST, "NIST Releases First 3 Finalized Post-Quantum Encryption Standards," news release, 13 August 2024. nist.gov/news-events/news/2024/08/nist-releases-first-3-finalized-post-quantum-encryption-standards
  2. [17] C. Gentry, "A Fully Homomorphic Encryption Scheme," PhD thesis, Stanford University, 2009. crypto.stanford.edu/craig
  3. [18] Z. Brakerski, C. Gentry, V. Vaikuntanathan, "(Leveled) Fully Homomorphic Encryption without Bootstrapping," ITCS, 2012. eprint.iacr.org/2011/277
  4. [19] J. Fan, F. Vercauteren, "Somewhat Practical Fully Homomorphic Encryption," IACR ePrint 2012/144, 2012. eprint.iacr.org/2012/144
  5. [20] I. Chillotti, N. Gama, M. Georgieva, M. Izabachène, "Faster Fully Homomorphic Encryption: Bootstrapping in Less Than 0.1 Seconds," ASIACRYPT, 2016. eprint.iacr.org/2016/870
  6. [21] J. H. Cheon, A. Kim, M. Kim, Y. Song, "Homomorphic Encryption for Arithmetic of Approximate Numbers," ASIACRYPT, 2017. eprint.iacr.org/2016/421
  7. [22] Belfort, "Belfort launches Velox, the world's fastest TFHE accelerator," blog post, 5 March 2026. belfortlabs.com/blog/belfort-launches-velox-the-fastest-tfhe-accelerator
  8. [23] A. Langley, N. Modadugu, W.-T. Chang, "Overclocking SSL," ImperialViolet, 25 June 2010. imperialviolet.org/2010/06/25/overclocking-ssl.html
  9. [24] W3Techs, "Usage statistics of Default protocol https for websites," accessed 27 November 2026. w3techs.com/technologies/details/ce-httpsdefault
  10. [25] H. Chen, I. Chillotti, Y. Song, "Improved Bootstrapping for Approximate Homomorphic Encryption," EUROCRYPT, 2019. eprint.iacr.org/2018/1043
  11. [26] W. Choi, H. Yu, J. Kim, H. Ji, J. Park, J. H. Ahn, "Theodosian: A Deep Dive into Memory-Hierarchy-Centric FHE Acceleration," arXiv:2512.18345, 2025. arxiv.org/abs/2512.18345
  12. [27] A. Ebel, K. Garimella, B. Reagen, "Orion: A Fully Homomorphic Encryption Framework for Deep Learning," ASPLOS, 2025. arxiv.org/abs/2311.03470
  13. [28] S. Jayashankar et al., "Cerium: A Multi-GPU Framework for Terabyte-Scale Encrypted Inference," arXiv:2512.11269, 2025. arxiv.org/abs/2512.11269