EXAMPLE 05 · §2.3.6 · SHORT-TERM MAINTENANCE
Keeping an item active after its cue ends
Two matched concept buffers receive the same brief Tasse (cup) cue. One returns its own decoded activity through a recurrent connection. The other has no feedback. Compare what happens when the cue ends, when the recurrent buffer is cleared, and when the same concept is supplied again.
Read §2.3.6 in the teaching script →
The two buffers have identical sampled encoders, gains and biases in corresponding coordinate populations. Clearing adds inhibitory current only to the recurrent buffer. The comparison isolates feedback during the first holding interval; the later clear intervention deliberately treats the buffers differently.
Loading the recorded circuit…
Dots light for 25 ms after a recorded spike. Each population contributes to every concept; neither is a dedicated Tasse population. The rasters below show the exact event times.
All panels share the same time axis and cursor. Blue bands mark the two 100-ms input pulses; purple marks the supplied clear command. Every displayed spike is taken from the saved simulation. Similarity uses all 512 decoded coordinates.
READ THE CONTENT, THEN THE SPIKES
Activity continues in both populations
The nonrecurrent buffer can keep spiking while its decoded state approaches zero. Positive and negative decoding contributions can balance. Spikes establish neural activity; similarity to a reference identifies which content is being carried.
Kanne has a positive score because its concept vector shares structure with Tasse. Recurrence sustains the present state; it does not change those lexical relations.
| Observation | Value |
|---|
SAME FIXED HOLDING WINDOW · 0.40–0.65 s
The cue ended at 0.20 s. These window averages summarize this local neural realization; they are not guarantees of indefinite, perfectly stable memory.
How this example was recorded
This is the original recording behind §2.3.6 and §2.3.7. The next example shows the associative-memory and lemma populations from the same run. Playback reveals saved samples; it does not rerun Nengo or change a circuit parameter.
- Two concept buffers
- 512 ensembles × 120 LIF neurons each · 61,440 neurons per buffer
- Complete network
- 149,280 LIF neurons, including a 25,600-neuron lemma buffer and 800-neuron associative memory
- Reference vectors
- 512 dimensions · eight entries extracted unchanged from the 613-entry lexicon · vector seed 10
- Feedback and input
- Gain 1.0 versus 0.0 · recurrent and both input filters: 100 ms
- Cue schedule
- Tasse during [0.10, 0.20) s and [1.45, 1.55) s · zero input otherwise
- Clear intervention
- [0.80, 1.35) s · −10 added to each recurrent-buffer neuron’s input current · 5-ms filter
- Recording
- 2.05 s · 1-ms integration and recording · 2,050 samples · decoded probes filtered at 20 ms
- Software and seeds
- Nengo 4.1.0 · NengoSPA 2.0.0 · network 220 · buffers 221 · coordinate ensembles 221000 + index
Both concept states use subdimensions=1 and represent_cc_identity=False. Other neuronal parameters retain library defaults. The original run checked exact equality of corresponding encoders, gains and biases. The data retain all 120 spike trains in coordinate 1 of each concept buffer; the display uses the first 20 cells. The other 511 coordinate populations were not spike-probed.
The complete recording retains 41,002 spike events from 1,090 observed neurons across the concept, lemma and associative populations. Readout curves here are calculated from the archived float32 decoded vectors. The NPZ retains every saved array; no artificial noise has been added.
Replay data (JSON) · Complete original arrays (NPZ, 12.1 MB) · Complete Nengo circuit (Python) · Runnable code and lexical builder (ZIP)
The recurrent Nengo circuit in a few lines
feedback=1.0 returns the represented state to the same buffer. The input pulse adds to this recurrent drive. clear is an externally supplied test signal, connected directly to neuron currents.
# Within a spa.Network; concept_vocab already loaded.
memory = spa.State(concept_vocab, subdimensions=1,
neurons_per_dimension=120, represent_cc_identity=False,
feedback=1.0, feedback_synapse=0.1, seed=221)
control = spa.State(concept_vocab, subdimensions=1,
neurons_per_dimension=120, represent_cc_identity=False,
feedback=0.0, seed=221)
# Match individual coordinate populations as well.
for i, (a, b) in enumerate(zip(memory.state_ensembles.ensembles,
control.state_ensembles.ensembles)):
a.seed = b.seed = 221000 + i
nengo.Connection(cue, memory.input, synapse=0.1)
nengo.Connection(cue, control.input, synapse=0.1)
for ensemble in memory.state_ensembles.ensembles:
nengo.Connection(clear, ensemble.neurons,
transform=-10 * np.ones((ensemble.n_neurons, 1)),
synapse=0.005)The 100-ms input pulse is matched to the 100-ms input and feedback filters. With unity feedback it approximately accumulates one copy of the unit concept vector. A sustained input would continue accumulating; this example is a pulse-loaded integrator, not yet the controlled write gate of the word register. Finite populations and decoding error can cause drift.
The inhibitory clear interval suppresses recurrent-buffer spikes long enough for the filtered feedback to decay. Releasing that inhibition permits later loading. The complete source includes the cue and clear functions, probes and the downstream association.
Continue with the same recording: why the word can be retrieved again →