Degeneracies in Deep Learning

SLT Lecture 1B

Matthew Farrugia-Roberts

3 November 2026

Neural networks

Networks of neurons

Example 1: Shallow linear network

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.

Example 2: Deep linear network

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.

Loss landscape

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)].

Let’s train a neural network

Degenerate networks

First definition of degeneracy

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).

Shallow linear network architecture is nowhere degenerate

For the shallow linear network f_W(x)=Wx, the parameter–function map is nowhere degenerate, for any input/output dimension m.

Deep linear network architecture is everywhere degenerate

For the two-layer linear network f_{A,B}(x)=BAx, the parameter–function map is everywhere degenerate, for any m,h\geq1.

Degeneracy and symmetries

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:

Degenerate learning problems

Second definition of degeneracy

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.

  • Non-degenerate minimum: H(w_\ast) is positive definite.
  • Degenerate minimum: H(w_\ast) is singular; some nonzero v satisfies H(w_\ast)v=0.

Intuitively: A non-degenerate minimum can be locally approximated by some quadratic bowl. A degenerate minimum cannot.

Shallow linear networks are usually not degenerate

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.

Deep linear networks are always degenerate

For f_{A,B}(x)=BAx with squared-error loss and finite second moments, every local minimum is degenerate.

More examples of loss degeneracy

fin

Bonus example: Simple hyperbolic tangent network

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).

  • b_i,c_i: incoming weight and bias of hidden unit i.
  • a_i: outgoing weight of hidden unit i.
  • d: output bias.

Non-linear network degeneracies

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?

  1.  

  2.  

  3.