NEF–SPA CIRCUIT LAB

CHAPTER 2.1–2.3 · FOUNDATIONS OF NENGO, NEF AND SPA

Understanding NEF–SPA Circuits
in Speech Processing Models

See how functional content becomes a pattern of neural activity. Replay small Nengo circuits, follow their spikes, and inspect what can be read out.

NEURAL REPRESENTATION · ONE DIMENSION

Watching one value become neural activity

Recorded Nengo simulation

A gently changing sound-level envelope drives 50 spiking neurons. Their weighted, filtered activity recovers the level approximately. After 1.0 s, the input stays constant — but the neural readout still fluctuates.

Read §2.1.1 in the teaching script →

01 · INPUTSound level—normalized envelope
02 · NEURAL ENCODING50 LIF neuronsdots light for 25 ms after a spike
03 · DECODINGWeighted readout—10 ms low-pass filter
— / 1.600 s

Loading the recorded simulation…

A Input signalOne value, changing over time
B Neural activation patternEach mark is one recorded spike · all 50 neurons
C Decoded valueReadout Input

All three panels share the same time axis. Playback reveals the recorded samples up to the cursor. The pale band marks the interval enlarged below.

LOOK CLOSER · 1.20–1.55 s

Constant input.
Fluctuating readout.

The input is 0.52 throughout this interval. The readout fluctuates because a small population of spiking neurons provides a finite, filtered approximation.

Complete interval shown here, independently of the playback cursor. No artificial noise has been added.

Readout Input

HOW TO READ THIS EXAMPLE

01

Functional content

The content is a sound level: a simple property that can change over time. This normalized envelope is not an acoustic waveform or a decibel scale.

02

Neural activation pattern

The level changes the activity of the ensemble. Neurons have different response properties. A spike belongs to one neuron; the pattern across the population carries the value.

03

Mathematical description

A scalar describes the content numerically. Nengo fits decoding weights so filtered, weighted spikes approximate that value. The readout is an observation of the neural activity.

How this example was recorded

This is the original simulation used for §2.1.1 of the teaching script. Playback changes viewing speed only; it does not rerun Nengo or change the model.

Population
50 leaky integrate-and-fire (LIF) neurons
Represented state
1 dimension · radius 1.0 · no recurrent connection
Input connection
No synaptic filter
Readout connection
10 ms low-pass synapse
Sampling
1 ms · 1,600 samples · 2,700 spikes
Simulation
Nengo 4.1.0 · NumPy 2.5.4 · seed 105
Maximum firing rates
Sampled uniformly from 80 to 160 Hz

The first input sample is at 1 ms. Decoded activity starts near zero and builds up through the synaptic filter. The animated dots retain a 25 ms visual highlight so individual spikes are visible; they do not display membrane voltage.

Download the recorded data (JSON) · Download the Nengo example (Python)

The Nengo circuit in a few lines

level(t) supplies the input envelope. An Ensemble encodes it, and a Connection decodes and filters the spikes. The two Node objects are an external input and a readout, not extra neural populations.

with nengo.Network(seed=105) as model:
    stimulus = nengo.Node(level)
    neurons = nengo.Ensemble(
        50, dimensions=1, radius=1.0,
        neuron_type=nengo.LIF(),
        max_rates=nengo.dists.Uniform(80, 160))
    nengo.Connection(stimulus, neurons, synapse=None)
    readout = nengo.Node(size_in=1)
    nengo.Connection(neurons, readout, synapse=0.010)

The downloadable example includes the input function, probes and simulation run. This small NEF example introduces representation before the script moves on to SPA buffers and complex content.

EXAMPLE 02 · §2.1.4 · COMPLEX FUNCTIONAL CONTENT

Watching similar concepts in spiking populations

Recorded Nengo simulation

The same principle now extends to a concept buffer. It receives Tasse (cup), Kanne (jug), and Hund (dog) in succession. Each item is described by 64 coordinates, jointly carried by 3,200 spiking neurons. The German labels name concepts here, rather than their phonological forms.

Read §2.1.4 in the teaching script →

01 · SUPPLIED CONTENT—Loading input…
02 · ONE SPA BUFFER64 ensembles × 50 neuronsone coordinate per ensemble
03 · DECODED OBSERVATIONCompare with reference vectorsreadout from all 64 populations
ENSEMBLE 1Coordinate 1: —
ENSEMBLE 22Coordinate 22: —
ENSEMBLE 43Coordinate 43: —

