Shaping Sequence Attractor Schema in Recurrent Neural Networks
Zhikun Chu, Bo Ho, Xiaolong Zou, Yuanyuan Mi
Abstract
Sequence schemas are abstract, reusable knowledge structures that facilitate rapid adaptation and generalization in novel sequential tasks. In both animals and humans, shaping is an efficient way to acquire such schemas, particularly in complex sequential tasks. As a form of curriculum learning, shaping works by progressively advancing from simple subtasks to integrated full sequences, and ultimately enabling generalization across different task variations. Despite the importance of schemas in cognition and shaping in schema acquisition, the underlying neural dynamics at play remain poorly understood. To explore this, we train recurrent neural networks on an odor-sequence task using a shaping protocol inspired by well-established paradigms in experimental neuroscience. Our model provides the first systematic reproduction of key features of schema learning observed in the orbitofrontal cortex, including rapid adaptation to novel tasks, structured neural representation geometry, and progressive dimensionality compression during learning. Crucially, analysis of the trained RNN reveals that the learned schema is implemented through sequence attractors. These attractor dynamics emerge gradually through the shaping process: starting with isolated discrete attractors in simple tasks, evolving into linked sequences, and eventually abstracting into generalizable attractors that capture shared task structure. Moreover, applying our method to a keyword spotting task shows that shaping facilitates the rapid development of sequence attractor schemas, leading to enhanced learning efficiency. In summary, our work elucidates a novel attractor-based mechanism underlying schema representation and its evolution via shaping, offering new insights into the acquisition of abstract knowledge across biological and artificial intelligence.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 945aace9-5391-4dd1-b75b-4796bccd718bBuilds on5
- Human-Timescale Adaptation in an Open-Ended Task SpaceJakob Bauer, Kate Baumli, Feryal M. P. Behbahani, Avishkar Bhoopchand et al.ICML 2023 · 155 citations
- Measuring and Controlling Solution Degeneracy across Task-Trained Recurrent Neural NetworksAnn Huang, Satpreet Harcharan Singh, Flavio Martinelli, Kanaka RajanNeurIPS 2025 · 22 citations
- Why Do Animals Need Shaping? A Theory of Task Composition and Curriculum LearningJin Hwa Lee, Stefano Sarao Mannelli, Andrew M. SaxeICML 2024 · 15 citations
- Learning and processing the ordinal information of temporal sequences in recurrent neural circuitsXiaolong Zou, Zhikun Chu, Qinghai Guo, Jie Cheng et al.NeurIPS 2023 · 2 citations
- Leveraging Attractor Dynamics in Spatial Navigation for Better Language ParsingXiaolong Zou, Xingxing Cao, Xiaojiao Yang, Bo HongICML 2024
Related papers
- Curriculum learning as a tool to uncover learning principles in the brainDaniel R. Kepple, Rainer Engelken, Kanaka RajanICLR 2022 · 21 citations
- Implementing Inductive bias for different navigation tasks through diverse RNN attrractorsTie Xu, Omri BarakICLR 2020 · 6 citations
- Vector Quantization in the Brain: Grid-like Codes in World ModelsXiangyuan Peng, Xingsi Dong, Si WuNeurIPS 2025
- Flexible task abstractions emerge in linear networks with fast and bounded unitsKai Sandbrink, Jan P. Bauer, Alexandra Maria Proca, Andrew M. Saxe et al.NeurIPS 2024 · 7 citations
- The Simplicity Bias in Multi-Task RNNs: Shared Attractors, Reuse of Dynamics, and Geometric RepresentationElia Turner, Omri BarakNeurIPS 2023 · 25 citations
