[Paper Review] On Approximation Capabilities of ReLU Activation and Softmax Output Layer in Neural Networks
This paper establishes the theoretical foundation for using ReLU activation and softmax output layers in neural networks by proving that a sufficiently large single-hidden-layer feedforward network can approximate any function in $L^1$ space using ReLU, and any indicator function (representing mutually exclusive class labels) in $L^1$ using softmax. The results justify the widespread use of these components in modern deep learning for classification tasks.
In this paper, we have extended the well-established universal approximator theory to neural networks that use the unbounded ReLU activation function and a nonlinear softmax output layer. We have proved that a sufficiently large neural network using the ReLU activation function can approximate any function in $L^1$ up to any arbitrary precision. Moreover, our theoretical results have shown that a large enough neural network using a nonlinear softmax output layer can also approximate any indicator function in $L^1$, which is equivalent to mutually-exclusive class labels in any realistic multiple-class pattern classification problems. To the best of our knowledge, this work is the first theoretical justification for using the softmax output layers in neural networks for pattern classification.
Motivation & Objective
- To extend universal approximation theory to neural networks using the unbounded ReLU activation function.
- To theoretically justify the use of the nonlinear softmax output layer in multi-class pattern classification.
- To demonstrate that a large enough network with ReLU can approximate any $L^1$ function to arbitrary precision.
- To show that a large enough network with softmax can approximate any indicator function in $L^1$, equivalent to mutually exclusive class labels.
- To provide a theoretical basis for the empirical success of ReLU and softmax in modern deep learning architectures.
Proposed method
- Proved that any function in $L^1(I_d)$ can be approximated by a ReLU-based network using a single hidden layer and sufficient width.
- Constructed a transformation $f'_i(\mathbf{x}) = \frac{2m}{\epsilon}(f_i(\mathbf{x}) - 0.5)$ to map target functions into a form suitable for ReLU approximation.
- Used the triangular inequality to bound the $L^1$ error between the network output and target function.
- Leveraged Lemma 1 to show existence of a ReLU network $g(\mathbf{x})$ such that $\|\text{softmax}(g(\mathbf{x}))_i - \text{softmax}(f'(\mathbf{x}))_i\|_1 < \epsilon/2$.
- Analyzed the behavior of the softmax function on indicator functions by splitting the domain into regions where $f_i = 1$ and $f_i = 0$.
- Used the inequality $\exp(-x) \leq 1/x$ for $x > 0$ to bound the $L^1$ error of the softmax approximation to $\epsilon/2$, completing the proof.
Experimental results
Research questions
- RQ1Can a neural network with ReLU activation function approximate any function in $L^1$ space?
- RQ2Can a neural network with a softmax output layer approximate any indicator function in $L^1$ space?
- RQ3Is the universal approximation property preserved when using ReLU and softmax together in a single hidden layer network?
- RQ4Does the theoretical justification for ReLU and softmax hold for realistic multi-class classification problems with mutually exclusive labels?
- RQ5Can the approximation error be bounded arbitrarily close to zero using sufficiently large networks?
Key findings
- A sufficiently large neural network using ReLU activation can approximate any function in $L^1(I_d)$ to arbitrary precision.
- The approximation error for ReLU networks can be made smaller than any $\epsilon > 0$ by increasing network width.
- A large enough network with a softmax output layer can approximate any indicator function in $L^1(I_d)$, which corresponds to mutually exclusive class labels in classification tasks.
- The $L^1$ error between the softmax output and the target indicator function is bounded by $\epsilon/2$ through a transformation and exponential decay analysis.
- The theoretical result for softmax approximation holds independently of the activation function used in the hidden layer, as long as the hidden layer can approximate the transformed function.
- The proof establishes that the use of softmax in classification is theoretically justified, providing the first such theoretical foundation for its widespread use.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.