6.5.14 · D4Advanced & Emerging Architectures

Exercises — Neuromorphic computing

2,157 words10 min readBack to topic

Before symbols, a one-line dictionary so nothing is used unearned:

  • = membrane voltage (charge piled on the membrane capacitor, in volts).
  • = threshold the voltage must reach to emit a spike.
  • = the leak resistance and membrane capacitance (see RC circuits).
  • = time constant: how many seconds the membrane takes to "mostly" charge.
  • = input current flowing into the neuron.
  • = pre-to-post spike-time gap.

Level 1 — Recognition

L1·Q1

Match each neuromorphic property to the trick it copies from the brain: (a) synapse stores weight and multiplies, (b) neurons stay silent until they fire, (c) neurons run at once. Name each trick.

Recall Solution

(a) = co-located memory + compute (this is In-memory computing, the opposite of the von Neumann split). (b) = event-driven / sparse activity. (c) = massive parallelism. These are the three reasons the brain runs on ~20 W.

L1·Q2

In the table below, fill the neuromorphic column: how is data encoded, and how is activity triggered?

Recall Solution

Data is encoded in the timing / rate of spikes (a temporal code), not as a dense float in a register. Activity is event-driven: a unit only does work when a spike arrives — no clock tick is spent on idle units. See Spiking Neural Networks (SNN).

L1·Q3

Name the neuron model the parent note derives, and list its two ingredients: the continuous part and the discrete part.

Recall Solution

The Leaky Integrate-and-Fire (LIF) neuron.

  • Continuous part: the RC differential equation (integrate + leak).
  • Discrete part: the fire-and-reset rule "if , emit a spike and set ". The continuous part alone can never spike; the threshold makes it spiking.

Level 2 — Application

L2·Q1

A LIF neuron has , . Find .

Recall Solution

What/Why: sets how fast the membrane charges — nothing else can be computed without it.

L2·Q2

Same neuron, constant input , threshold . First, decide whether it fires at all.

Recall Solution

Why check first? The voltage can only ever climb toward its steady value ; if that ceiling is below threshold, it can never fire. Since it will fire.

L2·Q3

Continue L2·Q2: find the time to the first spike and the firing rate .

Recall Solution

Why the log formula? We set in the charging curve and solve for . , so .

Look at the charging curve — the neuron reaches the red threshold well before the dashed ceiling :

Figure — Neuromorphic computing

Level 3 — Analysis

L3·Q1

Take the neuron from L2 (, , ) but drop the input to . Does it fire? If not, what steady voltage does it settle at, and what does this silence mean for power?

Recall Solution

. The log argument is negative → never fires. It charges toward and rests at forever (the leak exactly balances the input there). Meaning: on weak input the neuron is silent, so it consumes ~zero dynamic energy. This is the sparsity that gives neuromorphic chips their energy edge.

L3·Q2

For a firing neuron the firing rate rises with input . Explain why saturates (stops rising as fast) as , using the shape of .

Recall Solution

As , , so and . Then … but how it approaches matters: for large , using with . So grows roughly linearly in at first, but a real neuron adds a fixed refractory period : . Once , the rate flattens to the ceiling . The curve below shows the knee.

Figure — Neuromorphic computing

L3·Q3

STDP with , , , . Compute for: (a) pre at , post at ; (b) pre at , post at . Interpret each sign.

Recall Solution

Why first? Its sign chooses the branch. (a) → potentiation: Pre came before post → it helped cause the spike → strengthen. (b) → depression: Pre came after post → it couldn't have caused the spike → weaken.


Level 4 — Synthesis

L4·Q1

A vision chip must fire a neuron exactly at after a constant input turns on. You are given and . What steady value must the input produce? (Invert the time-to-spike formula.)

Recall Solution

What/Why: we know and want , so invert . Let . Then , so Check: ✓.

L4·Q2

Combine energy reasoning with sparsity. A neuromorphic layer of neurons runs for . Suppose each spike costs , and on average only 2% of neurons are active, each firing at . Estimate total spike energy. Compare to a hypothetical dense chip that "evaluates" all neurons every at each.

Recall Solution

Neuromorphic (sparse): active neurons . Each fires spikes in , so total spikes . Dense: neurons evaluations/s ops. Ratio: . Event-driven sparsity buys ~3.7 orders of magnitude here.


Level 5 — Mastery

L5·Q1

Design + predict. You have an RC-based LIF neuron and want a firing rate of about under constant input , using and . Choose (hence ). Then, using STDP with , , predict the potentiation for a pre-post gap equal to one firing period .

Recall Solution

Step 1 — target period. . Step 2 — check the ceiling. ✓, so firing is possible. Step 3 — solve for from : Step 4 — get from : Step 5 — STDP with (pre before post): So the synapse strengthens by about per such pairing. Because exactly, the update is exactly — a clean sanity check.

L5·Q2

Explain, tying every piece together, why this LIF+STDP system needs no bus and no global error signal — and what each choice costs.

Recall Solution
  • No bus: the synaptic weight lives at the connection (a memristor conductance, Memristors and ReRAM). Multiply-by-weight happens as current flows through it — In-memory computing. Data never travels to a separate ALU, so the von Neumann bottleneck vanishes. Cost: weights are analog and noisy; precision is limited.
  • No global error: STDP updates each weight from only its own . There is no backward pass sweeping a loss across the whole network. Cost: it is local and unsupervised, so it learns correlations well but struggles with tasks needing precise global credit assignment (where GPUs + backprop still win — see GPU vs Neuromorphic accelerators).
  • Sparsity: silent neurons () cost near-zero power. Cost: if a task needs dense, high-rate activity, you lose the advantage and pay per spike.