Three fixed populations are shown throughout, as in the manuscript. Each contributes to every concept; none is a dedicated “cup neuron” or “dog ensemble”. Dots light for 25 ms after a recorded spike. Numbers are decoded coordinate values.

— / 2.200 s

Loading the recorded concept buffer…

Inspect:
A Supplied conceptual contentBlank intervals: zero input vector
B Ensemble 1All 50 neurons · coordinate 1
C Ensemble 22All 50 neurons · coordinate 22
D Ensemble 43All 50 neurons · coordinate 43
E Similarity to concept referencesComputed from all 3,200 neurons
Tasse · cupKanne · jugStuhl · chairHund · dogKatze · cat

All panels use the same time axis and reveal data up to the playback cursor. Similarities use the complete decoded 64-dimensional state, including the 61 populations whose spikes are not drawn here.

AT THE CURRENT CURSOR

One input, several similarities

Choose Tasse, Kanne or Hund above to compare the readout with the supplied concept.

The target column compares the current input vector with each reference. The neural readout follows with filtering and small fluctuations. These are dot products, not probabilities. Decoded vectors can vary in length, so scores may be slightly negative or exceed one.

Similarity at —
Reference conceptNeural readoutInput target

HOW TO READ THIS EXAMPLE

01

Related content shares structure

The cup and jug reference vectors share conceptual features and have a dot product of 0.80. Cup and chair share less (0.25); cup and dog much less (0.05). These relationships were chosen for this teaching vocabulary.

02

A neighbour also scores highly

During the cup input, the readout is similar to the jug reference too. This score reflects shared components. It does not by itself establish that two independent items were selected. Dog and cat show the same relationship.

03

Activity follows the input

This buffer has feedback=0. When input disappears, decoded similarities return towards zero after the filtering delay. Neurons can continue spiking even when the represented coordinates are near zero. Recurrent maintenance comes later in the script.

How this example was recorded

This is the original Nengo simulation behind §2.1.4. The browser replays saved input, spikes, decoded coordinates and similarity scores. Changing playback speed changes only how quickly the recording is displayed.

Content and vocabulary
10 concept reference vectors · 64 dimensions
Neural population
64 ensembles · 50 LIF neurons each · 3,200 total
Buffer configuration
subdimensions=1, feedback=0, represent_cc_identity=False
Ensemble parameters
Radius 0.5 · intercepts uniform in [−1, 1] · evaluation points uniform in [−0.5, 0.5]
Connections and readout
Input synapse: none · output probe low-pass: 10 ms
Maximum firing rates
Sampled uniformly from 80 to 160 Hz
Recording
2.2 s · 1 ms steps · 2,200 samples · 201,246 spikes across all populations
Software and seeds
Nengo 4.1.0 · NengoSPA 2.0.0 · NumPy 2.5.4 · network seed 207 · vocabulary seed 206

The scheduled inputs are Tasse from 0.10 to 0.65 s, Kanne from 0.80 to 1.35 s, and Hund from 1.50 to 2.05 s; each onset is included and each offset is excluded. The recording includes every spike in all 64 ensembles. Three fixed coordinate populations (1, 22 and 43) are displayed, matching the manuscript. No artificial noise was added.

Reference vectors combine a shared component, a broad domain, a category, a subgroup and an individual component, then rotate them into a distributed coordinate system. Their chosen relationships illustrate similarity; they are not measurements of human judgements.

Download the complete recorded data (JSON, 4.7 MB) · Download the complete Nengo example (Python)

The Nengo circuit in a few lines

vocab contains the 64-dimensional reference vectors. offer(t) supplies one vector at a time, with zero input between episodes. The buffer is built as follows; the downloadable script also includes the vocabulary construction and all probes.

with nengo.Network(seed=207) as model:
    stimulus = nengo.Node(offer, size_out=64)
    state = spa.State(
        vocab, subdimensions=1, neurons_per_dimension=50,
        feedback=0, represent_cc_identity=False)

    for ensemble in state.state_ensembles.ensembles:
        ensemble.neuron_type = nengo.LIF()
        ensemble.radius = 0.5
        ensemble.max_rates = nengo.dists.Uniform(80, 160)
        ensemble.intercepts = nengo.dists.Uniform(-1, 1)
        ensemble.eval_points = nengo.dists.Uniform(-0.5, 0.5)

    nengo.Connection(stimulus, state.input, synapse=None)
    readout = nengo.Probe(state.output, synapse=0.010)
    spike_probes = [nengo.Probe(e.neurons)
                    for e in state.state_ensembles.ensembles]

