Elementary superexpressive activations

Dmitry Yarotsky

The Core Idea

This paper proves a fascinating theoretical result: neural networks with a fixed number of neurons can approximate any continuous function to arbitrary accuracy, provided they use specific "elementary" activation functions like $\sin$ and $\arcsin$. Conversely, it demonstrates that standard activations like ReLU, Sigmoid, and Tanh can never achieve this "superexpressive" property because they are mathematically too "simple."

What Problem Does This Paper Address?

In classical neural network theory, the Universal Approximation Theorem tells us that a network can approximate any function if we make the network wide enough or deep enough. In other words, to get more accuracy, you usually need more neurons.

A fixed-size neural network architecture.

However, a more exotic property called superexpressiveness exists. A superexpressive activation function allows a network with a fixed architecture (a constant number of neurons, as illustrated above) to achieve any desired accuracy simply by tuning the weights. While previous researchers proved such functions exist, they were "non-elementary"—essentially mathematical monsters that were too complex to write down simply.

Dmitry Yarotsky sets out to answer two questions:

  1. Can we find simple, "elementary" functions (like those found on a standard scientific calculator) that are superexpressive?
  2. Why aren't the activation functions we use every day (ReLU, Sigmoid) superexpressive?

Mathematical Frameworks

The paper employs three primary mathematical frameworks to prove its claims:

  1. The Kolmogorov Superposition Theorem (KST): This classical result shows that any multivariate continuous function can be written as a specific combination of univariate (one-variable) functions. This allows the author to reduce the problem: if you can prove superexpressiveness for 1D functions, KST helps you scale it to any dimension $d$.
  2. Irrational Winding on a Torus: To achieve infinite accuracy with fixed neurons, the author uses a "weight-encoding" trick. By choosing weights that involve irrational numbers, one can use the fact that a line with an irrational slope will eventually pass arbitrarily close to any point on a torus (a donut shape). This allows a single weight to "index" into a dense set of possible function values.
  3. Pfaffian Functions: To prove the negative result, the author uses the theory of Pfaffian functions—a class of functions whose derivatives can be expressed as polynomials of the functions themselves. This provides a way to bound the "complexity" (specifically, the number of times the function can cross zero) of any network built with these activations.

Key Insights

  • The Power of Periodic Functions: The combination of $\{\sin, \arcsin\}$ is a "super-pair." Because $\sin$ is periodic and $\arcsin$ provides a way to map back into its domain, they can be used to construct highly oscillatory functions that "fill" the space of continuous functions.
  • The "Pfaffian" Barrier: The most significant insight is why standard activations fail. Functions like $e^x$, $\tanh(x)$, and $\text{ReLU}(x)$ are "piecewise Pfaffian." This means that no matter how you tune the weights of a fixed-size network using them, the resulting function can only oscillate a finite number of times. It literally lacks the "wiggle room" to approximate every possible continuous function.
  • Precision vs. Size: Superexpressiveness shifts the complexity of the model from the number of neurons to the precision of the weights. To get higher accuracy in a fixed-size network, the weights must be specified to an increasingly massive number of decimal places.

Key Results

The paper successfully identifies elementary families of functions that are superexpressive, while ruling out standard ones.

  • Elementary Families: The paper proves that the following simple families are superexpressive:
  • $\{\sigma_1, \lfloor \cdot \rfloor\}$ (where $\sigma_1$ is any non-polynomial analytic function).
  • $\{\sin, \arcsin\}$.
  • A specific, explicitly defined smooth sigmoidal function $\sigma_3$.
The smooth sigmoidal function $\sigma_3(x)$.
  • The Impossibility Result: The paper rigorously proves that any finite collection of "standard" activations (ReLU, Sigmoid, Tanh, ELU, Softplus, etc.) is not superexpressive. You will always need more neurons to get more accuracy with these functions.
  • Architecture Scaling: For a $d$-variable function, the number of neurons needed for a superexpressive architecture scales as $O(d^2)$.

Limitations and Future Work

While mathematically profound, the author acknowledges several practical limitations:

  • Computational Feasibility: These results are purely theoretical. Finding the "magic" weights required for high accuracy is an ill-conditioned problem. Because the method relies on the "pigeonhole principle" and irrational windings, it suffers from a severe curse of dimensionality when trying to actually compute the weights.
  • Infinite Precision: The proofs assume weights can be stored with infinite precision. In real-world hardware (like 32-bit floats), this superexpressiveness would vanish.
  • Open Questions: The author leaves open whether the function $\sin(x)$ alone is superexpressive, or if it strictly requires a partner like $\arcsin$ or ReLU to achieve this property. He also notes the challenge of finding a superexpressive function that is both elementary and real-analytic on the entire real line.

Summary updated

BibTeX
@inproceedings{yarotsky2021elementary,
  author = {Dmitry Yarotsky},
  title = {{Elementary superexpressive activations}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=GSCggVUDC9},
}
Figure