arXiv:2610.33926cs.LGOct 2026

Manuscript Offprint

arXiv:2610.33926

Multitask Interactions in Recurrent Dynamics across 100 Cognitive Tasks

Sílvia García-Hernández, Leema Hamid, Manuel Brenner

ABSTRACT

The brain continually learns tasks with very different computational demands. Recurrent neural networks (RNNs) have been used as dynamical surrogates for studying task solutions, with recent work extending this approach to joint training on multitask batteries. However, it remains unclear how tasks interact as these batteries grow in scale and heterogeneity: under what conditions do they transfer or interfere with one another, and how do these effects relate to task complexity and model structure? We study this question by simultaneously training hierarchical Almost-Linear RNNs (AL-RNNs) on 100 tasks spanning a wide range of cognitive demands. AL-RNNs allow us to vary the amount of nonlinearity in the recurrence, while hierarchical task features provide a low-dimensional interface for task-specific adaptation within shared dynamics. On this task battery, performance improves with both nonlinear capacity and task-feature dimensionality, with the joint hierarchical model outperforming both individually trained models and a single unstructured joint model. Many tasks are individually solvable with linear dynamics, yet cannot be solved together by a shared linear model. Through hierarchical task features, task-specific linear region usage, and task geometry, the trained model provides several related but distinct measures of task similarity that capture how computations are separated and combined within the shared backbone. Across a series of experiments, we relate these representations to individual task complexity, joint solvability, pairwise transfer learning, and leave-one-out adaptation. Together, our experiments characterize task interactions in multitask recurrent learning while demonstrating both the potential and the challenges of reusable dynamical backbones for cognitive computation.

1 INTRODUCTION

The mammalian brain is a remarkably flexible learning system, acquiring a large repertoire of cognitive tasks by both efficiently leveraging shared structure across tasks (transfer learning) while preventing new learning from overwriting existing solutions (catastrophic forgetting). Achieving this requires a dynamical substrate supporting reusable motifs and task-specific separation. However, isolating and interpreting these mechanisms from recordings of complex nonlinear brain dynamics remains challenging. To better understand the dynamical mechanism underpinning task solutions, task-trained recurrent neural networks (RNNs) have emerged as dynamical surrogate models that allow researchers to analyze the resulting attractor dynamics and compare them to neural recordings (Mante et al., 2013; Sussillo and Barak, 2013). Historically focused on single-task settings, this approach has identified task-specific motifs but leaves open how they coexist when multiple tasks are embedded in a shared system.

In domains like vision and language, where data modalities are structurally homogeneous, positive transfer is often the default expectation (Raffel et al., 2020). However, cognitive tasks vary substantially in input structure, delay periods, and computational demands, creating a real risk of interference, requiring the model to actively separate conflicting computations within the shared dynamics. Recent work has begun to compile task batteries and investigated joint training and dynamical mechanisms (Yang et al., 2019; Turner and Barak, 2023; Driscoll et al., 2024). So far, these task suites have usually been relatively small and structured, with many of their tasks admitting surprisingly simple solutions (Khona et al., 2023). This motivates larger and more heterogeneous batteries (Khona et al., 2023) for asking how task interactions scale when the shared model must accommodate diverse computational demands.

Understanding these interactions requires a framework that can explicitly control the capacity for nonlinear computation and task-specific adaptation. In this work, we employ hierarchical Almost-Linear RNNs (AL-RNNs) as an interpretable experimental framework to study multitask interactions within a shared recurrent dynamical backbone. The AL-RNN architecture allows us to vary the amount of piecewise-linear nonlinear computation, while hierarchical task features provide a low-dimensional interface for task-specific adaptation. We train this model jointly on a heterogeneous battery of 100 supervised cognitive tasks, combining paradigms adapted from prior multitask studies (Yang et al., 2019; Driscoll et al., 2024; Khona et al., 2023) with additional tasks compiled from the cognitive and neuroscientific literature. We compare joint hierarchical models with individually trained networks and flat joint models to characterize how heterogeneous tasks interact under shared recurrent dynamics. The hierarchical AL-RNN provides a parameter-efficient compromise that outperforms matched-size individual models and unstructured joint models. Across several analyses, we find that nonlinearity, low-dimensional task features, and recurrent state geometry provide complementary forms of task organization, while jointly learning more heterogeneous tasks requires increasingly complex models. These representations define interpretable task-similarity spaces that relate to transfer learning: some tasks systematically produce negative transfer when used as initializations, and a task's isolation in the learned space was predictive of poorer transfer and poorer leave-one-out adaptation to it. Together, these findings demonstrate that effective multitask computation is possible but requires actively structured capacity to manage interference within shared dynamics.

References (100)

Couldn't load all references. Reload the page to try again.