with nengo.Simulator(model, dt=0.001) as sim:
    sim.run(2.2)
    # Compare with unit reference vectors (one per row).
    similarities = sim.data[readout] @ vectors.T

subdimensions=1 assigns one coordinate to each ensemble. The full vector describes one item across the buffer. The plotted similarity calculation is an observation of the decoded neural activity; it is not an additional action-selection circuit.

EXAMPLE 03 · §2.2 · ASSOCIATIONS BETWEEN CONTENTS

From a concept to its lemma and phonological form

● Recorded Nengo simulation

The first memory maps a concept (the cue) to its German lemma (the target). The second uses that lemma as its cue and retrieves the word form. Choose JUG · 0.400 s to follow JUG → Kanne → /kan@/. Choose CUP · 1.150 s to follow CUP → Tasse → /tas@/.

Read the eight-entry spike example in §2.2.5 →

Concept buffer→Competitive
memory
→Lemma buffer→Thresholded
memory
→Phonological-form buffer

Each stored pair has one entry population of 100 neurons. With eight words, there are eight such populations in C and another eight in E. With 40 word pairs per memory there would be 40 in each. Each buffer represents a vector across 512 ensembles of 50 neurons.

— / 1.700 s

Loading the recorded associations…

Inspect:

Two entries at the cursor

Recorded signals at —
ObservationJUG → Kanne → /kan@/CUP → Tasse → /tas@/

B, D and F measure similarity to a reference in the indicated buffer. C and E measure how strongly each entry drives its stored target. These readouts use a 20-ms filter. Spike counts include all 100 cells of one entry over the last 25 ms.

JUG → Kanne → /kan@/CUP → Tasse → /tas@/CAT → Katze → /kats@/Five other entries
A Supplied conceptJUG, then CUP · blank intervals show zero input
B Concept bufferSimilarity to concept reference vectors
C Concept → lemma memoryEntry outputs after thresholding and competition
C Spiking in the same entriesMean firing rate per neuron (Hz) · Kanne in blue, Tasse in orange
D Lemma bufferSimilarity to lemma reference vectors
E Lemma → form memoryEntry outputs after thresholding, without lateral competition
E Spiking in the same entriesMean firing rate per neuron (Hz) · Kanne in blue, Tasse in orange
F Phonological-form bufferSimilarity to phonological reference vectors

For each firing-rate curve, spikes in the preceding 25 ms are summed over all 100 neurons and divided by neuron count and elapsed time. The rasters below show the individual spikes of cells 1–20. In F, the form /kats@/ can resemble the retrieved /kan@/ even while the Katze entry in E is silent.

The entry populations, neuron by neuron

Each tick is one recorded spike. These are neurons in the associative memories; the buffer readouts above come from their separate, distributed populations.

Concept → lemma · KanneCells 1–20 of 100
Concept → lemma · TasseCells 1–20 of 100
Lemma → form · KanneCells 1–20 of 100
Lemma → form · TasseCells 1–20 of 100

The first 20 cells of each named population are displayed throughout, matching the PDF. The download contains all 100 cells of all 16 entry populations. Buffer spikes were not recorded in this example.

01

Match and select

For an ideal JUG cue, the input weights give a match of 1.000 to JUG and 0.454 to CUP. Both exceed the threshold of 0.3. During the settled JUG response, lateral inhibition suppresses the Tasse entry. The Kanne entry drives its stored lemma vector with a weight close to one.

02

Associate the next content

In E, a second Kanne population receives a match from the lemma buffer in D. Its output weights drive /kan@/ in F. This memory passes lemma matches above 0.3 with approximately their match amplitude. Several entries could pass together.

03

Coactivation needs a circuit

Continued input supports overlapping concept, lemma and form activity. Each stage takes time to respond through its neurons and filters. This local cascade has no recurrent word register or global action-selection circuit.

How this example was recorded

This replays the original isolated eight-entry simulation in §2.2.5, not the separate 613-entry recording in §2.2.4. Its entries are Tasse, Tasche, Kanne, Katze, Teller, Topf, Stuhl and Schrank. Their 512-dimensional vectors are unchanged extracts of the published lexical specification.

