Researchers trained recurrent neural networks and mice on versions of an odor-timing task, using different sequences of early training. Mice and networks that lacked well-structured early experience tended to develop fixed strategies and repeat errors when faced with more complex versions of the task.

Mice given more balanced early training generalized better to new task demands. Their brain activity showed patterns related to the task’s underlying timing structure, similar to patterns in the networks. Dynamical-systems analyses indicated that the networks with structured training developed multiple activity patterns that supported the needed abstractions, whereas other networks settled on single fixed-point solutions that did not generalize beyond the training stimuli.