Introduction
Homomorphic Encryption (HE) represents a transformative paradigm for data privacy, enabling computations on encrypted data without requiring decryption. Despite its potential, HE is natively restricted to polynomial operations—specifically addition and multiplication. To evaluate non-polynomial functions essential for modern machine learning, such as the logistic (sigmoid) function, researchers rely on polynomial approximations.
A critical hurdle in this process is the "approximation interval." Because an HE evaluator cannot inspect the data, it cannot detect if a value falls outside a pre-defined range. If an intermediate value exceeds this interval, the approximating polynomial's behavior often becomes erratic, leading to catastrophic errors that destroy the ciphertext. While expanding the interval is a solution, traditional methods like Minimax approximation combined with the Paterson-Stockmeyer algorithm suffer from high computational costs, with complexity scaling at $\Omega(\sqrt{R})$ relative to the interval size $R$.
The Domain Extension Polynomial (DEP) Method
This research introduces Domain Extension Polynomials (DEPs), a novel approach that shifts the strategy from high-degree polynomial fitting to a "divide and conquer" domain management technique. Instead of constructing a single high-degree polynomial to cover a massive range, the authors utilize Domain Extension Functions (DEFs).
The DEP approach works by "squashing" a large interval $[-L, L]$ back into a smaller, manageable interval (e.g., $[-1, 1]$) while preserving the function's core values. By iteratively composing these low-degree DEPs, the valid domain of a function can be extended by a factor of $L$ at each step. This iterative scaling reduces the computational complexity from the traditional $\Omega(\sqrt{R})$ to a much more efficient $O(\log R)$.
To ensure high precision, the authors developed an optimization (Algorithm 2) that approximates the inverse of the DEP. This allows the system to maintain a precision of up to $2^{-20}$ error even when dealing with extremely wide ranges, which is vital for the stability of gradient descent in private machine learning.
Experimental Setup and Datasets
The effectiveness of the DEP method was tested using encrypted logistic regression on two distinct datasets:
- MNIST: A standard benchmark of handwritten digits with bounded values $[0, 255]$, used to establish a baseline for accuracy.
- Swarm Behavior Dataset: A real-world dataset used to predict flocking alignment. This dataset is particularly challenging because it lacks explicit bounds, with intermediate values reaching as high as $\pm 7683$. It serves as a rigorous test for the "large interval" capabilities of the DEP method.
Key Results and Insights
The DEP method demonstrates significant improvements over existing state-of-the-art techniques:
- Computational Speedup: When evaluating the logistic function over the interval $[-7683, 7683]$, the DEP method achieved an 18.29x speedup compared to the estimated performance of traditional minimax approaches.
- Memory Efficiency: Unlike the Paterson-Stockmeyer algorithm, which requires $\Omega(\sqrt{R})$ memory to store intermediate powers, the DEP method operates with $O(1)$ memory by executing processes sequentially.
- Tail Management and Resilience: For functions that converge at infinity (the $C_{lim}$ class), DEPs provide a "clamping" effect. This ensures that outliers do not cause the polynomial to explode, maintaining the integrity of the ciphertext without requiring the massive performance trade-offs usually associated with large intervals.
- Practical Accuracy: Training on the Swarm Behavior dataset showed that the HE-trained model's accuracy was nearly identical to a plaintext-trained model, proving that the approximation does not sacrifice predictive quality.
Limitations and Future Directions
While the DEP method is highly effective for functions that converge to constant values at $\pm \infty$ (like sigmoid or tanh), it is not yet a universal solution for all non-polynomial functions, such as unbounded functions like $e^x$ or $\ln(x)$. Additionally, while the total number of multiplications is reduced, the "multiplicative depth" still scales with $O(\log R)$. In HE, depth is a limited resource that eventually necessitates "bootstrapping" — a computationally expensive operation.
Future research will likely focus on extending this logic to a broader class of functions and further optimizing the multiplicative depth to minimize the need for bootstrapping in deep neural networks.
Summary updated