Comparison of Fully Homomorphic Encryption and Garbled Circuit Techniques in Privacy-Preserving Machine Learning Inference
Kalyan Cheerla, Lotfi Ben Othmane, Kirill Morozov
TL;DR
This work conducts a system-level comparison of two PPML inference paradigms, Fully Homomorphic Encryption and Garbled Circuits, by implementing an identical two-layer neural network under both schemes. Using CKKS with SEAL for FHE and TinyGarble2.0 for GC, the study evaluates round-trip time, memory, communication, and output accuracy under a semi-honest model. Key findings show that GC delivers faster, more memory-efficient inference but leaks model structure and requires multiple interaction rounds, whereas FHE provides non-interactive inference with stronger privacy at the cost of substantial computation and memory overhead. The results offer practical guidance on selecting PPML backends based on latency, bandwidth, security, and scalability needs, and point toward hybrid approaches and deeper architectures for future work.
Abstract
Machine Learning (ML) is making its way into fields such as healthcare, finance, and Natural Language Processing (NLP), and concerns over data privacy and model confidentiality continue to grow. Privacy-preserving Machine Learning (PPML) addresses this challenge by enabling inference on private data without revealing sensitive inputs or proprietary models. Leveraging Secure Computation techniques from Cryptography, two widely studied approaches in this domain are Fully Homomorphic Encryption (FHE) and Garbled Circuits (GC). This work presents a comparative evaluation of FHE and GC for secure neural network inference. A two-layer neural network (NN) was implemented using the CKKS scheme from the Microsoft SEAL library (FHE) and the TinyGarble2.0 framework (GC) by IntelLabs. Both implementations are evaluated under the semi-honest threat model, measuring inference output error, round-trip time, peak memory usage, communication overhead, and communication rounds. Results reveal a trade-off: modular GC offers faster execution and lower memory consumption, while FHE supports non-interactive inference.
