NEF–SPA CIRCUIT LAB

EXAMPLE 09 · §2.5.1 · ACTION SELECTION

Help the listener find the red cup

You can name the kind of object (“a cup”) or its colour (“something red”). Which clue helps most? Change the three distractors and follow how one spiking circuit selects each clue from the objects that still fit what the listener has heard.

Read Example 09 in the manuscript · pp. 60–61 · Inside a cortical slot · Memory and utilities · Inside the selector

Loading the neural recordings…

What the speaker could say

ActionRules out now
Name the kind · “a cup”—
Name the colour · “something red”—

Clues received

    From cortical memory to selection and back

    The speaker’s cortical memory tracks the listener’s possible referents. Four recurrent populations hold one state per object. Both clue utilities are evaluated together from that memory. The selected basal-ganglia channel reduces its inhibition, and the corresponding thalamic population drives the clue receiver.

    When the receiver acknowledges a clue, a write signal removes incompatible objects from cortical memory. The surviving populations keep their state through recurrent connections. This changes how many candidates the next clue could eliminate. Follow the first clue received event and then the memory updated event to see the difference.

    Figure 2.28A · The complete circuit

    Four recurrent cortical slots feed the clue utilities. Three parallel basal-ganglia channels inhibit their corresponding thalamic populations. The selected action drives the receiver. An acknowledged clue initiates a write to incompatible slots, changing the next utilities. Finish ends the trial.
    The solid boxes contain spiking populations. The dashed boxes show the calculations inside one Nengo node. Scene features are supplied to the model. The bar between the basal ganglia and thalamus marks inhibition. Numbers 1–4 match the four plots below. Open the full-size diagram.

    Figure 2.28B · Activity in the selected scene

    Decoded activity from the selected run. The vertical cursor follows playback. The memory traces use the letters on the scene cards. The other three plots use the same action colours. Change the starting scene above to compare the clue order. Figure 2.28A and B from the manuscript (PDF, default scene).

    Figure 2.29 · How a cortical slot holds and changes its state

    This recording follows the red kettle in slot C in the opening scene, Kind is more informative. Each of the four slots contains 160 spiking neurons. A filtered connection takes their activity back to the same population and stabilises two states, possible and excluded.

    Above, a recurrent population lies between the write command and status readout. Below, a brief negative command changes which kettle neurons fire. After the command ends, its decoded state stays negative while the red cup stays positive.
    Follow the command, the spikes of the first 20 kettle neurons and the decoded states of the red cup and kettle on the same time axis. The receiver acknowledges a cup at 129 ms. Once the kettle is excluded at 147 ms, the command returns to zero. The population maintains that exclusion. Dashed boxes in A mark functions of the Nengo node. Figure 2.29 in the manuscript · p. 63 · Download the recorded samples (CSV).

    Figure 2.30 · How the first clue changes the next choice

    In the kind-first scene, the first write excludes C and D and the second excludes B. Kind, colour and finish lead on successive rows.
    The starting scene here is Kind is more informative. When the receiver acknowledges “a cup” at 129 ms, the write to the red kettle and red plate begins. By 147 ms both have been ruled out. Colour still has utility 0.65, while kind has fallen from 0.95 to 0.35. The values are the calculated inputs before filtering. Figure 2.30 in the manuscript · p. 65.

    Figure 2.31 · How the basal ganglia release one thalamic action

    Three parallel kind, colour and finish channels pass through D1, D2, STN, GPe and GPi. The three thalamic action populations inhibit one another.
    K, C and F stand for kind, colour and finish. A bar marks inhibition. When GPi reduces its inhibition of the selected channel, that thalamic population can respond to its tonic drive. The inset shows how the three actions inhibit one another. This wiring is shared by all the scenes above. Figure 2.31 in the manuscript · p. 66.
    How the circuit and recordings work

    All scenes use the same target, goal, weights and random seed. An object can match the target in kind, colour, both or neither. The three distractors give 20 distinct unordered combinations of those relations. Each was run with the same Nengo simulator after a reset. The editor maps your objects to the matching recording and reorders the memory traces for the displayed slots.

    Each cortical slot uses 160 recurrent LIF neurons with two stable states. One common 60-ms input loads the scene. The rule for reading a slot switches to present above +0.35 and to eliminated below −0.35. For each clue the model counts the surviving objects it would rule out. Its input utility is 0.35 + 0.30 × that count. When positive counts tie, a fixed 0.18 preference favours kind. The finish channel has input 0.25 while an informative clue remains and 1.15 otherwise. If indistinguishable candidates remain, the result explicitly reports ambiguity.

    The Nengo basal-ganglia network has three channels in each of five populations (D1, D2, STN, GPe and GPi), with 100 LIF neurons per population per channel. The thalamus uses 90 LIF neurons per action. A simplified receiver integrates exclusive thalamic drive above 0.60 and acknowledges it when its filtered response exceeds 0.83 (40-ms time constant). Acknowledgement initiates the cortical write. The next selection depends on the resulting memory state. Object features, utility arithmetic, receiver and write command are implemented as explicit model functions. The words on screen label the received clue; speech acoustics and a separate listener brain are outside this model.

    The model has 2,410 LIF neurons, a 1-ms integration step and 5-ms recording intervals. Circuit seed 49, Nengo 4.1.0, NumPy 2.5.4. This run used Nengo’s default L2 decoder fallback with SciPy absent. The downloadable Python source regenerates the recordings and checks every action sequence.

    Download the Nengo source · Download all recordings and event times

    Routing companion · naming and repetition (Appendix A.6)