NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A plastic attractor model of flexible rule-based selective attention

Christopher J. Whyte, Sanjay Manohar, Eva Feredoes, Alexandra WoolgarbioRxiv 2025

Abstract

A defining feature of human cognition is the ability to select and respond to stimuli flexibly in different circumstances. Here we show that a recently proposed class of small associative neural network, plastic attractors, can perform such flexible cognitive functions through the rapid formation of task-based attractors. We simulated a rule-based selective attention paradigm, in which agents respond to one task-relevant feature of a visual stimulus, while ignoring another, irrelevant feature, and respond to the attended feature according to a predefined stimulus-response mapping rule. The model consists of a broadly tuned prefrontal population with rapidly changing recurrent connections to sensory neurons that compete via lateral inhibition. In this framework, the rules governing the focus of selective attention are not coded explicitly, but arise as an emergent property of temporary associations between stimulus features and motor responses. The model exhibited activation properties that embody cornerstone concepts in current attentional theory including mixed selectivity, adaptive coding and biased competition, and reproduced a number of classic behavioral and neural findings. A causal test of the model using non-invasive brain stimulation concurrent with functional magnetic resonance imaging (TMS-fMRI) in humans showed that network perturbation reproduced neural decoding and behavioural data. When features were task-relevant, they rapidly formed synaptic connections with frontal cortex binding them into an attracting state, which manifest as prioritized representation of attended information, but this state was readily corrupted by brain stimulation. The model shows mechanistically that rapid synaptic changes could explain flexible rule-based control of attention.

Introduction

Human beings possess a remarkable capacity for cognitive flexibility. We can receive a novel instruction—such as "press the left button for green circles and the right for red squares"—and execute it almost instantly. This "zero-shot" performance remains a significant challenge for traditional computational models of the brain. Most existing artificial intelligence models fall into two categories: they either rely on slow, gradient-based learning (like backpropagation) that requires thousands of trials to stabilize, or they utilize hard-coded "task units" pre-programmed for specific features. Neither approach adequately explains how the biological brain handles novel rules with such immediacy.

This paper introduces a "plastic attractor" model—a small, biologically plausible neural network—to bridge this gap. By utilizing rapid Hebbian plasticity to form temporary "task attractors," the model explains how selective attention emerges naturally from the associations between sensory features and motor responses.

The Plastic Attractor Framework

The researchers developed a recurrent neural network (RNN) architecture characterized by two layers of rate-coded neurons:

  1. Feature Units: These represent sensory inputs (e.g., color, shape) and motor outputs (e.g., left/right response).
  2. Conjunction Units: These represent a prefrontal-like population that binds various features together into a coherent task state.

The network's dynamics are governed by lateral inhibition—a "winner-take-all" mechanism—and recurrent feedback. Crucially, the model employs a Hebbian covariance rule for rapid plasticity. Unlike traditional models with fixed weights, this architecture utilizes two timescales of plasticity: a fast-changing weight matrix for trial-to-trial associations and a slower-changing matrix to provide stability across blocks of trials.

In this framework, a "rule" is not a static line of code but an emergent property. It manifests as a temporary "groove" in the synaptic weight matrix, creating a fixed-point attractor that pulls the network toward the correct motor response when a specific stimulus is presented.

Emergent Selective Attention and the "Virtuous Cycle"

Selective attention—the ability to prioritize relevant information while ignoring distractors—arises in the model through a feedback loop. Conjunction units provide a top-down bias to relevant feature units. These biased units then win the lateral inhibition race against irrelevant features, which in turn further strengthens the activity of the conjunction units. This "virtuous cycle" allows the model to achieve high performance (96.4% accuracy) without explicit task-coding neurons.

Empirical Validation and Causal Testing

The model was validated against several empirical human datasets to ensure biological and behavioral alignment:

  • Behavioral Congruency: The model reproduced the classic "congruency effect" observed in human behavior (Barnes et al., 2021). It demonstrated faster reaction times when irrelevant features suggested the same response as relevant ones (30.14 vs. 50.19 time-steps).
  • Neural Decoding: Multivariate decoding of the model's units matched human MEG data (Goddard et al., 2022). In the conjunction units (representing the prefrontal cortex), relevant information was prioritized throughout the trial. In the feature units (representing sensory cortex), relevant and irrelevant information were initially equal, but irrelevant information decayed rapidly after the stimulus disappeared.
  • TMS Perturbation: To test the model's causal robustness, the researchers simulated Transcranial Magnetic Stimulation (TMS) by "clamping" conjunction units to maximal activation. This forced the network to re-compete for dominance, disrupting the synaptic attractor. The simulation perfectly mirrored the drop-off in neural decoding accuracy and behavioral changes observed in human TMS-fMRI studies (Jackson et al., 2021).

Discussion

The plastic attractor model provides a mechanistic explanation for how the brain achieves flexible, rule-based control. It demonstrates that rapid synaptic changes can create temporary attractors that prioritize task-relevant information.

While the model is highly effective, it has limitations. It is currently "flat," meaning it struggles with complex logical tasks like XOR without pre-processed representations. Additionally, as a rate-coded model, it cannot predict discrete neural oscillations (e.g., Gamma or Alpha waves). Future work will explore scaling these principles to larger "multiple-demand" networks and incorporating "rule cue" units to better simulate how humans follow verbal or visual instructions without prior trial experience. Nonetheless, the model offers a powerful new lens through which to view the intersection of synaptic plasticity and cognitive control.

Summary updated

BibTeX
@misc{whyte2025plastic,
  author = {Christopher J. Whyte and Sanjay Manohar and Eva Feredoes and Alexandra Woolgar},
  title = {{A plastic attractor model of flexible rule-based selective attention}},
  year = {2025},
  doi = {10.1101/2025.09.07.674747},
  howpublished = {bioRxiv},
}
Figure