Decision-Aware Quadratic ReLU Replacement for HE-Friendly Inference
Rui Li, Wenyuan Wu, and Weijie Miao

TL;DR
This paper introduces a decision-aware quadratic polynomial replacement for ReLU activations in neural networks, enabling efficient homomorphic encryption inference without retraining and maintaining decision accuracy.
Contribution
It develops a geometric framework for decision-preserving ReLU replacement with quadratic polynomials, reducing computational costs in HE inference.
Findings
Quadratic replacement preserves calibration-set decisions without retraining.
Achieves 3.7--4.1× faster inference compared to Remez-7.
Matches plaintext accuracy on multiple benchmarks under CKKS.
Abstract
Fully homomorphic encryption (FHE) supports only additions and multiplications, so FHE-only neural-network inference typically replaces ReLU with polynomials fitted over empirical activation intervals. Such interval fitting often requires higher-degree polynomials to control activation error, incurring homomorphic evaluation costs, while classification is determined by the final logit decision. We revisit ReLU replacement from a decision-aware perspective: given a trained single-hidden-layer ReLU MLP and a specified calibration set, can an HE-friendly low-degree polynomial replace ReLU without retraining while preserving calibration-set decisions? We focus on quadratic replacement, the lowest-degree choice that retains a genuine per-unit nonlinearity. For calibration sets positive-margin separable in the lifted space, we formulate quadratic replacement as a linear separation problem,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
