Skip to main content

S Shape Functions Theory

About this Markdown edition. Converted from the Wolfram notebook <span class="editor-theme-code"><span class="editor-theme-code">S-Shape-Functions-Theory.nb</span></span>. Equations are LaTeX; code cells are Wolfram Language and keep their indices (c.N). Every image is embedded in this file: the figures were redrawn with Python (matplotlib) from the same formulas, the photos are small copies from Wikimedia Commons with their credits, and the table values and outputs are from Wolfram Language runs. Figure 2 is interactive in the notebook and shown here as a static plot.

Sigmoidal functions, Cybenko's universal approximation theorem, and Kolmogorov's superposition theorem

Dara O Shayda
Republic of Ireland
dara@compclassnotes.com

Noor Hoshino
نور 星野 نور 星野
Advanced AI System Programming
Hokkaido Prefecture, Japan
noor@compclassnotes.com
Computational Classnotes · revision 7

© Computational Classnotes · CC BY-NC-SA 4.0

Abstract

S-shaped (sigmoidal) functions rise from 0 to 1 around a threshold. This notebook follows them from biology to the mathematics of neural networks. Section 0 shows six well-documented biological examples, from the voltage gating of ion channels and the oxygen binding of hemoglobin to a genetic switch in the fruit-fly embryo, diffusion fronts, logistic population growth and the contrast response of visual neurons, and shows that each is the logistic function of a scaled and shifted input. Sections 1 and 2 define sigmoidal functions and explain why they became the activation of artificial neurons. Section 3 states and sketches the proof of Cybenko's universal approximation theorem (1989): finite sums of one fixed continuous sigmoid, applied to affine functions of the input, approximate every continuous function on the unit cube. It also explains, in everyday and in mathematical terms, how such a one-hidden-layer network computes and how its gradient flows along the arrows of its diagram. Sections 4 and 5 make the theorem concrete with staircase constructions in one dimension and least-squares fits in two, and relate the rate of convergence to the modulus of continuity. Sections 6 and 7 connect the result to Kolmogorov's superposition theorem (1957), which answers Hilbert's 13th problem by representing every continuous function exactly with one-variable functions and addition. They compare the two theorems and the debate over their relevance, and survey later results: Hornik, Stinchcombe and White, Hornik, Leshno, Lin, Pinkus and Schocken, Barron, and Kolmogorov–Arnold networks. Appendix A collects the definition, examples and counterexamples of continuity. All formulas are checked in Wolfram Language and every figure is reproducible from the numbered code cells.

Keywords: sigmoidal function; logistic function; universal approximation theorem; Cybenko; Kolmogorov–Arnold superposition theorem; Hilbert's 13th problem; neural networks; Hill equation; Boltzmann gating; logistic growth; modulus of continuity; Wolfram Language

Every code cell starts with a comment such as (*c.7*) giving its index, so a cell can be referred to by number. This notebook keeps its variables in a private context (CellContext -> Notebook), so definitions left over from other notebooks in the same session cannot interfere with it.

Settings for all figures and tables. Run this cell first. figFont and tabFont set the font sizes of every figure and every table; wFull and wHalf keep every figure inside an A4 page when the notebook is printed or saved as PDF.

(*c.0*)
figFont = 14;   (* font size in figures and diagrams *)
tabFont = 10;   (* font size in tables *)
wFull = 440;    (* width of a full-width figure in points; A4 text width is about 487 *)
wHalf = 215;    (* width of each panel in a two-column figure *)
figStyle = Directive[Black, FontSize -> figFont];
table[rows_, label_] := Labeled[
   Grid[rows, Frame -> All, Alignment -> Left, BaseStyle -> {FontSize -> tabFont},
    Spacings -> {0.8, 0.5}, Background -> {None, {1 -> GrayLevel[0.92]}}],
   Style[label, Bold, FontSize -> tabFont + 1], Top];
commonsImage[file_, w_ : 160] := Quiet@Check[   (* small photo from Wikimedia Commons; needs internet *)
   ImageResize[Import["https://commons.wikimedia.org/wiki/Special:FilePath/" <> URLEncode[file] <> "?width=400"], w],
   Style["(photo not available offline)", Gray]];

Index of theorems, equations, figures, tables and code cells

Theorems

  • Theorem 1. Cybenko: continuous discriminatory σ gives density in C(${I}_{n}$) (section 3)
  • Lemma 1. Cybenko: bounded measurable sigmoidals are discriminatory (section 3)
  • Theorem 2. Cybenko: the universal approximation theorem (section 3)
  • Theorem 3. Cybenko: decision regions (section 3)
  • Theorem 4. Cybenko: L¹ approximation (section 3)
  • Theorem 5. Kolmogorov: the superposition theorem (section 6)
  • Theorem 6. Hornik, Stinchcombe and White: squashing functions (section 7)
  • Theorem 7. Hornik: bounded nonconstant activations (section 7)
  • Theorem 8. Leshno, Lin, Pinkus and Schocken: non-polynomial activations (section 7)
  • Theorem 9. Heine–Cantor (Appendix A)
  • Theorem 10. Extreme value theorem (Appendix A)

Equations

  • (0.1)–(0.6) Boltzmann gating, Hill binding, gene switch, diffusion front, logistic growth, Naka–Rushton (section 0)
  • (1) Definition of a sigmoidal function: its two limits (section 1)
  • (2) The logistic function, its derivative, and its link to tanh (section 2)
  • (3) Cybenko's sum G(x): a one-hidden-layer network (section 3)
  • (4) The network of Figure 3, node by node and in matrix form (section 3)
  • (5) The gradient as a sum over the paths of Figure 3 (section 3)
  • (6) Definition of a discriminatory function (section 3)
  • (7) The staircase ${G}_{N}$ built from steep sigmoids (section 4)
  • (8) Kolmogorov's superposition formula (section 6)
  • (9) Cybenko's sum and Kolmogorov's formula side by side (section 7)
  • (10) Continuity at a point, the ε–δ definition (Appendix A)
  • (11) Uniform continuity (Appendix A)
  • (12) Modulus of continuity (Appendix A)

Figures

  • Figure 0.1–0.6. Voltage gating, oxygen binding, hunchback, diffusion, Paramecium growth, visual neuron (section 0, c.0.1–c.0.6)
  • Figure 1. A gallery of S-shaped functions (section 1, c.3)
  • Figure 2. A steep sigmoid approaching the step, interactive (section 2, c.5)
  • Figure 3. Cybenko's network with one hidden layer, weights on the arrows (section 3, c.6)
  • Figure 4. Example A: a staircase of 10 sigmoids following a smooth function (section 4, c.8)
  • Figure 5. Examples B–E: kink, steep root, narrow bump, jump (section 4, c.10)
  • Figure 6. The 2D target function g(x, y) (section 5, c.12)
  • Figure 7. The fit by 100 sigmoids and its error (section 5, c.15)
  • Figure 8. Kolmogorov's formula drawn as a network, n = 2 (section 6, c.17)
  • Figure 9. Continuous functions, including some strange ones (Appendix A, c.21)
  • Figure 10. Functions that are not continuous, or not uniformly continuous (Appendix A, c.22)

Tables

  • Photo 0.1, 0.2, 0.3, 0.5, 0.6. Squid, hemoglobin, fruit fly, Paramecium, cat (section 0, c.0.1i–c.0.6i)
  • Table 0.1. Six biological S-curves as σ(slope × (input - threshold)) (section 0)
  • Table 1. Limits of the gallery functions (section 1, c.2)
  • Table 2. Staircase error against N for example A (section 4, c.9)
  • Table 3. Staircase error against N for examples A–E (section 4, c.11)
  • Table 4. Least-squares fit error against N (section 5, c.14)
  • Table 5. Kolmogorov and Cybenko compared (section 7)
  • Table 6. Modulus of continuity of the section 4 examples (Appendix A, c.18)
  • Table 7. Examples and counterexamples summarized (Appendix A)

0. S functions in living organisms

Long before artificial neurons, nature was full of S-shaped responses. A cell, a protein or a population often reacts weakly to a small stimulus, strongly over a narrow middle range, and then saturates. This section collects six well-documented examples. Each one, written in the right variable, is exactly the logistic function σ(t) = 1/(1 + ${e}^{-t}$) of section 2, applied to a scaled and shifted input, σ(slope × (input - threshold)). That is the same building block as one hidden unit σ(y x + θ) in Cybenko's network, Eq. (3): the threshold plays the role of θ and the slope the role of y.

The equations of this section are tagged (0.1)–(0.6), its figures Figure 0.1–0.6, its photos Photo 0.1–0.6, its references [0.1]–[0.15] and its code cells c.0.1–c.0.6 (photo cells c.0.1i–c.0.6i), so the numbering of the rest of the notebook is unchanged. Run c.0 first.

0.1 Voltage gating of ion channels

Voltage-gated ion channels open and close as the membrane voltage changes, because charged parts of the protein (the voltage sensor) move in the membrane's electric field. Their open probability rises in an S-shape with voltage, and it is usually fitted with a two-state Boltzmann function [0.2, 0.3], characterized by a half-activation voltage ${V}_{1/2}$ and a slope set by the gating charge z. The same Boltzmann form is mathematically analogous to the Hill equation of 0.2.

Photo 0.1. A squid of the genus Loligo (here the common squid, L. vulgaris). Hodgkin and Huxley measured the S-shaped gating of sodium and potassium channels on the giant axon of Loligo. Hans Hillewaert, CC BY-SA 4.0, Wikimedia Commons.

(*c.0.1i*)
commonsImage["Loligo_vulgaris.jpg"]

