6.5.14 · D2Advanced & Emerging Architectures

Visual walkthrough — Neuromorphic computing

2,123 words10 min readBack to topic

Step 1 — A membrane is two things at once: a bucket and a leak

WHAT. Picture the thin fatty wall of a neuron. On one side, positive charge piles up; the wall keeps the two sides apart. That is exactly what a capacitor does — it stores separated charge. But the wall is not perfect: tiny channels let charge trickle back across. Something that lets charge trickle through in proportion to how hard you push is a resistor. So the membrane is a resistor and a capacitor, side by side — an RC circuit.

WHY this picture and not a plain wire. A plain wire has no memory: push current, charge flows, nothing accumulates. But a neuron remembers recent input for a short while and then forgets. Only a store-and-leak object does that. The RC circuit is the simplest object with both a memory (the capacitor) and a fade (the resistor).

PICTURE. The tank on the left fills with input current ; the mint hole on the right leaks water out. The water level is the voltage .


Step 2 — Write down the balance: what comes in must go somewhere

WHAT. Every bit of current that arrives has only two possible fates: it either piles onto the capacitor (raising the level) or escapes through the leak. Nothing vanishes. That single sentence is the whole equation:

WHY a derivative appears here. The tool is brand new, so we justify it. It reads "how fast the level is changing right now." We need it because the current charging a capacitor is not about how full it is — it is about how fast it is filling. The question "how fast is this changing?" is exactly the question a derivative answers, so that is the tool the physics forces on us.

Term by term:

  • — charge going into storage. Wider tank ( big) or faster rise ( big) means more current is being swallowed.
  • — the leak. Higher level pushes harder through the drain; narrower hole (big ) leaks less.

PICTURE. The incoming arrow splits into two: one into the tank, one out the leak. Their sizes must add up to the input.


Step 3 — Clean it up, and meet the "forgetting time"

WHAT. Multiply every term by and gather:

WHY define . We bundle and into one symbol because together they set the only timescale in the system. (ohms) times (farads) comes out in seconds — it is literally a duration. We name it , the membrane time constant: the neuron's "attention span."

Why the minus sign in front of . Turn off the input (). The equation becomes : the fuller the tank, the faster it empties. That minus sign is the leak — it always drags back toward zero. This is the "leaky" in Leaky Integrate-and-Fire: old input is continuously forgotten.

PICTURE. With the tap off, the level slides down a smooth curve; after one it has fallen to about of where it started (that is , a number we meet properly next step).

Cloze check:

The symbol has units of
seconds — it is a time, since = ohms × farads = seconds.
The minus sign in physically represents
the leak, which always pulls back toward zero.

Step 4 — Turn on a steady tap: the charging curve

WHAT. Hold the input at a constant , start empty (). Solving gives:

WHY the number shows up. We did not choose the exponential — the leak did. Whenever a thing's rate of change is proportional to itself ("the more there is, the faster it moves"), the only function that satisfies that is . That is 's job description: it is the function that is its own rate of change. The leak makes depend on , so is unavoidable.

Term by term:

  • — the ceiling. As , the bracket , so . This is the level where "in" exactly balances "leak," so filling stops. Nail this value; Step 6 hangs on it.
  • — the approach. At it is (bracket , empty). It shrinks as time passes, so the bracket climbs toward .
  • After : , so — 63% of the way up in one time constant.

PICTURE. A rising curve that starts steep and flattens toward the dashed ceiling . The tick at marks the 63% point.


Step 5 — Add the trigger: threshold, fire, reset

WHAT. The smooth curve of Step 4 never actually spikes — it just glides up to . A neuron must produce a sharp event. So we bolt on a rule by hand:

WHY this is separate from the ODE. The differential equation is analog and smooth; the spike is digital and abrupt. No smooth equation makes an all-or-nothing event, so the threshold is an extra ingredient. This bolt-on is precisely what turns an RC filter into a spiking neuron — the heart of any SNN.

