# Efficient Arithmetic-and-Comparison Homomorphic Encryption with Space Switching

arXiv: https://arxiv.org/abs/2604.19890 · HTML: https://mlsanity.com/paper/2604.19890/

## Key facts

- Cited by 1 papers in the map (data through 26 Nov 2026).
- Submitted 21 Apr 2026.

## Built on by (most cited first, 1 of 1)

- [CipherFlow: Compiling AI Programs for Efficient Cryptographically Secure Inference](https://mlsanity.com/paper/2611.01450/) (2026)

## Abstract (arXiv)

Fully homomorphic encryption (FHE) enables computation on encrypted data without decryption, making it central to privacy-preserving applications. However, no existing scheme efficiently supports both arithmetic and comparison operations in a unified framework. Prior approaches such as scheme switching and polynomial approximation face serious limitations: switching incurs prohibitive overhead for large inputs, while approximation methods introduce errors near critical points, restricting use in accuracy-sensitive tasks. We propose space switching method to integrate arithmetic and comparison computation seamlessly within FV-style schemes. Our approach identifies that the two types of operations require different plaintext spaces and introduces two procedures: a reduction step to transition from the number space mathbbZpr to the digit space mathbbZp, and a modulus-raising step to map results back to mathbbZpr. This design enables continuous evaluation of arithmetic and comparison within the same scheme. Experiments show that our method achieves up to 17× faster performance than scheme switching and 15× faster than direct comparison on database workloads, demonstrating its practicality for real-world privacy-preserving computation. Code and artifacts are available at https://github.com/UCF-Lou-Lab-PET/Universal-BGV.