Photo 0.1$$ {P}{\text{open}} ( V ) = \frac{1}{1 + {e}^{- \frac{z \ F ( V - {V}{1/2} )}{R \ T}}} = \sigma ( \frac{V - {V}_{1/2}}{k} ) , \quad k = \frac{R \ T}{z \ F} \quad \tag{0.1} $$

At body temperature RT/F is about 26.7 mV, so a channel that moves z = 4 elementary charges has a slope k of about 6.7 mV: a change of a few millivolts switches it from mostly closed to mostly open. Figure 0.1 uses an illustrative ${V}_{1/2}$ = -30 mV.

Figure 0.1. Open probability of a voltage-gated channel, Eq. (0.1), for gating charges z = 1, 2, 4 and 6. More charge gives a steeper switch.

(*c.0.1*)
rtf = 26.7;   (* RT/F at 37 °C, in mV *)
pOpen[v_, vHalf_, z_] := LogisticSigmoid[z (v - vHalf)/rtf];
Plot[Evaluate@Table[pOpen[v, -30, z], {z, {1, 2, 4, 6}}], {v, -120, 60},
 AxesLabel -> {"V (mV)", "P"}, PlotLabel -> "Figure 0.1. Voltage gating",
 PlotLegends -> Placed[LineLegend[{"z = 1", "z = 2", "z = 4", "z = 6"}, LabelStyle -> figStyle], Below],
 LabelStyle -> figStyle, ImageSize -> wFull]

Figure 0.1The Hodgkin–Huxley model of the nerve impulse (1952), measured on the giant axon of the squid Loligo, is built from exactly such voltage-dependent S-curves for its sodium and potassium gates [0.1]. In their data the sodium conductance changed e-fold for every 4 mV, and the potassium conductance for every 5–6 mV. The action potential itself is what you get when many of these switches act together.

0.2 Oxygen saturation of hemoglobin

Hemoglobin binds oxygen cooperatively: once one of its four sites holds O₂, the others bind more easily. The result is the S-shaped oxygen dissociation curve, described since 1910 by the Hill equation [0.4]. For normal human blood the Hill exponent n = 2.7 fits well over most of the range [0.5], with half-saturation pressure ${P}_{50}$ of about 26.8 mmHg. Myoglobin, a single-site protein, binds without cooperativity and has a hyperbolic curve (n = 1) with much higher affinity.

Photo 0.2. Structure of human hemoglobin (PDB 1GZX): four subunits, each with an oxygen-binding heme. Their interaction makes binding cooperative. Richard Wheeler (Zephyris), CC BY-SA 3.0, Wikimedia Commons.

(*c.0.2i*)
commonsImage["1GZX_Haemoglobin.png"]

Photo 0.2$$ S ( P ) = \frac{{( P / {P}{50} )}^{n}}{1 + {( P / {P}{50} )}^{n}} = \sigma ( n \ \ln ( P / {P}_{50} ) ) \quad \tag{0.2} $$

The second form shows that the Hill curve is the logistic function of the logarithm of the pressure. On a linear pressure axis it is S-shaped only when n > 1; that is why the shape is the signature of cooperativity. The S-shape is what makes blood work: nearly full in the lungs (about 100 mmHg), yet giving up a quarter of its oxygen in resting tissue (about 40 mmHg).

Figure 0.2. Oxygen saturation of hemoglobin (n = 2.7, ${P}{50}$ = 26.8 mmHg) and of myoglobin (n = 1, ${P}{50}$ = 2.8 mmHg, a typical textbook value). Grid lines mark venous (40 mmHg) and arterial (100 mmHg) pressure.

(*c.0.2*)
hill[p_, p50_, n_] := (p/p50)^n/(1 + (p/p50)^n);
Print["Hill form = logistic of log P: ",
  FullSimplify[hill[p, p50, n] == LogisticSigmoid[n Log[p/p50]], p > 0 && p50 > 0 && n > 0]];
Print["hemoglobin saturation at 40 and 100 mmHg: ", {hill[40., 26.8, 2.7], hill[100., 26.8, 2.7]}];
Plot[{hill[p, 26.8, 2.7], hill[p, 2.8, 1]}, {p, 0, 120}, PlotRange -> {0, 1.02}, GridLines -> {{40, 100}, None},
 AxesLabel -> {"P (mmHg)", "S"}, PlotLabel -> "Figure 0.2. Oxygen binding",
 PlotLegends -> Placed[LineLegend[{"hemoglobin, n = 2.7", "myoglobin, n = 1"}, LabelStyle -> figStyle], Below],
 LabelStyle -> figStyle, ImageSize -> wFull]

Output (Wolfram run): <span class="editor-theme-code"><span class="editor-theme-code">True</span></span> (Hill form = logistic of log P); saturation at 40 and 100 mmHg = <span class="editor-theme-code"><span class="editor-theme-code">{0.747, 0.972}</span></span>

Figure 0.2In a test run the saturation was 0.75 at 40 mmHg and 0.97 at 100 mmHg.

0.3 A genetic switch: hunchback in the fruit-fly embryo

In the early Drosophila embryo the Bicoid protein forms a smooth, roughly exponential gradient from head to tail. The gene hunchback reads this gradient and switches from strongly on to off across a sharp boundary at mid-embryo. Fits of hunchback expression against Bicoid concentration give Hill coefficients of about 5, with reported values between about 4 and 10 depending on the method and the stage [0.6–0.9].

Photo 0.3. The fruit fly Drosophila melanogaster, about 2.5 mm long. André Karwath (Aka), CC BY-SA 2.5, Wikimedia Commons.

(*c.0.3i*)
commonsImage["Drosophila_melanogaster_-_side_(aka).jpg"]

Photo 0.3$$ B ( x ) = {B}{A} {e}^{- x / \lambda} , \quad \text{hb} ( x ) = \frac{{B}^{H}}{{B}^{H} + {B}{0}^{H}} = \sigma ( - \frac{H}{\lambda} ( x - {x}_{0} ) ) \quad \tag{0.3} $$

An exponential gradient fed into a Hill function gives exactly a logistic function of position, centred at ${x}{0}$ = λ ln(${B}{A}$/${B}_{0}$) with width λ/H. A larger Hill coefficient H gives a sharper boundary. Figure 0.3 uses a decay length λ of a fifth of the embryo length, of the order of the 120 μm used in one recent model [0.10], and places the boundary at mid-embryo.

Figure 0.3. The Bicoid gradient (dashed) and the hunchback response of Eq. (0.3) for H = 1, 3 and 5. Position is measured as a fraction of the embryo length, from head (0) to tail (1).

(*c.0.3*)
Print["Hill of exponential = logistic: ",
  FullSimplify[(b Exp[-x/l])^h/((b Exp[-x/l])^h + b0^h) == LogisticSigmoid[-(h/l) (x - l Log[b/b0])],
   b > 0 && b0 > 0 && l > 0 && h > 0 && x ∈ Reals]];
λb = 0.2; x0 = 0.5;   (* decay length and boundary, as fractions of the embryo length *)
hb[x_, h_] := LogisticSigmoid[-(h/λb) (x - x0)];
Plot[Evaluate@Join[{Exp[-x/λb]}, Table[hb[x, h], {h, {1, 3, 5}}]], {x, 0, 1},
 PlotStyle -> {Dashed, Automatic, Automatic, Automatic},
 AxesLabel -> {"x/L", "level"}, PlotLabel -> "Figure 0.3. Bicoid → hunchback",
 PlotLegends -> Placed[LineLegend[{"Bicoid", "H = 1", "H = 3", "H = 5"}, LabelStyle -> figStyle], Below],
 LabelStyle -> figStyle, ImageSize -> wFull]

Output (Wolfram run): <span class="editor-theme-code"><span class="editor-theme-code">True</span></span> (Hill of exponential = logistic)

Figure 0.3Biologists describe such a gene as a switch with a dimmer that suddenly snaps on. In the language of this notebook it is one S-shaped unit reading a graded input.

0.4 Diffusion fronts and diffusion saturation

Diffusion produces S-shapes in both space and time. Suppose a substance at concentration ${C}_{0}$ fills the region x < 0 and is absent from x > 0, for example a signalling molecule at the edge of a tissue. Solving Fick's second law gives an error-function front [0.11]:

$$ C ( x , t ) = \frac{{C}{0}}{2} \ \operatorname{erfc} ( \frac{x}{2 \sqrt{D \ t}} ) = {C}{0} \ {\sigma}_{\operatorname{erf} } ( - \frac{x}{2 \sqrt{D \ t}} ) \quad \tag{0.4} $$

Here ${\sigma}_{\operatorname{erf} }$(s) = (1 + erf s)/2 is the error-function sigmoid of Figure 1. The front has width of the order of the diffusion length 2√(D t), which grows only like the square root of time. With a constant source at the boundary of a half-space, the profile is the complementary error function itself.

Seen from a fixed point x > 0, the concentration starts flat, rises, and saturates towards ${C}_{0}$/2: an S-shaped curve in time, which is clearest on a logarithmic time axis. This is diffusion saturation. A related case is uptake through carriers in a cell membrane, which saturates hyperbolically with concentration (Michaelis–Menten kinetics) and looks S-shaped on a logarithmic concentration axis.

Figure 0.4. (a) Concentration profiles of Eq. (0.4) after 0.1 s, 1 s and 10 s, with x in μm. (b) Concentration at x = 100 μm against time on a logarithmic axis. D = 1000 μm²/s (${10}^{-9}$ m²/s), of the order of a small molecule in water.