PICTURE. The charging curve climbs, kisses the coral line , a vertical spike shoots up, and drops back to to start charging again.


Step 6 — Solve for the time-to-spike (and meet the logarithm)

WHAT. The neuron fires the first instant the curve reaches . Call that instant . Set in the Step-4 curve and unravel it:

WHY a logarithm now. We have an equation where the unknown is trapped inside an exponent: . To free it we need the tool that undoes an exponential — that is exactly what (the natural logarithm) is: it answers " to what power gives this number?" Applying to both sides pulls down out of the exponent. It is the only tool that does that job cleanly, which is why it appears.

Term by term inside the box:

  • out front — scales everything: a sluggish membrane (big ) takes proportionally longer to fire.
  • — the ratio of "ceiling" to "gap remaining." The closer the ceiling sits to the threshold , the smaller the denominator, the bigger the log, the longer it takes.

PICTURE. Same curve, now with marked where it crosses , and a bracket showing the shrinking gap .


Step 7 — The degenerate case: when the neuron NEVER fires

WHAT. Look at the denominator . What if the ceiling is below the threshold?

  • If : the fraction has a negative denominator → the whole argument is negative → of a negative number does not exist. Mathematically the formula breaks; physically, the curve flattens out below the coral line and never touches it. No spike, ever.
  • If : the denominator is , the fraction blows up, . The neuron only just reaches threshold after infinite time — still effectively silent.

WHY this matters — this is the whole energy story. A neuron whose steady level sits under threshold burns essentially no power: it produces no spikes, so no downstream circuits wake up. That is the sparsity that lets brains (and neuromorphic chips) run on a light-bulb's worth of power, unlike a von Neumann machine clocking every cell whether or not it has work.

PICTURE. Two curves side by side: one ceiling above (fires), one below (flat, silent forever).


Step 8 — Put a number in: does this neuron fire, and how fast?

WHAT. Take , , , .

WHY do the steps in this order. Ceiling first (does it even fire?), then timescale, then the time itself.

  1. Ceiling . Since it fires. ✅ (Step 7 passed.)
  2. Timescale .
  3. Time-to-spike .
  4. Rate .

If we instead drop to : → argument negative → never fires (the silent branch of Step 7).

PICTURE. The actual charging curve for these numbers, crossing at about , with the curve shown staying flat below threshold.


The one-picture summary

Every idea on this page in a single frame: current in → tank charges along an -curve toward ceiling → crosses at time → spike → reset → repeat; and if , the curve flattens under the line and stays silent forever.

Recall Feynman retelling — say it like a story

A neuron is a leaky bucket. Current is a tap filling it; a hole in the side lets water dribble out. The water level is the voltage. Because of the hole, the level does not rise forever — it climbs fast at first, then eases up to a ceiling where dripping-in exactly matches dripping-out. That ceiling is . The bucket has a memory span, : turn the tap off and it forgets in a few . Now paint a red line at height . If the ceiling is above the line, the water crosses it at a moment we can compute — that crossing is a spike, and afterward we dump the bucket and start over. The crossing time uses a logarithm, because we had to un-trap the time from inside an exponent. If the ceiling sits below the red line, the water never touches it: no spike, no energy spent. That silence — a bucket quietly holding still — is the trick that lets a whole ocean of these buckets run on almost no power. See In-memory computing and Hebbian learning for what happens once buckets start talking to buckets.

Recall Quick self-test

Why does an exponential (not a straight line) appear in ? ::: Because the leak makes 's rate of change proportional to itself, and is the unique function whose rate of change is proportional to itself. Why does the logarithm appear when solving for ? ::: The unknown is stuck inside an exponent; is the tool that undoes and frees it. When does the neuron never fire? ::: When : the ceiling sits at/below threshold, so the curve never crosses it — the argument becomes non-positive. What is physically? ::: , the membrane's forgetting time; after one the voltage has moved 63% of the way to its ceiling.


See also: GPU vs Neuromorphic accelerators, Memristors and ReRAM (how a synapse physically stores its weight next to the compute).