Sparks of cognitive flexibility: self-guided context inference for flexible stimulus-response mapping by attentional routing
Preprint
Abstract
Flexible cognition demands discovering hidden rules to quickly adapt stimulus-response mappings. Standard neural networks struggle in tasks requiring rapid, context-driven remapping. Recently, Hummos (2023) introduced a fast-and-slow learning algorithm to mitigate this shortfall, but its scalability to complex, image-computable tasks was unclear. Here, we propose the Wisconsin Neural Network (WiNN), which expands on fast-and-slow learning for real-world tasks demanding flexible rule-based behavior. WiNN employs a pretrained convolutional neural network for vision, coupled with an adjustable "context state" that guides attention to relevant features. If WiNN produces an incorrect response, it first iteratively updates its context state to refocus attention on task-relevant cues, then performs minimal parameter updates to attention and readout layers. This strategy preserves generalizable representations in the sensory network, reducing catastrophic forgetting. We evaluate WiNN on an image-based extension of the Wisconsin Card Sorting Task, revealing several markers of cognitive flexibility: (i) WiNN autonomously infers underlying rules, (ii) requires fewer examples to do so than control models reliant on large-scale parameter updates, (iii) can perform context-based rule inference solely via context-state adjustments-further enhanced by slow updates of attention and readout parameters, and (iv) generalizes to unseen compositional rules through context-state inference alone. By blending fast context inference with targeted attentional guidance, WiNN achieves "sparks" of flexibility. This approach offers a path toward context-sensitive models that retain knowledge while rapidly adapting to complex, rule-based tasks.Keywords
All Related Versions
This publication has 22 references indexed in Scilit:
- Continual learning and catastrophic forgetting2024
- Helpless infants are learning a foundation modelTrends in Cognitive Sciences, 2024
- Attention control in the primate brainCurrent Opinion in Neurobiology, 2022
- Embracing Change: Continual Learning in Deep Neural NetworksTrends in Cognitive Sciences, 2020
- Extensive training leads to temporal and spatial shifts of cortical activity underlying visual category selectivityNeuroImage, 2016
- Using goal-driven deep learning models to understand sensory cortexNature Neuroscience, 2016
- Hierarchical reinforcement learning and decision makingCurrent Opinion in Neurobiology, 2012
- Adult Visual Cortical PlasticityNeuron, 2012
- A feature-integration theory of attentionCognitive Psychology, 1980
- A behavioral analysis of degree of reinforcement and ease of shifting to new responses in a Weigl-type card-sorting problem.Journal of Experimental Psychology, 1948