Controlling the Complexity and Lipschitz Constant improves polynomial nets

Zhenyu Zhu, Fabian Latorre, Grigorios G Chrysos, Volkan Cevher

TL;DR

High-degree Polynomial Nets (PNs) offer an attractive alternative to standard neural networks due to their native compatibility with encrypted data computation, but they have historically lacked solid theoretical guarantees. This paper fills that gap by deriving the first Rademacher complexity and Lipschitz constant bounds for popular PN architectures. Using these insights, the authors introduce a principled, projection-based regularization scheme that significantly boosts both the generalization accuracy and adversarial robustness of Polynomial Nets.

What Problem Does This Paper Address?

Standard deep neural networks rely heavily on non-linear activation functions like ReLU or Sigmoid. While effective, these functions make it incredibly difficult to run networks directly on encrypted data. Privacy-preserving frameworks like Leveled Fully Homomorphic Encryption (LFHE) only support basic algebraic operations: addition and multiplication.

To circumvent this, researchers use Polynomial Nets (PNs), which swap out standard activations for high-degree polynomial expansions. PNs achieve state-of-the-art performance on tasks like face verification, but their theoretical properties have remained a black box. Unlike standard neural networks, PNs lacked formal characterizations for generalization (how many samples they need to learn effectively) and robustness (how vulnerable they are to adversarial attacks). This paper establishes these missing theoretical foundations.

Methods

The authors focus on two prominent tensor-decomposition formulations of PNs: the Coupled CP-Decomposition (CCP) model and the Nested Coupled CP-Decomposition (NCP) model.

Figure 1: Schematic of CCP model (left) and NCP model (right), where ◦denotes the Hadamard product. Blue boxes correspond to learnable parameters. Green and red boxes denote input and output, respectively. Yellow boxes denote operations.

Their core contributions unfold in three main steps:

  1. Theoretical Bounds: They derive upper bounds for the Empirical Rademacher Complexity (a proxy for generalization error) and the Lipschitz constant (a certificate for adversarial robustness) under both $\ell_\infty$ and $\ell_2$ norm constraints. To achieve this, they use a "linearization trick" that lifts the high-degree polynomials into a higher-dimensional space, making the math tractable.
  2. Principled Regularization: The derived bounds reveal that both complexity and the Lipschitz constant are directly controlled by the operator norms of the network's weight matrices. The authors propose a Projected Stochastic Gradient Descent (SGD) algorithm that enforces constraints on these operator norms during training by efficiently projecting rows onto an $\ell_1$-norm ball.
  3. Algorithmic Extensions: They extend their theoretical bounds to handle 1D, 2D, and 3D convolutional layers and introduce a flexible layer-wise bounding scheme where each matrix can possess its own optimized constraint parameter.

Datasets

The regularization schemes were evaluated across seven diverse datasets:

  • Image Recognition: Fashion-MNIST, E-MNIST, MNIST, K-MNIST, E-MNIST-BY, and CIFAR-10.
  • Audio Recognition: NSYNTH.

Key Insights and Ideas

  • The Unified Lever: A single mathematical property—the $\ell_\infty$-operator norm of the weight matrices—simultaneously dictates how well a Polynomial Net generalizes to unseen data and how resilient it is against worst-case adversarial perturbations.
  • The Regularization "Sweet Spot": When plotting robust accuracy against the tightness of the projection bound, the authors discovered a distinct U-shaped curve. If the bound is too loose, the model overfits and falls prey to adversarial attacks. If it is too tight, it stifles the network's capacity to learn. Intermediate values consistently yield the highest performance.
Figure 2: Adversarial attacks during testing on (a) Fashion-MNIST (top), (b) E-MNIST (bottom) with the x-axis is plotted in log-scale. Note that intermediate values of projection bounds yield the highest accuracy. The patterns are consistent in both datasets and across adversarial attacks.

Key Results

The proposed projection method was tested against standard training (no regularization), Jacobian regularization, and $L_2$ weight decay under multiple adversarial attacks (FGSM, PGD, APGDT, TPGD).

  • Substantial Robustness Gains: On Fashion-MNIST, a 4th-degree CCP model under a strong PGD attack collapsed to 0.18% accuracy without regularization. The authors' method successfully maintained 28.96% accuracy, vastly outperforming Jacobian regularization (1.27%) and $L_2$ decay (0.28%).
  • Synergy with Adversarial Training (AT): Combining the projection method with standard adversarial training yielded the best overall results. For instance, under a strong PGD attack on Fashion-MNIST, standard AT achieved 24.46% accuracy, whereas the combined approach reached 39.79%.
  • Layer-wise Superiority: Allowing different layers to have distinct projection bounds (layer-wise bounds) provided an additional performance edge over applying a single global bound to all matrices.

Limitations and Future Work

The authors openly acknowledge three main limitations:

  1. The Relaxation Gap: The exact Rademacher complexity bound depends on a highly non-convex face-splitting product of matrices. Because projecting directly onto this non-convex set is computationally difficult, the authors relaxed the constraint to a product of individual matrix norms. Finding an efficient way to project onto the tighter, exact bound remains an open challenge.
  2. Dataset Dependency: The optimal regularization parameters vary noticeably depending on the dataset and the specific nature of the adversarial attack.
  3. Algorithm-Agnostic Bounds: The current bounds do not factor in the specific optimization path of Projected SGD or potential implicit regularization effects, which could be leveraged in the future to provide even tighter theoretical guarantees.

Summary updated

BibTeX
@inproceedings{zhu2022controlling,
  author = {Zhenyu Zhu and Fabian Latorre and Grigorios G Chrysos and Volkan Cevher},
  title = {{Controlling the Complexity and Lipschitz Constant improves polynomial nets}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=dQ7Cy_ndl1s},
}
Figure