English

Encrypted Neural Networks without Overflows

Cryptography and Security 2026-05-25 v1 Machine Learning

Abstract

Fully homomorphic encryption (FHE) enables private inference by evaluating neural networks on encrypted data. In this way, we can delegate the computation to a third party server without ever revealing the user's data. Currently, the CKKS scheme is the backbone of most efficient FHE implementations, but it only supports addition, multiplication, and array rotation operations, thus requiring all activation functions of the neural network to be approximated by polynomials within a certain interval, imposing strict design tolerances. In this paper, we demonstrate for the first time that this scheme is vulnerable to overflow attacks, i.e., seemingly benign inputs that can exceed such tolerances of the FHE circuit, thereby causing corrupt and unusable outputs. To avoid them, we propose a formal verification technique that computes certified bounds on the ranges of all neurons in the network. By construction, our method eliminates overflows and, in our experiments, removed observed overflows on all benchmarks, reducing failure rates from up to 47% to 0%. Moreover, our overflow-free solution is compatible with most CKKS-based frameworks, as it allows to simply substitute standard polynomials by polynomials with rigorously designed ranges.

Keywords

Cite

@article{arxiv.2605.23096,
  title  = {Encrypted Neural Networks without Overflows},
  author = {Philipp Kern and Lorenzo Rovida and Samuel Teuber and Edoardo Manino and Carsten Sinz and Alberto Leporati},
  journal= {arXiv preprint arXiv:2605.23096},
  year   = {2026}
}

Comments

Preprint