[Paper Review] NSHEDB: Noise-Sensitive Homomorphic Encrypted Database Query Engine
NSHEDB is a secure query engine that uses word-level leveled BFV homomorphic encryption to execute database queries without transciphering, with a noise-aware optimizer, achieving large speedups and storage reductions on TPC-H workloads under 128-bit security in a semi-honest model.
Homomorphic encryption (HE) enables computations directly on encrypted data, offering strong cryptographic guarantees for secure and privacy-preserving data storage and query execution. However, despite its theoretical power, practical adoption of HE in database systems remains limited due to extreme cipher-text expansion, memory overhead, and the computational cost of bootstrapping, which resets noise levels for correctness. This paper presents NSHEDB, a secure query processing engine designed to address these challenges at the system architecture level. NSHEDB uses word-level leveled HE (LHE) based on the BFV scheme to minimize ciphertext expansion and avoid costly bootstrapping. It introduces novel techniques for executing equality, range, and aggregation operations using purely homomorphic computation, without transciphering between different HE schemes (e.g., CKKS/BFV/TFHE) or relying on trusted hardware. Additionally, it incorporates a noise-aware query planner to extend computation depth while preserving security guarantees. We implement and evaluate NSHEDB on real-world database workloads (TPC-H) and show that it achieves 20x-V1370x speedup and a 73x storage reduction compared to state-of-the-art HE-based systems, while upholding 128-bit security in a semi-honest model with no key release or trusted components.
Motivation & Objective
- Motivate practical encrypted databases by addressing performance, storage, and functionality bottlenecks of HE-backed systems.
- Aim to design a secure query processing engine that operates entirely within leveled HE to avoid bootstrapping.
- Develop arithmetic-based implementations of core relational operators without schema-wide scheme switching.
- Introduce a noise-aware query optimizer that minimizes multiplicative depth to maximize feasible computation depth.
Proposed method
- Utilize word-level Leveled HE (LHE) based on BFV with batch encoding to pack many data points into a single ciphertext.
- Translate essential logical operations into arithmetic operations to avoid transciphering between HE schemes.
- Design a scan-first, constraint-driven architecture that embraces HE-specific data access and parallelism.
- Develop a noise-aware query optimizer focusing on multiplicative depth rather than traditional I/O- or CPU-centric costs.
- Provide algorithms for equality, range, and aggregation operations entirely within BFV without bootstrapping.
Experimental results
Research questions
- RQ1How can HE-backed database queries be executed with minimal bootstrapping and without transciphering across schemes?
- RQ2What architectural and optimization strategies enable practical, exact (not approximate) query processing on word-level HE?
- RQ3Can a noise-aware planner preserve security while extending the feasible computation depth under leveled HE?
Key findings
- NSHEDB achieves 20× to 1370× speedup on TPC-H queries compared to state-of-the-art HE-based systems.
- NSHEDB reduces storage to 1.4% of the compared system, i.e., 28× relative to raw (unencrypted) data storage.
- Operates under 128-bit security in a semi-honest model with no key release or trusted hardware.
- Introduces a comprehensive set of relational and arithmetic operators that run entirely within BFV without scheme switching.
- Shows that word-level HE with packing enables significant data-level parallelism, processing large packed vectors per operation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.