← Lab /Security & privacy

GPU Paillier client computes Hamming distance ~200× faster than CPU baseline

The authors assert their batched GPU implementation achieves roughly 200× higher throughput than a CPU baseline for encrypted Hamming-distance computation

Security & privacy arXiv 18 Sep 2026 Measurement Prototype evidence

Published as “Batched Paillier-Based Hamming-Distance Computation over Binary Embeddings”

Why it matters

The work shows that, for warm-batch workloads, GPU-accelerated Paillier with precomputation can make homomorphic Hamming-distance computation orders of magnitude faster, potentially enabling larger-scale private similarity search when long-lived client contexts are used.

Summary

The lookup GPU client achieves 43,091 encryptions per second and 28,983 Hamming-distance decodes per second, a 453.8× and 200.9× speedup over the measured Paillier CPU baseline. These results come from warm-batch runs on 10,000 random 512-bit embeddings, with median batch times reported over three trials. The paper notes that the baseline is a specific, untuned CPU implementation and that the measurements exclude initialization, transport, and end-to-end retrieval costs, so the evidence is limited to this particular setup.

What they found 1

  1. Lookup GPU achieves 43,091 encryptions/s and 28,983 decodes/s, yielding 453.8× and 200.9× speedups over CPU baseline.

    “lookup GPU configuration achieved median-batch throughputs of 43,091 encryptions/s and 28,983 Hammingdistance decodes/s.”

Caveats 6

  • The experiment is not an ablation study of individual optimizations; lookup/non-lookup comparisons jointly change generator, exponent length, randomization, and table usage.
  • CPU/GPU comparisons within each construction do not isolate GPU arithmetic from differences in wrappers, serialization, or decoding.
  • The headline ratios are relative to a specific, untuned Paillier CPU reference, not to the fastest available Paillier implementation.
  • The evaluation concerns client-side computation at fixed cryptographic parameters. It does not measure complete retrieval latency or establish guarantees beyond the system model in Section 2.
  • Small batches and cold starts may have different performance characteristics. The current evaluation does not quantify these tradeoffs or the benefit of fused re-encryption and retrieval parallelism.
  • Fixed-width kernels constrain supported parameters, precomputation consumes memory, and persistent tables favor long-lived contexts.

What’s new here 4

  • Combines a carry-separated binary encoding with table-based encryption and reduced-exponent decryption.
  • Implements batched big-integer arithmetic on GPU using CUDA and CGBN.
  • Uses persistent device state and precomputed tables to amortize per-call overhead.
  • Provides a detailed measurement of four client configurations (CPU/GPU, lookup/non-lookup).