Skip to main content
QUICK REVIEW

[Paper Review] Sisyphus: A Cautionary Tale of Using Low-Degree Polynomial Activations in Privacy-Preserving Deep Learning

Karthik Garimella, Nandan Kumar Jha|arXiv (Cornell University)|Jul 26, 2021
Cryptography and Data SecurityComputer Science8 citations
TL;DR

This paper investigates the feasibility of replacing all ReLU activations with low-degree polynomial functions in privacy-preserving deep learning to avoid costly garbled circuits. Despite proposing novel training strategies like QuaIL and ApproxMinMaxNorm, the authors identify a pervasive 'escaping activation problem' where polynomial activations explode or diverge during inference due to unstable bounds, ultimately showing that exact min/max normalization is required—creating a circular dependency that undermines the goal of eliminating ReLU-based garbled circuits.

ABSTRACT

Privacy concerns in client-server machine learning have given rise to private inference (PI), where neural inference occurs directly on encrypted inputs. PI protects clients' personal data and the server's intellectual property. A common practice in PI is to use garbled circuits to compute nonlinear functions privately, namely ReLUs. However, garbled circuits suffer from high storage, bandwidth, and latency costs. To mitigate these issues, PI-friendly polynomial activation functions have been employed to replace ReLU. In this work, we ask: Is it feasible to substitute all ReLUs with low-degree polynomial activation functions for building deep, privacy-friendly neural networks? We explore this question by analyzing the challenges of substituting ReLUs with polynomials, starting with simple drop-and-replace solutions to novel, more involved replace-and-retrain strategies. We examine the limitations of each method and provide commentary on the use of polynomial activation functions for PI. We find all evaluated solutions suffer from the escaping activation problem: forward activation values inevitably begin to expand at an exponential rate away from stable regions of the polynomials, which leads to exploding values (NaNs) or poor approximations.

Motivation & Objective

  • To evaluate whether low-degree polynomial activations can fully replace ReLU in privacy-preserving deep learning without relying on garbled circuits.
  • To investigate the limitations of existing drop-and-replace and retraining strategies for polynomial activation functions in deep networks.
  • To identify and analyze the root cause of instability in polynomial-based inference, particularly the escaping activation problem.
  • To determine whether approximate normalization techniques can effectively bound activation values during inference.
  • To assess whether exact min/max computation is necessary to stabilize polynomial activations in deep, complex models.

Proposed method

  • Proposes QuaIL, a novel retraining strategy where a Quad (x²) network is trained to mimic intermediate features of a pre-trained all-ReLU network.
  • Introduces ApproxMinMaxNorm, a normalization layer that uses approximated min and max values from a weighted moving average to bound pre-activation inputs before polynomial application.
  • Employs a two-stage training process: first, a standard ReLU network is trained; second, the Quad network is fine-tuned using knowledge distillation from the ReLU model.
  • Uses both drop-and-replace strategies (Taylor approximation, polynomial regression) and retraining-based approaches (QuaIL, ApproxMinMaxNorm) for evaluation.
  • Compares inference behavior using approximated vs. true min/max values to isolate the impact of normalization accuracy on activation stability.
  • Employs standard benchmarks including MNIST, CIFAR-10, CIFAR-100, and TinyImageNet to evaluate model accuracy and activation dynamics.

Experimental results

Research questions

  • RQ1Can low-degree polynomial activations like Quad (x²) fully replace ReLU in deep neural networks for privacy-preserving inference?
  • RQ2Does retraining with knowledge distillation (QuaIL) effectively stabilize polynomial activations in deeper networks?
  • RQ3To what extent do approximate min/max normalization techniques prevent activation explosion in polynomial-based networks?
  • RQ4Why do polynomial-based networks still suffer from instability despite normalization and retraining?
  • RQ5Is exact min/max computation necessary to achieve stable, accurate inference with polynomial activations?

Key findings

  • All evaluated methods—drop-and-replace, retraining, and approximate normalization—suffer from the escaping activation problem, where forward activations grow unbounded during inference.
  • Even with QuaIL training, activation values in deeper networks like ResNet32 and MobileNetV1 diverge during inference when using approximated min/max values.
  • Using true min and max values during inference (QuaIL+MM) restores stability and matches the performance of the all-ReLU baseline, proving that exact bounds are essential.
  • Approximate min/max values introduce cumulative error in deeper layers, leading to activation explosion despite stable training.
  • The need for exact min/max computation to stabilize polynomial activations creates a circular dependency, as min/max operations require ReLU or garbled circuits—exactly what the method aims to eliminate.
  • No method using low-degree polynomials achieves stable, accurate inference on large models without exact min/max bounds, rendering current approaches ineffective for full ReLU replacement.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.