Convergent neural dynamical systems for task control in artificial networks and human brains

Harrison Ritz, Aditi Jha, Jonathan W. Pillow, Nathaniel D. DawbioRxiv 2024

Abstract

The ability to switch between tasks is a core component of human intelligence, yet a mechanistic understanding of this capacity has remained elusive. Long-standing debates over how task switching is influenced by preparation for upcoming tasks or interference from previous tasks have been difficult to resolve without quantitative neural predictions. We advance this debate by using state-space modeling to directly compare the latent task dynamics in task-optimized recurrent neural networks and human electroencephalographic recordings. Over the inter-trial interval, both networks and brains converged into a neutral task state, a novel control strategy that reconciles the role of preparation and interference in task switching. These findings provide a quantitative account of cognitive flexibility and a promising paradigm for bridging artificial and biological neural networks.

Introduction

How does the human brain manage the transition between different mental rules? This question of "cognitive flexibility" is central to understanding intelligence. A recent study by researchers at Princeton and Stanford provides a novel perspective by bridging artificial intelligence and human cognitive neuroscience. By applying state-space modeling (SSM) to both recurrent neural networks (RNNs) and human EEG data, the authors identified a "neutral task state" that governs how we flexibly switch between tasks.

The Task-Switching Debate

For decades, psychologists have debated the mechanisms underlying task switching. Two primary theories have emerged:

  1. Active Reconfiguration: The brain actively "loads" a new task set through cognitive control.
  2. Task Set Inertia: The previous task's state persists, creating interference with the new task.

Resolving this debate has been challenging due to the lack of a common mathematical framework to compare the latent dynamics—the hidden patterns of activity—in artificial models and biological brains.

Methodology: Bridging AI and Neuroscience

The researchers developed a computational pipeline to compare artificial and biological systems. They trained Gated Recurrent Units (GRUs) on context-dependent decision-making tasks using various training curricula.

RNN training curricula and trial structure used to study task switching.

As shown in Figure 1, some networks were trained only on single trials (no switching), while others were "switch-trained" on sequences. To compare these RNNs to human brains, the authors used linear-Gaussian SSMs to linearize high-dimensional neural activity into latent factors. This allowed for a direct comparison between the hidden units of an RNN and human EEG signals from the Hall-McMaster and Arnau datasets.

Key Findings: The "Tennis Player" Strategy

The study's most significant discovery is that both switch-trained RNNs and human brains utilize a "neutral task state." During the inter-trial interval (ITI), the system does not simply jump from one task configuration to another. Instead, it converges toward a neutral midpoint.

RNN hidden unit trajectories showing convergence toward a neutral state during the inter-trial interval.

This strategy, visualized in Figure 3, is analogous to a tennis player returning to the center of the court after a volley. By moving to a neutral state, the system becomes equidistant from all potential future tasks, minimizing the effort required for the next transition. Crucially, RNNs without switch-training failed to develop this strategy, suggesting that the "mental reset" is a learned control mechanism rather than a passive decay of activity.

Reconciling Preparation and Interference

This neutral state provides a unified explanation for the long-standing debate. The time required to reach the neutral state accounts for "task set inertia" (switch costs), while the subsequent movement from the neutral state to the new task configuration represents "active reconfiguration" (preparation).

Results and Convergence

The over-parameterized SSMs (using 112 latent factors) proved highly effective, outperforming standard models in forecasting future EEG activity. Key results include:

  • Initial Centrality: In both switch-trained RNNs and human EEG, neural states moved closer to the midpoint during the ITI, especially in datasets with longer intervals.
  • Task Energy: Using Lyapunov analysis, the researchers found that switch trials required significantly higher "task energy." The brain exerts more control effort to drive the system out of the neutral state into a specific task configuration during a switch.

Conclusion and Future Directions

The convergence of task-optimized artificial networks and the human brain on the same dynamical solution suggests a potentially universal optimal strategy for cognitive flexibility. While the RNNs exhibited smaller behavioral switch costs than humans, the neural alignment is striking. Future research may explore how this "neutral state" strategy scales to higher-dimensional task spaces involving dozens of contexts.

Summary updated

BibTeX
@misc{ritz2024convergent,
  author = {Harrison Ritz and Aditi Jha and Jonathan W. Pillow and Nathaniel D. Daw},
  title = {{Convergent neural dynamical systems for task control in artificial networks and human brains}},
  year = {2024},
  doi = {10.1101/2024.09.29.615736},
  howpublished = {bioRxiv},
}
Figure