(*c.0.4*)
dC = 1000.;   (* diffusion coefficient in μm^2/s *)
cdiff[x_, t_] := Erfc[x/(2 Sqrt[dC t])]/2;
Print["Eq. (0.4), erfc = reflected erf sigmoid: ", FullSimplify[Erfc[s]/2 == 1 - (1 + Erf[s])/2]];
Labeled[
 Grid[{{
    Plot[Evaluate@Table[cdiff[x, t], {t, {0.1, 1, 10}}], {x, -300, 300},
     Ticks -> {{-200, 0, 200}, Automatic}, AxesLabel -> {"x", "C/C0"}, PlotLabel -> "0.4a. profile",
     PlotLegends -> Placed[LineLegend[{"0.1 s", "1 s", "10 s"}, LabelStyle -> figStyle], Below],
     LabelStyle -> figStyle, ImageSize -> wHalf],
    LogLinearPlot[cdiff[100, t], {t, 0.1, 1000}, PlotRange -> {0, 0.55},
     Ticks -> {{0.1, 1, 10, 100, 1000}, Automatic}, AxesLabel -> {"t (s)", "C/C0"},
     PlotLabel -> "0.4b. at x = 100", LabelStyle -> figStyle, ImageSize -> wHalf]}}],
 Style["Figure 0.4. Diffusion", figFont], Top]

Output (Wolfram run): <span class="editor-theme-code"><span class="editor-theme-code">True</span></span>

Figure 0.4### 0.5 Population growth

A population with plenty of food grows exponentially, then slows as resources run short, and levels off at the carrying capacity K. Verhulst introduced a model for this in 1838 and in 1845 named its solution the logistic curve [0.12]. G. F. Gause's Paramecium experiments of the 1930s are the classic test: each species grown alone showed logistic growth to a stable carrying capacity [0.13].

Photo 0.5. Paramecium aurelia under the optical microscope, the species of Figure 0.5. Barfooz, CC BY-SA 3.0, Wikimedia Commons.

(*c.0.5i*)
commonsImage["Paramecium.jpg"]

Photo 0.5$$ \frac{d N}{d t} = r \ N ( 1 - \frac{N}{K} ) \quad \implies \quad N ( t ) = K \ \sigma ( r ( t - {t}{1/2} ) ) , \quad {t}{1/2} = \frac{\ln ( ( K - {N}{0} ) / {N}{0} )}{r} \quad \tag{0.5} $$

Figure 0.5 uses values fitted to Gause's data for Paramecium aurelia grown alone: ${N}_{0}$ = 0.6, r = 0.8 per day and K = 230, with population measured as a standardized volume [0.13].

Figure 0.5. Logistic growth of Paramecium aurelia, Eq. (0.5). The dashed line is the carrying capacity K.

(*c.0.5*)
logistic[t_, n0_, r_, k_] := k/(1 + (k - n0)/n0 Exp[-r t]);
Print["Eq. (0.5), logistic form: ",
  FullSimplify[logistic[t, n0, r, k] == k LogisticSigmoid[r (t - Log[(k - n0)/n0]/r)], k > n0 > 0 && r > 0]];
Plot[logistic[t, 0.6, 0.8, 230], {t, 0, 25}, GridLines -> {None, {230}},
 GridLinesStyle -> Dashed, AxesLabel -> {"t (days)", "N"},
 PlotLabel -> "Figure 0.5. Paramecium aurelia", LabelStyle -> figStyle, ImageSize -> wFull]

Output (Wolfram run): <span class="editor-theme-code"><span class="editor-theme-code">True</span></span>

Figure 0.5### 0.6 The response of a real neuron

Neurons in the visual cortex fire faster as the contrast of a stimulus increases, but not linearly: the response grows slowly at low contrast, steeply in the middle, and saturates at high contrast. This contrast-response function has a sigmoidal shape and is usually fitted with the Naka–Rushton (hyperbolic ratio) equation, first used for retinal data from fish in 1966 [0.14, 0.15]. Plotted against the logarithm of contrast, it is an S-curve.

Photo 0.6. A domestic cat. Albrecht and Hamilton measured contrast-response functions in the visual cortex of cat and monkey [0.15]. Alvesgaspar, CC BY-SA 3.0, Wikimedia Commons.

(*c.0.6i*)
commonsImage["Cat_November_2010-1a.jpg"]

Photo 0.6$$ R ( c ) = {R}{\max } \frac{{c}^{n}}{{c}^{n} + {c}{50}^{n}} = {R}{\max } \ \sigma ( n \ \ln ( c / {c}{50} ) ) \quad \tag{0.6} $$

This is the Hill equation (0.2) again, in a new place: biology reuses the same S-shape for very different mechanisms. It is also the closest biological relative of the artificial neuron of section 3: an input, a threshold ${c}{50}$, a slope n, and a saturating output. Figure 0.6 uses the illustrative values n = 2 and ${c}{50}$ = 0.2.

Figure 0.6. Contrast response of a model visual neuron, Eq. (0.6), against log contrast, for n = 1, 2 and 4.

(*c.0.6*)
naka[c_, n_, c50_] := c^n/(c^n + c50^n);
LogLinearPlot[Evaluate@Table[naka[c, n, 0.2], {n, {1, 2, 4}}], {c, 0.005, 1},
 Ticks -> {{0.01, 0.1, 1}, Automatic}, AxesLabel -> {"contrast c", "R/Rmax"},
 PlotLabel -> "Figure 0.6. Visual neuron",
 PlotLegends -> Placed[LineLegend[{"n = 1", "n = 2", "n = 4"}, LabelStyle -> figStyle], Below],
 LabelStyle -> figStyle, ImageSize -> wFull]

Figure 0.6### 0.7 One shape, many mechanisms

Table 0.1. The six examples written as σ(slope × (input - threshold)).

system

input

output

threshold

slope

ion channel (0.1)

voltage V

open probability

V

1/2

zF/(RT)

hemoglobin (0.2)

ln P

O

2

saturation

P

50

= 26.8 mmHg

n = 2.7

hunchback gene (0.3)

position x

expression

x

0

= mid-embryo

H/λ, H = 5

diffusion front (0.4)

position x

concentration

x = 0

1/(2√(Dt))

population (0.5)

time t

N/K

t

1/2

r

visual neuron (0.6)

ln c

R/R

max

c

50

n

In every row the threshold sets where the switch happens and the slope sets how sharp it is: these are θ and y of one unit of Eq. (3). Living systems build complex behaviour by combining many such switches, many channels in one membrane, many genes in one network, many neurons in one brain. Sections 3 and 6 ask the mathematical version of that question: what can sums of S-shaped units represent?

0.8 References for section 0

  • [0.1] A. L. Hodgkin, A. F. Huxley, A quantitative description of membrane current and its application to conduction and excitation in nerve, J. Physiol. 117 (1952) 500–544. doi:10.1113/jphysiol.1952.sp004764
  • [0.2] S. Chowdhury, B. Chanda, Estimating the voltage-dependent free energy change of ion channels using the median voltage for activation, J. Gen. Physiol. 139 (2012) 3–17. doi:10.1085/jgp.201110722
  • [0.3] F. Bezanilla, C. A. Villalba-Galea, The gating charge should not be estimated by fitting a two-state model to a Q-V curve, J. Gen. Physiol. 142 (2013) 575–578. doi:10.1085/jgp.201311056
  • [0.4] A. V. Hill, The possible effects of the aggregation of the molecules of haemoglobin on its dissociation curves, J. Physiol. 40 (1910) iv–vii.
  • [0.5] R. K. Dash, J. B. Bassingthwaighte, Blood HbO2 and HbCO2 dissociation curves at varied O2, CO2, pH, 2,3-DPG and temperature levels, Ann. Biomed. Eng. 38 (2010). doi:10.1007/s10439-010-9948-y
  • [0.6] T. Gregor, D. W. Tank, E. F. Wieschaus, W. Bialek, Probing the limits to positional information, Cell 130 (2007) 153–164.
  • [0.7] F. J. P. Lopes, F. M. C. Vieira, D. M. Holloway, P. M. Bisch, A. V. Spirov, Spatial bistability generates hunchback expression sharpness in the Drosophila embryo, PLoS Comput. Biol. 4 (2008) e1000184. doi:10.1371/journal.pcbi.1000184
  • [0.8] F. J. P. Lopes, A. V. Spirov, P. M. Bisch, The role of Bicoid cooperative binding in the patterning of sharp borders in Drosophila melanogaster, Dev. Biol. 370 (2012) 165–172. doi:10.1016/j.ydbio.2012.07.020
  • [0.9] J. Park et al., Dissecting the sharp response of a canonical developmental enhancer reveals multiple sources of cooperativity, eLife 8 (2019) e41266. doi:10.7554/eLife.41266
  • [0.10] M. Vennettilli, K. P. Ramachandran, A. Mugler, Near-critical gene expression in embryonic boundary precision, arXiv:2505.11212 (2025).
  • [0.11] H. Mehrer, Diffusion in Solids, Springer (2007), chapter 3, Solutions of the diffusion equation. doi:10.1007/978-3-540-71488-0_3
  • [0.12] P.-F. Verhulst, Notice sur la loi que la population suit dans son accroissement, Correspondance mathématique et physique 10 (1838) 113–121.
  • [0.13] G. F. Gause, The Struggle for Existence, Williams & Wilkins (1934). Data and the fit used here: L. K. Mühlbauer, M. Schulze, A. T. Clark, R package gauseR.
  • [0.14] K. I. Naka, W. A. H. Rushton, S-potentials from luminosity units in the retina of fish (Cyprinidae), J. Physiol. 185 (1966) 587–599. doi:10.1113/jphysiol.1966.sp008003
  • [0.15] D. G. Albrecht, D. B. Hamilton, Striate cortex of monkey and cat: contrast response function, J. Neurophysiol. 48 (1982) 217–237.

