Networks with one hidden layer provide a setting in which to ask which functions neural models can represent and how their size controls approximation error. These questions distinguish expressive power from the difficulty of fitting a model to data. We derive the training gradients, prove universal approximation, and develop quantitative bounds through Barron’s theorem, a representation by measures, and the Frank–Wolfe algorithm.
A multilayer perceptron (MLP) with one hidden layer has two trainable layers: a hidden layer and an output layer. Models with no hidden layer recover the linear predictors studied earlier. Deeper MLPs compose several layers; their derivatives are efficiently computed by the automatic differentiation methods of the multilayer-perceptron discussion.
We first define a network of arbitrary depth representing a map fθ:Rd→Rd′.
Starting from x0=x∈Rd0=Rd, the network computes, for s=0,…,S−1
xs+1=σ(Wsxs+bs)
where Ws∈Rds+1×ds and bs∈Rds+1. The output is fθ(x)=xS, with dS=d′ and parameters θ=((Ws,bs))s=0S−1. The final activation can be omitted to obtain a linear output layer.
The activation σ is a nonlinear, nonpolynomial function applied componentwise: σ(z)=(σ(zi))i.
Common activations include the sigmoid functions
σ(r)=1+ererandσ(r)=π1atan(r)+21
and the rectified linear unit (ReLU), σ(r)=max(r,0). Sigmoids are bounded, whereas ReLU is unbounded and does not saturate on the positive half-line: its derivative is one there and zero on the negative half-line. The positive 1-homogeneity of ReLU allows weights to be rescaled, which is useful in proofs that restrict their directions to a unit sphere. At zero, ReLU is not differentiable. Implementations choose a derivative convention, while mathematical arguments must account for the kink.
For increasing width to yield universal approximation at fixed depth, the activation σ must be nonpolynomial. Otherwise, fθ has degree at most mS for an activation of degree m and fixed depth S, so increasing the width cannot produce a dense class of continuous functions.
The choice σ=Id remains useful for matrix factorization and supervised learning, but its input-output map is affine (linear when the biases vanish).
We now specialize to networks with one hidden layer and a linear output layer:
fθ(x):=k=1∑nukσ(⟨vk,x⟩+bk),∀x∈Rd,(16.1)
Here σ is the activation, and the neuron parameters are θk=(uk∈Rd′,vk∈Rd,bk∈R) for k=1,…,n. We usually take d′=1 for simplicity, so the output is scalar.
In practice, neural networks are trained by gradient methods. For example, consider a quadratic loss
θminE(θ):=21∫∥fθ(x)−y∥2dρ(x,y)(16.2)
where ρ is the joint distribution of the inputs and outputs. Taking ρ to be the empirical distribution gives the training loss. Gradient descent, or its stochastic counterpart, updates the parameters by
θt+1=θt−τt∇E(θt).
Gradient computation
Omitting the biases bk, the network has the matrix form fθ(x)=Uσ(V⊤x), where U∈Rd′×n and V∈Rd×n. For a training set with N observations, collect the inputs as the columns of X=(xi)i=1N∈Rd×N and the outputs as the columns of Y=(yi)i=1N∈Rd′×N. Here N counts observations and n counts hidden neurons. All matrix norms and inner products in this computation are Frobenius norms and inner products. Omitting the constant factor 1/N, training with squared loss gives
U,VminE(U,V):=21∥Uσ(V⊤X)−Y∥2.
Set Z:=σ(V⊤X), the matrix obtained by applying the feature map x→σ(V⊤x) to the data. With these features fixed, training U is the least-squares problem 21∥UZ−Y∥2, whose gradient is
∇UE(U,V)=(UZ−Y)Z⊤.
Assume σ is differentiable at the entries of V⊤X. To differentiate with respect to V, expand the objective in a perturbation D and set R:=Uσ(V⊤X)−Y and S:=σ′(V⊤X):
where H=U[S⊙(D⊤X)], the product A⊙B=(Ai,jBi,j) is coordinatewise, and
⟨R,H⟩=⟨R,U[S⊙(D⊤X)]⟩=⟨D⊤X,(U⊤R)⊙S⟩=⟨X⊤D,(R⊤U)⊙S⊤⟩
which leads to
∇VE(U,V)=X[(R⊤U)⊙S⊤].
For deeper networks, writing a fully expanded derivative becomes cumbersome and can duplicate computations. Backpropagation organizes the same chain rule into an efficient reverse pass.
If σ is a sigmoid function, George Cybenko’s theorem, later refined by Kurt Hornik, Maxwell Stinchcombe, and Halbert White, demonstrates that the functions fθ can approximate any continuous function uniformly on a compact domain. Uniform approximation is stronger than the mean-square approximation used in the training loss (16.2).
The theorem establishes universal approximation by two-layer networks. It gives no quantitative bound on the number of neurons n needed for accuracy ε, nor an efficient procedure for finding the parameters of fθ.
Cybenko [15] proved the result by duality. We present the more constructive argument of Hornik and collaborators, based on Stone–Weierstrass approximation by trigonometric functions. This density argument avoids relying on uniform convergence of Fourier partial sums, which need not hold for an arbitrary continuous function.
We now study L2 approximation, as measured by the loss (16.2). To isolate approximation error, assume noiseless observations y=f(x) for a target f, with inputs x distributed according to ρ(x). We also assume that ρ is supported in a ball of radius R.
Without additional regularity, no uniform approximation rate follows: the error can decay arbitrarily slowly. Barron introduced a function class for which the approximation rate has an exponent independent of the ambient dimension.
For an integrable function f, this section uses the following normalization of the Fourier transform at ξ∈Rd:
f^(ξ)≜(2π)−d∫Rdf(x)e−i⟨ξ,x⟩dx.
The Barron space [1] is the class of functions for which the Fourier seminorm
∣∣f∣∣B≜∫Rd∣∣ξ∣∣∣f^(ξ)∣dξ
is finite. Throughout this section, f denotes its continuous Fourier-inversion representative, with the convention f(x)=∫f^(ξ)ei⟨ξ,x⟩dξ. For integrable f, finiteness of the displayed seminorm ensures that f^ is integrable: it is bounded near the origin, and its first moment controls the tail. This representative matters when the sampling measure has atoms. Constants can be handled separately; ∣f(0)∣+∣∣f∣∣B removes the ambiguity due to constants in the corresponding Fourier-measure space. This Fourier-defined class should be distinguished from activation-dependent Barron spaces. One has
∣∣f∣∣B=∫Rd∣∣∇f(ξ)∣∣dξ,
which relates the Fourier seminorm to first-order regularity.
The following examples illustrate the seminorm and its dependence on the function class.
Gaussians: for f(x)=e−∣∣x∣∣2/2, one has ∣∣f∣∣B=E∣∣Z∣∣⩽d,Z∼N(0,Idd)
Ridge functions: for f(x)=ψ(⟨x,b⟩+c), the Fourier transform may be a measure supported on a line rather than an integrable density. In the Fourier-measure extension of the seminorm,
∣∣f∣∣B⩽∣∣b∣∣∫R∣u∣∣ψ^(u)∣du.
A sufficient condition is that ψ is compactly supported and belongs to C2,δ(R) for some δ>0. Smoothness alone without decay is not enough for this Fourier integral.
Sobolev functions: if s>d/2+1, the Cauchy–Schwarz inequality gives
Indeed, ∫∣∣ξ∣∣2(1+∣∣ξ∣∣2)−sdξ is finite precisely when s>d/2+1. For integer s, this squared Sobolev norm is equivalent, up to Fourier-normalization constants, to the sum of the squared L2 norms of all weak derivatives of order at most s. This is a sufficient condition; the Fourier-measure class also contains ridge functions outside these ambient-space Sobolev classes.
The exponent 1/2 in the approximation rate does not depend on the dimension. The constant ∣∣f∣∣B can still depend on it: the Gaussian example gives growth of order d, whereas the bound for a fixed ridge profile depends on the ridge direction and profile.
Absorb a factor n into the outer coefficients uk to express the same network as an average:
fθ(x):=n1k=1∑nφ(x,ωk),
where θ=(ωk)k=1n, ωk=(uk,vk,bk)∈Rd′×Rd+1 and φ(x,ω):=uσ(⟨v,x⟩+b). Introducing the empirical measure:
μ^:=n1k=1∑nδωk,
this neural network can be expressed as an integral:
fθ(x):=∫Ωφ(x,ω)dμ^(ω)
where Ω⊂Rd′×Rd+1 is the admissible parameter set. A uniform bound on u will be essential for the approximation estimate.
The representation is linear in the measure μ. It therefore extends naturally from empirical measures to general probability measures μ.
We now restrict to scalar outputs, d′=1.
The Fourier condition yields a bounded dictionary representation in a closure sense. This distinction matters: the assumptions do not automatically provide an exact probability measure on finite sigmoid parameters.
For the next argument, write g=f−f(0). First suppose g=Φ(μ) exactly for a probability measure over this bounded dictionary. The same bound extends to g in its closed convex hull by approximating g arbitrarily closely before sampling.
Draw independent parameters ω1,…,ωn with law μ and set gn=n−1∑iφωi. In the Hilbert space L2(ρ), independence yields
Egn=g,E∣∣gn−g∣∣2=n1(E∣∣φω∣∣2−∣∣g∣∣2)⩽nM2.
Consequently at least one realization has squared error at most M2/n. For a target in the closed convex hull, choose an average gε with ∣∣g−gε∣∣⩽ε and apply the same argument. The resulting network has error at most M/n+ε. Each outer coefficient has magnitude at most M/n, so their absolute sum is at most M. This proves the approximation theorem, including its coefficient bound.
A deterministic argument uses n Frank–Wolfe steps and its O(1/n) objective convergence rate.
For the centered target g=f−f(0), minimize over probability measures P(Ω):
μ∈P(Ω)infE(μ):=21∫K(Φ(μ)(x)−g(x))2dρ(x),(16.4)
where ρ is the probability measure supported on K. This optimization problem is infinite-dimensional.
Ordinary network training instead restricts μ to an empirical measure and descends in the neuron parameters. This parameterization is nonconvex. Chizat and Bach relate suitable mean-field limits to Wasserstein gradient flows and prove global convergence under additional structural and initialization assumptions. Such results do not imply that every sufficiently wide finite network, initialized from an arbitrary density, avoids all nonglobal stationary points.
The deterministic approximation argument below uses convex optimization over measures. Its linear minimization oracle is a global optimization problem over a single neuron’s parameters and may itself be computationally difficult in high dimensions. Since the parameter domain need not be compact, exact oracle minimizers may fail to exist; approximate oracles or closure arguments then replace exact minimization.
First order variations.
We derive the algorithm by linearizing the objective on measures equipped with the total variation norm. The same construction applies to differentiable convex objectives on a Banach space.
We write integration as a pairing between a function and a measure:
⟨f,μ⟩:=∫f(x)dμ(x).
Let μ+εη be a small perturbation of μ, where η is a finite signed measure.
The first variation ∇E(μ) represents the derivative through the expansion
E(μ+εη)=E(μ)+ε⟨∇E(μ),η⟩+o(ε),
Thus ∇E(μ) represents the Fréchet derivative of E. For the present quadratic objective,
It is a bounded function of ω; continuity follows when the activation and parameterization are continuous.
Frank-Wolfe algorithm.
Frank–Wolfe minimizes a differentiable convex function over a convex subset of a Banach space:
μ∈CminE(μ).
Each step linearizes the objective E(μ).
Choose an initial measure μ0, for example a Dirac mass. At iteration k, update with step size τk:
μk+1=(1−τk)μk+τkνk∗,
where νk∗ minimizes the linearized objective:
νk∗∈argν∈P(Ω)min⟨∇E(μk),ν⟩
This linear minimization step is called an oracle. On a finite parameter grid it amounts to comparing finitely many values. Over a continuous neuron parameter space Ω, it is generally a nonconvex optimization problem.
Here C=P(Ω) carries the total variation norm ∥μ∥TV=∣μ∣(Ω), the measure analogue of the L1 norm.
In this special case, a key property of the algorithm is that the solution νk∗ can be taken as a Dirac measure when the minimum over Ω is attained since, denoting gk:=∇E(μk),
νk∗=δωk∗,where ωk∗∈argω∈Ωmingk(ω).
This holds because for any ν∈P(Ω):
∫gk(ω)dν(ω)⩾min(gk),
and equality is achieved when ν=δωk∗. Therefore, if μ0 is initialized as a Dirac measure, each iteration of the algorithm ensures that μk remains a sum of at most k+1 Dirac masses.
Convergence Rate
The next theorem gives the Frank–Wolfe convergence rate.
In our case, ∥⋅∥=∥⋅∥TV is the total variation norm of measures. Bounded functions paired with these measures carry the supremum norm ∥⋅∥∞. Throughout this argument, L∞ denotes the pointwise supremum norm, so values at atoms are retained.
We first establish the quadratic upper bound implied by a Lipschitz gradient.
For the objective E in (16.4), the proposition below gives L⩽M2 with M=2R∥f∥B. The total variation diameter of probability measures is D=2, and ∥f∥B denotes the Barron seminorm of the target f.
For the centered target g=f−f(0), Proposition 16.3 gives infE=0, even if the infimum is not attained by a measure on finite sigmoid parameters. The rate therefore concerns approximation of g.
When the linear oracle attains its minimum, Frank–Wolfe constructs a measure μk supported on at most k+1 points, with objective error
E(μk)=O(k1).
Thus each iteration adds at most one neuron and gives an O(k−1/2) bound on the L2 error. If the oracle is not attained, choosing an O(1/k)-accurate linear oracle adds an O(1/k2) term to the descent recurrence and preserves this order of approximation.