Where does the rule live? Width allocation and trial stage shape the division of labor in recurrent networks for working memory
Neural recordings can show where task rules are decodable, but not which part of a circuit a behavioral answer depends on. I trained two-module recurrent networks, a memory module that receives the items and a control module that receives task inputs, on a working-memory task built on permutations of seven items, in which a context determines which operation a later cue calls for. To test causal dependence, I swapped one module's state between two trials that share items, cue and query and differ only in context, so that for every query the answer called for by the donor's context is known in advance. In 31 vanilla RNNs whose answers depended on the control module before the cue, context could be decoded from the memory module (median 94.4%), yet a memory swap before the cue almost never shifted the response to the donor's answer. In 32 independently trained vanilla RNNs, all control-dependent before the cue, a memory swap just before the query shifted the response to the donor's answer with group means of 13%, 35% and 77% as memory width increased. In memory-dependent LSTMs, replacing only the control-to-memory signal with one that changed the cue symbol but kept the operation added errors in a median of 86.5% of queries, whereas one that kept the cue symbol but changed the operation added none; among the 15 control-dependent LSTMs, the corresponding median added-error rates were 0.0% and 71.9%. Across vanilla RNN, GRU and LSTM networks, the module the answer depended on shifted with how width was divided between the modules, before the cue in GRU and LSTM networks and just before the query in vanilla RNNs. In the replication of the GRU and LSTM networks, the GRU met the preregistered joint replication criterion and the LSTM did not: with 128 memory and 32 control units, 4 of 8 qualified LSTMs were memory-dependent before the cue (6 of 7 in the original cohort), below the registered two-thirds. Most predictions were time-stamped before training or analysis; exceptions and failed predictions are reported.
Authors
- Xuanyu Yang
Institutions
- University of Washington (US)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-23
- DOI
- https://doi.org/10.5281/zenodo.24477647
- Primary Topic
- Neural dynamics and brain function
- Type
- article
- Field-Weighted Citation Impact
- 0.00