Neurons
78,400 LIF: 76,800 in buffers + 1,600 in memories
Timing
1.7 s · 1 ms integration and recording · 1,700 samples
Concept cues
JUG: [0.15, 0.65) s · CUP: [0.90, 1.40) s
Filters
Input and intermodule connections: 10 ms · readouts: 20 ms · WTA inhibition: 5 ms
Memory settings
Threshold 0.3 · WTA inhibition strength 1 · 100 neurons per entry
Software and seeds
Nengo 4.1.0 · NengoSPA 2.0.0 · neural seed 210 · vector seed 10
Spikes retained
48,402 exact events across all 16 entry populations

All states use subdimensions=1, neurons_per_dimension=50, feedback=0 and represent_cc_identity=False. Other neuronal parameters retain library defaults. Similarity curves are computed from the archived float32 decoded vectors and stored reference vectors. Playback reveals saved samples; it does not run a simulation. No artificial noise was added.

Replay data (JSON) · Complete original arrays (NPZ) · Complete Nengo example (Python)

The Nengo circuit in a few lines

mapping="by-key" pairs different reference vectors bearing the same lexical key. The key is a construction label. During simulation, the connections transform neural activity; the model does not look up text labels at each time step.

# vocabularies loaded from built-lexicon.npz; within a Network
concept = spa.State(concept_vocab, subdimensions=1,
    neurons_per_dimension=50, feedback=0,
    represent_cc_identity=False)
# lemma and phonology use the same State settings
c2l = spa.WTAAssocMem(threshold=0.3,
    input_vocab=concept_vocab, output_vocab=lemma_vocab,
    mapping="by-key", n_neurons=100, function=lambda x: 1.0)
l2p = spa.ThresholdingAssocMem(threshold=0.3,
    input_vocab=lemma_vocab, output_vocab=form_vocab,
    mapping="by-key", n_neurons=100)
for source, target in [(concept.output, c2l.input),
        (c2l.output, lemma.input), (lemma.output, l2p.input),
        (l2p.output, phonology.input)]:
    nengo.Connection(source, target, synapse=0.010)

The complete download includes all three buffers, input timing, probes and simulation. The next example supplies the missing first step: constructing and saving its vocabularies.

EXAMPLE 04 · §2.3.2–2.3.3 · LONG-TERM LEXICAL KNOWLEDGE

Build the lexicon before the neurons

Vector construction · no neural run

How does the model know that two concepts or phonological forms share something? We specify a relation graph, encode its shared components and save the resulting reference vectors. Only then do we use the paired vectors to build the neural associations above.

Read §2.3.2–2.3.3 in the teaching script →

Boxes name contents or components; arrows name specified relations. This is a knowledge graph, not neural wiring. The labels do not generate meaning automatically. The 3D sphere in §2.1.3 illustrates similarity qualitatively; these graphs construct the actual 512-dimensional references used above.

INSPECT THE CONSTRUCTION

From independent bases to structured pointers

First 32 coordinates of each 512-dimensional vector

The displayed coordinates are a small window into a distributed code; no coordinate means “handle”. Statistics use all 512 coordinates. Steps describe calculations during construction, not neural time or spikes. Intermediate sums need not have unit length; normalization changes lengths while preserving angles.

Different relations, different similarities

Dot products of the final unit reference vectors · D = 512 · seed 10
PairConceptLemmaForm

Concept and phonological similarities arise from separately specified graphs. Lemma vectors are independent lexical identities. Finite random vectors are approximately, not exactly, orthogonal. These values describe this supplied lexicon; they are not fitted human similarity judgements.

The pointer network in code

The complete source includes deterministic base and relation vectors, recursive encoding, memoization and cycle detection. The same relation pointer binds each target in its domain. In the default NengoSPA algebra, * is circular convolution, + adds contributions, and .normalized() returns a unit-length pointer.

# A complete excerpt of the actual conceptual graph
concept_network = {
    "C_Tasse": [("AssocWith", "C_Geschirr_vis"),
                ("AssocWith", "C_Henkel_vis")],
    "C_Kanne": [("AssocWith", "C_Henkel_vis")],
    "C_Geschirr_vis": [], "C_Henkel_vis": []}

# For each node: recursively encode targets, bind, add, normalize.
pointer = spa.SemanticPointer(base_vector)
for relation, target in network[key]:
    target_pointer = spa.SemanticPointer(encode(target))
    pointer = pointer + relation_pointers[relation] * target_pointer
vectors[key] = pointer.normalized().v.copy()

