Activation Functions as Proximal Operators

15 concepts11 papers1 proposal

In traditional deep learning, non-linear activation functions like ReLU, Leaky ReLU, or Sigmoid are often treated as empirical heuristics. We insert them between linear layers to prevent the network from collapsing into a single linear transformation, choosing them based on what trains fastest or avoids vanishing gradients.

However, a growing body of research reveals a deeper mathematical reality: the forward pass of a neural network can be rigorously understood as an optimization algorithm in disguise. Under this framework, activation functions are not arbitrary non-linearities; they are proximal operators or geometric projections that exactly solve step-wise optimization sub-problems.

The Intuition: ReLU as a Geometric Projection

To understand why this perspective works, let us look at the most ubiquitous activation function: the Rectified Linear Unit ($\text{ReLU}(x) = \max(0, x)$).

In optimization theory, a proximal operator of a function $g$ is a mathematical tool that balances two competing goals: minimizing $g(x)$ while staying close to a starting point $v$. Formally, it is defined as:

$$\text{prox}_g(v) = \arg\min_x \left( g(x) + \frac{1}{2}\|x - v\|^2 \right)$$

Now, imagine that $g(x)$ is an indicator function for a non-negative constraint set—meaning $g(x) = 0$ if $x \ge 0$, and $\infty$ otherwise. To minimize this objective, $x$ is forced to be non-negative. To minimize the second term, $x$ must be as close to $v$ as possible.

If $v$ is already positive, the best choice is $x = v$. If $v$ is negative, the closest non-negative point is $x = 0$. This optimization step yields exactly $\max(0, v)$—the ReLU function.

As Lau et al. demonstrate in their work on proximal block coordinate descent, activations can be fundamentally reinterpreted as projection operators onto specific convex sets. Rather than applying a point-wise heuristic, the network is performing a constrained projection step. This insight is echoed by L. Li et al. in A mathematical explanation of UNet, where they prove that the ReLU activations within popular UNet architectures serve as the exact closed-form solutions for projecting variables onto non-negative constraint sets. Enforcing this non-negativity is not just a trick; as Shi et al. show in the context of multimodal concept bottleneck models, it acts as a crucial mechanism to disambiguate negative interpretations and amplify relevant signals, directly enhancing model interpretability.

Similarly, if we change the penalty function $g(x)$ to an $\ell_1$-norm penalty ($\lambda \|x\|_1$), the proximal operator becomes the soft-thresholding operator. Murdock et al. leverage this connection in Deep Component Analysis via Alternating Direction Neural Networks, demonstrating a direct mathematical link between standard neural network architectures and classical sparse coding regularizations.

Heuristic View:
Input (v) ---> [ Element-wise Max(0, v) ] ---> Output (x)

Optimization View:
Input (v) ---> [ argmin_x ( Penalty(x) + 0.5 * ||x - v||² ) ] ---> Output (x)
                └── If Penalty is a non-negativity constraint, this IS ReLU.

Deep Layers as Iterative Solvers

If an activation function is a proximal step, what happens when we combine it with a linear layer?

In classical optimization, a standard way to minimize a composite function (a smooth function plus a non-smooth penalty) is the proximal gradient method. This algorithm alternates between taking a gradient descent step on the smooth part and applying a proximal operator to handle the non-smooth penalty.

This is exactly what a layer in a neural network does. Bibi et al. show in Deep Layers as Stochastic Solvers that a forward pass through a standard block (dropout + linear layer + activation) is mathematically equivalent to a single iteration of a proximal stochastic gradient method. By viewing layers as solvers for an underlying convex objective, the authors demonstrate that one can run multiple iterations of a single layer—effectively "thinking longer" during the forward pass—to consistently improve accuracy without adding any new parameters.

