SLT Lecture 1B
Matthew Farrugia-Roberts
3 November 2026
Collect all weights and biases into a vector w \in \R^d. Each vector specifies one configuration of the network.
The parameter space is some subset \mathcal W \subseteq \R^d.
Terminological notes:
A network of neurons with fixed weights and biases (parameter w) defines a function f_w : \R^m \to \R^{m'}. Consider a function space \mathcal F that contains all functions this architecture can represent (plus maybe some others for mathematical convenience).
The parameter–function map is the map from these parameters to their functions: \Phi:\mathcal W\longrightarrow\mathcal F,\qquad w\longmapsto f_w.
The parameter–function map is the formal object representing a particular neural network architecture.
Simplest example network: one layer, m inputs and outputs, no activation function, no biases.
A parameter w\in\mathcal W=\R^{m^2} encodes a matrix W\in\R^{m\times m}: f_W(x)=Wx.
For m=1, this is just f_w(x)=wx: the parameter is the slope.
Simplest example deep network: two linear layers, with m inputs and outputs and h hidden neurons, no activation functions, and no biases.
A parameter is w=(A,B)\in\mathcal W=\R^{h\times m}\times\R^{m\times h}, where A\in\R^{h\times m} and B\in\R^{m\times h}. There are 2mh scalar parameters.
The corresponding function is f_w(x)=BAx,\qquad x\in\R^m.
For m=h=1, write w=(a,b)\in\R^2. Then f_w(x)=bax: the product determines the slope.
In deep learning, we find a parameter by local search in the parameter space, guided by a loss function measuring how well the parameter’s function fits our data.
Given a data point (x, y) \in \R^m \times \R^{m'}, a per-example loss measures prediction error. For example, squared error: L_{x,y}(w) = \|f_w(x)-y\|^2.
Given a data distribution q and n independent samples from it:
Empirical loss: how well network fits training examples. L_n(w) = \frac1n\sum_{i=1}^n L_{x^{(i)},y^{(i)}}(w).
Population loss: how well network fits on average. L(w) = \E_{(x,y)\sim q}[L_{x,y}(w)].
For v \in \R^d, v\ne0, define the normalised directional derivative D_v\Phi(w)(x)=\frac1{\|v\|} \sum_{i=1}^d v_i\frac{\partial f_w(x)}{\partial w_i}.
The parameter–function map is degenerate at w if there is a nonzero direction v\in\R^d such that D_v\Phi(w)=0.
The directional derivative is a function. Moving the parameter in this direction does not change the neural network’s function (to first order).
For the shallow linear network f_W(x)=Wx, the parameter–function map is nowhere degenerate, for any input/output dimension m.
For the two-layer linear network f_{A,B}(x)=BAx, the parameter–function map is everywhere degenerate, for any m,h\geq1.
Sources of degenerate directions:
Global symmetry: a smooth family of transformations preserves the function at every parameter.
Localised symmetry: a smooth family preserves the function only on a subset of parameter space.
First-order degeneracy only: D_v\Phi(w)=0, but no constant-function curve through w has tangent v.
Single-hidden-unit DLN f_{a,b}(x) = b a x:
Let w_\ast be a local minimum of a twice-differentiable loss L. Its Hessian H(w_\ast)\in\R^{d\times d} is H(w_\ast)_ {jk}=\frac{\partial^2L}{\partial w_j\partial w_k}(w_\ast).
At a minimum, H(w_\ast) is positive semidefinite.
Intuitively: A non-degenerate minimum can be locally approximated by some quadratic bowl. A degenerate minimum cannot.
Consider f_W(x)=Wx, with population loss L(W)=\E_{(x,y)\sim q}\|Wx-y\|^2.
Assume finite second moments and that \E_q[xx^\top] is positive definite.
Any minimum W_\ast is non-degenerate.
For f_{A,B}(x)=BAx with squared-error loss and finite second moments, every local minimum is degenerate.
Take scalar inputs and outputs, h hidden units, and biases: f_w(x)=d+\sum_{i=1}^h a_i\tanh(b_i x+c_i).
The parameter space is \mathcal W=\R^{3h+1}, with w=(a_1,b_1,c_1,\ldots,a_h,b_h,c_h,d).
f_w(x)=d+\sum_{i=1}^h a_i\tanh(b_i x+c_i).
This network has no global symmetries, but several localised symmetries. Can you find them?