← Lab /Security & privacy

Kernel-based polynomial approximates ReLU with low multiplicative depth for HE

The proposed kernel-based second-degree polynomial can replace ReLU in homomorphic encryption settings with higher approximation fidelity

Security & privacy arXiv 22 May 2026 Method Prototype evidence

Published as “Kernel-Based ReLU Approximation for Homomorphic Encryption-Compatible Privacy-preserving Deep Learning Models”

Why it matters

Enables practical, lower-latency privacy-preserving inference for models that require ReLU, making HE-based deployment of LLM-style workloads more feasible.

Summary

The proposed second-degree Kernel Polynomial approximates ReLU with the lowest mean-square error and a small accuracy gap (29.3%) when run under CKKS homomorphic encryption, while keeping training time under 2,000 s, far faster than higher-degree polynomials. Evidence comes from six experiments on token embeddings, MNIST, CIFAR-10/100, showing competitive classification accuracy (≈99% on feed-forward/CNN, ~64-65% on ViT) and markedly lower latency and memory use. The results are solid across multiple public benchmarks but limited to image and tokenized data rather than full-scale LLM inference.

What they found 2

  1. Kernel Polynomial yields the smallest accuracy gap between plaintext and encrypted inference (29.3%)

    “Kernel Polynomial exhibited the lowest Accuracy Gap compared to all approximations, at 29.3%”

  2. Kernel Polynomial completes the full encrypted pipeline in 1864 seconds, far faster than higher-degree methods

    “the proposed method achieved 1864 s of total experiment time, encompassing the entire pipeline of training, inference, and the models encryptiondecryption processes.”

Caveats 2

  • X Squared approximation had a slightly higher precision of 65.1% on CIFAR-10, marginally outperforming the Kernel Polynomial by 0.4%.
  • Future research steps aim to overcome recognized limitations in high-variance contexts through the investigation of adaptive hybrid models.

What’s new here 4

  • Applies a kernel-based smoothing step before polynomial approximation, enabling a low-degree (second-degree) polynomial to mimic ReLU under HE constraints.
  • Trains the approximation directly on real token embeddings from pretrained LLMs instead of synthetic data.
  • Evaluates both plaintext and encrypted performance across DL and transformer models, including computational cost and memory usage.
  • Demonstrates a smaller accuracy drop and far lower slowdown factor in CKKS compared to higher-degree polynomial approximations.