Targets are recursively encoded pointers, not merely fresh random labels. Both phonological branches therefore carry their shared deeper component. The graph specifies component inclusion; it does not by itself implement the timed articulation of a syllable sequence.

Complete builder (Python) · Eight-entry relation graphs (JSON) · Built reference vectors (NPZ)

From saved knowledge to a neural circuit

Save three vector arrays, then load them into three vocabularies. Each lexical key connects a conceptual reference, a lemma identity and a phonological reference. The associative-memory constructors turn those correspondences into input matching and output reconstruction transformations.

vectors = representations(data, dimensions=512, seed=10)
np.savez_compressed("built-lexicon.npz", words=words, **vectors)

with np.load("built-lexicon.npz") as saved:
    for word, vector in zip(saved["words"], saved["concept"]):
        concept_vocab.add(str(word), vector)
# Populate lemma_vocab and form_vocab in the same way.
# Then create the State and associative-memory circuits above.

A saved pointer file is not an active neural memory. Its vectors specify what the neural connections will detect and reconstruct. Persistent weights make the associations available across episodes; ongoing spikes show which contents are currently active. Keeping one item active after a cue has ended requires the recurrent maintenance circuits discussed later in §2.3.

Download both runnable examples and graph data (ZIP). Run build_lexicon.py first, then association_example.py. The second step builds and simulates 78,400 LIF neurons.

How this construction example was prepared

The source is the same lexical specification and recursive encoder used by the 613-entry mental-lexicon model. This teaching extract retains all descendants of eight selected lexical entries: 16 concept nodes and 41 phonological nodes. Each base vector has a deterministic seed derived from its domain and node key. The extract therefore preserves every displayed reference vector exactly.

The two diagrams show complete descendant graphs for their respective pairs. There are 512 dimensions and vector seed 10. The four intermediate construction states were calculated and saved without creating a neural population or running Nengo. All three final vector arrays were checked against the references in the archived association recording. No lexical learning is simulated.

Construction stages and numerical checks (JSON) · NengoSPA pointer operations · Mental-lexicon model and publication

EXAMPLE 05 · §2.3.6 · SHORT-TERM MAINTENANCE

Keeping an item active after its cue ends

● Recorded Nengo simulation

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 →

Tasse concept cuetwo 100-ms pulsesRecurrent concept buffer512 × 120 LIF neuronsMatched comparison buffermatched tuning · no feedbackDecoded observationDecoded observationSupplied clear signal0.80–1.35 s100-ms filter100-ms filter20 ms20 msfeedback 1.0 · 100 ms−10 per neuron · 5 ms

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.

— / 2.050 s

Loading the recorded circuit…

Inspect:
AT THE CURSOR—

RECURRENT BUFFERCoordinate 1 · cells 1–20 of 120
WITHOUT FEEDBACKCoordinate 1 · corresponding cells 1–20

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.

A Two presentations of the Tasse conceptBlue: supplied cue · purple background: clear interval
B Content read from the two buffersDot-product similarities · 20-ms readout
Tasse · recurrentTasse · no feedbackKanne · recurrent (dashed)
C Recurrent concept bufferCoordinate 1 · cells 1–20 of 120
D Concept buffer without feedbackMatched coordinate 1 · cells 1–20 of 120

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.

Readout at —
ObservationValue

SAME FIXED HOLDING WINDOW · 0.40–0.65 s

Tasse with recurrence1.001mean decoded similarity
Tasse without feedback0.037mean decoded similarity

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 →

EXAMPLE 06 · §2.3.7 · FIXED KNOWLEDGE, RENEWED ACTIVITY

Retrieving the same lemma after clearing

● Same recorded Nengo simulation

The recurrent concept buffer also supplies a concept-to-lemma associative memory. Clearing the concept activity removes the drive for its lemma. When Tasse is cued again, the same association becomes active again. The lexical correspondence remains in the fixed connections between episodes.

Read §2.3.7 in the teaching script →

MAINTAINED CONCEPTRecurrent concept bufferfeedback = 1.0 · receives clear current
LEXICAL ASSOCIATIONCompetitive entry populations8 × 100 LIF neurons · fixed mapping
RETRIEVED IDENTITYInput-driven lemma bufferfeedback = 0.0 · 512 × 50 LIF neurons

The clear command reaches the recurrent concept buffer only. Entry and lemma activity then subside as their incoming drive disappears. Continued lemma activation during a holding interval depends on that upstream drive.

