Functional link and radial basis function networks
Functional Link Networks (FLN) expand inputs with fixed nonlinear basis functions and use a linear output layer; Radial Basis Function (RBF) networks use localized radial basis units in a single hidden layer and a linear output — both reduce to linear-weight training (least squares) once bases/centr
Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.
Why it matters
Functional Link and Radial Basis Function networks are simple, fast neural models used by engineers for function approximation, system identification and fast regression where an interpretable linear output is enough. They often appear where you need a small, trainable model that can be fit by linear algebra (pseudoinverse or least-squares) rather than iterative deep learning.
Key ideas
Start from first principles and simple definitions.
Function approximation problem: Given input vectors x ∈ R^n and target scalars (or vectors) y, find a model f(x) that approximates the mapping x ↦ y on a data set. We usually assume samples (x_i, y_i) are i = 1..N.
Basis function: A basis function is a fixed nonlinear function φ(·) that maps inputs to a scalar (or vector). We write φ_j(x) for the j-th basis function applied to x. Basis functions are chosen, not learned (in classical FLN and RBFs, only linear output weights are learned).
Functional Link Network (FLN): An FLN is a feedforward model that first expands the original input x into an augmented vector z(x) = [b_0(x), b_1(x), ..., b_M(x)] of fixed nonlinear functions (examples: polynomial terms, trigonometric terms). The network output is a linear combination of these expanded terms: ŷ(x) = w^T z(x) = Σ_{j=0}^M w_j b_j(x). FLN is essentially polynomial/trigonometric regression implemented as a single-layer linear model after fixed nonlinear mapping of inputs.
Assumptions: basis functions are chosen to provide the needed nonlinearity; the training reduces to solving a linear system for w.
Radial Basis Function (RBF) network: An RBF network has a single hidden layer of M units, each computing a radial basis function φ_j that depends only on the distance from the input to a center c_j: φ_j(x) = φ(‖x − c_j‖). The usual output is linear in these hidden outputs: ŷ(x) = Σ_{j=1}^M w_j φ_j(x) + w_0 (bias).
A common choice: the Gaussian radial basis φ(r) = exp(−r^2 / (2 σ^2)), where r = ‖x − c_j‖ and σ is the spread (width). The centers c_j and spreads σ (or per-unit σ_j) may be chosen by heuristics (k-means, data subset) or tuned; training the linear weights w is done by least squares.
Design (feature) matrix: Given N training inputs x_i and M basis functions, build the N×(M+1) matrix Φ with Φ_{i0} = 1 (bias) and Φ_{ij} = φ_j(x_i) for j ≥ 1. Then the vector of network outputs on training set is Φ w. Training is linear regression.
Least squares training (normal equations): Choose w to minimize the sum of squared errors J(w) = ‖Φ w − y‖^2. Under the assumption that Φ^T Φ is invertible (Φ has full column rank), the minimiser is the normal-equation solution ŵ = (Φ^T Φ)^{-1} Φ^T y. Equivalently, ŵ = Φ^+ y where Φ^+ is the Moore–Penrose pseudoinverse (works even when Φ is not full rank).
Derivation (universally asked): minimize J(w) = (Φ w − y)^T (Φ w − y).
- Differentiate w.r.t w: ∇_w J = 2 Φ^T (Φ w − y).
- Set to zero: Φ^T Φ w = Φ^T y.
- Solve for w assuming invertibility: w = (Φ^T Φ)^{-1} Φ^T y. For multi-output problems with targets stacked as a matrix Y ∈ R^{N×K}, the solution is W = (Φ^T Φ)^{-1} Φ^T Y = Φ^+ Y (column-wise least squares).
Architectural diagrams to draw (exam-style):
- FLN: Draw input node(s) -> arrow to a horizontal layer of augmented feature nodes labelled with basis functions (e.g., 1, x, x^2, sin x). From each feature node draw arrow to an output summation node; label outgoing weights w_j and final sum ŷ.
- RBF: Draw input node(s) -> arrows to M hidden radial units labelled with their centre c_j and function φ_j(‖x−c_j‖); from each hidden unit draw weighted arrow (w_j) to a single linear output node that sums to produce ŷ.
Approximation property (statement): RBF networks with enough centers and suitable radial functions can approximate any continuous function on a compact domain to arbitrary accuracy (universal approximation). This requires technical conditions on φ (e.g., Gaussian, or more generally, radial functions whose Fourier transform is nonzero almost everywhere / strictly positive-definite kernels). This is usually stated as a theorem in courses; check exact assumptions for rigorous proof.
Formulas
ŷ(x) = Σ_{j=1}^M w_j φ_j(x) + w_0 — ŷ(x) is the predicted scalar output (same units as the target y). φ_j(x) may carry units depending on the chosen basis (e.g., polynomial terms have units of x^j, Gaussian RBFs are unitless), and the weights w_j have whatever units are needed so that Σ w_j φ_j has the units of y. Applies to both FLN (replace φ_j by b_j) and RBF.
Φ_{i0} = 1; Φ_{ij} = φ_j(x_i) for i = 1..N, j = 1..M — Φ is the design matrix mapping training inputs to basis outputs; its entries inherit units from the chosen basis functions.
J(w) = ‖Φ w − y‖^2 = (Φ w − y)^T (Φ w − y) — objective to minimize; y is an N×1 target vector.
∇_w J = 2 Φ^T (Φ w − y) — gradient of J with respect to w.
If Φ^T Φ is invertible, ŵ = (Φ^T Φ)^{-1} Φ^T y — normal-equations solution; each component of ŵ has units consistent with y divided by the corresponding basis output.
ŵ = Φ^+ y — Moore–Penrose pseudoinverse solution (works even when Φ is not full rank); Φ^+ is (M+1)×N.
Gaussian φ(r) = exp(− r^2 / (2 σ^2) ) — r = ‖x − c_j‖ (same units as x). σ is the spread (same units as x).
Worked examples
Example 1 — FLN (polynomial expansion) simple numerical exam question Question: Fit y = f(x) for samples (x,y) = (0,0), (1,1), (2,4) using an FLN with basis [1, x, x^2] (polynomial degree 2). Compute weights w = [w0, w1, w2]. Solution steps:
- Construct Φ: For x=0 -> [1, 0, 0] For x=1 -> [1, 1, 1] For x=2 -> [1, 2, 4] So Φ = [[1,0,0],[1,1,1],[1,2,4]].
- Targets y = [0,1,4]^T.
- Solve Φ w = y. From first row w0 = 0. Substitute into second: w1 + w2 = 1. Third: 2 w1 + 4 w2 = 4.
- From second w1 = 1 − w2. Substitute: 2(1 − w2) + 4 w2 = 4 → 2 − 2 w2 + 4 w2 = 4 → 2 + 2 w2 = 4 → w2 = 1.
- Then w1 = 0, w0 = 0. Final answer: w = [0, 0, 1]. The model is ŷ = x^2 which matches data exactly. Bold final: w = [0, 0, 1].
Example 2 — RBF network: derive training weights (model-answer long question) Question: Show how to compute linear weights for an RBF network given centres c_j and training pairs (x_i, y_i). Give the normal-equation derivation and explain when solution exists. Model answer (exam style): Construct Φ with Φ_{ij} = φ_j(x_i) (and Φ_{i0}=1 if bias included). Minimise J(w) = ‖Φ w − y‖^2. Differentiate: ∇_w J = 2 Φ^T (Φ w − y) = 0 ⇒ Φ^T Φ w = Φ^T y. If Φ^T Φ is invertible (columns independent), unique solution ŵ = (Φ^T Φ)^{-1} Φ^T y. If not invertible, use Moore–Penrose pseudoinverse ŵ = Φ^+ y which gives the minimum-norm solution. Discuss choosing centres: common choices are (a) set c_j = subset of training x_i (easy), (b) cluster centers from k-means, (c) choose centres by optimisation (nonlinear). Choosing σ: use heuristic σ = d_max / sqrt(2M) where d_max is maximum distance between centres (verify for your course). End with comment on overfitting if M ≈ N and small σ; regularise with ridge (Φ^T Φ + λ I)^{-1}Φ^T y if needed.
Example 3 — Short conceptual exam answer Question: Draw and label an RBF network and explain difference from an MLP. Model answer: Describe drawing (input nodes → hidden radial units labelled by centres and φ(·) → single linear output node) and state differences: RBF uses local radial units and linear output with training solvable by linear algebra; MLP uses learned weights in multiple layers, non-linear output units and requires iterative gradient-based training (backprop). Mention FLN is like MLP with fixed hidden nonlinearities and linear output.
Common mistakes
- Attempting to invert Φ directly; you must invert Φ^T Φ (square) or use pseudoinverse. Inverting Φ (N×(M+1)) is invalid unless N = M+1 and Φ is square.
- Choosing extremely small σ for Gaussian RBFs without regularisation: design matrix becomes nearly diagonal but unstable for interpolation noise; choosing extremely large σ makes basis functions nearly identical and Φ ill-conditioned.
- Claiming universal approximation without stating function-space/compact-domain assumptions.
For your exam
Kinds of questions you'll see:
- Definitions: define FLN, RBF, basis function, centre, spread, design matrix.
- Short notes: compare FLN, RBF and MLP; explain when RBF is preferred.
- Derivations: derive normal equations for linear weights, derive gradient and set to zero, show pseudoinverse result.
- Numericals: expand inputs with polynomial basis and solve small linear systems (like Example 1); compute small design matrices using Gaussian φ and solve for w (possibly approximate numerically).
- Diagrams: draw FLN and RBF architectures and label centres, φ_j and weights.
What a full-marks answer includes:
- Clear definitions (bold terms), correct construction of Φ, correct derivation of normal equations with conditions for invertibility, explanation of centre and σ selection strategies, a labelled diagram, and mention of regularisation if appropriate.
Quick check
- In an RBF network with M hidden units and bias, how many columns does Φ have?
- Write the Gaussian radial basis φ(r) and state what σ controls.
- What is the normal-equation solution for linear weights ŵ (name the matrix you invert)? Answers: 1) M + 1 columns (including bias). 2) φ(r) = exp(− r^2 / (2 σ^2)); σ controls the spread (width) of the Gaussian. 3) ŵ = (Φ^T Φ)^{-1} Φ^T y (invert Φ^T Φ, assuming it is invertible).
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?