BitGC Made (More) Efficient

Wenhao Zhang, Hanlin Liu, Kang Yang, Wen-jie Lu, Yu Yu, Xiao Wang, Chenkai Weng

TL;DR

This paper transforms "BitGC"—a theoretical breakthrough in garbled circuits that requires only one bit of communication per gate—into a practical reality. By introducing SIMD optimizations and "free-XOR" techniques, the authors achieve a staggering 2000× speedup over previous implementations, allowing an AES-128 circuit to be garbled in just 3 minutes with a total size of only 4 KB.

What Problem Does This Paper Address?

Garbled Circuits (GC) are a cornerstone of secure two-party computation, allowing two parties to compute a function on their private inputs without revealing anything else. For decades, the "holy grail" was reducing the communication cost (the size of the garbled table sent between parties).

Recently, a new class of protocols called BitGC achieved the theoretical limit of just 1 bit per gate. However, there was a catch: these protocols relied on heavy cryptographic machinery—specifically Somewhat Homomorphic Encryption (SWHE)—making them agonizingly slow. Initial estimates suggested that garbling a standard AES-128 circuit would take at least four days on a single CPU. This paper addresses this massive "computation gap," moving BitGC from a theoretical curiosity to a usable tool.

Methods

The authors propose three optimized variants of BitGC (BitGC-small, BitGC-tiny, and BitGC-fast) using several novel techniques:

  1. SIMD-Enabled SWHE: Standard SWHE optimizations use SIMD (Single Instruction, Multiple Data) to process thousands of bits at once. However, BitGC originally required an "even" plaintext modulus, which is incompatible with the prime moduli needed for SIMD. The authors redesigned the BitGC structure to break the dependency between garbled labels and permutation bits, allowing them to use any ciphertext space and unlock SIMD acceleration.
  2. Free-XOR for BitGC: In traditional garbling, XOR gates are "free" (zero communication). BitGC initially treated XOR and AND gates the same. The authors developed a method to make XOR gates communication-free even within the BitGC framework by ensuring output permutation bits are the XOR of input bits.
  3. The 5-Bit "Fast" Variant: To further reduce computation, they introduced a variant that uses 5 bits per AND gate. This version eliminates the need for expensive homomorphic multiplications during the online garbling phase, trading a small amount of bandwidth for a massive boost in speed.

Datasets

The primary benchmark used is the AES-128 circuit, a standard "litmus test" in the cryptography community. This circuit consists of:

  • 6,400 AND gates
  • 28,176 XOR gates

The authors also compare their results against the original BitGC construction (LWYY25b) and other state-of-the-art schemes like Rosulek and Roy (RR21).

Key Insights and Ideas

  • Breaking the Modulus Barrier: The most significant "aha moment" was realizing that the requirement for an even plaintext modulus in BitGC was not fundamental. By decoupling the permutation bits from the labels, they could use NTT-friendly (Number Theoretic Transform) prime moduli, which are essential for high-performance lattice-based cryptography.
  • Arithmetic vs. Boolean Logic: BitGC operates in an arithmetic world (using additions and subtractions on ciphertexts), while circuits are Boolean. The authors found a clever way to map Boolean XOR logic into the arithmetic structure of BitGC to achieve "free-XOR."
  • The Computation-Communication Trade-off: While 1-bit-per-gate is the theoretical minimum for communication, the 5-bit-per-gate variant (BitGC-fast) is actually more practical for most users because it reduces the CPU time from over an hour to just a few minutes.

Key Results

The performance improvements are dramatic, as shown in the paper's benchmarks on an AWS EC2 instance:

Scheme Comm. (AND/XOR) AES-128 Size AES-128 Time
Original BitGC 1 bit / 1 bit 4.3 KB > 101 hours (est.)
BitGC-small 1 bit / 1 bit 4.3 KB 91 minutes
BitGC-fast 5 bits / 0 bit 4.0 KB 189 seconds
  • Speed: BitGC-fast is nearly 2000× faster than the unoptimized baseline.
  • Efficiency: The garbled AES circuit is reduced to just 4 KB, which is significantly smaller than traditional "Half-Gates" or "Sieve" garbling methods that typically result in tens or hundreds of kilobytes for the same security level.

Limitations and Future Work

  • Single-Threaded Benchmarks: While the results are impressive on a single core, the authors note that the preprocessing phase (homomorphic PRG evaluation) is highly parallelizable, suggesting even faster real-world performance is possible.
  • Lattice Parameters: The security relies on specific lattice-based assumptions (RLWE and NTRU). While these are standard, the parameters must be carefully tuned to maintain 128-bit security while keeping the noise in the SWHE ciphertexts manageable.
  • Interactive Setup: Like many advanced GC schemes, there is an "offline" preprocessing cost. While this paper slashes that cost, it still remains higher than simple symmetric-key garbling. Future work may focus on further reducing the "extraction" costs of individual ciphertexts from packed SIMD slots.

Summary updated

BibTeX
@inproceedings{zhang2026bitgc,
  author = {Wenhao Zhang and Hanlin Liu and Kang Yang and Wen-jie Lu and Yu Yu and Xiao Wang and Chenkai Weng},
  title = {{BitGC Made (More) Efficient}},
  booktitle = {EUROCRYPT},
  year = {2026},
  doi = {10.1007/978-3-032-25324-8\_8},
}
Figure