— / 2.050 s

Loading the recorded circuit…

Inspect:
AT THE CURSOR—

TASSE ASSOCIATIVE ENTRYCells 1–20 of 100 · content-selective entry
LEMMA BUFFERCoordinate 1 · cells 1–20 of 50

Dots use the same 25-ms visual highlight. An associative entry population responds to a candidate match; the lemma coordinate population contributes to the distributed description of every lemma.

A The same external cue and clearing scheduleBlue: Tasse cue · purple background: concept clearing
B Selected associative entryDecoded entry outputs, not buffer similarities
TasseKanne (dashed)Six other entries
C Tasse entry populationCells 1–20 of 100 LIF neurons
D Retrieved lemma identityDot products of the decoded lemma vector
TasseKanne (dashed)Six other references
E Lemma buffer populationCoordinate 1 · cells 1–20 of 50 LIF neurons

These panels show the downstream part of Example 05’s recording. Shading marks the supplied interventions, not exact neural response boundaries: neurons and synaptic filters take time to respond. All readouts use a 20-ms low-pass filter.

ACTIVATION IS TEMPORARY

The association remains available

During the settled clear window, the Tasse entry stops spiking and the lemma readout returns close to zero. The later cue retrieves the same lemma because the concept-to-lemma connection structure persists.

The maintained concept has a positive similarity to Kanne, but the competitive memory selects Tasse. The resulting lemma identity has its own distinct vector.

Readout at —
ObservationValue

TWO USES OF THE SAME KNOWLEDGE

First hold · 0.40–0.65 s0.973mean Tasse lemma similarity
Second hold · 1.75–2.00 s0.972mean Tasse lemma similarity

The original simulation checked 2,069 connection-weight arrays before and after the run. Their hashes were identical, and no learning rules were attached. This is a check of fixed parameters across the run, not an additional neural measurement or a model of learning.

How this example was recorded

This is the same 2.05-s, 149,280-neuron recording as Example 05. Only the observed populations differ. The Tasse cue occurs at [0.10, 0.20) s and [1.45, 1.55) s; the recurrent concept buffer receives the clear intervention at [0.80, 1.35) s.

Associative memory
Eight candidates × 100 LIF neurons · threshold 0.3 · winner-take-all competition
Selected output
Constant-one function · approximately unit output for the selected entry
Lemma buffer
512 ensembles × 50 LIF neurons · no recurrent feedback
Filters
Concept → memory → lemma: 10 ms · WTA inhibition: 5 ms, strength 1 · decoded probes: 20 ms
Seeds
Network 220 · associative memory 223 · lemma state 224
Recorded spikes
All 100 cells in all eight entries; all 50 cells in lemma coordinate 1. Cells 1–20 are displayed.

The three vocabularies are the same stored references used in the earlier lexical examples. This circuit instantiates concept and lemma domains only. Phonological retrieval is not part of this recording. Similarity scores are derived from saved float32 states, while the archive’s weight-hash check was performed during the original run.

Replay data (JSON) · Complete original arrays (NPZ, 12.1 MB) · Complete Nengo circuit (Python) · Runnable code and lexical builder (ZIP)

The associative Nengo circuit in a few lines

The maintained concept is connected to a competitive memory. Its output supplies a separate lemma state. mapping="by-key" pairs concept and lemma reference vectors during construction.

# The recurrent concept buffer is the memory State above.
c2l = spa.WTAAssocMem(
    threshold=0.3, input_vocab=concept_vocab,
    output_vocab=lemma_vocab, mapping="by-key",
    n_neurons=100, function=lambda x: 1.0, seed=223)
lemma = spa.State(lemma_vocab, subdimensions=1,
    neurons_per_dimension=50, represent_cc_identity=False,
    feedback=0.0, seed=224)
nengo.Connection(memory.output, c2l.input, synapse=0.01)
nengo.Connection(c2l.output, lemma.input, synapse=0.01)
entry_readout = nengo.Probe(c2l.selection.output, synapse=0.02)
lemma_readout = nengo.Probe(lemma.output, synapse=0.02)

All populations use LIF neurons. The complete program constructs the lemma state before the memory, as in the archived run. Its weight_hash function reads each built connection’s weight array before and after simulation and verifies that the combined hashes agree.

The ZIP includes the same lexical builder introduced in §2.3.3. Run build_lexicon.py first, then memory_example.py. This constructs and simulates the full local maintenance-and-retrieval circuit.