All interactives
Deep Learning · Lecture 6 Symmetry Breaking Lab

WIDTH ON PAPER ≠ WIDTH IN USE

Four neurons can behave like one.

Train the same 2 → 4 ReLU → 1 network on balanced XOR. Change only how its four hidden neurons begin, then watch their decision hinges and measured feature rank.

IDENTICAL INITIALIZATION

Can four overlaid hinges solve XOR?

100 fixed points · 25 per quadrant
Binary cross-entropymean over 100 points
Accuracybalanced XOR
Max neuron separationmax ‖(w,b)i − (w,b)j
Hidden feature rankrank of the 100 × 4 activation matrix

MODEL OUTPUT

Decision surface

Your browser does not support the decision-surface canvas.
class 0 class 1 training point

Background colour is the model probability. The outlined points are the balanced training set.

HIDDEN LAYER

Four ReLU hinges and active directions

Your browser does not support the hidden-hinge canvas.

Each line is wjTx + bj = 0. Its arrow points toward the half-plane where that ReLU is active.

WHAT THE METRICS MEAN

The problem is lost representational capacity.

A

Identical

All four activations are the same column. Rank stays 1 and separation stays 0, so the output is only a scaled copy of one ReLU feature. On this XOR set it typically settles near 75%: one quadrant remains wrong.

B

Slightly perturbed

The equality constraint is gone. The coloured hinges can separate and the feature rank rises above 1. Breaking symmetry is necessary; it does not guarantee that this particular start will find the best XOR solution.

C

Independent

Distinct starting directions let gradient descent combine multiple half-planes. With the fixed seed here, all four alternating XOR regions are learned and the measured accuracy reaches 100%.