A Training Framework for Optimal and Stable Training of Polynomial Neural Networks

Forsad Al Hossain, Tauhidur Rahman
5/16/2025
cs.LG

No official code found. Best implementation: Forsad/Stable-Polynomial-Train (1 star, MIT, last commit 2025-06-05).

Abstract

By replacing standard non-linearities with polynomial activations, Polynomial Neural Networks (PNNs) are pivotal for applications such as privacy-preserving inference via Homomorphic Encryption (HE). However, training PNNs effectively presents a significant challenge: low-degree polynomials can limit model expressivity, while higher-degree polynomials, crucial for capturing complex functions, often suffer from numerical instability and gradient explosion. We introduce a robust and versatile training framework featuring two synergistic innovations: 1) a novel Boundary Loss that exponentially penalizes activation inputs outside a predefined stable range, and 2) Selective Gradient Clipping that effectively tames gradient magnitudes while preserving essential Batch Normalization statistics. We demonstrate our framework's broad efficacy by training PNNs within deep architectures composed of HE-compatible layers (e.g., linear layers, average pooling, batch normalization, as used in ResNet variants) across diverse image, audio, and human activity recognition datasets. These models consistently achieve high accuracy with low-degree polynomial activations (such as degree 2) and, critically, exhibit stable training and strong performance with polynomial degrees up to 22, where standard methods typically fail or suffer severe degradation. Furthermore, the performance of these PNNs achieves a remarkable parity, closely approaching that of their original ReLU-based counterparts. Extensive ablation studies validate the contributions of our techniques and guide hyperparameter selection. We confirm the HE-compatibility of the trained models, advancing the practical deployment of accurate, stable, and secure deep learning inference.

View on arXivView PDF

Code Implementations(1)

MIT
10Python, Jupyter NotebookMay 24, 20251 years agoMIT

Similar Papers

Cite this paper

@article{hossain2025training,
  title  = {A Training Framework for Optimal and Stable Training of Polynomial Neural Networks},
  author = {Forsad Al Hossain and Tauhidur Rahman},
  year   = {2025},
  eprint = {2505.11589},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.11589v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.11589.svg)](https://codeofpaper.com/paper/2505.11589)

Discussion