Generalized Activation via Multivariate Projection

Jiayun Li, Yuxiao Cheng, Yiwen Lu, Zhuofan Xia, Yilin Mo, Gao Huang

TL;DR

This paper introduces the Multivariate Projection Unit (MPU), a new class of multi-input multi-output (MIMO) activation functions. By reframing the ubiquitous ReLU as a simple projection onto a line, the authors generalize it into projections onto higher-dimensional convex cones, theoretically and empirically proving that this shift significantly boosts a neural network's expressive power.

What Problem Does This Paper Address?

Most activation functions used today—like ReLU, Sigmoid, or Tanh—are Single-Input Single-Output (SISO). They process each element of a tensor independently. While effective, this "element-wise" approach ignores potential synergies between neurons within the same layer before the next linear transformation.

The authors identify a fascinating structural parallel: a single layer of a Feedforward Neural Network (FNN) looks exactly like one iteration of the Projected Gradient Descent (PGD) algorithm, a staple in constrained optimization. In this view, ReLU is just a projection onto the non-negative half-line ($\mathbb{R}_+$). The researchers ask: if we use more sophisticated projections (MIMO instead of SISO), can we build more powerful networks?

The structural parallel between a standard FNN layer and a PGD iteration.

Methods

The core innovation is the Multivariate Projection Unit (MPU). Instead of projecting onto a 1D line, the MPU projects a vector of inputs onto an $m$-dimensional convex cone, specifically a Second-Order Cone (SOC).

Key technical contributions include:

  • Mathematical Generalization: They prove that while a single MPU layer can perfectly represent a ReLU function, the reverse is not true—a shallow ReLU network cannot faithfully represent a single MPU projection.
  • Proximal Operator Framework: They show that many common activations (ReLU, Sigmoid, Softmax) are actually proximal operators for specific functions. They further use the concept of Moreau envelopes to prove that "Leaky" versions of these activations also retain this proximal property.
  • Implementation: To keep the computational cost manageable, they partition input tensors into small groups (e.g., pairs or triplets) and apply the MPU projection to these groups, creating a MIMO activation that captures local multivariate interactions.

Datasets

The authors validated the MPU across three distinct domains:

  1. Synthetic Function Fitting: A benchmark designed to test the theoretical expressive power of the units.
  2. Image Classification: Evaluated on CIFAR-10 and ImageNet-1k using standard architectures like ResNet-18, ResNet-50, and the Vision Transformer (DeiT-tiny).
  3. Reinforcement Learning (RL): Tested using the PPO algorithm in the "Ant" environment within the NVIDIA IsaacGym simulator.

Key Insights and Ideas

  • The Expressivity Gap: The most striking insight is theoretical. The authors prove that MPU-activated networks have strictly greater expressive power than ReLU-activated ones. A single MPU can capture nonlinearities that would require an "explosion" in width for a ReLU network to approximate.
  • Optimization as Architecture: By drawing a direct line between optimization algorithms (like PGD) and neural architectures, the paper suggests that the "best" activation functions might be those that mimic efficient solvers for complex constraints.
  • Efficiency vs. Power: While MPU is a MIMO function, its computational overhead is linear ($O(m)$). In practice, replacing $m$ ReLUs with one $m$-dimensional MPU results in comparable Multiply-Accumulate (MAC) operations, making it a viable drop-in replacement.

Key Results

  • Reinforcement Learning: This was the MPU's strongest showing. In the IsaacGym Ant environment, the 3D MPU achieved a 25% increase in average reward compared to traditional ReLU, even when the ReLU models were given more parameters to compensate for the MPU's complexity.
  • Vision Tasks: On CIFAR-10, MPU-equipped ResNet-18 models consistently outperformed ReLU, Leaky ReLU, and PReLU. For example, a Leaky MPU reached 95.53% accuracy vs. 95.35% for standard ReLU.
  • Function Fitting: As shown in Figure 3, standard SISO activations (like ReLU and Leaky ReLU) failed to accurately approximate the multivariate projection operator, whereas the MPU handled it with ease, confirming the theoretical expressivity claims.
MSE plots showing MPU (purple) significantly outperforming SISO activations in fitting multivariate functions.

Limitations and Future Work

Despite the gains in RL and small-scale vision tasks, the performance boost on the massive ImageNet-1k dataset was relatively modest. The authors suggest this warrants further investigation into how MIMO activations scale with extremely deep models and large data regimes.

Future research directions include:

  • Applying MPU to Large Language Models (LLMs) and Graph Neural Networks (GNNs).
  • Developing specialized optimizers tailored for the unique gradients produced by MIMO projection units.
  • Exploring other types of proximal operators beyond second-order cones to discover even more potent nonlinearities.

Summary updated

Abstract

Activation functions are essential to introduce nonlinearity into neural networks, with the Rectified Linear Unit (ReLU) often favored for its simplicity and effectiveness. Motivated by the structural similarity between a shallow Feedforward Neural Network (FNN) and a single iteration of the Projected Gradient Descent (PGD) algorithm, a standard approach for solving constrained optimization problems, we consider ReLU as a projection from R onto the nonnegative half-line R+. Building on this interpretation, we extend ReLU by substituting it with a generalized projection operator onto a convex cone, such as the Second-Order Cone (SOC) projection, thereby naturally extending it to a Multivariate Projection Unit (MPU), an activation function with multiple inputs and multiple outputs. We further provide mathematical proof establishing that FNNs activated by SOC projections outperform those utilizing ReLU in terms of expressive power. Experimental evaluations on widely-adopted architectures further corroborate MPU's effectiveness against a broader range of existing activation functions.
BibTeX
@misc{li2023generalized,
  author = {Jiayun Li and Yuxiao Cheng and Yiwen Lu and Zhuofan Xia and Yilin Mo and Gao Huang},
  title = {{Generalized Activation via Multivariate Projection}},
  year = {2023},
  eprint = {2309.17194},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.17194},
}
Figure