Nengo Examples Chapter 3 · The lexical pathway
One concept, two positions
How can a speaker say Tasse twice? The second request has the same meaning as the first. Watch the address change while the cue still identifies CUP.

Example 11 · Section 3.2
Find the circuit
Start at the top right of Figure 45. The box Supplied concept plan comes from Figure 44. We assume sentence planning has supplied the meanings CUP, CUP, JUG in that order. Follow the dotted arrow down to the gated connections. When the network is built, the list assigns CUP to positions 1 and 2 and JUG to position 3. END has no concept connection. The four boxes below show these assignments.
Now follow the solid arrow from the top left. For the first 200 ms a Nengo Node sends a start pulse. It opens the current address register’s write gate and sets its address to position 1. A fixed connection shifts that pattern by one place. When the pulse ends, the successor address register can take up position 2. The short feedback loops hold the addresses. With read permission, either position shown here can send CUP to the lexicon.
Watch position 2 replace position 1 along the copy back arrow.
Locate the Concept Plan Controller in Figure 44What is held, and what is sent?
The address registers hold positions. Both are recurrent neural buffers. Each of the four address coordinates has its own population of 120 spiking neurons. Feedback holds one coordinate near 1 and the others near 0. For position 1 the pattern is (1, 0, 0, 0). Opening the write gate lets the difference between the offered and stored addresses update the address register. Closing it holds the new position. See recurrent memory in Chapter 2 and how a write gate works.
The cue carries one meaning. When reading is permitted, the selected position activates its fixed connection to a 512-dimensional concept vector. This outgoing signal is the concept cue. Positions 1 and 2 produce the same CUP vector. Plot 4 measures the signal at the output port in Figure 45. In the complete model it drives the lexicon’s concept buffer, which has no recurrent feedback. Its activity fades when the cue is withdrawn. The queue lower down in Figure 44 holds syllables waiting for articulation.

How does a held address activate CUP?
The write gate changes the address in an address register. Once that gate closes, the current address register can keep position 2 while the read circuit shown here uses it. Follow the two upper branches. Either the current address register is authorized to supply position 2, or the confirmed successor supplies it during copy-back.
The last gate receives the selected position and cue permission. When both are high, its output approaches 1. The fixed connection on the right scales the 512 CUP coordinates by this output. When cue permission falls, the cue fades even if the address stays active.
Compare First CUP (400 ms) with Address held, cue off (685 ms) below. Position 1 uses the same circuit and the same CUP weights as position 2.
Read Figure 46 and its Chapter 2 referencesRead the three occurrences
Recorded Nengo simulation · 2.65 s- Position 1CUP
- Position 2CUP
- Position 3JUG
- Terminal positionEND
1. Current address
Which position does the current address register hold? One trace per address coordinate.
2. Successor address
The same four coordinates in the successor address register. The next position settles here before copy-back.
3. Read permissions
Committed lets the lexicon read the current address. During copy-back, Incoming lets it read the prepared successor. Cue permission lets the selected route send its concept. The current register’s write permission controls when its stored address changes.
4. Concept cue
Dot products of the outgoing 512-dimensional vector with CUP and JUG.
Inspect spikes in the two address registers
Each row follows one of the first 16 neurons representing the second address coordinate. Each tick is a recorded spike. Compare the two populations at 400 ms and 1150 ms.
Current address register · coordinate 2
Successor address register · coordinate 2
How does position 2 replace position 1?
Follow the copy back arrow in Figure 45 from the successor register into the current register. The connection continuously carries the successor’s output. At 685 ms it already offers position 2, but the current register still holds position 1. Compare the difference at the relay input with the correction that actually leaves it.
All six plots cover 650–1000 ms. Move the slider in 5-ms steps to compare the traces at the vertical line. Selecting a time here also moves plots 1–4 above. The solid green trace is coordinate 1, the dashed orange trace is coordinate 2, and the blue trace is write permission.
Offered address
Input on the copy back connection. Position 2 is high before the write gate opens.
Write permission
Input to the current register’s write gate. A high signal releases the relay neurons from inhibition.
Difference at the relay input
Offered address minus stored address. The negative first coordinate and positive second coordinate specify the change needed.
Correction leaving the relay
Output of the write-error neurons. At 685 ms the gate blocks the correction. At 810 ms the relay drives coordinate 1 down and coordinate 2 up.
Stored address
Output of the current register, enlarged from plot 1. As the address moves towards position 2, the difference at the relay input shrinks.
Maintenance feedback
The short loop in Figure 45 returns activity to the register. By 980 ms it supports position 2 with the write gate closed.
How does this relate to plot 3? At 850 ms the current register is still settling. The Incoming read route lets the prepared successor supply the second CUP during that interval. At 980 ms the current register holds position 2 and the Committed route supplies the same CUP. Compare the read permissions in plot 3.
All traces show recorded signals sampled every 5 ms with the same 10-ms probe filter. The feedback traces include the recurrent connections’ own 30-ms filter. Values are decoded neural activity or filtered connection signals and can fluctuate around 0 and 1.
Follow the handover
| Time | What to look for |
|---|---|
| 400 ms | Position 1 supplies CUP. Position 2 is already represented in the successor address register. |
| 685 ms | Position 1 and its committed route are still active. Cue permission is low and the CUP cue has nearly faded. |
| 850 ms | The confirmed incoming route selects position 2 during copy-back. It supplies CUP a second time. |
| 1150 ms | The committed current address register now supplies position 2. The switch between routes belongs to the same second occurrence. |
| 1780 ms | Position 3 selects JUG, the concept for Kanne. The two concept vectors share some features, so their dot product is about 0.45. |
| 2550 ms | The selected address is END. Although cue permission is open, END has no connection to a concept vector and the cue falls to zero. |
Model connections, recording and downloads
The two recurrent SPA address registers, their address comparisons and their read routes come from the Paper 3 model. Each address population has its own feedback connection. Cue vectors are the original 512-dimensional CUP and JUG vectors. In the example code the cue is a Nengo output port (Node(size_in=512)).
Initialization lasts 200 ms. External pulses supply advance requests and cue permission so the address circuit can be examined on its own. In the complete model those ongoing permissions depend on lexical and syllable feedback. This recording ends at the input to the mental lexicon.
10,560 LIF neurons · seed 1111 · Nengo 4.1.0 · NengoSPA 2.0.0. Integration and spike recording use 1 ms steps. The player shows decoded traces every 5 ms with a 10 ms probe filter. The plan highlight uses the strongest selected address coordinate once it exceeds 0.65 and leads the runner-up by 0.20.