Deep learning architectures have long relied on pointwise activation functions—such as ReLU, GELU, and SiLU—and exponential Softmax to introduce essential nonlinearity. Without these functions, a neural network collapses into a simple linear regression model. However, a new paper challenges this foundational assumption, demonstrating that standard activation functions are not strictly necessary for state-of-the-art vision backbones. By replacing them with "polynomial modules" based on Hadamard products, the authors introduce PolyNeXt, a family of models that match or exceed traditional architectures while offering superior memory efficiency and a viable path toward privacy-preserving encrypted inference.
The FHE Bottleneck: Why Remove Activations?
While standard activations work exceptionally well on standard hardware, they pose a massive hurdle for Fully Homomorphic Encryption (FHE). FHE allows computers to process data while it remains encrypted—a holy grail for privacy-preserving AI. In the FHE domain, computing a simple ReLU or an exponential function is computationally exorbitant. Conversely, polynomial operations like addition and multiplication are highly efficient.
Previous attempts to build "polynomial networks" relied on custom, complex architectures that struggled to compete with modern backbones like Vision Transformers or ConvNets. The core challenge addressed by this research is whether we can build a standard, high-performance vision backbone using only polynomial interactions.
The PolyNeXt Architecture
To answer this, the authors leveraged the MetaFormer framework—a modular template for vision backbones—and replaced its core components with activation-free polynomial alternatives:
- PolyMLP: Instead of a standard feedforward layer with a GELU activation in the middle, PolyMLP uses a Hadamard product (element-wise multiplication) of two parallel linear projections: $PolyMLP(x) = W_o ((W_a x) * (W_b x))$.
- PolyConv: Activations in separable convolutions are replaced by fusing a "coarse" (dilated) branch and a "fine" branch via element-wise multiplication.
- PolyAttn: The exponential Softmax is swapped for a polynomial kernel $(s \cdot QK^\top + 1)^p$, followed by $\ell_1$ normalization.
The Stability Recipe
Training polynomial networks is notoriously difficult because repeated multiplications can cause values to explode. To mitigate this, the authors developed a three-part stabilization recipe:
- Sigmoid-Scale: A learnable gating mechanism that bounds the contribution of residual branches.
- Multi-input Skip Connections: Borrowed from NASNet, these connect a cell to two preceding cells, significantly improving gradient flow.
- Depth-over-Width: A network with $L$ layers can represent a polynomial of degree $2^L$. The authors found that stacking many narrow layers (increasing depth) is far more effective for polynomial networks than widening the layers, as depth increases the polynomial degree exponentially.
Key Insights and Results
The PolyNeXt models were rigorously tested across ImageNet-1K, ADE20K, and various robustness benchmarks (ImageNet-C, -A, -R, -Sketch). The results yield several fascinating insights:
- Activations Might Be a Crutch: The specific form of nonlinearity (ReLU vs. Polynomial) matters less than the overall architectural "mixing" strategy. In fact, adding a ReLU to a polynomial block actually hurts performance. Its zero-derivative for negative inputs creates "dead zones" that break the mutual gradient coupling between the parallel branches.
- State-of-the-Art Performance: PolyNeXt-S (26M parameters) achieved 83.9% Top-1 accuracy on ImageNet, outperforming the activation-based ConvFormer-S18 (83.0%) and crushing previous polynomial models like DTTN-B (82.4%) while using 61% fewer FLOPs. On ADE20K semantic segmentation, CPolyNeXt-S reached 50.6 mIoU, a +2.0 point improvement over its activation-based counterpart.
- Memory Efficiency: Because polynomial modules do not need to store large activation maps for the backward pass, PolyNeXt uses 30–45% less peak GPU memory than standard MetaFormer models.
- FHE Compatibility: A "Fully Polynomial" variant, which replaces LayerNorm with a custom BatchNorm, reached 82.7% on ImageNet—a massive 5-point jump over previous fully polynomial benchmarks.
- Superior Robustness: PolyNeXt models consistently outperformed standard backbones on out-of-distribution tasks, suggesting that polynomial interactions generalize better to corrupted or adversarial data.
Limitations and Future Directions
Despite its impressive performance, PolyNeXt comes with trade-offs. The "depth-over-width" design requires more sequential operations, resulting in lower throughput (images per second) compared to shallower, wider standard models. Additionally, polynomial networks are highly sensitive to hyperparameters, requiring smaller batch sizes and specific progressive dropout schedules to remain stable during training.
Looking ahead, the most exciting frontier is applying these polynomial primitives beyond vision. Adapting these activation-free modules to language modeling—where the Softmax in attention is currently considered indispensable—could pave the way for highly efficient, privacy-preserving Large Language Models. Furthermore, while the math is now FHE-friendly, actual deployment on encrypted hardware remains a complex engineering challenge for future research.
Summary updated