Plasticity & Networks · Lesson 2 of 3 · ~6 min

The network is a matrix

Predict

A layer computes $y = \text{step}(Wx)$: three inputs, three outputs, weight matrix $W$. The Swap preset exchanges rows 1 and 3. What does $(1,0,0)$ become?

Load Swap, set the toggles to $(1,0,0)$, and read the outputs.
Try
Try itLoad Swap and set $(1,0,0)$. Then load Blend, switch on one input, then a second, watching the written-out sums.
Notice

Swap sends $(1,0,0)$ to $(0,0,1)$: row 3 has its $1.0$ in column 1. Under Blend, one input sends $0.5$ to two outputs, below $\theta = 1$: silence. Two inputs sharing an output reach $1.0$, and it fires.

Explain

The circuit is one equation. Entry $w_{ij}$ is the synapse from input $j$ to output $i$. Each output takes the dot product of its row with $x$:

$$y_i = \text{step}\Big(\sum_j w_{ij}\,x_j\Big), \qquad \text{step}(s) = \begin{cases}1 & s \ge 1\\[2pt] 0 & s < 1\end{cases}$$
PREREQUISITEThe matrices that moved space in the Matrices chapter now route signals between neurons.

A wiring diagram and a weight matrix are the same object: rewiring means editing entries. The step turns graded sums into all-or-none decisions. That makes Blend a coincidence detector, which no linear map can be.

About this model

What it represents: a single feedforward layer of three threshold units — synapses frozen into a fixed matrix $W$, activity as a 0/1 vector, one clean multiply-then-threshold per input pattern.

What it leaves out: real synapses are not an instantaneous matrix multiply. Membranes integrate inputs over tens of milliseconds and keep history, so a real layer has dynamics where this one has a single frozen snapshot. Biology also constrains the signs: by Dale's law a neuron's outgoing synapses are all excitatory or all inhibitory — one sign per column of $W$ — while a mathematical matrix mixes signs freely. Also missing: learning (here $W$ never changes), noise, and spikes themselves.

Source: Dayan and Abbott, Theoretical Neuroscience (MIT Press), Ch. 7 — network models built from firing rates, including the dynamics and sign constraints this snapshot omits.

Apply
Checkpoint — prove it to yourself

In $y = \text{step}(Wx)$, which entry wires input 3 to output 1?

Blend is loaded ($0.5$ per wire, two wires per output) and you switch on only $x_1$. What is $y$?

Transfer: Swap keeps every pattern intact. Under Blend, $(1,0,0)$, $(0,1,0)$, $(0,0,1)$ and $(0,0,0)$ all give $(0,0,0)$. What did the threshold do?

Key idea

A layer of threshold neurons is a matrix plus a step. The matrix routes signals; the step decides. Choosing entries chooses the computation.

← All lessons