NEF–SPA CIRCUIT LAB

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.