This perspective enables a design paradigm known as deep unfolding, where researchers build architectures by translating optimization algorithms directly into network layers:

  • Sequential Signals: Le et al. design recurrent neural networks by unfolding an L1-L1 minimization algorithm. By deriving custom activation functions from proximal operators tailored to signal sparsity and temporal correlation, their network inherently incorporates domain knowledge, outperforming generic RNNs in video reconstruction.
  • Multimodal Fusion: In Multimodal Image Super-resolution via Deep Unfolding with Side Information, Marivani et al. replace standard activations with specialized proximal operators derived from a sparse coding framework. This provides a principled, mathematically transparent way to fuse primary target data with secondary side information.
  • Transformers and GNNs: This optimization-driven framing extends to complex modern architectures. Yang et al. demonstrate in Transformers from an Optimization Perspective that the entire forward pass of a Transformer acts to minimize a specific global energy function, providing a rigorous justification for the exact placement of ReLU activations. Similarly, Ahn et al. derive heterogeneous graph neural networks from the descent steps of a relation-aware energy function, showing that grounding activations as proximal operators naturally prevents common failure modes like oversmoothing.

Systematically Designing New Activations

When activations are unmasked as proximal operators, we gain a systematic toolkit for inventing new mathematical functions rather than relying on trial and error.

Higher-Dimensional Cones

Standard ReLU projects a scalar onto a 1D half-line. What if we project multi-dimensional inputs onto higher-dimensional geometric structures? J. Li et al. explore this in From ReLU to GeMU: Activation functions in the lens of cone projection. By framing activations as proximal operators over multivariate convex cones, they introduce the Multivariate Projection Unit (MPU). They also demonstrate that the Moreau envelope—a classical optimization concept for smoothing non-smooth functions—can be used to systematically derive leaky variants of these higher-dimensional activations.

Changing the Geometry with Bregman Divergences

The standard proximal operator relies on Euclidean distance ($\|x - v\|^2$). However, Euclidean distance assumes a flat geometry that might not match the underlying structure of the data features.

Frécon et al. address this in Bregman Neural Networks by replacing the Euclidean distance in the proximal step with a Bregman divergence $D_\psi(x, v)$, which is generated by a convex potential function $\psi$.

$$\text{prox}_g^\psi(v) = \arg\min_x \left( g(x) + D_\psi(x, v) \right)$$

Under this generalized framework, non-linear activations are revealed to be Bregman projections associated with specific Legendre functions. By altering the underlying potential $\psi$, the authors show that the choice of activation function directly dictates the geometry and distance metric of the layer's optimization objective. This geometric alignment naturally introduces architectural benefits like implicit skip connections, rendering deep networks highly stable and resilient to vanishing gradients during initialization.

Why This Framework Matters

The proximal operator framework bridges the gap between heuristic deep learning design and classical optimization theory. It answers the "why" behind successful architectures:

  1. Interpretability: Layers are no longer black-box transformations; they are steps toward solving a transparent mathematical objective.
  2. Parameter Efficiency: By treating layers as iterative solvers, networks can reuse weights dynamically to improve performance without expanding model size.
  3. Principled Design: Instead of guessing new activation functions, researchers can define a geometric constraint or penalty function and mathematically derive the exact activation required to enforce it.

Key Foundational Work

Multimodal Image Super-resolution via Deep Unfolding with Side Information (2019) — contributed 2 concept elements to this direction.
Deep Layers as Stochastic Solvers (2019) — contributed 1 concept elements to this direction.
A Proximal Block Coordinate Descent Algorithm for Deep Neural Network Training (2018) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_proximal_operator_activations_0d28e473,
  title = {proximal operator activations},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/proximal-operator-activations/rdr_0d28e47358e840f696f3215f4c66dcaa},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-28},
}

This exact version (version 1, frozen text):

@misc{lacuna_proximal_operator_activations_0d28e473_v1,
  title = {proximal operator activations},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/proximal-operator-activations/rdr_0d28e47358e840f696f3215f4c66dcaa/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-28},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake