NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Global Universality of Two-Layer Neural Networks with ReLU Activations

Naoya Hatano, Masahiro Ikeda, Isao Ishikawa, Yoshihiro Sawano

TL;DR

This paper extends the "Universal Approximation Theorem" for ReLU neural networks from local compact sets to the entire real line. By introducing a specific norm that accounts for linear growth at infinity, the authors prove that two-layer ReLU networks can globally approximate any continuous function that behaves predictably as it approaches positive or negative infinity.

What Problem Does This Paper Address?

In the world of machine learning, we often cite the Universal Approximation Theorem to justify why neural networks are so powerful. Traditionally, these theorems state that a neural network can approximate any continuous function to arbitrary precision—but there’s a catch: it only applies over compact sets (essentially, bounded "boxes" in space).

While this is useful, it leaves a theoretical gap. What happens if our data isn't bounded? If we want to understand how a network behaves across the entire real line ($\mathbb{R}$), standard proofs don't quite get us there because ReLU functions grow infinitely as their input increases. This paper addresses this "local vs. global" gap by defining a mathematical framework where we can rigorously discuss global convergence for two-layer ReLU networks.

Methods

The authors employ tools from functional analysis to prove their "Global Universality" theorem.

  1. Defining the Space ($\mathcal{Y}$): They define a specific space of continuous functions that have a limit when divided by $(1 + |x|)$ as $x$ goes to infinity. This effectively restricts the study to functions that don't grow faster than a linear rate—matching the natural growth of a ReLU unit.
  2. The Norm: They introduce a "global" norm: $\|f\|_{\mathcal{Y}} := \sup_{x \in \mathbb{R}} \frac{|f(x)|}{1+|x|}$. This norm "tames" the function at infinity, allowing for a consistent measurement of error across the entire real line.
  3. The Proof Strategy: To prove density (that networks can get arbitrarily close to any function in this space), they use the Hahn-Banach Theorem and the Riesz Representation Theorem. They show that if a linear functional (a mathematical "probe") vanishes on all neural networks, it must be the zero functional. This is a standard "proof by contradiction" technique in functional analysis to show a subspace is dense.

Datasets

Not discussed in the paper. This is a purely theoretical mathematical paper; no empirical experiments or datasets were used.

Key Insights and Ideas

  • The "Linear Growth" Match: The most critical insight is the choice of the denominator $(1 + |x|)$ in the norm. Since a single ReLU unit $f(x) = \max(0, ax+b)$ grows linearly, any finite sum of ReLUs also grows at most linearly. By scaling the entire function space by this linear factor, the authors create a "level playing field" where global approximation becomes mathematically tractable.
  • From Local to Global: The authors show that you can construct "bump functions" (functions with compact support) using combinations of ReLUs. Since these bump functions are dense in the space of continuous functions on a local level, the challenge was simply proving that the "tails" at infinity could also be handled.
  • Recapturing Classical Results: The authors demonstrate that their global result is a generalization. If you restrict the domain to a bounded interval, their global norm simplifies back to the standard uniform norm used in earlier proofs by researchers like Cybenko and Funahashi.

Key Results

  • Theorem 1.1: The primary result is the formal proof that the linear subspace of two-layer ReLU networks is dense in the Banach space $\mathcal{Y}$.
  • Interpretation: This means that for any continuous function $f$ that grows at most linearly at infinity, and for any error tolerance $\epsilon > 0$, there exists a two-layer ReLU network that is within $\epsilon$ distance of $f$ across the entire real line, not just within a specific range.

Limitations and Future Work

  • One-Dimensional Focus: The proof provided in this paper is specifically for functions of a single variable ($f: \mathbb{R} \to \mathbb{R}$). While many of these techniques can be generalized, the paper does not explicitly tackle high-dimensional inputs ($x \in \mathbb{R}^n$).
  • Two-Layer Constraint: The result is specific to two-layer (one hidden layer) networks. While deep networks are more common in practice, this paper focuses on the fundamental "base case" of universality.
  • Activation Specificity: The proof relies heavily on the specific properties of the ReLU activation. Other unbounded activations (like Leaky ReLU or ELU) would likely require slight modifications to the function space $\mathcal{Y}$ to achieve similar global results.

Summary updated

BibTeX
@article{hatano2021global,
  author = {Naoya Hatano and Masahiro Ikeda and Isao Ishikawa and Yoshihiro Sawano},
  title = {{A Global Universality of Two-Layer Neural Networks with ReLU Activations}},
  journal = {Journal of Function Spaces},
  year = {2021},
  doi = {10.1155/2021/6637220},
}
Figure