Quadratic polynomial can replace ReLU in HE inference, preserving decisions and speeding up runtime
A low-degree quadratic polynomial can substitute ReLU without retraining while keeping calibration-set decisions unchanged
AI/ML arXiv 21 May 2026 Method Prototype evidence
Published as “Decision-Aware Quadratic ReLU Replacement for HE-Friendly Inference”
Why it matters
Enables faster, HE-only inference for single-hidden-layer MLPs with negligible accuracy loss, making privacy-preserving inference more practical.
Summary
The quadratic replacement matches the plaintext top-1 accuracy on several benchmarks while running 3.7-4.1× faster than Remez-7 in the activation module and 1.18-1.68× faster end-to-end. The authors formulate ReLU replacement as a decision-aware calibration-lossless problem, give exact finite-sample conditions for binary MLPs, and provide reduced-convex-hull and soft-margin relaxations for harder cases. Empirical results on MLP/Otto, DINOv2/FGVC-Aircraft, and Qwen3/MASSIVE confirm comparable accuracy and notable speedups, though exact preservation is rare for multiclass tasks.
What they found 2
- Quadratic replacement preserves top-1 accuracy and is faster than Remez-7.
“Under CKKS, the quadratic replacement matches plaintext top-1 accuracy on multiple benchmarks, running 3.7-4.1× faster than Remez-7 in the activation module and 1.18-1.68× faster end-to-end.”
- QUAD4FHE outperforms other non-ReLU replacements on most multiclass tasks.
“QUAD4FHE is the best (or tied for best) non-ReLU replacement on 4 of 6 multiclass tasks (AG News, CIFAR-10, CIFAR100, SST-5), and matches or exceeds the original ReLU model”
Caveats 6
- Exact multiclass preservation is infeasible on Otto and the soft-margin relaxation loses 3.66 pp.
- On Shuttle the soft-margin solution incurs a 2.65 pp accuracy gap despite high agreement on calibration.
- The exact theorems certify calibration-set preservation only.
- The multiclass results are therefore evidence for a practical decision-aware surrogate rather than generic exact preservation.
- The encrypted experiments compare depth-matched fixed-polynomial circuits under one packing and modulus-search framework; optimized CKKS schedules for other baselines are outside this controlled comparison.
- The DINOv2 and Qwen3 experiments are encrypted MLP-head inference on encrypted features; they do not protect raw images or text unless feature extraction is performed on the client.
What’s new here 4
- Decision-aware formulation that aligns polynomial replacement with calibration-set logit ordering rather than pointwise activation error.
- Exact finite-sample theory linking calibration-lossless quadratic replacement to positive-margin separation of lifted convex hulls.
- Reduced-convex-hull and Lagrangian-dual soft-margin relaxations that produce approximate coefficients when exact separation fails.
- Open-source QUAD4FHE library implementing offline coefficient construction and fast CKKS evaluation.