Abstract
A crucial property for achieving secure, trustworthy and interpretable deep learning systems is their robustness: small changes to a system's inputs should not result in large changes to its outputs. Mathematically, this means one strives for networks with a small Lipschitz constant. Several recent works have focused on how to construct such Lipschitz networks, typically by imposing constraints on the weight matrices. In this work, we study an orthogonal aspect, namely the role of the activation function. We show that commonly used activation functions, such as MaxMin, as well as all piece-wise linear ones with two segments unnecessarily restrict the class of representable functions, even in the simplest one-dimensional setting. We furthermore introduce the new N-activation function that is provably more expressive than currently popular activation functions.
Introduction
Deep learning models are notoriously fragile; tiny, invisible perturbations, known as adversarial attacks, can flip a model's prediction with high confidence. One of the most principled ways to defend against this is by building 1-Lipschitz networks. In these networks, the Lipschitz constant of the entire function is constrained to be $\le 1$, meaning a small change in input guarantees a small change in output. This property is fundamental for certified robustness.
While mathematically elegant, 1-Lipschitz networks usually suffer from significantly lower accuracy than their non-robust counterparts. While much research has focused on perfecting the constraints on linear layers (weights), this paper investigates whether the activation function itself is a bottleneck. Standard choices like ReLU or MaxMin appear too restrictive, preventing the network from learning complex patterns even if the weights are optimally configured.
The $\mathcal{N}$-Activation Function
The authors identify a fundamental expressivity bottleneck: popular 2-piece linear activations (like ReLU or Absolute Value) cannot represent certain simple 1D 1-Lipschitz functions, such as the "$\mathcal{N}$-function". To address this, they propose a new, parameterized 3-piece linear activation function:
$$ \mathcal{N}(x; \theta_1, \theta_2) = \begin{cases} x - 2\theta_{min} & x \le \theta_{min} \\ -x & \theta_{min} \le x \le \theta_{max} \\ x - 2\theta_{max} & \theta_{max} \le x \end{cases} $$
This function is provably 1-CPWL-universal, meaning a network using $\mathcal{N}$-activations can represent any 1-Lipschitz, continuous, piece-wise linear function in one dimension. This is a significant theoretical step up from MaxMin, which was previously thought to be sufficient but is shown here to be limited. To ensure effective training, the authors utilize two critical implementation details: an "AbsId" initialization (splitting channels between absolute value and identity maps) and scaling the learning rate for activation parameters down by a factor of 10 compared to the weights.
Experimental Results
The method was evaluated on a toy 1D dataset designed to fit the $\mathcal{N}$-function and on standard image benchmarks (CIFAR-10, CIFAR-100, Tiny ImageNet) using various state-of-the-art 1-Lipschitz linear layers, including Almost Orthogonal Lipschitz (AOL), Convex Potential Layers (CPL), and Skew Orthogonal Convolutions (SOC).
Expressivity on Toy Tasks
In fitting the $\mathcal{N}$-function, networks using the $\mathcal{N}$-activation reached a Mean Squared Error (MSE) of $\sim 10^{-5}$. In contrast, MaxMin and ReLU networks plateaued at $\sim 10^{-2}$, demonstrating a structural inability to fit the data regardless of training duration or network width. This empirical result confirms the theoretical limitation of 2-piece activations.
Robust Classification Benchmarks
On CIFAR-10 with CPL layers, the $\mathcal{N}$-activation achieved 63.0% certified robust accuracy at $\epsilon = 36/255$, outperforming MaxMin's 62.2%. Across 9 different experimental settings involving various datasets and layer types, the $\mathcal{N}$-activation was competitive with or better than MaxMin in 7 cases. This proves it is a robust, effective drop-in replacement for existing 1-Lipschitz architectures.
Conclusion
The $\mathcal{N}$-activation addresses a critical expressivity gap in 1-Lipschitz neural networks by moving beyond the limitations of 2-piece linear functions. While it provides consistent gains and theoretical universality in 1D, the authors note that it is not a "silver bullet" for closing the performance gap with non-robust networks. The modest gains in high-dimensional image classification suggest that while the activation bottleneck has been addressed, other constraints—likely in the parameterization of 1-Lipschitz linear layers—still limit the performance of robust deep learning systems.
Summary updated