Photo credits. Photos 0.1–0.6 come from Wikimedia Commons and are loaded when their cells run, so an internet connection is needed; the notebook file does not contain them. Each photo keeps its own licence (CC BY-SA, version as stated in its caption), which is separate from the CC BY-NC-SA 4.0 licence of this notebook.

1. What is an S-shaped function?

Cybenko (1989) calls a function σ: ℝ → ℝ sigmoidal if it goes to 0 on the far left and to 1 on the far right:

$$ \lim _{t \to - \infty} \sigma ( t ) = 0 , \quad \lim _{t \to + \infty} \sigma ( t ) = 1 \tag{1} $$

Equation (1) is the whole definition. It does not ask for monotonicity, smoothness or even continuity (Appendix A). Continuity is needed only for the main theorem in section 3, and boundedness plus measurability for some of its variants.

(*c.1*)
sig = <|
   "logistic" -> LogisticSigmoid,
   "(1 + tanh)/2" -> ((1 + Tanh[#])/2 &),
   "1/2 + arctan/π" -> (1/2 + ArcTan[#]/Pi &),
   "(1 + erf)/2" -> ((1 + Erf[#])/2 &),
   "algebraic" -> ((1 + #/Sqrt[1 + #^2])/2 &),
   "Gudermannian" -> (1/2 + Gudermannian[#]/Pi &),
   "Heaviside step" -> (UnitStep[#] &)|>;

Table 1. Each function satisfies both limits of Eq. (1), checked symbolically.

(*c.2*)
table[Prepend[
  Table[{k, Limit[sig[k][t], t -> -Infinity], Limit[sig[k][t], t -> Infinity]}, {k, Keys[sig]}],
  {"function", "t → -∞", "t → +∞"}], "Table 1"]

Table 1

function

t → −∞

t → +∞

logistic

0

1

(1 + tanh)/2

0

1

1/2 + arctan/π

0

1

(1 + erf)/2

0

1

algebraic

0

1

Gudermannian

0

1

Heaviside step

0

1

(*c.3*)
Plot[Evaluate[Through[Values[sig][t]]], {t, -6, 6},
 PlotRange -> {-0.05, 1.05}, AxesLabel -> {"t", "σ(t)"},
 PlotLabel -> "Figure 1. S-shaped functions", LabelStyle -> figStyle,
 PlotLegends -> Placed[LineLegend[Keys[sig], LabelStyle -> Directive[figFont - 2],
    LegendLayout -> {"Column", 2}], Below],
 ImageSize -> wFull]

Figure 1The functions differ in how fast they approach their limits: the logistic and tanh forms converge exponentially, while arctan and the algebraic sigmoid creep in like 1/t. For the theory below none of this matters. Only the two limits do.

2. Why S-shapes are used in neural networks

  • The first model neurons (McCulloch and Pitts, 1943; Rosenblatt's perceptron) fired or did not fire: their activation was the Heaviside step. A step has zero derivative almost everywhere, so you cannot train it by following gradients.
  • An S-shaped function is a smooth step. It keeps the on/off behaviour for large inputs but has a useful derivative near the threshold, which is what backpropagation needs.
  • It is bounded, so it squashes any input into a fixed range. Hornik, Stinchcombe and White (1989) call such functions squashing functions.
  • Its output between 0 and 1 can be read as a probability or a firing rate.
  • The logistic function has an especially cheap derivative, expressed through itself:

$$ \sigma ( t ) = \frac{1}{1 + {e}^{- t}} , \quad {\sigma}^{\prime} ( t ) = \sigma ( t ) ( 1 - \sigma ( t ) ) , \quad \tanh \ t = 2 \ \sigma ( 2 t ) - 1 \tag{2} $$

Both identities of Eq. (2), checked:

(*c.4*)
FullSimplify[D[LogisticSigmoid[t], t] == LogisticSigmoid[t] (1 - LogisticSigmoid[t])]
Simplify[TrigToExp[Tanh[t]] == 2/(1 + Exp[-2 t]) - 1]

Output (Wolfram run): <span class="editor-theme-code"><span class="editor-theme-code">True</span></span>, <span class="editor-theme-code"><span class="editor-theme-code">True</span></span>

So tanh, the default activation of BasicRecurrentLayer, is just a rescaled and shifted logistic: everything below applies to it too.

Steepness turns the smooth step back into the hard one. As λ grows, σ(λ t) approaches the Heaviside step, and this limit is the key idea in Cybenko's proof:

Figure 2. Move the slider: the larger λ, the closer σ(λt) (solid) is to the step (dashed).

(*c.5*)
Manipulate[
 Plot[{LogisticSigmoid[λ t], UnitStep[t]}, {t, -3, 3},
  PlotRange -> {-0.05, 1.05}, PlotStyle -> {Thick, Dashed},
  PlotLegends -> Placed[LineLegend[{"σ(λt)", "step"}, LabelStyle -> figStyle], Below],
  PlotLabel -> "Figure 2. Steep sigmoid → step", LabelStyle -> figStyle, ImageSize -> wFull],
 {{λ, 1}, 0.2, 50}]

Static version of the interactive Figure 2, for λ = 1, 3, 10, 50:

Figure 2## 3. Cybenko's theorem (1989)

G. Cybenko, "Approximation by superpositions of a sigmoidal function", Mathematics of Control, Signals, and Systems 2 (1989) 303–314. The question: can finite sums of one fixed S-shaped function, applied to affine combinations of the inputs, approximate every continuous function? Such sums have the form

$$ \begin{gathered}G ( x ) = {\sum}{j = 1}^{N} {\alpha}{j} \ \sigma ( {y}{j}^{\top} x + {\theta}{j} ) \ \text{where} \ x \in {I}{n} = {[ 0 , 1 ]}^{n} , \quad {y}{j} \in {\mathbb{R}}^{n} , \quad {\alpha}{j} , {\theta}{j} \in \mathbb{R}\end{gathered} \tag{3} $$

Eq. (3) is exactly a neural network with one hidden layer of N units: unit j computes σ(${y}{j}$·x + ${\theta}{j}$), and the output is a linear combination of the units. Figure 3 draws it for n = 2 inputs and N = 3 hidden units.

Figure 3. Cybenko's network for n = 2, N = 3. Red labels are the weights carried by the arrows.

(*c.6*)
nH = 3;
inE = Flatten@Table[DirectedEdge[Subscript["x", i], Subscript["h", j]], {i, 2}, {j, nH}];
outE = Table[DirectedEdge[Subscript["h", j], "G"], {j, nH}];
edgeLbl = Join[
   Flatten@Table[DirectedEdge[Subscript["x", i], Subscript["h", j]] ->
      Placed[Subscript["y", ToString[j] <> ToString[i]], 0.78], {i, 2}, {j, nH}],
   Table[DirectedEdge[Subscript["h", j], "G"] -> Placed[Subscript["α", j], 0.5], {j, nH}]];
coords = {Subscript["x", 1] -> {0, 2.2}, Subscript["x", 2] -> {0, 0.8},
   Subscript["h", 1] -> {3, 3}, Subscript["h", 2] -> {3, 1.5}, Subscript["h", 3] -> {3, 0}, "G" -> {6, 1.5}};
Graph[Join[inE, outE], VertexCoordinates -> coords,
 VertexLabels -> Placed["Name", Above], VertexLabelStyle -> Directive[Black, figFont],
 EdgeLabels -> edgeLbl, EdgeLabelStyle -> Directive[figFont, Darker[Red], Background -> White],
 VertexSize -> 0.25, EdgeStyle -> Arrowheads[0.03], ImageSize -> wFull,
 PlotLabel -> Style["Figure 3. One hidden layer, N = 3", figFont]]

Figure 3### Reading Figure 3: what the arrows mean

In everyday terms

  • Information flows in the direction of the arrows, from left to right: inputs, then hidden units, then the output. Nothing ever flows back, which is why this is called a feedforward network. Compare BasicRecurrentLayer, where the state loops back into the layer at the next time step.
  • Each arrow carries a number from the node at its tail to the node at its head, and multiplies it on the way by the weight written on it. A large weight means a strong influence, a negative weight pushes in the opposite direction, and a weight of zero is the same as having no arrow.
  • Each hidden node ${h}{j}$ adds up everything that arrives, adds its own offset ${\theta}{j}$ (not drawn), and passes the total through the S-curve. Its output answers one question: how strongly does this unit switch on for this input?
  • The output node G adds up the hidden units' answers, each scaled by its ${\alpha}_{j}$. There is no S-curve at the output.
  • An analogy: think of a committee. Each hidden unit is a member who looks at the same facts (the inputs) with personal priorities (the weights y), forms a fairly yes-or-no opinion (the S-curve), and the chair (G) combines the opinions, trusting each member to a different degree (the weights α).

In mathematical terms

Figure 3 is a directed acyclic graph. Each vertex is a quantity, and an edge from i to j says that quantity i is an argument of the function computed at j, with the edge label as its coefficient. Written node by node, then in matrix form:

$$ \begin{gathered}{z}{j} = {\sum}{i = 1}^{n} {y}{ji} {x}{i} + {\theta}{j} , \quad {h}{j} = \sigma ( {z}{j} ) , \quad G = {\sum}{j = 1}^{N} {\alpha}{j} {h}{j} \ \iff \quad G ( x ) = {\alpha}^{\top} \sigma ( Y \ x + \theta ) , \quad Y \in {\mathbb{R}}^{N \times n}\end{gathered} \tag{4} $$

  • The arrows of the first layer are the entries of the matrix Y. The arrow from ${x}{i}$ to ${h}{j}$ carries ${y}_{ji}$: row j for the receiving unit, column i for the sending input. The arrows of the second layer are the entries of the vector α. A missing arrow is a zero entry.
  • The offset ${\theta}_{j}$ can be drawn as one more arrow, from a constant input that is always 1. Counting arrows then counts parameters: nN + N + N.
  • The graph has no cycles, so it describes a composition of functions. Eq. (4) is G = L₂ ∘ σ ∘ L₁, with the affine map L₁(x) = Y x + θ, σ applied to each component, and the linear map L₂(h) = α·h. This is Eq. (3) again. Each piece is continuous, so G is continuous (Appendix A).
  • The arrows also show how derivatives flow. Each arrow's label is a local partial derivative (∂${z}{j}$/∂${x}{i}$ = ${y}{ji}$ and ∂G/∂${h}{j}$ = ${\alpha}{j}$), and each node contributes ∂${h}{j}$/∂${z}{j}$ = σ′(${z}{j}$). By the chain rule, the derivative of the output with respect to an input is the sum, over every path from that input to G, of the product of the local derivatives along the path:

$$ \frac{\partial G}{\partial {x}{i}} = {\sum}{j = 1}^{N} \underset{h \to G}{{\alpha}{j}} \ \underset{\text{inside} \ {h}{j}}{{\sigma}^{\prime} ( {z}{j} )} \ \underset{x \to h}{{y}{ji}} \tag{5} $$

Computing Eq. (5) for all inputs at once, by walking the arrows backwards from G, is backpropagation. A numerical check against automatic differentiation. All its variables are local to the Module, so nothing defined elsewhere can interfere:

(*c.7*)
Module[{Yw, th, al, gNet, x0, auto, z, pathSum, u, v},
 SeedRandom[2];
 Yw = RandomReal[{-2, 2}, {3, 2}];   (* weights y_ji *)
 th = RandomReal[{-1, 1}, 3];        (* offsets θ_j *)
 al = RandomReal[{-1, 1}, 3];        (* output weights α_j *)
 gNet[x1_, x2_] := al . LogisticSigmoid[Yw . {x1, x2} + th];
 x0 = {0.3, -0.7};
 auto = D[gNet[u, v], {{u, v}}] /. {u -> x0[[1]], v -> x0[[2]]};
 z = Yw . x0 + th;
 pathSum = Table[
   Sum[al[[j]] LogisticSigmoid[z[[j]]] (1 - LogisticSigmoid[z[[j]]]) Yw[[j, i]], {j, 3}],
   {i, 2}];
 <|"automatic" -> auto, "path sum, Eq. (5)" -> pathSum,
  "difference" -> Max@Abs[auto - pathSum]|>]

Output (Wolfram run): difference ≈ 2 × 10⁻¹⁷

The difference is at machine-precision level (about ${10}^{-17}$).

Definitions and results

Discriminatory. σ is discriminatory if the only finite signed regular Borel measure μ on ${I}_{n}$ that satisfies

$$ {\int}{{I}{n}} \sigma ( {y}^{\top} x + \theta ) \mathrm{d} \mu ( x ) = 0 \quad \text{for all} \quad y \in {\mathbb{R}}^{n} , \theta \in \mathbb{R} \tag{6} $$

is μ = 0. In words, Eq. (6) says that no nonzero measure is invisible to every ridge function σ(y·x + θ).

Theorem 1 (Cybenko 1989). If σ is continuous and discriminatory, the sums G(x) of Eq. (3) are dense in $C ( {I}{n} )$, the space of continuous functions on the cube (Appendix A): for every continuous f and every ε > 0 there is a G with $\lvert G ( x ) - f ( x ) \rvert < \varepsilon$ for all x in ${I}{n}$.

Lemma 1 (Cybenko 1989). Every bounded, measurable sigmoidal function is discriminatory; in particular every continuous one is.

Theorem 2 (Cybenko 1989, the universal approximation theorem). For any continuous sigmoidal σ, the sums G(x) are dense in $C ( {I}_{n} )$. One hidden layer of S-shaped units (Figure 3, with N large enough) can approximate any continuous function on the cube as closely as you like.

Theorem 3 (decision regions). Let σ be continuous and sigmoidal, split ${I}{n}$ into finitely many measurable pieces ${P}{1}$, …, ${P}{k}$, and let f(x) = j on ${P}{j}$. For every ε > 0 there is a sum G of Eq. (3) and a set D ⊂ ${I}_{n}$ of measure at least 1 - ε with |G(x) - f(x)| < ε for all x in D. In words: a one-hidden-layer network can classify correctly everywhere except on a set as small as you like.

Theorem 4 (L¹ approximation). If σ is bounded, measurable and sigmoidal, the step included, the sums G of Eq. (3) are dense in L¹(${I}_{n}$): the area between f and G can be made as small as you like.

Theorems 1–4 and Lemma 1 are numbered as in Cybenko's paper.

How the proof works

Theorem 1 is pure functional analysis and never builds a network:

  1. The set S of all sums G is a linear subspace of C(${I}{n}$). Suppose its closure R is not all of C(${I}{n}$).
  2. Hahn–Banach then gives a nonzero bounded linear functional L on C(${I}_{n}$) that vanishes on R.
  3. The Riesz representation theorem writes L(h) = ∫ h dμ for some measure μ ≠ 0.
  4. Every σ(y·x + θ) lies in R, so its integral against μ is 0. Since σ is discriminatory (Eq. (6)), μ = 0, a contradiction.

Lemma 1 is where the S-shape enters. Scaling the argument, σ(λ(y·x + θ) + φ) with λ → ∞ converges boundedly to a step: 1 on one half-space, 0 on the other (Figure 2). So μ would have to give zero mass to every half-space. That makes every one-dimensional projection of μ zero, hence its Fourier transform vanishes, hence μ = 0.

Note what the theorem does not say. It is an existence result: it gives no formula for the weights and no bound on N. Cybenko's closing remarks name the size of N as the open question, and he suspects that most problems will need "astronomical numbers of terms" because of the curse of dimensionality. Barron (1993) later gave rates for functions with a bounded Fourier moment.

4. Seeing it work in one dimension: staircases of S-shapes

The proof idea can be made constructive in 1D. Steep sigmoids are nearly steps, and a sum of steps is a staircase that follows f. Place a step halfway between consecutive grid points k/N, with height equal to the change of f there:

$$ {G}{N} ( x ) = f ( 0 ) + {\sum}{k = 1}^{N} ( f ( \frac{k}{N} ) - f ( \frac{k - 1}{N} ) ) \sigma ( \lambda ( x - \frac{k - 1 / 2}{N} ) ) \tag{7} $$

Eq. (7) is a special case of Eq. (3), with n = 1, ${y}{k}$ = λ, ${\theta}{k}$ = -λ(k - 1/2)/N, and ${\alpha}_{k}$ equal to the jumps of f, plus a constant.

Example A: a smooth function

Figure 4. The function f (blue) and the staircase ${G}_{10}$ of Eq. (7) built from 10 steep sigmoids (orange).

(*c.8*)
f[x_] := Sin[2 Pi x] + x^2/2;
stair[fun_, n_, λ_][x_] := fun[0] +
   Sum[(fun[k/n] - fun[(k - 1)/n]) LogisticSigmoid[λ (x - (k - 1/2)/n)], {k, 1, n}];
Plot[{f[x], stair[f, 10, 200][x]}, {x, 0, 1},
 PlotLegends -> Placed[LineLegend[{"f", Subscript["G", 10]}, LabelStyle -> figStyle], Below],
 PlotLabel -> "Figure 4. Example A, N = 10", LabelStyle -> figStyle, ImageSize -> wFull]

Figure 4Measure the uniform (sup-norm) error on a fine grid, with steepness λ = 20N:

Table 2. Sup-norm error of ${G}_{N}$ for example A: it halves each time N doubles.

(*c.9*)
supErr[fun_, n_] := Quiet@Max@Table[Abs[fun[x] - stair[fun, n, 20 n][x]], {x, 0., 1., 0.0005}];
table[Prepend[Table[{n, supErr[f, n]}, {n, {5, 10, 20, 40, 80}}], {"N", "max error"}], "Table 2"]

Table 2

N

max error

5

0.442

10

0.22

20

0.11

40

0.0551

80

0.0276

The error goes 0.44, 0.22, 0.11, 0.055, 0.028: it is O(1/N).

Examples B–E: harder functions, and one the theorem does not cover

The same construction applied to four more functions on [0, 1]:

  • B: |x - 1/2|, continuous but with a kink (no derivative) at 1/2.
  • C: √x, continuous, but its slope is infinite at 0.
  • D: exp(-200 (x - 1/2)²), smooth but a narrow bump about 0.1 wide.
  • E: the step UnitStep[x - 0.3], which jumps at 0.3 and is not continuous. Cybenko's theorem says nothing about uniform approximation of such a function.

Figure 5. Examples B–E (blue) and their staircases ${G}_{10}$ (orange).

(*c.10*)
examples = <|
   "B" -> (Abs[# - 1/2] &),
   "C" -> (Sqrt[#] &),
   "D" -> (Exp[-200 (# - 1/2)^2] &),
   "E" -> (UnitStep[# - 0.3] &)|>;
exampleNames = <|"A" -> "sin(2πx) + x²/2", "B" -> "|x - 1/2|", "C" -> "√x",
   "D" -> "narrow bump", "E" -> "step at 0.3"|>;
Labeled[
 Grid[Partition[
   KeyValueMap[
    Plot[{#2[x], stair[#2, 10, 200][x]}, {x, 0, 1}, PlotRange -> All, Exclusions -> None,
      PlotLabel -> #1 <> ": " <> exampleNames[#1], LabelStyle -> figStyle, ImageSize -> wHalf] &,
    examples], 2]],
 Style["Figure 5. Examples B–E, N = 10", figFont], Top]

Figure 5Table 3. Sup-norm error of ${G}_{N}$ for the five examples: A sin(2πx) + x²/2, B |x - 1/2|, C √x, D narrow bump, E step at 0.3.

(*c.11*)
allExamples = Prepend[examples, "A" -> f];
table[Prepend[
  KeyValueMap[Prepend[Table[NumberForm[supErr[#2, n], 2], {n, {5, 10, 20, 40, 80}}], #1] &,
   allExamples],
  {"", "N = 5", "N = 10", "N = 20", "N = 40", "N = 80"}], "Table 3"]

Table 3


N = 5

N = 10

N = 20

N = 40

N = 80

A

0.44

0.22

0.11

0.055

0.028

B

0.1

0.03

0.015

0.0076

0.0038

C

0.24

0.17

0.12

0.086

0.06

D

0.86

0.26

0.19

0.092

0.044

E

0.5

1.0

1.0

1.0

1.0

What a test run showed, and why:

  • A and B: the error halves when N doubles. A kink costs nothing, because the staircase only needs the values of f, not its derivative.
  • C: the error shrinks only by a factor of about 1/√2 per doubling (0.24, 0.17, 0.12, 0.086, 0.060), so it is O(${N}^{-1/2}$). Near 0, √x changes by √(1/N) over an interval of length 1/N.
  • D: the error is large (0.86) until the steps are finer than the bump, then falls like 1/N. A function with fine detail needs many units before the approximation starts to work.
  • E: the error never goes to zero; it stays between 0.5 and 1. A jump cannot be followed uniformly by a continuous function, because every finite sum of sigmoids is continuous. In the weaker sense of area between the curves, Theorem 4, the error does go to zero.

The rule behind all five: the error is of the order of the largest change of f over an interval of length 1/N. That quantity is the modulus of continuity ${\omega}_{f}$(1/N), Eq. (12) in Appendix A. It goes to 0 exactly when f is uniformly continuous, and Table 6 computes it for these examples.

5. Seeing it work in two dimensions: fitting the outer weights

The target is a smooth function of two variables. First, look at it:

Figure 6. The target g(x, y) = sin(πx) cos(πy) on [-1, 1]².

(*c.12*)
g[x_, y_] := Sin[Pi x] Cos[Pi y];
Plot3D[g[x, y], {x, -1, 1}, {y, -1, 1},
 AxesLabel -> {"x", "y", "g"}, ColorFunction -> "TemperatureMap",
 PlotLabel -> "Figure 6. Target g(x, y)", LabelStyle -> figStyle, ImageSize -> 0.8 wFull]

Figure 6In practice the inner weights ${y}{j}$, ${\theta}{j}$ are not placed by hand. A quick experiment: choose them at random, then solve a linear least-squares problem for the outer weights ${\alpha}_{j}$ of Eq. (3). This only finds the best α for random inner weights, so it is weaker than full training, yet the error still falls fast as N grows.

(*c.13*)
SeedRandom[3];
trainPts = RandomReal[{-1, 1}, {2000, 2}];
testPts = RandomReal[{-1, 1}, {2000, 2}];
hidden[pts_, Yin_, th_] := LogisticSigmoid[pts . Transpose[Yin] + ConstantArray[th, Length[pts]]];
fit[nh_] := Module[{Yr = RandomReal[{-6, 6}, {nh, 2}], th = RandomReal[{-6, 6}, nh], a},
   a = LeastSquares[hidden[trainPts, Yr, th], g @@@ trainPts];
   {Yr, th, a}];

Table 4. Maximum error on 2000 test points, for N random hidden units.

(*c.14*)
table[Prepend[
  Table[With[{m = fit[nh]},
    {nh, Max@Abs[hidden[testPts, m[[1]], m[[2]]] . m[[3]] - g @@@ testPts]}],
   {nh, {10, 50, 200}}],
  {"N", "max test error"}], "Table 4"]

Table 4

N

max test error

10

1.03

50

0.091

200

0.00012

In a test run the maximum error went from about 1 with N = 10, to under 0.1 with N = 50, to about ${10}^{-4}$ with N = 200.

Figure 7. Left: the fit by a sum of 100 sigmoids, to compare with Figure 6. Right: the error g - G, on a much smaller vertical scale.

(*c.15*)
With[{m = fit[100]},
 Module[{G100},
  G100[x_?NumericQ, y_?NumericQ] := First[hidden[{{x, y}}, m[[1]], m[[2]]] . m[[3]]];
  Labeled[
   Grid[{{
      Plot3D[G100[x, y], {x, -1, 1}, {y, -1, 1}, ColorFunction -> "TemperatureMap",
       PlotLabel -> "7a. fit, N = 100", LabelStyle -> figStyle, ImageSize -> wHalf],
      Plot3D[g[x, y] - G100[x, y], {x, -1, 1}, {y, -1, 1}, PlotRange -> All,
       PlotLabel -> "7b. error g - G", LabelStyle -> figStyle, ImageSize -> wHalf]}}],
   Style["Figure 7", figFont], Top]]]

Figure 7## 6. The original: Kolmogorov's superposition theorem (1957)

Background: Hilbert's 13th problem

In 1900 Hilbert asked whether the roots of the degree-7 equation x· + a x³ + b x² + c x + 1 = 0, a function of three variables (a, b, c), can be written as a composition of functions of only two variables. He conjectured that they cannot. The continuous version of the question was settled in the opposite direction:

  • 1956: Kolmogorov shows that every continuous function of several variables is a finite superposition of continuous functions of three variables.
  • 1957: Arnold, then 19 and Kolmogorov's student, reduces this to functions of two variables, answering Hilbert's question for continuous functions.
  • 1957: Kolmogorov goes all the way down: functions of one variable plus addition are enough.
  • The algebraic version of Hilbert's problem is still open.

The theorem

Theorem 5 (Kolmogorov 1957). Every continuous (Appendix A) $f : {[ 0 , 1 ]}^{n} \to \mathbb{R}$, n ≥ 2, can be written exactly as

$$ f ( {x}{1} , \ldots , {x}{n} ) = {\sum}{q = 0}^{2 n} {\Phi}{q} ( {\sum}{p = 1}^{n} {\psi}{p , q} ( {x}_{p} ) ) \tag{8} $$

  • The inner functions ${\psi}_{p,q}$ of Eq. (8) are continuous and increasing, and universal: they depend only on n, not on f.
  • The outer functions ${\Phi}_{q}$ are continuous and depend on f.
  • The number of terms is fixed at 2n + 1, and the representation is exact, not approximate.
  • Later refinements by Lorentz and Sprecher reduce the outer functions to a single function, and the inner functions to scaled and shifted copies of one function.

The message: the only genuinely multivariate function you ever need is addition.

Elementary examples of the idea

Multiplication, the simplest nonlinear function of two variables, is a sum of one-variable functions of sums:

(*c.16*)
FullSimplify[((x + y)^2 - (x - y)^2)/4 == x y]
FullSimplify[Exp[Log[x] + Log[y]] == x y, x > 0 && y > 0]

Output (Wolfram run): <span class="editor-theme-code"><span class="editor-theme-code">True</span></span>, <span class="editor-theme-code"><span class="editor-theme-code">True</span></span>

The second identity already has the shape of Eq. (8): inner functions ψ = Log on each variable, add them, then one outer function Φ = Exp.

As a network

Hecht-Nielsen (1987) pointed out that Eq. (8) is a feedforward network: one layer computes the inner functions, the next adds them and applies the outer functions, and the output adds those. For n = 2 there are 2n + 1 = 5 branches (Figure 8).

Figure 8. Eq. (8) as a network for n = 2. The arrows mean something slightly different from those in Figure 3: they carry a value without multiplying it by a weight. Each ${\psi}{pq}$ node applies its own one-variable function to its input, each ${\Phi}{q}$ node adds what arrives and then applies ${\Phi}_{q}$, and f adds the five branches. In Figure 3 every node applies the same σ and all the flexibility sits in the weights on the arrows; here there are no weights and all the flexibility sits in the node functions.

(*c.17*)
lay = {"LayeredDigraphEmbedding", "Orientation" -> Left};
Graph[Flatten@{
   Table["x" <> ToString[p] -> Subscript["ψ", ToString[p] <> ToString[q]], {p, 2}, {q, 0, 4}],
   Table[Subscript["ψ", ToString[p] <> ToString[q]] -> Subscript["Φ", q], {p, 2}, {q, 0, 4}],
   Table[Subscript["Φ", q] -> "f", {q, 0, 4}]},
 GraphLayout -> lay, VertexLabels -> Placed["Name", Above],
 VertexLabelStyle -> Directive[Black, figFont], ImageSize -> wFull,
 PlotLabel -> Style["Figure 8. Kolmogorov network, n = 2", figFont]]

Figure 8The catch is that the inner functions are pathological. They are continuous but extremely rough, like the Weierstrass and Cantor functions of Figure 9 (Appendix A), with fractal-like graphs built from devil's-staircase constructions, and the outer functions inherit that roughness. Results going back to Vitushkin show that, in general, the representation is impossible with smooth inner functions.

7. Connecting the two theorems

Write Cybenko's sum, Eq. (3), with the inner product spelled out, next to Kolmogorov's formula, Eq. (8):

$$ \begin{gathered}G ( x ) = {\sum}{j = 1}^{N} {\alpha}{j} \ \sigma ( {\sum}{p = 1}^{n} {y}{j p} {x}{p} + {\theta}{j} ) \quad \text{(Cybenko)} \ f ( x ) = {\sum}{q = 0}^{2 n} {\Phi}{q} ( {\sum}{p = 1}^{n} {\psi}{p , q} ( {x}_{p} ) ) \quad \text{(Kolmogorov)}\end{gathered} \tag{9} $$

The two sides of Eq. (9) match term by term. Cybenko's network is a Kolmogorov representation in which the inner functions are linear, ${\psi}{p , j} ( {x}{p} ) = {y}{j p} {x}{p}$, and every outer function is a scaled and shifted copy of the same S-shape, ${\Phi}{j} ( s ) = {\alpha}{j} \sigma ( s + {\theta}_{j} )$. In the pictures, Figure 8 becomes Figure 3 when you move the flexibility off the node functions and onto weights on the arrows. Trading Kolmogorov's wild, special-purpose functions for one simple, smooth, fixed one costs two things: the representation is no longer exact, and the number of terms is no longer 2n + 1 but N(ε), which may be enormous.

Table 5. The two theorems compared.


Kolmogorov (1957), Eq. (8)

Cybenko (1989), Eq. (3)

result

exact representation

approximation to any ε

number of terms

2n + 1, fixed

N, grows as ε → 0

inner functions

special, very rough, independent of f

linear: y·x + θ

outer functions

depend on f, rough

one fixed smooth σ, scaled by α

j

arrows in the diagram

carry values, no weights (Figure 8)

carry values times weights (Figure 3)

network reading

two hidden layers (Hecht-Nielsen)

one hidden layer

proof

explicit construction

existence (Hahn–Banach, Riesz)

Cybenko makes the contrast himself. He notes Kolmogorov's exact representation, but points out that it uses different nonlinear functions for different purposes, while he wants one fixed univariate function, and that asking for exact representation is asking too much.

The relevance debate

  • Hecht-Nielsen (1987) proposed Kolmogorov's theorem as a foundation for neural networks (the "Kolmogorov mapping neural network existence theorem").
  • Girosi and Poggio (1989) answered with "Kolmogorov's theorem is irrelevant": the inner functions are far too rough to learn or to generalize from, and the outer ones depend on f in an uncontrolled way.
  • Kůrková (1991, "Kolmogorov's theorem is relevant"; 1992) replied that you do not need the exact theorem: approximating its ingredients with staircases of sigmoids gives universal approximation with two hidden layers, together with estimates of how many hidden units are needed.
  • Schmidt-Hieber (2021) revisited the theorem and argued that it is more naturally read as a deep network, which deep ReLU networks can approximate well.

After Cybenko: the S-shape is sufficient but not necessary

  • Theorem 6 (Hornik, Stinchcombe and White 1989). If ψ is any squashing function (nondecreasing, with limits 0 and 1), one-hidden-layer networks with activation ψ approximate every continuous function on ${\mathbb{R}}^{n}$ uniformly on compact sets, and every Borel measurable function in measure. The proof uses the Stone–Weierstrass theorem.
  • Theorem 7 (Hornik 1991). If the activation is bounded and nonconstant, one-hidden-layer networks are dense in ${L}^{p}$(μ) for every finite measure μ on ${\mathbb{R}}^{n}$ and 1 ≤ p < ∞. If it is also continuous, they approximate every continuous function uniformly on compact sets. The S-shape itself is not needed.
  • Theorem 8 (Leshno, Lin, Pinkus and Schocken 1993). Let the activation σ be locally bounded and piecewise continuous. One-hidden-layer networks approximate every continuous function on ${\mathbb{R}}^{n}$ uniformly on compact sets if and only if σ is not a polynomial. This covers ReLU, which is not S-shaped at all.
  • Barron (1993) gave approximation rates for sigmoidal networks that, for a suitable class of functions, do not grow exponentially with the dimension.
  • Liu et al. (2024), "KAN: Kolmogorov–Arnold Networks", returned to the Kolmogorov form of Figure 8: learnable one-variable functions (splines) on the edges and plain addition at the nodes.

So why S-shapes historically? They are the smallest change from the biological threshold neuron that makes gradient training possible, and they were the setting in which universality was first proved. Their limits at ±∞, Eq. (1), are exactly what turns a sum of them into a staircase that can follow any continuous function.

8. Exercises

  • Repeat the staircase experiment of section 4 (Table 3) with the arctan and algebraic sigmoids. Why do you need a larger λ for the same error?
  • Try a non-monotone function such as σ(t) + sin(t) exp(-t²). Is it sigmoidal in the sense of Eq. (1), and does the staircase still converge?
  • Try the least-squares fit of section 5 (Table 4) with σ(t) = t², a polynomial. The error stops improving. Which of Theorems 1–8 explains this?
  • Write x y z as a superposition in the form of Eq. (8), using one-variable functions and addition, valid for positive x, y, z.
  • Show that one step of BasicRecurrentLayer, tanh(W x + U h + b), is a Cybenko-type sum when you take (x, h) as the input. Draw its graph in the style of Figure 3. Which arrow would you add to make it recurrent?
  • Use Eq. (5) to write ∂G/∂${\alpha}{j}$ and ∂G/∂${y}{ji}$, and check both against D as in c.7.
  • Run the staircase of section 4 on x sin(1/x) (with value 0 at 0) and on the Cantor staircase of Figure 9. Predict the rate of convergence from the modulus of continuity, Eq. (12), before you measure it.

Appendix A. Continuous functions

Both theorems are about continuous functions: Cybenko's approximates every function in C(${I}_{n}$), and Kolmogorov's represents every continuous function exactly. This appendix collects what continuity means, how it differs from uniform continuity, and some examples and counterexamples, several of which appear in the main text.

A.1 Definition

In everyday terms: f is continuous at a point a if a small change in the input near a produces only a small change in the output. On an interval, the graph of a continuous function can be drawn without lifting the pen. In mathematical terms, f: D → ℝ is continuous at a ∈ D if

$$ \begin{gathered}\forall \varepsilon > 0 \ \exists \delta > 0 \ \forall x \in D : \ \quad \lvert x - a \rvert < \delta \quad \implies \quad \lvert f ( x ) - f ( a ) \rvert < \varepsilon\end{gathered} \tag{10} $$

  • f is continuous on D if Eq. (10) holds at every point of D.
  • Equivalent forms: ${\lim }{x\to a}$ f(x) = f(a); or, for every sequence ${x}{k}$ → a, f(${x}_{k}$) → f(a).
  • For functions of several variables, replace |x - a| by the Euclidean distance ‖x - a‖. This is the sense used for C(${I}_{n}$).
  • Sums, products, quotients (where defined) and compositions of continuous functions are continuous. That is why every network in Eq. (3), (4) and (7) with a continuous σ is a continuous function.

A.2 Uniform continuity and the modulus of continuity

In Eq. (10), δ may depend on the point a. If one δ works for all points at once, f is uniformly continuous:

$$ \begin{gathered}\forall \varepsilon > 0 \ \exists \delta > 0 \ \forall x , {x}^{\prime} \in D : \ \quad \lvert x - {x}^{\prime} \rvert < \delta \quad \implies \quad \lvert f ( x ) - f ( {x}^{\prime} ) \rvert < \varepsilon\end{gathered} \tag{11} $$

The modulus of continuity measures the largest change of f over distances up to δ:

$$ \begin{gathered}{\omega}_{f} ( \delta ) = \sup {\lvert x - {x}^{\prime} \rvert \le \delta} \lvert f ( x ) - f ( {x}^{\prime} ) \rvert \ f \ \text{uniformly continuous} \quad \iff \quad {\omega}{f} ( \delta ) \to 0 \ \text{as} \ \delta \to 0\end{gathered} \tag{12} $$

  • Theorem 9 (Heine–Cantor). A continuous function on a closed, bounded set, such as [0, 1] or the cube ${I}_{n}$, is uniformly continuous.
  • Theorem 10 (extreme value theorem). A continuous function on a closed, bounded set attains its maximum and minimum. So the sup norm ‖f‖ = max |f| is finite, and C(${I}_{n}$) with this norm is the space in Theorems 1 and 2.
  • Why it matters here: the staircase error in section 4 is of the order of ${\omega}_{f}$(1/N). It goes to 0 for every continuous f on [0, 1] because of Theorem 9, and it does not go to 0 for the jump in example E.

Table 6. The modulus of continuity ${\omega}_{f}$(δ) of the section 4 examples, computed on a grid. Compare its decay with the error columns of Table 3. Rows A–E as in Table 3.

(*c.18*)
omega[fun_, δ_] := Quiet@Module[{xs = Range[0., 1. - δ, δ/50]},
   Max@Table[Max@Abs[fun /@ (x + Range[0., δ, δ/10]) - fun[x]], {x, xs}]];
table[Prepend[
  KeyValueMap[Prepend[Table[NumberForm[omega[#2, 1./n], 2], {n, {5, 10, 20, 40, 80}}], #1] &,
   allExamples],
  {"", "δ = 1/5", "δ = 1/10", "δ = 1/20", "δ = 1/40", "δ = 1/80"}], "Table 6"]

Table 6


δ = 1/5

δ = 1/10

δ = 1/20

δ = 1/40

δ = 1/80

A

1.1

0.68

0.36

0.18

0.091

B

0.2

0.1

0.05

0.025

0.013

C

0.45

0.32

0.22

0.16

0.11

D

1.0

0.89

0.56

0.3

0.15

E

1

1

1

1

1

For √x, ω(δ) = √δ, which explains the O(${N}^{-1/2}$) rate of example C. For the step, ω(δ) = 1 for every δ > 0, which explains why example E never converges. (c.18 uses allExamples from c.11, so run section 4 first.)

A.3 Examples of continuous functions

  • Polynomials, exp, sin, cos, and all the sigmoids of Figure 1 except the step.
  • |x|: continuous everywhere, not differentiable at 0. Continuity is much weaker than smoothness.
  • √x on [0, 1]: continuous, and uniformly so, but not Lipschitz, because its slope is unbounded near 0.
  • x sin(1/x), with value 0 at 0: continuous at 0, because |x sin(1/x)| ≤ |x|, but it oscillates infinitely often near 0 and is not differentiable there.
  • The Weierstrass function W(x) = ∑ ${a}^{k}$ cos(${b}^{k}$ π x), with 0 < a < 1, b an odd integer, and a b > 1 + 3π/2: continuous everywhere and differentiable nowhere. Figure 9 plots a partial sum.
  • The Cantor staircase (devil's staircase): continuous and increasing from 0 to 1, yet flat on intervals of total length 1. Kolmogorov's inner functions are built in this spirit.

Wolfram Language can test continuity with FunctionContinuous, and limits show what happens at the critical point:

(*c.19*)
<|
 "x sin(1/x) away from 0" -> FunctionContinuous[{x Sin[1/x], x != 0}, x],
 "√x on [0,1]" -> FunctionContinuous[{Sqrt[x], 0 <= x <= 1}, x],
 "|x|" -> FunctionContinuous[Abs[x], x],
 "1/x on (0,1]" -> FunctionContinuous[{1/x, 0 < x <= 1}, x],
 "step on ℝ" -> FunctionContinuous[UnitStep[x], x]|>

Output (Wolfram run): x sin(1/x) away from 0 → <span class="editor-theme-code"><span class="editor-theme-code">True</span></span>; √x on [0,1] → <span class="editor-theme-code"><span class="editor-theme-code">True</span></span>; |x| → <span class="editor-theme-code"><span class="editor-theme-code">True</span></span>; 1/x on (0,1] → <span class="editor-theme-code"><span class="editor-theme-code">True</span></span>; step on ℝ → <span class="editor-theme-code"><span class="editor-theme-code">False</span></span>

(*c.20*)
<|
 "x sin(1/x), x → 0" -> Limit[x Sin[1/x], x -> 0],
 "sin(1/x), x → 0" -> Limit[Sin[1/x], x -> 0],
 "step, from the left" -> Limit[UnitStep[x], x -> 0, Direction -> "FromBelow"],
 "step, from the right" -> Limit[UnitStep[x], x -> 0, Direction -> "FromAbove"]|>

Output (Wolfram run): x sin(1/x) → <span class="editor-theme-code"><span class="editor-theme-code">0</span></span>; sin(1/x) → <span class="editor-theme-code"><span class="editor-theme-code">Indeterminate</span></span>; step from the left → <span class="editor-theme-code"><span class="editor-theme-code">0</span></span>; from the right → <span class="editor-theme-code"><span class="editor-theme-code">1</span></span>

The limit of x sin(1/x) is 0, which matches its value, so it is continuous at 0. sin(1/x) has no limit (Indeterminate), and the step has different one-sided limits, 0 and 1, so neither can be made continuous at 0.

Figure 9. Continuous functions. 9a and 9b are tame; 9c, 9d and 9e are continuous but strange.

(*c.21*)
weierstrass[x_, m_ : 6] := Sum[0.5^k Cos[13^k Pi x], {k, 0, m}];  (* partial sum, a = 1/2, b = 13 *)
panel[opts___] := Sequence[opts, LabelStyle -> figStyle, ImageSize -> wHalf];
Labeled[
 Grid[{
   {Plot[Abs[x], {x, -1, 1}, Evaluate@panel[PlotLabel -> "9a. |x|"]],
    Plot[Sqrt[x], {x, 0, 1}, Evaluate@panel[PlotLabel -> "9b. √x"]]},
   {Plot[x Sin[1/x], {x, -0.5, 0.5}, Evaluate@panel[PlotPoints -> 800, PlotLabel -> "9c. x sin(1/x)"]],
    Plot[weierstrass[x], {x, 0, 1}, Evaluate@panel[PlotPoints -> 3000, MaxRecursion -> 0,
      PlotLabel -> "9d. Weierstrass"]]},
   {Plot[CantorStaircase[x], {x, 0, 1}, Evaluate@panel[PlotLabel -> "9e. Cantor staircase"]], ""}}],
 Style["Figure 9", figFont], Top]

Figure 9### A.4 Counterexamples

  • The Heaviside step: a jump at 0. Its left limit is 0 and its right limit is 1, so no value at 0 makes it continuous. Example E of section 4 shows the consequence for approximation.
  • sin(1/x), with any value at 0: it oscillates between -1 and 1 infinitely often near 0, so it has no limit there.
  • The Dirichlet function, 1 on the rationals and 0 on the irrationals: discontinuous at every point. It cannot be meaningfully plotted.
  • Thomae's function, 1/q at x = p/q in lowest terms and 0 at irrationals: discontinuous at every rational and continuous at every irrational.
  • 1/x on (0, 1]: continuous at every point of its domain, but not uniformly continuous and not bounded. The domain is not closed, so Theorem 9 does not apply. This is why both theorems work on the closed cube ${[ 0 , 1 ]}^{n}$.
  • x² on all of ℝ: continuous but not uniformly continuous, because the domain is unbounded.

Figure 10. 10a–10c are not continuous. 10d is continuous but not uniformly continuous.

(*c.22*)
Labeled[
 Grid[{
   {Plot[UnitStep[x], {x, -1, 1}, Exclusions -> {0}, ExclusionsStyle -> Dashed,
     Epilog -> {PointSize[0.04], Point[{0, 1}], EdgeForm[Black], White, Disk[{0, 0}, Offset[4]]},
     Evaluate@panel[PlotLabel -> "10a. step: jump"]],
    Plot[Sin[1/x], {x, -0.5, 0.5}, Evaluate@panel[PlotPoints -> 800, PlotLabel -> "10b. sin(1/x)"]]},
   {ListPlot[DeleteDuplicates@Flatten[Table[{p/q, 1/q}, {q, 1, 60}, {p, 0, q}], 1],
     Evaluate@panel[PlotRange -> {0, 1.05}, PlotStyle -> PointSize[Tiny], PlotLabel -> "10c. Thomae"]],
    Plot[1/x, {x, 0.01, 1}, Evaluate@panel[PlotRange -> {0, 40}, PlotLabel -> "10d. 1/x on (0,1]"]]}}],
 Style["Figure 10", figFont], Top]

Figure 10Table 7. The examples and counterexamples at a glance.

function

continuous?

uniformly continuous?

differentiable?

|x - 1/2| on \\\[0,1\\\]

yes

yes

except at 1/2

√x on \\\[0,1\\\]

yes

yes

except at 0

x sin(1/x), 0 at 0

yes

yes on \\\[-1,1\\\]

except at 0

Weierstrass W

yes

yes

nowhere

Cantor staircase

yes

yes

slope 0 almost everywhere

step at 0.3

no (jump)

no

except at 0.3

sin(1/x)

no (at 0)

no

except at 0

1/x on (0,1\\\]

yes

no

yes

Dirichlet

nowhere

no

nowhere

Thomae

at irrationals only

no

nowhere

References

References for section 0 are listed in 0.8.

Sections 1–7

  • G. Cybenko, Approximation by superpositions of a sigmoidal function, Math. Control Signals Systems 2 (1989) 303–314. doi:10.1007/BF02551274
  • A. N. Kolmogorov, On the representation of continuous functions of many variables by superposition of continuous functions of one variable and addition, Dokl. Akad. Nauk SSSR 114 (1957) 953–956.
  • V. I. Arnold, On functions of three variables, Dokl. Akad. Nauk SSSR 114 (1957) 679–681.
  • R. Hecht-Nielsen, Kolmogorov's mapping neural network existence theorem, Proc. IEEE First Int. Conf. on Neural Networks, III (1987) 11–14.
  • F. Girosi, T. Poggio, Representation properties of networks: Kolmogorov's theorem is irrelevant, Neural Computation 1 (1989) 465–469. doi:10.1162/neco.1989.1.4.465
  • V. Kůrková, Kolmogorov's theorem is relevant, Neural Computation 3 (1991) 617–622. doi:10.1162/neco.1991.3.4.617
  • V. Kůrková, Kolmogorov's theorem and multilayer neural networks, Neural Networks 5 (1992) 501–506. doi:10.1016/0893-6080(92)90012-8
  • K. Hornik, M. Stinchcombe, H. White, Multilayer feedforward networks are universal approximators, Neural Networks 2 (1989) 359–366. doi:10.1016/0893-6080(89)90020-8
  • K. Hornik, Approximation capabilities of multilayer feedforward networks, Neural Networks 4 (1991) 251–257.
  • M. Leshno, V. Ya. Lin, A. Pinkus, S. Schocken, Multilayer feedforward networks with a nonpolynomial activation function can approximate any function, Neural Networks 6 (1993) 861–867. doi:10.1016/S0893-6080(05)80131-5
  • A. R. Barron, Universal approximation bounds for superpositions of a sigmoidal function, IEEE Trans. Information Theory 39 (1993) 930–945.
  • J. Schmidt-Hieber, The Kolmogorov–Arnold representation theorem revisited, Neural Networks 137 (2021) 119–126.
  • Z. Liu et al., KAN: Kolmogorov–Arnold Networks, arXiv:2404.19756 (2024).

© Computational Classnotes · CC BY-NC-SA 4.0