Optimal approximation of smooth functions by ReLU neural networks
Thomas Nagler
Abstract
We study uniform approximation of the Hölder ball H1s([0,1]D) by fully connected ReLU networks. Except in the one-dimensional Lipschitz case, existing constructions remain separated from the information-theoretic efficiency limit. This article closes the gap for every s>0 and D≥1: networks with width O(N), depth O(L), and parameter magnitude O(1) attain uniform approximation error of order (N2L2logN)−s/D. No relation between width and depth is required. The construction uses new encoding and decoding mechanisms that exploit higher-order finite-difference bounds for local Taylor coefficients of the target function. As a statistical consequence, empirical risk minimizers over the corresponding clipped network classes attain the minimax regression rate n−2s/(2s+D) without additional logarithmic factors. The paper also gives a detailed exposition of the key approximation techniques, covering both established and new mechanisms.
Approximation theory for neural networks has a long history. The universal approximation theorems of Cybenko (1989) and Hornik et al. (1989) show that shallow neural networks can approximate every continuous function on a compact set, but they are qualitative. They do not determine how the network size must grow to achieve a target accuracy or, conversely, what accuracy can be achieved with a given architecture. Such quantitative bounds have become one of the central problems in neural-network approximation (DeVore et al., 2021; Dahmen et al., 2022).
This article concerns the most common instance of the problem. The goal is to construct approximations of smooth functions f belonging to the Hölder ball H1s([0,1]D) by ReLU networks with width N, depth L, and bounded parameters. The worst-case error ϵN,L attained by a given architecture quantifies how efficiently the network class uses its capacity. There is an information-theoretic limit on this efficiency. Let N(ϵ,F,∥⋅∥∞) be the covering number of a function class F at accuracy ϵ in the sup-norm. The classical entropy estimate (e.g., Polyanskiy and Wu, 2025, Theorem 27.14)
logN(ϵ,H1s([0,1]D),∥⋅∥∞)≍ϵ−D/s
shows how much information is needed to represent the Hölder ball at accuracy ϵ. Any function class that uniformly approximates H1s([0,1]D) with accuracy ϵ must have entropy of the same order or higher. The entropy of ReLU networks with parameters bounded by B is of order N2L2log(NB) at the relevant scale (Ou and Bölcskei, 2026), and hence of order
Reference
Smoothness
Width
Depth
Parameter magnitude
Uniform error
Yarotsky (2018)
0<s≤1
1
L
Not tracked
L−2s/D
Yarotsky and Zhevnerchuk (2020)
s>0
1
L
Not tracked
L−2s/D
Schmidt-Hieber (2020)
s>0
N2
logN
1 (sparse)
N−2s/D
Kohler and Langer (2021)
s>0
N
logN
Not tracked
N−2s/D
Kohler and Langer (2021)
s>0
1
L
Not tracked
L−2s/D
Lu et al. (2021)
s∈N+
NlogN
LlogL
Not tracked
(N2L2)−s/D
Shen et al. (2022)
0<s≤1
N
L
Not tracked
(N2L2logN)−s/D
Yang (2025)
s>0
N
L
Not tracked
(N2L2)−s/D
Nagler and Langer (2026)
s>0
N
L+LlogL/logN
N
(N2L2)−s/D
Ou and Bölcskei (2026)
s=D=1
N
L
1
(N2L2logN)−1
Present work
s>0
N
L
1
(N2L2logN)−s/D
Table 1: Overview of quantitative approximation bounds for functions on [0,1]D with Hölder-smoothness s>0. Width, depth, and parameter magnitude are stated up to constant factors.
N2L2logN whenever B grows at most polynomially in N. Equating the entropy estimates gives the optimal error
ϵN,L=(N2L2logN)−s/D.
Over the last decade, several works have moved increasingly close to this benchmark. Yarotsky (2017, 2018) established approximation rates for smooth functions and the rate L−2s/D for fixed-width, very deep networks when 0<s≤1. Yarotsky and Zhevnerchuk (2020) extended this rate for very deep networks to arbitrary smoothness, and Siegel (2023) to Sobolev and Besov spaces. Schmidt-Hieber (2020) constructed sparse networks, while Kohler and Langer (2021) obtained error bounds of N−2s/D for wide fully connected networks and L−2s/D for fixed-width deep networks. For arbitrary integer smoothness, Lu et al. (2021) derived simultaneous width–depth bounds with logarithmic overhead in both width and depth. For 0<s≤1, Shen et al. (2022) removed these architectural overheads, but did not track parameter magnitudes. Ou and Bölcskei (2026) attained the entropy-optimal bounded-parameter rate in the special case s=D=1. For arbitrary smoothness, Yang (2025) obtained error (N2L2)−s/D with width O(N) and depth O(L), and untracked parameter magnitudes (but at least exponential in L). Measured against the target error ϵN,L, this leaves root-logarithmic overhead in width. Nagler and Langer (2026) obtained the same error with parameter magnitudes bounded by O(N), but with the same width overhead and additional depth overhead when logL≫logN. The bounds are summarized in Table 1.
It therefore remains unclear whether ReLU networks are an optimal class of approximators of general smooth functions. We close this gap for every s>0 and D∈N+.
Main results. For any f∈H1s([0,1]D), we construct an explicit ReLU network ϕ with width O(N), depth O(L), and parameter magnitude O(1) such that
∥f−ϕ∥∞≲ϵN,L.
The result imposes no relation between width and depth. For s>1, it is the first bound that attains ϵN,L without overhead in width or depth. In particular, it is the first to achieve the rate (N2logN)−s/D for fixed depth. The result is optimal in the sense that no ReLU construction of comparable size can achieve a smaller error, and neither can any other function class with similar metric capacity.
Like the current state-of-the-art constructions, our approach stores and retrieves local Taylor coefficients by bit extraction. At the optimal scale, the network has to store KD≍N2L2logN Taylor coefficients, while its capacity is of order N2L2logN digits. Storing each coefficient on its own with sufficient accuracy costs order logK digits, which is the source of the logarithmic gaps in previous constructions. The key insight is that Taylor coefficients of smooth functions have additional regularity that makes them more compressible. Our main new ingredient is a higher-order point-fitting network: it stores only the quantized higher-order differences of a coefficient sequence, each in a single digit, and reconstructs the values by a segmented discrete Taylor–Newton recursion with bounded weights. To apply it in dimension D≥2, we flatten the coefficient grid into a single sequence that keeps these difference bounds by inserting Hermite interpolation bridges between its rows. Along the way, we give simplified, self-contained proofs of all the standard components. In particular, median smoothing needs only O(D) copies of the network instead of 3D, and a reduced-alphabet base- ζ digit extraction allows storing bounded integers directly in a network with controlled parameter magnitudes.
The approximation-theoretic result also has implications for machine learning and statistics. We show that any approximate empirical risk minimizer fn over suitably sized networks satisfies
This rate matches the minimax lower bound of Stone (1982) over the Hölder ball and removes the polylogarithmic factors from previous works.
Outline. Section 2 introduces the notation. Section 3.1 states the main approximation and optimality results, and Section 3.2 gives the regression result. Section 4 gives a comprehensive overview of the construction and proof ideas. It is deliberately expository and also reviews and simplifies already established techniques. Detailed proofs are given in the appendices.
2 Setup and Notation
We use the following notation throughout the paper. For f:S→R, we write ∥f∥∞,S=supx∈S∣f(x)∣, omitting S when it is clear from context, and ∥f∥L2(P)2=∫f(x)2dP(x) for a measure P. The modulus of continuity of f∈C([0,1]D) is
ωf(δ)=sup{∣f(x)−f(y)∣:x,y∈[0,1]D,∥x−y∥∞≤δ},δ>0.
Our approximation results are stated for the following Hölder classes.
Definition 2.1 (Hölder class). Let S be a closed box in RD, let s,C>0, and set m=⌈s⌉−1. For a multi-index α=(α1,…,αD)∈N0D, write ∥α∥1=∑j=1Dαj and ∂α=∂1α1⋯∂DαD. The Hölder class HCs(S) consists of all m times continuously differentiable functions f:S→R that satisfy the following bounds:
In particular, every f∈HCs(S) satisfies ∥f∥∞,S≤C and, when s is an integer, derivatives of order s−1 are required to be Lipschitz continuous.
We consider fully connected feedforward networks with the ReLU activation function.
Definition 2.2 (Class of fully connected neural networks). Let σ:R→R, σ(x)=max{x,0}=(x)+ be the ReLU activation function, and for v∈R denote by σv(t)=σ(t+v) the v-biased ReLU function. For vectors x=(x1,…,xD)⊤∈RD and v=(v1,…,vD)⊤∈RD, we apply σv componentwise, i.e.,
A function f:RN0→RNL+1 is called a fully connected neural network with depth L∈N, and width vector (N0,N1,…,NL+1)∈NL+2 if it can be written as
f(x)=vL+WLσvL−1⋯W1σv0W0x,(2.1)
where for each i=0,…,L, Wi∈RNi+1×Ni is the weight matrix and vi∈RNi+1 is the bias vector. Let Bi=max{maxj,k∣Wi,j,k∣,∥vi∥∞} be the maximum parameter magnitude in layer i. The class of such networks with depth L, maximum hidden-layer width N∈N, and maximum parameter magnitude B∈(0,∞) is defined as
Fd0,dL+1(N,L,B)={fof the form(2.1):N0=d0,NL+1=dL+1,1≤i≤LmaxNi≤N,0≤i≤LmaxBi≤B}.
We write ϕ∈Fd,d′(N,L,B) if there is a constant C∈N+ not depending on N,L,B such that ϕ∈Fd,d′(CN,CL,CB). The constant may depend on the smoothness and dimension of the target function.
To measure the complexity of function classes, we use the following standard notation.
Definition 2.3 (Covering number and entropy). Let (V,∥⋅∥) be a normed space, F⊂V, and ϵ>0. A finite collection {g1,…,gM}⊂V is an ϵ-cover of F if, for every f∈F, there is an i∈{1,…,M} such that ∥f−gi∥≤ϵ. The covering number N(ϵ,F,∥⋅∥) is the smallest cardinality of such a cover. We call logN(ϵ,F,∥⋅∥) the metric entropy.
We write f≲g if there is C∈(0,∞) such that f≤Cg and, similarly, f≳g if g≲f. If f≲g and f≳g, we write f≍g. All unqualified logarithms are natural logarithms. For real numbers c≤d, define clip[c,d](t)=min{max{t,c},d}. We apply this map coordinate-wise to vectors and write clip[c,d]m in that case.
3 Main Results
We now formally state our main results: an approximation error bound, its optimality, and the resulting statistical error rates for nonparametric regression.
3.1 Optimal Approximation
The main contribution of this article is a new bound on the approximation error of ReLU neural networks.
Theorem 3.1 (Approximation). Let s>0 and D∈N+. Then there are constants A∈N+ and C≥1, depending only on s and D, such that, for every N≥2 and L∈N+, the class FN,L:=FD,1(AN,AL,1) satisfies
The theorem imposes no constraints on the relation between width and depth. It can also be inverted: for every ϵ∈(0,1), choosing N,L with N2L2logN≥ϵ−D/s gives uniform error at most Cϵ. The construction and its relation to earlier approximation strategies are developed in Section 4.
Theorem 3.1 matches the bound of Ou and Bölcskei (2026) for s=D=1. For 0<s≤1, it attains the same rate as Shen et al. (2022), but with bounded parameters. For s>1, it improves on all previous bounds and removes all architectural overheads. In fact, the rate in Theorem 3.1 cannot be improved, as made precise by the following lower bound.
Theorem 3.2 (Lower bound). Let s>0, D∈N+, and b≥0. There is c=c(s,D,b)>0 such that, for all N≥2, L∈N+,
The proof is given in Section C.2. Together with Theorem 3.1, this shows that ϵN,L is the exact rate of uniform approximation of the Hölder ball by ReLU networks with bounded parameters. In fact, even allowing parameters that grow polynomially in the width does not improve the rate. The lower bound in Theorem 3.2 relies on a metric entropy argument that also establishes optimality in a broader sense: no other function class with similar metric capacity can achieve a smaller uniform approximation error.
Corollary 3.3 (Entropy optimality). If CϵN,L<1/4, the class FN,L of Theorem 3.1 satisfies
where the infimum is over all function classes attaining (3.1) with FN,L replaced by G.
Both sides of (3.2) are of order N2L2logN≍ϵN,L−D/s. Hence, up to constant factors, no class that attains accuracy CϵN,L has smaller metric entropy than FN,L. This sharpens the Kolmogorov–Donoho optimality of Bölcskei et al. (2019) and Elbrächter et al. (2021), where optimal description length was matched only up to logarithmic factors.
Previous constructions do not attain this optimality, except for Ou and Bölcskei (2026), who cover only the case s=D=1. Shen et al. (2022) cover 0<s≤1 and D≥1 with the right width, depth, and error ϵN,L, but their parameter magnitudes are exponential in the depth, which raises the entropy (see below). For general s>0 and D≥1, the best previous results are those of Yang (2025) and Nagler and Langer (2026). Both attain error (N2L2)−s/D, which exceeds ϵN,L by a factor (logN)s/D. In addition, the exponential parameter magnitudes of Yang (2025) raise the entropy to order N2L3logN, and the depth overhead of Nagler and Langer (2026) raises it to order N2L2log(NL).
The lower bound and optimality corollary rely on sup-norm entropy, which is the relevant notion of complexity for uniform approximation. For ReLU networks, this makes control of the parameter magnitude essential: with unbounded parameters, the sup-norm entropy is infinite, even after clipping the output. Ou and Bölcskei (2026, Theorem 2.1) show that, at the relevant scales ϵ−1≤poly(N,L), it holds that
logN(ϵ,FD,1(N,L,B),∥⋅∥∞)≍N2L2log(NB),
which grows logarithmically in B. In particular, bounded parameters and parameters growing polynomially in N give the same capacity up to constants. Our construction exploits this: we first build networks with B=O(N) and then convert them into equivalent networks with B=O(1) and the same orders of width and depth (Lemma A.2).
If logB≫logN, the network class has larger entropy than needed to attain accuracy ϵN,L (Theorem 3.3), so the added capacity is wasted. This matters for estimation: the statistical error of empirical risk minimizers grows with the entropy of the class (Section 3.2). Parameters growing exponentially in the depth, as in the construction of Shen et al. (2022), inflate the entropy and worsen the regression rate. Without parameter bounds, the sup-norm entropy is infinite, but VC-dimension arguments (Bartlett et al., 2019; Shen et al., 2022; Siegel, 2023) show that ϵN,L remains a lower bound whenever L≤poly(N). In this regime, Theorem 3.1 is optimal even among networks with arbitrary parameters. Whether large parameters can improve the rate when logL≫logN≫1 remains open; see Section 5.
3.2 Statistical Consequence
The sharp approximation and entropy bounds translate into optimal statistical behavior of empirical risk minimizers over suitable ReLU network classes. Consider the nonparametric regression model
Yi=f0(Xi)+ξi,i=1,…,n,(3.3)
where Xi∼idP for a probability measure P supported on [0,1]D, ξi∼idN(0,γ2), and the two sequences are independent. Set rn=n−s/(2s+D) and choose Nn,Ln such that
rn−D/s≤Nn2Ln2logNn≲rn−D/s.(3.4)
Define the clipped network class
Gn={clip[−1,1]∘f:f∈FNn,Ln},
and note that clipping amounts to appending a fixed ReLU module (Lemma A.7).
Theorem 3.4 (Optimal regression). Let s>0 and D∈N+. Under (3.3), suppose that f0∈H1s([0,1]D) and consider an approximate empirical risk minimizer fn∈Gn in the sense that
The rate in Theorem 3.4 is minimax optimal over the Hölder ball for, e.g., uniform designs (Stone, 1982), and removes the polylogarithmic factors in previous bounds (e.g., Schmidt-Hieber, 2020; Kohler and Langer, 2021; Lu et al., 2021; Shen et al., 2022; Yang, 2025; Nagler and Langer, 2026). Rates without logarithmic factors were previously known only in special cases. Ou and Bölcskei (2026) treat Lipschitz functions in dimension D=1, and Li et al. (2026) treat Hölder smoothness 0<s≤1, but with a purpose-built “dyadic-triangular” activation function in place of the ReLU. Theorem 3.4 follows from direct substitution of the approximation and entropy bounds from the previous section into the oracle inequality of Ou and Bölcskei (2026, Theorem 4.1). The details are given in Section C.3.
4 Construction and Proof Ideas
This section explains the key ideas of the construction behind Theorem 3.1 and is intentionally expository. Our proof of Theorem 3.1 is self-contained and combines the canonical Taylor-network architecture with a new coefficient-retrieval argument. We give a detailed account of the general construction as well as several known techniques (monomial networks, affine interpolation, bit-extraction, median smoothing), often simplifying previous proofs of the key results. The main innovations responsible for the tighter error bound are in Sections 4.4 and 4.5. Sections 4.2 and 4.3 review the tools needed to store the Taylor coefficients, and Section 4.6 explains the remaining standard modules.
4.1 The Canonical Taylor-Network Construction
Approximation of Hölder classes by ReLU networks relies on efficient realizations of local polynomials. Let m=⌈s⌉−1 and partition [0,1]D into cubes of side length K−1, with lower corners β/K∈{0,1/K,…,(K−1)/K}D. On the cube Qβ, Taylor's theorem gives
Figure 1: Structure of the approximating network. The localization module (Section 4.6.2) maps x to the lower corner β/K of its grid cell and then to the corresponding flattened index (Sections 4.2 and 4.5). For each multi-index α, the network retrieves an approximation of the local Taylor coefficient ∂αf(β/K)/α! (Sections 4.3 and 4.4) and multiplies it by an approximation of the monomial (x−β/K)α (Section 4.6.1). Summing these terms yields the local Taylor approximation, and median smoothing (Section 4.6.3) controls the error near cell boundaries.
The form of Tβ explains the canonical architecture used in many ReLU constructions (Schmidt-Hieber, 2020; Kohler and Langer, 2021; Lu et al., 2021; Nagler and Langer, 2026): localize the input around a cube cell, retrieve the appropriate Taylor coefficients, evaluate the monomials, sum the resulting terms, and smooth the construction near cell boundaries. The complete architecture is shown in Fig. 1.
For later use, observe that ∣(x−β/K)α∣≤K−∥α∥1 for x∈Qβ. Hence an error of size εα when retrieving the coefficient ∂αf(β/K)/α! contributes at most εαK−∥α∥1 to the Taylor sum. We therefore set the target accuracy to
εα:=K−(s−∥α∥1),
which keeps every summand's error at the scale K−s of the Taylor remainder.
Approximate localization, polynomial evaluation, and smoothing across cell boundaries can be implemented using standard ReLU constructions (Yarotsky, 2017; Lu et al., 2021; Nagler and Langer, 2026); see Section 4.6. These modules fit within a smaller network budget than the final approximator. The decisive task, and the information-theoretic bottleneck of the construction, is to fit the coefficient arrays
(α!∂αf(β/K))β∈{0,…,K−1}D,∥α∥1≤m,
using a subnetwork with minimal width and depth. At the optimal scale, each array contains KD≍N2L2logN entries. Treating the coefficients as unrelated numbers leaves a logarithmic gap in the approximation error. Our construction closes it with a point-fitting network that exploits higher-order finite-difference bounds, combined with a Hermite-bridge flattening that preserves those bounds when converting multivariate coefficient arrays into one-dimensional sequences; see Sections 4.4 and 4.5.
4.2 Piecewise-Linear Interpolation
A key tool for ReLU approximation is the ability to efficiently represent continuous piecewise-linear (CPwL) functions defined on finitely many knots. It is used both to store prescribed values in the network and to localize the input to a grid cell.
Proposition 4.1 (Piecewise-linear interpolation). Let p>0, N,L∈N+ with N≥2, and 1≤M≤N2L. Suppose 0≤x1<⋯<xM≤(NL)p and y1,…,yM∈R satisfy
1≤i<Mmin(xi+1−xi)≥(NL)−p,1≤i≤Mmax∣yi∣≤(NL)p.
Then the CPwL interpolant f through (xi,yi), with constant extension outside [x1,xM], satisfies f∈F1,1(4N,(⌈5p⌉+18)L,N).
Up to constant factors, the result is a special case of Ou et al. (2024, Proposition B.3), stated for the polynomial scales used later. Their construction refines the two-layer mechanism of Daubechies et al. (2022, Lemmas 3.3 and 3.4). Lu et al. (2021, Lemma 5.4) and Shen et al. (2022, Lemma 4.1) provide similar constructions using a technique going back to Shen et al. (2019, Lemma 2.2). However, they leave parameter magnitudes untracked and the realized functions uncontrolled in small intermediate intervals.
We give a simplified proof based on a slope jump decomposition in Section B.1 and outline it here. The interpolant has the hinge representation
f(x)=f(x1)+i=1∑M[f′]xiσ(x−xi),
where [f′]t=limε↘0{f′(t+ε)−f′(t−ε)} denotes the slope jump of f at t. This representation is a single hidden layer with one unit per knot xi. A more efficient construction is possible by adding a second layer. Passing a CPwL function g through a ReLU unit creates new knots wherever g changes sign, with slope jump equal to the slope of g there; see the white circles in Fig. 2(a).
To exploit this, we arrange the knots in N groups of N and call the first and last knot of each group, together with one auxiliary knot after it, boundary knots. For each interior position j, let gj+ be a CPwL function with hinges only at boundary knots that crosses zero at the j-th knot of every group, with slope equal to the positive part of the slope jump of f there; see Fig. 2(a). Define gj− in the same way with the negative parts. Then
f=h+j=2∑N−1(σ(gj+)−σ(gj−)),
where h has hinges only at boundary knots; see Fig. 2(b).
Since h and all gj± have hinges only at the O(N) boundary knots, one hidden layer computes these hinges and a second one the rectified functions, so N2 knots are fitted with width O(N) and depth O(1). To fit N2L knots, we add the increments of f over at most 2L consecutive blocks of N2 knots in a running sum. The resulting network has width O(N) and depth O(L), as claimed.
(a) the function g2+
(b) the decomposition
Figure 2: The construction for N=4 with positive slope jumps. (a) The function g2+ crosses zero at xi,2 in every group, returns to zero at xi,N+1, and is nonpositive until the next group. The thicker curve shows σ(g2+), including its flat zero segments. (b) Each σ(gj+) has one knot in every group (dotted lines), and h has only boundary knots (dashed lines).
4.3 Storing and Retrieving Local Taylor Coefficients
We now turn to the decisive task identified in Section 4.1: storing and retrieving the local Taylor coefficients. Existing approaches broadly separate into explicit storage and encoded retrieval. Schmidt-Hieber (2020) approximates cell indicators that select from explicitly stored Taylor coefficients. The wide-network construction of Kohler and Langer (2021) stores the coefficients in the connections between two wide layers. Encoded retrieval stores a whole batch of coefficients in a single number and uses a subnetwork to decode them. It is often formulated as a point-fitting problem: given pairwise distinct inputs t1,…,tJ and values y1,…,yJ, the problem is to construct a network satisfying
ϕ(tj)=yj,j=1,…,J.
For local Taylor approximation, tj encodes the jth grid point xj, and yj=∂αf(xj)/α!. Encoded point fitting stores a digit string in the network weights and uses a subnetwork to decode it. The bit-extraction device for the latter goes back to Bartlett et al. (1998). It stores binary digits b1,b2,…∈{0,1} in the number θ=∑k≥1bk2−k∈[0,1]. The leading digit and the remainder are
b1=1{θ≥1/2},2θ−b1=k≥1∑bk+12−k,
so iterating the map θ↦(b1,2θ−b1) reads the digits one by one.
ReLU networks are continuous, so they can only approximate the jump of b1 at 1/2 by a ramp. If m digits are stored, the inputs fill the grid 2−mZ, and the two neighboring inputs
(a) binary, m = 4
(b) ternary, digits {0,1}, m = 4
Figure 3: Extracting the leading digit b1 and the remainder from a stored string of length m=4; dots mark the admissible inputs. (a) In binary, b1 must jump between neighboring inputs separated by 2−m. (b) In ternary with digits {0,1}, the gap (1/6,1/3) allows slope 6 for every m.
1/2−2−m and 1/2 have different leading digits; see Fig. 3(a). A ramp that is exact on this grid therefore needs slope at least 2m. With m≍LlogN stored digits, the weights grow exponentially in L, as in the binary decoder of Shen et al. (2022). Ou et al. (2024) store the same digits in base 3, as θ=∑k≥1bk3−k. The digit 2 is never used, so the inputs with b1=0 lie in [0,1/6] and those with b1=1 in [1/3,1/2]. The gap between them does not depend on m, and the ramp b1=σ(6θ−1)−σ(6θ−2) has slope 6; see Fig. 3(b). A single hidden layer can even read n≍logN digits at once: the inputs then fall into 2n clusters separated by gaps of order 3−n, and slopes of order 3n suffice.
The next proposition extends this mechanism to base ζ≥3 with reduced alphabet {0,…,ζ−2}. This lets us store the bounded integers of Section 4.4 directly, one digit per value. Its proof is given in Section B.2.
Proposition 4.2 (Digit extraction). Let ζ,n∈N+ with ζ≥3. There is
ϕ∈F1,n+1(2ζn,1,2ζn+2)
such that, for all b1,b2,…∈{0,…,ζ−2},
ϕ(k=1∑∞bkζ−k)=(b1,…,bn,k=1∑∞bn+kζ−k).
Choosing n≍logζN, we can use O(L) hidden layers of width O(N) to read LlogN base- ζ digits. At this size, Proposition 4.1 can encode one real-valued number for each of N2L coefficient blocks, so a network of width O(N) and depth O(L) can store and retrieve N2L2logN digits. This matches the number KD≍N2L2logN of coefficients, provided each coefficient costs only a bounded number of digits. A coefficient stored on its own to accuracy K−s costs order logK≍log(NL) digits, however. Treating the coefficients as unrelated as in Lu et al. (2021) and Nagler and Langer (2026) therefore leads to logarithmic overhead.
4.4 Higher-Order Point Fitting
This subsection contains the main new ingredient. Smoothness allows us to compress the sequence of coefficient values so that each value can be stored with a bounded number of digits. It then remains to efficiently decode the stored digits and reassemble the original values. We explain the mechanism for a one-dimensional sequence, starting from the first-order construction of Shen et al. (2022), and treat multivariate arrays in Section 4.5.
Let x1,…,xJ be consecutive grid points separated by K−1 and set yi=f(xi). A point-fitting network is queried at the normalized indices i/J and should satisfy
ϕ(i/J)≈yi,i=1,…,J.
For the zero-order Taylor coefficient, the required accuracy is K−s.
First-order fitting. For Hölder functions of order at most one, Shen et al. (2022) combine bit extraction with a transparent predict-and-correct construction. Suppose the ordered targets satisfy ∣yi−yi−1∣≤λ. To approximate yi, we instead fit the quantized and scaled sequence ai=∣yi/λ∣ exactly, noting that ∣λak−yk∣<λ. We can write
ak=a1+i=2∑kdi,withdi=ai−ai−1∈{−1,0,1}.
The values a1 and d2,…,dJ can be digit-encoded into N2L real values stored in the network weights with Proposition 4.1, and the extraction network from Proposition 4.2 can decode each into LlogN of the original values. The final output λak approximates yk to accuracy λ.
Higher-order differences. This first-order construction is insufficient when s>1. The values must be fitted to accuracy K−s, but consecutive values only satisfy ∣yi−yi−1∣≲K−1. The key observation is that higher-order smoothness of f makes the sequence even more compressible. Set h=⌈s⌉ and define Δ0yi=yi and
For intuition, consider s=2 and write δ=K−1. A first-difference bound ∣Δyi∣≲δ alone still permits ∣Δ2yi∣≍δ. Samples of a twice-smooth function instead satisfy ∣Δ2yi∣≲δ2, as illustrated in Fig. 4. The discrete Taylor–Newton identity (Agarwal, 2000, Theorem 1.8.5)
expresses the sequence through a fixed number of initial differences of orders below h and its hth differences. Further, Hölder smoothness and the grid spacing imply
∣Δryi∣≲K−min{r,s},0≤r≤h.
In particular, ∣Δhyi∣≲K−s reaches the required accuracy. As in the first-order case, we set λ≍K−s and fit the quantized sequence ai=∣yi/λ∣. Its hth differences di=Δhai
(a) only small first differences:
∣Δyi∣≤δ,∣Δ2yi∣≈3δ/2
(b) small second differences:
∣Δyi∣≤δ,∣Δ2yi∣≤δ2
Figure 4: Two sequences satisfying the same first-difference bound ∣Δyi∣≤δ. In (a), oscillations at the finest admissible scale leave second differences of order δ. In (b), discrete smoothness reduces the second differences to order δ2.
are integers with ∣di∣≤2h+2=:H, so di+H∈{0,…,2H}. Proposition 4.2 with base ζ=2H+2 decodes one di per digit and the Taylor–Newton identity (4.2) recovers ak from the initial differences Δra1, r<h, and from d1,…,dk−h. Then λak approximates yk to the required accuracy λ≍K−s.
The following result shows that a network of width N and depth L can achieve this error at J≲N2L2logN samples.
Proposition 4.3 (Smooth point fitting). Let λ∈(0,1) and h,N,L,q∈N+, set H=2h+2 and ζ=2H+2, and suppose that q≤⌊logζN⌋ and N≥ζ. Suppose further that J≤3N2L2q and that y1,…,yJ∈R satisfy
Then there is ϕ∈F1,1(N,L,N), with constants depending only on h, such that
1≤i≤Jmax∣ϕ(i/J)−yi∣≤λ.
For h=1, this recovers the first-order mechanism underlying the constructions of Shen et al. (2022) and Ou et al. (2024). The extension to h>1 is the main new ingredient of our proof: it uses the available higher-order smoothness to reach the finer accuracy required for lower-order Taylor coefficients. Point fitting with arbitrary labels relates directly to the networks' memorization capability (Park et al., 2021; Vardi et al., 2022). Networks of width N and depth L can memorize J≲N2L2 labels yi at separated locations xi, as long as both separation distance and label resolution are polynomial in N,L. Constructions attaining this order are given by Nagler and Langer (2026) and Yang and Yang (2026). Proposition 4.3 fits J≍N2L2logN values instead: the smoothness of the labels gains exactly the factor logN needed for Theorem 3.1.
Evaluating the Taylor identity. The main obstacle in the proof of Proposition 4.3 is to evaluate the discrete Taylor identity by a network with sufficiently bounded parameters. The sequence yi is split into N2L blocks, each encoded into the network weights using Proposition 4.1. Over a block of length Lq, the binomial coefficients in the Taylor–Newton identity reach order (Lq)h−1, so evaluating the identity in one step would require weights of the same magnitude.
We instead cut each block into L segments of q positions, with ζq≤N, and evaluate the identity recursively, one segment at a time. Segment t covers the positions tq+1,…,tq+q of a block. Its state
u(t)=(Δ0atq+1,…,Δh−1atq+1)
contains the differences of the quantized sequence at the segment's first position. Applying the Taylor–Newton identity to the shifted sequence (atq+j)j≥1 expresses the values in the segment through this state u(t) and the digits dtq+1,…,dtq+q:
Starting from the state u(0) stored for the block, the network processes one segment per step, decodes the q digits of the segment with Proposition 4.2, evaluates both formulas, and passes u(t+1) and the remaining digits on to the next segment. The value ak is read from the segment that contains k.
All binomial coefficients in this recursion are at most of order qh−1≲(logN)h−1, so the network parameters remain bounded by a factor polylogarithmic in N and not depending on L. The full proof is given in Section B.3.
4.5 Smooth Flattening of Coefficient Tables
We now return to the multivariate Taylor approximation. For each multi-index α, the coefficient function ∂αf/α! has smoothness s−∥α∥1. Its values on the grid must be retrieved with the target accuracy εα=K−(s−∥α∥1) determined in Section 4.1. Proposition 4.3 is therefore applied with order hα=⌈s⌉−∥α∥1. If yi=∂αf(xi)/α! are the coefficient values at consecutive grid points xi along a single coordinate direction, then
∣Δryi∣≲K−min{r,s−∥α∥1},0≤r≤hα.
Thus, lower-order Taylor coefficients have more remaining smoothness and admit higher-order difference bounds.
(a) coefficient grid, d=2, K=4
(b) G on [0,2R−1] and the samples yi=G(i/K)
• numbers: index κ(β)=β1+2Kβ2
• yκ(β)=∂αf(β/K) at the grid indices κ(β)=β1+2Kν
Figure 5: Flattening a two-dimensional coefficient grid. Consecutive rows are separated by gaps filled with Hermite bridges that match the first hα−1 derivatives. The resulting sequence preserves the required finite-difference bounds.
When D=1, the ordered coefficient values directly form a sequence of the type covered by Proposition 4.3. When D>1, however, flattening the coefficient grid creates irregularities when switching between rows, destroying the finite-difference bounds. This cannot be fixed by changing the order of the grid traversal. To see this, consider the linear function f(x)=x1, order the grid points arbitrarily, and let yi=f(xi). The values yi, and hence their second differences, lie in K−1Z. Smoothness of order larger than one requires ∣Δ2yi∣=o(K−1), which forces Δ2yi=0. Such a sequence is constant or takes every value at most once, whereas along the grid x1 takes each value KD−1 times. We instead insert gaps into a lexicographically ordered sequence and fill them with Hermite interpolation bridges that match derivatives up to the required order; see Fig. 5. The resulting flattened sequence retains the smoothness needed in Proposition 4.3. For first-order point fitting, Shen et al. (2022, Section 3.3) used a similar layout with linear interpolation. Hermite bridges provide the corresponding higher-order construction.
The following proposition makes this construction precise. Its proof is given in Section B.4.
Proposition 4.4 (Smooth flattening of Taylor arrays). Let K,D∈N+, s>0, and α∈N0D with r=∥α∥1<s. Define h=⌈s⌉−r, M=2KD−K+1. For every f∈H1s([0,1]D), there is a sequence y0,…,yM−1 such that, for every β∈{0,…,K−1}D,
yκ(β)=∂αf(β/K),κ(β)=β1+2Kj=2∑DβjKj−2,(4.3)
and, for ℓ=0,…,h,
0≤i≤M−1−ℓmax∣Δℓyi∣≲K−min{ℓ,s−r}.(4.4)
The implicit constant depends only on s.
Together, smooth flattening and smooth point fitting give a network module that retrieves all Taylor coefficients at their respective target accuracies.
Proposition 4.5 (Simultaneous Taylor-coefficient retrieval). Let s>0, D∈N+, m=⌈s⌉−1, N,K≥2, and L∈N+. Set ζ=2⌈s⌉+3+2 and q=⌊logζN⌋, and suppose that
N≥ζ,M:=2KD−K+1≤3N2L2q.
Then, for every f∈H1s([0,1]D), there is a network
ϕcoef∈FD,(mD+m)(N,L,N)
such that, for all α∈N0D with ∥α∥1≤m and all β∈{0,…,K−1}D,
[ϕcoef(β/K)]α−α!∂αf(β/K)≲K−(s−∥α∥1).(4.5)
The constant implied by ≲ depends only on s, and the constant hidden in F is at most polynomial in D.
The proof, given in Section B.5, applies Proposition 4.3 to the sequences constructed in Proposition 4.4 and then parallelizes over the finitely many multi-indices with ∥α∥1≤m.
4.6 Monomials, Localization, and Smoothing
The remaining modules of Fig. 1 are standard. We review them here for completeness and to track parameter magnitudes.
4.6.1 SQUARES, MULTIPLICATION, AND MONOMIALS
To approximate general monomials, we begin with the square function. The basic mechanism is the sawtooth construction of Telgarsky (2016). Let
τ(x)=2σ(x)−4σ(x−1/2)+2σ(x−1)
and write τj=τ∘⋯∘τ for its j-fold composition. On [0,1], the map τ is the tent map with peak one at 1/2, and τj has 2j linear pieces. Thus, depth creates exponentially many pieces from a fixed elementary module. This fact leads to an efficient approximation of the square function. The function
Sr(x)=x−j=1∑r4−jτj(x),x∈[0,1](4.6)
is exactly the linear interpolant of x2 on the dyadic grid {j2−r:0≤j≤2r}. Equation (4.6) is the square-function construction of Yarotsky (2017), expressed directly in terms of the sawtooth.
To move from the square function to products, the polarization identity
uv=2(2u+v)2−2u2−2v2,
(a) the staircase SK,δ
(b) the trifling region ΩK,δ
Figure 6: Localization for K=4. (a) The staircase SK,δ equals k/K between the strips (gray) and is continuous on them. (b) The strips form ΩK,δ for D=2, and Λ=β/K on the blue part of the cell Qβ.
allows for approximate multiplication using three copies of the square network. Chaining these multiplication modules approximates general monomials. The following proposition makes this formal and is proven in Section B.6. It is almost identical to Lu et al. (2021, Proposition 4.1), but explicitly tracks parameter magnitudes, which we need for sharp entropy bounds.
Proposition 4.6 (Monomial networks). Let D,k∈N+. For every N≥2, L∈N+, and α∈N0D with ∥α∥1≤k, there is
The Taylor network in Fig. 1 requires computing the lower corner β/K of the cell Qβ containing x. This map is piecewise constant, with discontinuities at the cell boundaries. Proposition 4.1 realizes it coordinatewise, but only away from thin strips before the cell boundaries, as the staircase SK,δ in Fig. 6(a). The network in Proposition 4.1 supports K=N2L linear pieces with O(N) width and O(L) depth. For D≥2, this suffices for the grid K≍(N2L2logN)1/D from Section 4.1. For D=1, it does not, but the repetitive staircase pattern can be implemented efficiently using two nested interpolants. The next result follows the construction of Shen et al. (2022, Proposition 3.1), with explicit tracking of parameter magnitudes (see Section A).
Proposition 4.7 (Localization). Fix r∈N+. Let N≥2, L∈N+, and K=K1K2 with K1,K2∈{1,…,N2L}. If K−r≤δ≤1/(3K), there is SK,δ∈F1,1(N,L,N) such that
SK,δ(x)=Kk,x∈[Kk,Kk+1−δ1k≤K−2],k=0,…,K−1.
The constants hidden by F depend only on r.
The proof is given in Section B.7. The multivariate localization map is Λ(x)=(SK,δ(x1),…,SK,δ(xD)). The resulting module is exact on most of [0,1]D, but fails on the trifling region
ΩK,δ=j=1⋃D{x∈[0,1]D:xj∈k=1⋃K−1(Kk−δ,Kk)},
shown in gray in Fig. 6(b).
4.6.3 MEDIAN SMOOTHING
The localization map feeds into the monomial network and coefficient fitting modules of the overall construction. The coefficient-retrieval module is highly irregular away from grid corners and can amplify localization errors. For Lp-approximation bounds, this is easily fixed by clipping the output of the final network, and choosing δ small enough that the trifling region has negligible measure. Sup-norm approximation requires an additional smoothing step.
Lu et al. (2021, Lemma 3.4 and Theorem 2.1) and later improvements (Shen et al., 2022; Ou et al., 2024; Nagler and Langer, 2026) all use a median smoothing technique, which replaces the output of a network by the median of several copies. The basic principle is simple: if two of three values are close to a target, then the median is also close to the target. For D > 1, the above-mentioned works apply this idea iteratively, smoothing one coordinate at a time. This multiplies the width by the exponential factor 3D. Although this factor does not affect the asymptotic rate for fixed D, it makes the construction costly in high dimensions. This can be circumvented by taking the median over O(D) sub-networks. Siegel (2023) constructs the networks over grids with different prime bases and Hong and Kratsios (2024) use grids shifted along the diagonal. We instead evaluate a single network at points shifted along the diagonal.
Proposition 4.8 (Median smoothing). Let ε>0, K∈N+, and δ∈(0,1/(2D+1)K)]. Assume f∈C([0,1]D) and suppose there is a network ϕ∈FD,1(N,L,B), with N≥2D+2 and B≥D+1, satisfying
x∈[0,1]D\ΩK,δsup∣ϕ(x)−f(x)∣≤ε.
Then there is
ϕ∈FD,1((2D+1)N,L+2⌈log2(2D+1)⌉+8,B)
such that
x∈[0,1]Dsup∣ϕ(x)−f(x)∣≤ε+ωf(Dδ).
(a) the points zs
(b) the values ϕ(zs)
Figure 7: Median smoothing for D=2; filled markers belong to points outside ΩK,δ. (a) The ticks mark the coordinates of the five diagonal points, and each strip contains at most one of them. (b) The three filled values lie within ε+ωf(2δ) of f(x), and so does the median ϕ(x) of all five values.
The idea is illustrated in Fig. 7. We take the median of ϕ at 2D+1 points shifted along the diagonal,
zi=clip[0,1]D(x+iδ1D),i=−D,…,D,(4.7)
where 1D=(1,…,1)⊤∈RD. In each coordinate, the unclipped values xj+iδ are δ apart and span 2Dδ≤1/K−δ, while the strips are open intervals of length δ that are 1/K−δ apart, so at most one of the values lies in a strip. As a consequence, at most D of the 2D+1 points lie in ΩK,δ, and the median lies between two clean values. These are within ε of f at points at distance at most Dδ from x, so the median is within ε+ωf(Dδ) of f(x).
The median of 2D+1 numbers can be computed exactly by ReLU networks. Sorting networks compute the median by sorting all entries, with width O(D) and depth O(log2D) (Batcher, 1968), as used by Siegel (2023). Hong and Kratsios (2024) find it through D sequential correction steps. If an approximation suffices, Dutta et al. (2026) show that constant depth and linear width are enough. Our construction is more direct. For y∈R2D+1 with entries y(1)≥⋯≥y(2D+1) in decreasing order, the median y(D+1) is the difference of the sums of the D+1 and the D largest entries, and either sum can be computed without sorting:
Indeed, for every t∈R and every set T of k indices, kt+∑jσ(yj−t)≥∑j∈Tyj, with equality if T indexes the k largest entries and t=y(k). The terms σ(yj−yi) form one hidden layer, and a max network computes the minimum. The full proof is given in Section B.8.
4.7 Completing the Proof
We can now outline how these propositions yield Theorem 3.1. With ζ as in Proposition 4.5, choose
q=⌊logζN⌋,K≍(N2L2q)1/D.
The grid then contains KD≍N2L2logN cells, which is precisely the number of coefficient vectors accommodated by Proposition 4.5. Combining its output with the monomial networks of Proposition 4.6, the error away from cell boundaries is bounded by
where the fixed constant c=c(s,D) is chosen sufficiently large.
The localization network of Proposition 4.7 returns the grid point β/K but makes errors near cell boundaries. Median smoothing (Proposition 4.8) removes these exceptional strips and yields a uniform error bound on the whole cube. The resulting network belongs to FD,1(N,L,N) and satisfies the required bound
∥f−ϕ∥∞≲K−s≲(N2L2logN)−s/D.
Finally, we use magnitude-to-width transfer FD,1(N,L,N)⊆FD,1(N,L,1) to bound the parameters by 1 while preserving the width and depth orders (Lemma A.2). This completes the proof of Theorem 3.1.
5 Discussion
This article establishes ϵN,L=(N2L2logN)−s/D as the exact approximation rate of bounded-weight ReLU networks for Hölder balls H1s([0,1]D), for every s>0 and D∈N+. The explicit construction allows for flexible allocation of capacity between the width and depth of the network. The key is that Taylor coefficients of smooth functions provide additional compressibility due to bounds on higher-order differences. This allows them to be stored at O(1) cost per coefficient and decoded efficiently using a recursive application of the discrete Taylor–Newton formula. As a consequence, empirical risk minimizers over suitably sized network classes attain the minimax rate n−2s/(2s+D) for nonparametric regression under the square loss without redundant polylogarithmic factors.
This work completes a long line of research seeking the optimal approximation rates of ReLU networks for Hölder functions. Several interesting questions remain open, however. First, the lower bound in Theorem 3.2 concerns networks whose parameters grow at most polynomially in the width. The upper bound on the VC dimension of ReLU networks with potentially unbounded weights (Bartlett et al., 2019) combined with a bump function argument (Shen et al., 2022; Siegel, 2023) gives
This matches ϵN,L whenever N is bounded or L≤poly(N). In this regime, the rate of Theorem 3.1 is optimal even among networks with arbitrary parameters, and Theorem 3.1 attains it with bounded parameters. Whether large parameters can improve the rate when logL≫logN≫1 remains open. This is exactly the regime where the best-known upper and lower bounds on the VC dimension of ReLU networks diverge (Bartlett et al., 2019). The lower bound is of order N2L2logN, and tightening the upper bound to match it would show that ϵN,L is optimal also for unbounded weights.
Second, we have considered Hölder-smooth targets without further structure. To explain the success of deep learning in practice, it is important to understand how additional structure in the target function can be exploited. Schmidt-Hieber (2020), Kohler and Langer (2021), and Danhofer et al. (2025) argue that networks are particularly well-suited for compositional functions, which can be expressed as a composition of low-dimensional functions. Composing one network from Theorem 3.1 for each low-dimensional component and controlling the accumulated error with the error propagation principle (Nagler and Langer, 2026, Lemma 4.3) should remove the redundant logarithmic factors in this setting as well. Another route is to consider functions defined on low-dimensional sets, such as manifolds, where optimal approximation rates depend on the intrinsic rather than the ambient dimension. Nagler and Langer (2026) show that logarithmic factors are unavoidable for approximation uniformly over all sets of Minkowski dimension d<D, but it remains an open question for which classes of low-dimensional sets the higher-order point-fitting construction can be adapted.
More broadly, our construction shows that structure in the target function can pay off multiple times in approximation efficiency. Smoothness helps both to reduce the Taylor remainder and to compress the local Taylor coefficients. The underlying principle, that the information stored in a network inherits the regularity of the target and can be compressed accordingly, may prove useful beyond the setting considered here.
AI Use Statement
The main results and proof strategies were developed, essentially in the form presented here, in summer 2025 using pen, paper, and occasional discussions with the ChatGPT web interface. The final write-up started around May 2026 and was assisted by various models through Codex and Claude Code. In particular, these models were used for checking, simplifying, and restructuring the initial proofs and auxiliary results, generating expository figures, and polishing the text. The author takes full responsibility for the final content of the paper.
Acknowledgments
The author thanks Sophie Langer for helpful comments and edits on an earlier version of this manuscript.
Appendix A. Network Calculus
This appendix collects elementary network constructions used throughout the proofs. Many of them are well-established, but we include them for completeness. The first lemma allows us to combine networks.
Lemma A.1 (Network calculus). Let B1,B2≥1, B=max{B1,B2}, and
for l=1,…,L and l=0,…,L, respectively, computes (ϕ1(P1x),ϕ2(P2x)). Its hidden layers have width at most N1+N2. All parameters are bounded by B.
(ii) Write ϕ1=A1∘h1, where h1 consists of the hidden layers of ϕ1 and A1(z)=Wz+v is its output layer. Write ϕ2=g2∘A2, where A2(x)=Vx+b0 is its first affine map and g2 is the rest. Without loss of generality, we take g2=id if L2=0. Composing A2∘A1 directly would produce the weight matrix VW, which amplifies parameter magnitudes. Instead, the identity u=σ(u)−σ(−u) gives
A2(A1z)=(V,−V)(σ(Wz+v)σ(−Wz−v))+b0.
Hence ϕ2∘ϕ1 is the network h1, followed by one hidden layer of width 2d1′ with weights ±W and biases ±v, followed by g2 with first weight matrix (V,−V). All its parameters are bounded by B.
(iii) We apply (ii) k times with ϕ2 the identity map, a network of depth 0 with parameter bound 1.
(iv) We apply (ii) to the network (ϕ1,ϕ2) from (i) and the affine map (y1,y2)↦a1y1+a2y2+c.
For a fixed finite collection of networks in F(N,L,B), fixed dimensions, and fixed coefficients, Lemma A.1 therefore shows that parallelization, composition, padding, and affine combination remain in F(N,L,B). The hidden constants may depend on the number of networks, the dimensions, and the coefficients, but not on N,L,B. These constants are at most linear in the number of networks and in the dimensions.
Lemma A.2 (Magnitude-to-width transfer). Let d,d′,W∈N+, L∈N, and 0<B′≤B. Then
Proof. Write f=AL∘σ∘AL−1∘⋯∘σ∘A0 with affine maps Ai(z)=Wiz+vi, and set r=B/B′≥1. Let f be the network with the same architecture, but using affine maps
Ai(z)=r−1Wiz+r−(i+1)vi,i=0,…,L,
whose parameters are bounded by B′. Denote the hidden-layer outputs of f and f by ui and ui, with u0=u0=x. By homogeneity of σ, ui=riui for i=0,…,L, so f=rL+1f.
It remains to multiply the output of f by rL+1 with parameters bounded by B′. Consider first d′=1, and let m=⌈r/B′⌉, c=B′(r/(mB′))L+1, and 1m=(1,…,1)⊤∈Rm. We replace the output layer of f by L+1 hidden layers of width 2m and a new output layer g, defined by
The first new hidden layer copies AL with either sign, and the remaining weights are 0, B′, or ±c. Since mB′≥r, we have c≤B′, so all parameters are bounded by B′. With t=f(x), induction on k gives
zk=(σ((mB′)k−1t)1mσ(−(mB′)k−1t)1m),k=1,…,L+1,
because 1m⊤1m=m and σ is positively homogeneous. Since σ(a)−σ(−a)=a, this gives
g=cm(mB′)Lt=rL+1t=f(x).
The resulting network has depth 2L+1 and width max{W,2m}. For d′>1, we apply the amplification layers to all output coordinates in parallel, which gives width max{W,2d′m}.
Ou et al. (2024, Proposition H.4) give a magnitude-to-depth version for scalar input and output: the width stays fixed, and the number of additional layers grows with logB/logW. Lemma A.2 instead transfers the magnitude to the width, which is more convenient for our purposes.
Lemma A.3 (ReLU realization of CPwL functions). Let 0<t1<⋯<tM<1, let d′∈N+, and let h:[0,1]→Rd′ be continuous and affine on the intervals determined by these knots. If ∥h(0)∥∞≤A and every slope of every coordinate of h has magnitude at most A, for some A≥1, then there is
ϕ∈F1,d′(M+1,1,2A)
such that ϕ=h on [0,1].
Proof. Write aj∈Rd′ for the slope of h on the interval immediately to the right of tj, with t0=0 and a0 the initial slope. Then
This is a one-hidden-layer ReLU network of width M+1. Its input weights equal one, its biases belong to [−1,0], and its output weights have magnitude at most 2A.
Lemma A.4 (Maximum and maximum norm networks). For every d∈N+, there are networks
ϕmax,ϕ∞∈Fd,1(2d,2⌈log2d⌉+2,1),
such that, for every x∈Rd,
ϕmax(x)=1≤j≤dmaxxj,ϕ∞(x)=∥x∥∞.
Proof. The identities
max{x,y}=σ(x−y)+σ(y)−σ(−y),∣x∣=σ(x)+σ(−x)
are realized by one-hidden-layer networks of widths three and two, respectively. Applying the identity for max{x,y} over a binary tree of depth ⌈log2d⌉ gives ϕmax. Between successive levels, we insert the one-hidden-layer identity network z=σ(z)−σ(−z). The tree has width at most 2d and uses at most two hidden layers per level. Prepending the coordinate-wise absolute-value layer gives ϕ∞.
The maximum network also lets us compute the median of an odd number of inputs without sorting them.
Lemma A.5 (Median network). For every m∈N+, there is a network
ϕmed∈F2m+1,1((2m+1)(2m+2),2⌈log2(2m+1)⌉+5,m+1)
such that ϕmed(y) is the median of y1,…,y2m+1 for every y∈R2m+1.
Proof. Let y(1)≥⋯≥y(2m+1) be the entries of y in decreasing order. The median y(m+1) is the difference of the sums of the m+1 and the m largest entries. For k=1,…,2m+1, these sums satisfy, by (4.8) with m in place of D,
where ϕmax∈F2m+1,1(2(2m+1),2⌈log2(2m+1)⌉+2,1) is the network from Lemma A.4.
We build ϕmed from two parts and connect them and the output by identity layers u↦(σ(u),σ(−u)) as in Lemma A.1. First, one hidden layer with the units σ(yj−yi), i=j, and σ(±yi) computes c(m) and c(m+1) through
ci(k)=k(σ(yi)−σ(−yi))+j=i∑σ(yj−yi).
It has width (2m+1)(2m+2) and parameters bounded by m+1. Second, two parallel copies of ϕmax evaluate the two minima, and the output weights (1,−1) form their difference.
The two parts have depths 1 and 2⌈log2(2m+1)⌉+2, and two identity layers connect them and the output. Since m≥1, the identity layers and the copies of ϕmax have width at most 4(2m+1)≤(2m+1)(2m+2), and all parameters are bounded by m+1. This gives the stated class.
Lemma A.6 (Scalar amplification). Let N≥2 and A≥1. The map x↦Ax can be realized exactly by a ReLU network ϕamp∈F1,1(2,2+⌈logNA⌉,N).
Proof. Write A=a1⋯at with t=⌈logNA⌉ and a1,…,at∈[1,N]. At every layer carry the positive and negative parts of the current value. Multiplying both parts by aj and subtracting them in the final affine layer realizes Ax.
Lemma A.7 (Clipping network). Let c≤d. The map clip [c,d] can be realized exactly by a ReLU network ϕclip∈F1,1(2,1,max{1,∣c∣,∣d∣}).
Proof. Use the identity clip[c,d](t)=c+σ(t−c)−σ(t−d).
Lemma A.8 (Discrete selection networks).
(i) There is ϕ∈F2,1(2,3,1) such that
ϕ(i,j)=1i=j,i,j∈Z.
(ii) For C∈[1,∞), there is ϕ∈F2,1(4,2,C) such that
ϕ(y,δ)=δy,y∈[−C,C],δ∈{0,1},
and ϕ(y,0)=0 for every y∈R.
(iii) Let n,m∈N+, C∈[1,∞), W∈Rn×m be fixed, and set w∗=maxi,j∣wi,j∣. There is
ϕ∈Fm+1,1(4max{n,m},3,max{n,mCw∗})
such that
ϕ(i,x)=ei⊤Wx=j=1∑mwi,jxj,i=1,…,n,
for every x∈Rm with ∣xj∣≤C whenever wi,j=0.
Proof. For part (i), use
ϕ(i,j)=σ(1−σ(i−j)−σ(j−i))=σ(1−∣i−j∣).
For part (ii), use
ϕ(y,δ)=σ(y)−σ(y−Cδ)−σ(−y)+σ(−y−Cδ).
For δ=0, the four terms cancel for every y∈R.
For part (iii), set C′=max{1,mCw∗}, so that ∣(Wx)i∣≤C′ for all x as in the statement. Denote the networks from parts (i) and (ii) by ϕ1 and ϕgate, respectively. Then
The first hidden layer computes σ(±(i−j)) for j=1,…,n and σ(±xk) for k=1,…,m. The second computes ϕ1(i,j) and passes σ(±xk) on. The third computes the four units of ϕgate((Wx)j,ϕ1(i,j)) for every j, using (Wx)j=∑kwj,k(σ(xk)−σ(−xk)), and an output layer sums the results. The widths are at most 2n+2m, n+2m, and 4n, and the parameters are bounded by max{n,C′,w∗}≤max{n,mCw∗}.
Appendix B. Proofs of the Propositions in Section 4
We prove the propositions of Section 4 in the order in which they appear.
B.1 Proof of Proposition 4.1
The proof follows the outline in Section 4.2 and uses its slope-jump notation [f′]t. The following lemma states the two-layer construction with explicit parameter bounds.
Lemma B.1 (Two-layer interpolation). Let N≥2 and Y>0. Suppose 0≤x1<⋯<xN2≤1 and y1,…,yN2∈[−Y,Y], and let δ=min1≤i<N2(xi+1−xi). Then the CPwL interpolant f through (xi,yi), with constant extension outside [x1,xN2], satisfies
f∈F1,1(3N,2,max{1,16NYδ−2}).
Proof. We group the knots into N groups of size N. Write
We call xi,1, xi,N, and xi,N+1 boundary knots and the remaining xi,j interior knots. The set B⊂[0,1] of boundary knots has at most 3N elements, all separated by at least δ/2. We split the slope jumps of f by sign as ai,j=[f′]xi,j=ai,j+−ai,j−, where ai,j+=max{ai,j,0} and ai,j−=max{−ai,j,0}.
For j=2,…,N−1, let gj+ be the CPwL function with knots in B that satisfies
and is constant outside [x1,xN2]. Define gj− in the same way with ai,j− in place of ai,j+. On [xi,1,xi,N+1], gj+ either vanishes or changes sign only at xi,j, from negative to positive with slope ai,j+. On [xi,N+1,xi+1,1] and to the left of x1, it is nonpositive; see Fig. 2(a). The ReLU therefore creates the slope jumps
and all other knots of σ(gj+) and σ(gj−) lie in B. The residual h in
f(x)=h(x)+j=2∑N−1(σ(gj+(x))−σ(gj−(x)))(B.1)
therefore has slope jump ai,j−ai,j++ai,j−=0 at every interior knot, so its active knots also lie in B. We conclude that each function φ∈{h,gj+,gj−} is constant outside [x1,xN2] and has knots only in B, so it has representation
φ(x)=φ(x1)+z∈B∑[φ′]zσ(x−z).
With h=σ(h)−σ(−h), the identity (B.1) is therefore a network with two hidden layers. Its first hidden layer computes the hinges σ(x−z), z∈B, with weights one and biases in [−1,0]. Its second hidden layer computes σ(h), σ(−h), and σ(gj+) and σ(gj−), with the slope jumps [φ′]z as weights and the values φ(x1) as biases. Its output weights are ±1. We have h(x1)=y1 and
where we used ∣f′∣≤2Y/δ, that the knots in B are at least δ/2 apart, and that at most N−2 of the functions σ(gj+) and σ(gj−) are nonzero at any point. Since ∣[φ′]z∣≤2sup∣φ′∣, all parameters are bounded by max{1,16NYδ−2}.
Proof of Proposition 4.1. We precompose the network with x↦x/max{1,xM}. This map is absorbed into the first affine map, does not increase the parameter bound, and allows us to assume xM≤1 and a separation of at least (NL)−2p.
A block of N2 knots covers N2−1 knot intervals, and M−1≤2(N2−1)L. We can therefore choose knots x1=t0<t1<⋯<tK=xM with K≤2L such that each interval [tℓ−1,tℓ] contains at most N2 knots. Define the increments
fℓ(x)=f(clip[tℓ−1,tℓ](x))−f(tℓ−1),ℓ=1,…,K.
The function fℓ is the interpolant through the points (xi,yi−f(tℓ−1)) with xi∈[tℓ−1,tℓ], extended constantly outside [tℓ−1,tℓ]. These increments telescope:
f(x)=y1+ℓ=1∑Kfℓ(x).(B.2)
Padding a shorter block to N2 knots by equally subdividing one knot interval leaves fℓ unchanged and the separation at least δ=(NL)−2p−2. Set A=32(NL)5p+5. The values of fℓ/A are bounded by Y=2(NL)p/A, and 16NYδ−2=32N(NL)5p+4/A≤1. Hence Lemma B.1 gives
fℓ/A∈F1,1(3N,2,1),ℓ=1,…,K.
Since all knots are nonnegative, fℓ(x)=fℓ(σ(x)). By (B.2), the running sums
s0=Ay1,sℓ(x)=sℓ−1(x)+Afℓ(σ(x)),ℓ=1,…,K,
satisfy sK=f/A. We stack the block networks sequentially. Each hidden layer carries σ(x) with one unit and sℓ−1 through σ(sℓ−1) and σ(−sℓ−1). This gives
f/A∈F1,1(4N,2K,1).
By Lemma A.6, multiplying by A after one identity layer adds at most 3+⌈logNA⌉ layers with parameters bounded by N. The total depth satisfies
2K+3+⌈logNA⌉≤4L+9+(5p+5)L≤(⌈5p⌉+18)L,
where we used K≤2L, logN32≤5, and 1+logNL≤L. Padding by identity layers gives the stated class.
B.2 Proof of Proposition 4.2
For b∈{0,…,ζ−2}n, write tb=∑k=1nbkζ−k. Every input θ=∑k≥1bkζ−k with leading digits (b1,…,bn)=b satisfies
k≥1∑bn+kζ−k=ζn(θ−tb).
The network must therefore output b and the affine function ζn(θ−tb). We use linear interpolation to extract the leading digits.
Figure 8: The function h in the proof of Proposition 4.2 for ζ=3 and n=2. Admissible inputs θ lie in the four intervals Ib (shaded). On each interval, the first two coordinates of h are constant and the remainder coordinate is affine. Across the gaps, all coordinates are affine.
Since bn+1≤ζ−2 and all digits are below ζ−1, it holds
k>n∑bkζ−k≤(ζ−2)ζ−n−1+(ζ−1)k>n+1∑ζ−k=ζ−n−ζ−n−1,
so every input with leading digits b lies in the interval
Ib=[tb,tb+ζ−n−ζ−n−1].
Let b=(ζ−2,…,ζ−2) and k be the largest index with bk<ζ−2. The word b′ following b in lexicographic order is defined by bℓ′=bℓ for ℓ<k, bk′=bk+1, and bℓ′=0 for ℓ>k. Since
consecutive intervals Ib are separated by gaps of length at least ζ−n−1.
Define the function h:[0,1]→Rn+1 by
h(θ)=(b1,…,bn,ζn(θ−tb)),θ∈Ib,
using coordinatewise affine interpolation on the gaps between intervals, and constant extension after the last interval; see Fig. 8. When crossing a gap, the first n coordinates of h change by at most ζ−2 and the last by at most 1. Since every gap has length at least ζ−n−1, the coordinate-wise slopes of h are bounded as
1≤k≤n+1max∣hk′∣≤(ζ−2)ζn+1≤ζn+2.
Finally, there are (ζ−1)n words b, hence (ζ−1)n intervals Ib, each with two endpoints, where h can change slope. Since moreover h(0)=0, Lemma A.3 with A=ζn+2 gives a network ϕ that equals h on [0,1] and satisfies
ϕ∈F1,n+1(2(ζ−1)n,1,2ζn+2)⊆F1,n+1(2ζn,1,2ζn+2).
B.3 Proof of Proposition 4.3
As outlined in Section 4.4, rounding the sequence yi to λ[yi/λ] makes every scaled highest-order difference
dj=λ−1Δhyj
an integer in [−H,H]. We store the digits dj+H∈{0,…,2H} of a single number in base 2H+2 and read them with Proposition 4.2. The following lemma reconstructs the rounded sequence values by extracting the digits and evaluating the discrete Taylor formula recursively.
Lemma B.2. Let λ∈(0,1) and h,N,L,q∈N+, set H=2h+2 and ζ=2H+2, and suppose that q≤⌊logζN⌋ and N≥ζ. There is a network
ϕdec∈Fh+2,1(N,L,N)
such that the following holds. Let 1≤T≤Lq and let y1,…,yT be integer multiples of λ satisfying the following bounds:
Then there are u0,…,uh−1∈[−H,H] and θ∈[0,1] such that
ϕdec(k,u0,…,uh−1,θ)=yk,k=1,…,T.
The constant hidden in F depends only on h.
Proof. We evaluate the discrete Taylor formula in segments of q positions at a time; see Fig. 9. We first derive the segment recursion, then construct networks for its components, and compose them at the end.
Step 1: Segment recursion
Extend (yj)j≤T to a sequence (yj)j≥1 by requiring Δry1=0 for T≤r<h and Δhyj=0 for j>T−h. This determines yj for j>T recursively from the following values. For r<h and j∈N+, set
ur=Δry1,dj=λ−1Δhyj.
The decoder walks through L segments of q positions each. Segment t holds the positions tq+1,…,tq+q, the differences d(t)=(dtq+1,…,dtq+q), and the state u(t)=(Δrytq+1)r<h, with u(0)=u=(u0,…,uh−1). Applied to the shifted sequence (ytq+j)j, (4.2) gives ytq+i=Y(i,u(t),d(t)) and u(t+1)=U(u(t),d(t)), where
Figure 9: The decoder ϕdec of Lemma B.2. (a) It consists of L copies of one segment network acting on the state (z,k,u,θ), with each segment covering q positions. (b) Inside a segment, ϕstream from Proposition 4.2 decodes the q stored h-th differences d, the networks ϕY and ϕU evaluate the discrete Taylor formulas Y and U, and the indicator 11≤k≤q decides whether the segment writes the requested value yk.
For U, this follows by applying (4.2) with order h−r to the sequence (Δrytq+j)j at j=q+1.
Step 2: Component networks
Four components are needed to implement the segment recursion:
• Digit stream. Define
θt=ℓ=1∑∞(dtq+ℓ+H)ζ−ℓ∈[0,1),t∈N0.
In particular, θ0 stores all differences d1,d2,…. Proposition 4.2, with H subtracted from its first q outputs, gives a network
where ϕgate implements the product aϕY(i,u,d). Since
aq(σ(k−tq))=1t=⌊(k−1)/q⌋,t=0,…,L−1,
exactly one segment contributes to the first coordinate. Since ϕU is exact, u equals u(t) in every segment. In the segment containing k, let i=k−tq. Then Y(i,u(t),d(t)) only uses ur=Δrytq+1 with r<i and dj with tq+j≤k−h. These are differences of y at positions at most k≤T, so they lie in [−H,H]. Hence ϕY is exact there, and the contribution is yk. In the other segments, u may leave [−H,H]h, but there a=0 and ϕgate(y,0)=0 for every y, so they do not contribute. All components have width and weights of order at most N by Step 2, so Lemma A.1 yields ϕseg∈Fh+3,h+3(N,1,N).
We define the final network ϕdec as the L-fold composition of ϕseg. Set θ=θ0. By Steps 1 and 3,
ϕdec(k,u0,…,uh−1,θ)=[ϕseg∘L(0,k,u,θ)]1=yk.
This gives ϕdec∈Fh+2,1(N,L,N).
From here, we prove Proposition 4.3 in two steps. We first split the sequence into blocks of length at most Lq and construct networks recovering the block index and the position within the block from the input i/J. We then fit the values of all blocks with a single decoder whose parameters are interpolated across blocks. Figure 10 shows the layout of the network.
Step 1: Block decomposition
Define
M=⌈J/(Lq)⌉≤3N2L,Tm=min{Lq,J−(m−1)Lq},m=1,…,M.
(a) block index ϕblock and position ϕpos within the block ( J=12, Lq=4, M=3)
Figure 10: The point-fitting network of Proposition 4.3. (a) The indices i=1,…,J are grouped into M blocks of length Lq; the staircase ϕblock returns the block index and the sawtooth ϕpos the position within the block. (b) The block parameters um,0,…,um,h−1,θm are retrieved from the block index and, together with k, fed into the decoder ϕdec of Lemma B.2.
Every i=1,…,J can be written uniquely as
i=(m−1)Lq+k,m=1,…,M,k=1,…,Tm,
and we write ym,k=y(m−1)Lq+k. Every block is a consecutive segment of (yi), so the assumed difference bounds hold within each block.
Let ϕblock be the continuous staircase that is constant with value m between the sample points in the m-th block and affine between mLq/J and (mLq+1)/J. It has at most 2M knots and satisfies
ϕblock(i/J)=⌊Lqi−1⌋+1,i=1,…,J.
The knot separation is at least 1/J and the output is bounded by M. Since M≤3N2L, J≤3N2L2q, and q≤N, these quantities satisfy the polynomial bounds of Proposition 4.1. Applying that proposition with width and depth parameters 2N, 2L allows for the 2M knots and gives ϕblock∈F1,1(N,L,N). Moreover,
logNJ+logN(Lq)≲L,
so Lemma A.6 implements the two scalar multiplications in
ϕpos(x)=Jx−(ϕblock(x)−1)Lq.
Then ϕpos∈F1,1(N,L,N), ϕblock(i/J)=m, and ϕpos(i/J)=k when i=(m−1)Lq+k.
Step 2: Fitting the blocks
Round each block separately by ym,k=λ∣ym,k/λ∣, so that ∣ym,k−ym,k∣≤λ. By (4.1), rounding changes an rth difference by at most 2rλ. The assumed difference bounds and λ<1 therefore give
Since Tm≤Lq and 2h+1≤H, Lemma B.2 applies to each block. It gives a common decoder ϕdec and values um,0,…,um,h−1 in [−H,H] and θm in [0,1] such that
For i=(m−1)Lq+k, Step 1 gives ϕblock(i/J)=m and ϕpos(i/J)=k, so (B.3) and the rounding bound yield
1≤i≤Jmax∣ϕ(i/J)−yi∣=mmaxkmaxym,k−ym,k≤λ.
By Lemma A.1, the composition belongs to F1,1(N,L,N), which proves the claim. ■
B.4 Proof of Proposition 4.4
Write d=D, t=s−r, and θ=t−h+1∈(0,1].
Fix a multi-index α and a grid resolution K. The coefficient values ∂αf(β/K) form an array indexed by β∈{0,…,K−1}d. For each fixed tuple (β2,…,βd), collect the K coefficients obtained by varying β1. We call this ordered collection a row. Thus, there are Kd−1 rows, each containing K coefficient values. We label the rows by the base- K index
ν(β)=i=2∑dβiKi−2.
We place the start of row ν at index 2Kν and define the flattened index of β by
κ(β)=β1+2Kν(β).
The spacing between consecutive row starts reserves a block of indices for a smooth transition; see Fig. 5(a).
We first consider d=2 and K≥h+1, which is the situation illustrated in Fig. 5. The cases d=1 and d>2 are discussed at the end. Note that fixing β2=ν and varying β1 produces the row
{∂αf(β1/K,ν/K):β1=0,…,K−1},ν=0,…,K−1.
Let e1=(1,0)⊤∈R2 be the first standard basis vector and define the corresponding row function by
Fν(u)=∂αf(u,ν/K),u∈[0,1].
For ℓ=0,…,h−1, differentiation gives
Fν(ℓ)(u)=∂α+ℓe1f(u,ν/K).
As f∈H1s([0,1]d) and with the identities t=s−r and θ=t−h+1, it follows that ∥Fν(ℓ)∥∞≤1 and
∣Fν(h−1)(u)−Fν(h−1)(v)∣≤∣u−v∣θ,u,v∈[0,1].
For ν=0,…,K−2, let Hν be the polynomial of degree at most 2h−1 satisfying
The Hermite interpolation map on [0,1] is a linear map from the 2h endpoint derivatives to the space of polynomials of degree at most 2h−1. Since this space is finite-dimensional and the endpoint derivatives are bounded by one, max0≤ℓ≤h∥Hν(ℓ)∥∞≲1 uniformly in ν.
Place the row functions on the even unit intervals and the bridges on the intervening odd unit intervals by defining
for u∈[0,1]. The endpoint conditions on Hν make G well defined. In fact,
G∈Ch−1([0,2K−1]),0≤ℓ≤h−1max∥G(ℓ)∥∞≲1.
On every row interval, G(h−1) is θ-Hölder. On every bridge interval, the bound on Hν(h) makes it Lipschitz and hence θ-Hölder. Because h/K<1, two points at distance at most h/K cross at most one boundary between pieces. Inserting that boundary point and using the matching derivatives therefore gives
which proves (4.3). The spacing 2K between consecutive row starts leaves precisely the indices needed to sample the intervening bridge.
To prove (4.4), set δ=1/K. The case ℓ=0 follows from ∥G∥∞≲1. For ℓ=1,…,h−1, iterating the fundamental theorem of calculus gives the integral representation
Δℓyi=∫0δ⋯∫0δG(ℓ)(iδ+t1+⋯+tℓ)dt1⋯dtℓ.
Consequently,
∣Δℓyi∣≤K−ℓ∥G(ℓ)∥∞≲K−ℓ.
Applying the same representation h−1 times and leaving the final difference unexpanded yields
Since t∈(h−1,h], these are precisely the bounds in (4.4).
This proves the claim for d=2 and K≥h+1. For d>2, enumerate the tuples (β2,…,βd) by
ν(β)=i=2∑dβiKi−2,ν(β)∈{0,…,R−1},R=Kd−1.
If β~(ν)=(0,β2(ν),…,βd(ν)) and e1=(1,0,…,0)⊤∈Rd is the first standard basis vector, replace the two-dimensional row functions above by
Fν(u)=∂αf(Kβ~(ν)+ue1),ν=0,…,R−1.
The construction depends only on the number of rows and their uniform smoothness bounds, so the preceding argument applies verbatim with K rows replaced by R rows. Moreover,
M−1=K(2R−1)=2Kd−K,
and κ(β)/K=2ν(β)+β1/K, proving both parts in general dimension. For d=1, there is only one row: setting yi=∂αf(i/K) for i=0,…,K gives the result directly by the same finite-difference estimates, and M=K+1 as required.
It remains to consider K<h+1. In this case, set yκ(β)=∂αf(β/K) and set all remaining entries to zero. Then (4.3) holds and, because ∣yi∣≤1, (4.1) gives ∣Δℓyi∣≤2ℓ. Since K≤h, this implies (4.4) after adjusting the implicit constant, which may depend on s.
B.5 Proof of Proposition 4.5
Fix α∈N0D with ∥α∥1≤m and define
tα=s−∥α∥1,hα=⌈tα⌉=⌈s⌉−∥α∥1.
By Proposition 4.4, the array (∂αf(β/K)/α!)β can be embedded into a sequence y0,…,yM−1 satisfying
imaxΔℓyi≲K−min{ℓ,tα},ℓ=0,…,hα.
After division by a constant depending only on s, the differences below order hα are bounded by one and those of order hα are bounded by K−tα. The encoding base ζα=2hα+3+2 satisfies ζα≤ζ≤N, so q≤⌊logζαN⌋. Applying Proposition 4.3 with
J=M,h=hα,λ=K−tα
and rescaling the output gives a network ϕfit,α∈F1,1(N,L,N) satisfying
ϕfit,α(Mκ(β)+1)−α!∂αf(β/K)≲K−tα.(B.4)
For grid points x=β/K, the normalized flattened index is the affine function
ρK(x)=MKx1+2∑j=2DKjxj+1=Mκ(β)+1.
Its coefficients are bounded by two uniformly in K. Consequently, ϕcoef,α=ϕfit,α∘ρK satisfies ϕcoef,α(β/K)=ϕfit,α((κ(β)+1)/M), and parallelizing over all ∥α∥1≤m gives
ϕcoef=(ϕcoef,α)∥α∥1≤m∈FD,(mD+m)(N,L,N).
The bound (4.5) follows from (B.4).
B.6 Proof of Proposition 4.6
Lemma B.3 (Approximation of x2). For every N≥2 and L∈N+, setting q=⌊log2N⌋, there is ϕsq∈F1,1(2N,2L,4N) satisfying
Proof of Lemma B.3. Recall that the function Sr in (4.6) is a linear interpolant of x2 on 2r+1 equally spaced points in [0,1]. Linear interpolation of a quadratic on intervals of length 2−r gives
0≤Sr(x)−x2≤4−(r+1),x∈[0,1].(B.5)
Let q=⌊log2N⌋. The map x↦(Sq(x),τq(x)) is CPwL on a dyadic grid with 2q≤N pieces. The slopes of Sq have magnitude at most two, and the slopes of τq have magnitude 2q. Lemma A.3 with d′=2 and A=2q therefore realizes this map by a network in F1,2(2q,1,2q+1)⊆F1,2(N,1,2N).
To construct a network of appropriate layout, we group the qL refinements into L blocks. Write
where the second identity uses τm+n=τm∘τn. To realize this starting from (a0,y0)=(x,x) and iterating over ℓ=0,…,L−1, perform the update
aℓ+1=aℓ−4−ℓq{yℓ−Sq(yℓ)},yℓ+1=τq(yℓ).
Since y−Sq(y)=∑i=1q4−iτi(y), (B.6) shows inductively that yℓ=τℓq(x) and aℓ=Sℓq(x). Both variables lie in [0,1]. Each block can thus use one hidden layer for the common hinge basis and one to pass the updated state through ReLU. Carrying aℓ requires one additional unit, so the width is at most 2q+1≤2N; all parameters are bounded by 4N. The L blocks hence realize ϕsq=SqL∈F1,1(2N,2L,4N). Since 2⌊log2N⌋≥log2N for N≥2, (B.5) implies
x∈[0,1]supϕsq(x)−x2≤4−qL≤N−L,(B.7)
completing the proof.
Proof of Proposition 4.6. Let ϕsq be the network from Lemma B.3. For u,v∈[0,1], set
We carry the D input coordinates through identity units while composing the multiplication modules. This gives width at most 6N+D≤(D+6)N. Inserting one identity layer between consecutive modules keeps the parameter bound at 4N, while the depth is at most (r−1)(2L+2)≤4kL, so pr∈FD,1((D+6)N,4kL,4N). Taking ϕmon,α=pr proves the claim for r≥2. For r∈{0,1}, the constant one and a coordinate projection are exact and can be padded to the same class.
B.7 Proof of Proposition 4.7
The construction is a bounded-weight variant of Shen et al. (2022, Proposition 3.1). We first realize staircases on coarser grids directly and then nest two of them.
For a grid size K0≤N2L and δ0∈(0,1/(3K0)], let SK0,δ0 be the continuous function with value k/K0 on intervals [k/K0,(k+1)/K0−δ01k≤K0−2] for k=0,…,K0−1 that is affine between the intervals and constant outside [0,1]. This function has at most 2K0 knots, separated by at least δ0, and takes values in [0,1]. If δ0−1 is bounded by a fixed polynomial in N and L, then Proposition 4.1, applied with parameters 2N,2L, gives
SK0,δ0∈F1,1(N,L,N).(B.9)
Now let K=K1K2. The assumptions on δ give K1δ≤1/(3K2) and δ−1≤Kr≤(N2L)2r, so (B.9) applies to SK1,δ and SK2,K1δ. Define
If K2=1, the second staircase vanishes and SK,δ=SK1,δ. Otherwise, let x∈[k/K,(k+1)/K−δ1k≤K−2] and write k=k1K2+k2 with 0≤k2<K2. Then x lies on the segment of SK1,δ with value k1/K1, and K1(x−k1/K1) lies on the segment of SK2,K1δ with value k2/K2. Hence,
SK,δ(x)=k1/K1+k2/K=k/K.
By Lemma A.6, the affine maps and scalar multiplications in this expression can be implemented with depth O(L), width O(N), and weight bound O(N). Combining these networks with the two staircase networks using Lemma A.1 shows that SK,δ∈F1,1(N,L,N).
B.8 Proof of Proposition 4.8
Let ϕ(x) be the median of ϕ(z−D),…,ϕ(zD), with zi from (4.7). The bound ∣ϕ(x)−f(x)∣≤ε+ωf(Dδ) was shown in Section 4.6.3.
It remains to realize ϕ by a network. We build it from three parts and connect consecutive parts by identity layers. First, on [0,1]D,
zi,j=σ(xj+iδ)−σ(xj+iδ−1),
where the second term is omitted for i≤0. With at most two units for each of the D(2D+1) pairs (i,j), this is a network with one hidden layer of width at most 2D(2D+1) and parameters in [−1,1]. Second, 2D+1 copies of ϕ, applied in parallel to z−D,…,zD, compute y1=ϕ(z−D),…,y2D+1=ϕ(zD). Finally, the network
ϕmed∈F2D+1,1((2D+1)(2D+2),2⌈log2(2D+1)⌉+5,D+1)
from Lemma A.5 with m = D computes their median ϕ(x).
The three parts have depths 1, L, and 2⌈log2(2D+1)⌉+5, and two identity layers connect them. Since N≥2D+2 and B≥D+1, all widths are at most (2D+1)N and all parameters are bounded by B. This gives the stated class.
Appendix C. Proofs of the Main Results
C.1 Proof of Theorem 3.1
Fix f∈H1s([0,1]D) and set ζ=2⌈s⌉+3+2. Define
m=⌈s⌉−1,q=⌊logζN⌋,K=⌊(N2L2q)1/D⌋,M=2KD−K+1.
We may without loss of generality assume that N≥ζ after inflating the width by a constant factor depending only on s. If K<2D+1, then N2L2q<(2D+1)D and logN≤2qlogζ, so the zero network satisfies
∥f−0∥∞≤1≤(2logζ)s/D(2D+1)sϵN,L.
We may therefore also assume K≥2D+1. Then q≥1 and K≥2, so
M≤2N2L2q+1≤3N2L2q.
We now construct the final network in Fig. 1.
Step 1: Parameters and coefficient retrieval
Proposition 4.5 gives
ϕcoef=(ϕcoef,α)∥α∥1≤m∈FD,(mD+m)(N,L,N),
where, with cα,β=∂αf(β/K)/α!,
∣ϕcoef,α(β/K)−cα,β∣≲K−(s−∥α∥1).(C.1)
Since ∣cα,β∣≤1, composing each ϕcoef,α with clip [−1,1] (Lemma A.7) does not increase this error and adds one hidden layer. We may therefore assume ∣ϕcoef,α∣≤1. By Proposition 4.5, the constant in (C.1) depends only on s, and the width of ϕcoef grows by a factor O(Dm).
Step 2: Localization
Let
δ:=K−max{2,⌈s⌉}≤1/(2D+1)K).
We apply Proposition 4.7 with r=max{2,⌈s⌉}, and K1=N2L, K2=Lq if D=1 or with K1=K, K2=1 if D≥2. This gives a network SK,δ∈F1,1(N,L,N) with SK,δ(x)=k/K for x∈[k/K,(k+1)/K−δ1k≤K−2]. Define
Λ(x)=(SK,δ(x1),…,SK,δ(xD)),x∈[0,1]D.
Its D parallel staircases increase the width by the factor D. For x∈/ΩK,δ, let βj(x)=min{⌊Kxj⌋,K−1} and u(x)=x−Λ(x). Then
Λ(x)=Kβ(x),u(x)∈[0,K−1]D.
Step 3: Product and monomial networks
Observe that since q≤N and L≤NL,
Ks≤(N2L2q)s/D≤N5sL/D.
Thus, for ∥α∥1≤m, Proposition 4.6 with degree max{1,m} and depth ⌈5s/D⌉L gives a network ϕmon,α of width (D+6)N satisfying
Since f is min{s,1}-Hölder continuous with constant D, its modulus of continuity satisfies
ωf(Dδ)≤D(Dδ)min{s,1}≤D2K−s.
Applying Proposition 4.8 to (C.3) gives ϕ∈FD,1(N,L,N) such that
∥ϕ−f∥∞≲K−s≤2s(2logζ)s/D(N2L2logN)−s/D.
This increases the width by the factor 2D+1 and adds O(logD) layers. By Lemma A.2 with B′=1, FD,1(N,L,N)⊆FD,1(N,L,1). All other constants depend only on s and polynomially on D by Lemmas A.1 and A.2.
C.2 Proof of Theorem 3.2 and Corollary 3.3
The optimality results rely on the following entropy comparison.
Lemma C.1 (Approximation and entropy). Let H and G be subsets of a metric space with metric d and let ϵ>0. If supf∈Hinfg∈Gd(f,g)≤ϵ, then
N(ϵ,G,d)≥N(3ϵ,H,d).
Proof. Let C be an ϵ-cover of G. Given f∈H, the definition of the infimum provides g∈G with d(f,g)<2ϵ, and C provides g with d(g,g)≤ϵ. The triangle inequality gives d(f,g)<3ϵ, so C is a 3ϵ-cover of H.
The lemma is combined with two established entropy bounds for the Hölder ball and ReLU networks, respectively. First, let ϵ∈(0,1/4) and G be a class that approximates H1s([0,1]D) uniformly to accuracy ϵ. Then Lemma C.1 gives
by the standard entropy estimate for Hölder balls (e.g., Polyanskiy and Wu, 2025, Theorem 27.14). Second, the covering-number bound of Ou and Bölcskei (2026, Theorem 2.1) gives, for all ϵ∈(0,1) and B≥1,
Because clipping is nonexpansive in the uniform norm, any cover of FNn,Ln induces a cover of Gn. The covering-number bound of Ou and Bölcskei (2026, Theorem 2.1) gives
where A is the constant from Theorem 3.1 and depends only on s and D. The second inequality follows from (3.4), which also implies log(1/rn)≲LnlogNn.
Suppose that n is large enough that Crn<1/2. Since the optimization error rn2 in (3.5) is at most C2rn2, Ou and Bölcskei (2026, Theorem 4.1) applied with ∥f0∥∞≤1 and supf∈Gn∥f∥∞≤1 implies
where the constants depend only on s, D, and γ. For the finitely many n with Crn≥1/2, the claim holds trivially because ∥fn−f0∥∞≤2.
References
Ravi P. Agarwal. Difference Equations and Inequalities: Theory, Methods, and Applications. Marcel Dekker, New York, 2nd edition, 2000.
Peter L. Bartlett, Vitaly Maiorov, and Ron Meir. Almost linear VC-dimension bounds for piecewise polynomial networks. Neural Computation, 10(8):2159–2173, 1998. doi:10.1162/089976698300017016.
Peter L. Bartlett, Nick Harvey, Christopher Liaw, and Abbas Mehrabian. Nearly-tight VC-dimension and pseudodimension bounds for piecewise linear neural networks. Journal of Machine Learning Research, 20(63):1–17, 2019.
Kenneth E. Batcher. Sorting networks and their applications. In Proceedings of the April 30–May 2, 1968, Spring Joint Computer Conference, pages 307–314, 1968.
Helmut Bölcskei, Philipp Grohs, Gitta Kutyniok, and Philipp Petersen. Optimal approximation with sparsely connected deep neural networks. SIAM Journal on Mathematics of Data Science, 1(1):8–45, 2019.
George Cybenko. Approximation by superpositions of a sigmoidal function. Mathematics of Control, Signals and Systems, 2(4):303–314, 1989. doi: 10.1007/BF02551274.
Wolfgang Dahmen, Ronald A. DeVore, and Philipp Grohs. CA special issue on neural network approximation. Constructive Approximation, 55:1–2, 2022. doi: 10.1007/s00365-021-09547-0.
David A. Danhofer, Davide D'Ascenzo, Rafael Dubach, and Tomaso A Poggio. Position: A theory of deep learning must include compositional sparsity. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 81199–81210. PMLR, 2025.
Ingrid Daubechies, Ronald DeVore, Simon Foucart, Boris Hanin, and Guergana Petrova. Nonlinear approximation and (deep) ReLU networks. Constructive Approximation, 55(1):127–172, 2022.
Ronald DeVore, Boris Hanin, and Guergana Petrova. Neural network approximation. Acta Numerica, 30:327–444, 2021. doi: 10.1017/S0962492921000052.
Abhigyan Dutta, Itay Safran, and Paul Valiant. The median is easier than it looks: Approximation with a constant-depth, linear-width ReLU network. In Proceedings of Thirty Ninth Conference on Learning Theory, volume 336 of Proceedings of Machine Learning Research, pages 2145–2199, 2026.
Dennis Elbrächter, Dmytro Perekrestenko, Philipp Grohs, and Helmut Bölcskei. Deep neural network approximation theory. IEEE Transactions on Information Theory, 67(5):2581–2623, 2021.
Ruiyang Hong and Anastasis Kratsios. Bridging the gap between approximation and learning via optimal approximation by ReLU MLPs of maximal regularity. arXiv preprint arXiv:2409.12335, 2024.
Kurt Hornik, Maxwell Stinchcombe, and Halbert White. Multilayer feedforward networks are universal approximators. Neural Networks, 2(5):359–366, 1989. doi: 10.1016/0893-6080(89)90020-8.
Michael Kohler and Sophie Langer. On the rate of convergence of fully connected deep neural network regression estimates. The Annals of Statistics, 49(4):2231–2249, 2021.
Baicheng Li, Zuowei Shen, Haizhao Yang, and Shijun Zhang. Optimal tradeoffs between network size and parameter magnitude in neural approximation and minimax regression. arXiv preprint arXiv:2609.25710, 2026.
Jianfeng Lu, Zuowei Shen, Haizhao Yang, and Shijun Zhang. Deep network approximation for smooth functions. SIAM Journal on Mathematical Analysis, 53(5):5465–5506, January 2021.
Thomas Nagler and Sophie Langer. Optimal neural network approximation of smooth compositional functions on sets with low intrinsic dimension. In Proceedings of the 39th Annual Conference on Learning Theory, volume 336 of Proceedings of Machine Learning Research, pages 5244–5272. PMLR, 2026.
Weigutian Ou and Helmut Bölcskei. Covering numbers for deep ReLU networks with applications to function approximation and nonparametric regression. Foundations of Computational Mathematics, 2026. doi: 10.1007/s10208-026-09762-w.
Weigutian Ou, Philipp Schenkel, and Helmut Bölcskei. Three quantization regimes for ReLU networks. arXiv preprint arXiv:2405.01952, 2024.
Sejun Park, Jaeho Lee, Chulhee Yun, and Jinwoo Shin. Provable memorization via deep neural networks using sub-linear parameters. In Proceedings of Thirty Fourth Conference on Learning Theory, volume 134 of Proceedings of Machine Learning Research, pages 3627–3661. PMLR, 2021.
Yury Polyanskiy and Yihong Wu. Information Theory: From Coding to Learning. Cambridge University Press, 2025. doi: 10.1017/9781108966351.
Johannes Schmidt-Hieber. Nonparametric regression using deep neural networks with ReLU activation function. The Annals of Statistics, 48(4):1875–1897, 2020.
Zuowei Shen, Haizhao Yang, and Shijun Zhang. Nonlinear approximation via compositions. Neural Networks, 119:74–84, 2019.
Zuowei Shen, Haizhao Yang, and Shijun Zhang. Optimal approximation rate of ReLU networks in terms of width and depth. Journal de Mathématiques Pures et Appliquées, 157:101–135, 2022.
Jonathan W. Siegel. Optimal approximation rates for deep ReLU neural networks on Sobolev and Besov spaces. Journal of Machine Learning Research, 24(357):1–52, 2023.
Charles J. Stone. Optimal global rates of convergence for nonparametric regression. The Annals of Statistics, 10(4):1040–1053, 1982.
Matus Telgarsky. Benefits of depth in neural networks. In Proceedings of the 29th Annual Conference on Learning Theory, volume 49 of Proceedings of Machine Learning Research, pages 1517–1539. PMLR, 2016.
Gal Vardi, Gilad Yehudai, and Ohad Shamir. On the optimal memorization power of ReLU neural networks. In International Conference on Learning Representations, 2022.
Xin Yang and Yunfei Yang. Memorization capacity of deep ReLU neural networks characterized by width and depth. arXiv preprint arXiv:2603.09589, 2026.
Yunfei Yang. On the optimal approximation of Sobolev and Besov functions using deep ReLU neural networks. Applied and Computational Harmonic Analysis, 79:101797, 2025.
Dmitry Yarotsky. Error bounds for approximations with deep ReLU networks. Neural Networks, 94:103–114, 2017.
Dmitry Yarotsky. Optimal approximation of continuous functions by very deep ReLU networks. In Proceedings of the 31st Conference on Learning Theory, volume 75 of Proceedings of Machine Learning Research, pages 639–649. PMLR, 2018.
Dmitry Yarotsky and Anton Zhevnerchuk. The phase diagram of approximation rates for deep neural networks. In Advances in Neural Information Processing Systems, volume 33, pages 13005–13015, 2020.