← Lab /Security & privacy

Optimizing approximation interval reduces MSE for HE polynomial activations

Choosing the approximation interval via their distribution-aware optimization minimizes mean-squared error of the activation approximation

Security & privacy arXiv 9 Jul 2026 Method Theory

Published as “Degree-Constrained Interval Optimization for Minimax Polynomial Approximation in Homomorphic Encryption”

Why it matters

The method enables more accurate encrypted inference for neural networks by tailoring polynomial approximations to the actual input distribution, potentially reducing the need for costly bootstrapping.

Summary

Optimized interval selection reduces mean-squared error dramatically compared to a conservative fixed-interval minimax baseline, especially for sigmoid, tanh, and GELU. The authors formulate a distribution-aware interval-optimization problem that balances within-interval minimax error and outside-interval clipping error, derive an analytically tractable DEF-based proxy, and connect it to HE-realizable DEP constructions with provable error bounds. Numerical experiments show that the proxy’s optimal radius matches the ideal DEF optimum, and that DEP-based evaluators achieve substantially lower MSE than the baseline, though they incur a gap to the ideal DEF due to implementation error.

What they found 3

  1. Optimized DEP-based evaluators achieve substantially lower MSE than the conservative fixed-interval Remez baseline, with especially large gains for sigmoid, tanh, and GELU.

    “Compared with the conservative fixed-interval Remez baseline on [-20σ, 20σ], the optimized DEP-based evaluators achieve substantially lower MSE. The improvement is especially pronounced for sigmoid, tanh, and GELU, where the achieved MSE is lower by several orders of magnitude.”

  2. The analytical DEF proxy’s optimal design radius closely matches that of the ideal DEF objective across all tested activation functions.

    “the minimizer of the analytical proxy closely matches that of the ideal DEF objective across the tested functions.”

  3. The proxy objective bJDEF yields minimizing radii that are nearly identical to those obtained from the numerically evaluated ideal objective JDEF.

    “b JDEF yields minimizing radii that closely match those obtained from the numerically evaluated ideal objective JDEF.”

Caveats 4

  • The gap between JDEF and the practical DEP objectives JDEP,L1 and JDEP,L2 reflects the implementation error introduced by replacing the ideal hard-clipping DEF with a polynomial DEP composition.
  • Integration of the proposed framework into end-to-end HE-based neural network inference, including the interplay between layer-wise pre-activation distributions, cumulative approximation errors across multiple non-polynomial primitives, and actual HE evaluation costs under specific cryptographic library implementations, is an important direction for future investigation that builds upon the analytical foundation established here.
  • Assume that |X| ≤R0 under the covered-input model.
  • The practical DEP objectives incur implementation error, leading to higher MSE than the ideal DEF objective.

What’s new here 4

  • First principled formulation of interval optimization for degree-constrained minimax polynomial approximation minimizing MSE over the pre-activation distribution.
  • Derivation of an analytically tractable DEF-based proxy objective that captures the trade-off between within-interval minimax error and outside-interval clipping error.
  • Connection of the ideal DEF analysis to HE-realizable DEP constructions via an implementation-error decomposition and upper bound.
  • Demonstration of orders-of-magnitude MSE reduction for sigmoid, tanh, and GELU compared to conventional fixed-interval minimax baselines.