Abstract
Standard artificial neural networks struggle with multi-task learning, often suffering from catastrophic forgetting or requiring extensive retraining. In contrast, biological brains efficiently reuse existing knowledge. We present the Modular Latent Primitives (MoLaP) network, an RNN architecture that leverages structural modularity and functional pre-training. By extracting "latent primitives" via Canonical Correlation Analysis (CCA) and pre-training isolated recurrent modules, MoLaP creates a reservoir of reusable basis computations. This approach achieves state-of-the-art performance on cognitive tasks with two orders of magnitude fewer parameter updates and enhanced robustness to network damage compared to traditional methods.
Introduction
A fundamental challenge in artificial intelligence is the ability to learn multiple tasks sequentially without forgetting previous ones. While biological agents utilize evolutionary and developmental inductive biases to learn rapidly, artificial models often start as "blank slates." This paper introduces MoLaP, a framework designed to bridge this gap by encoding the shared statistical structure of a task corpus into modular recurrent primitives that act as reusable "starter packs" for complex dynamics.
Methods
The MoLaP architecture is developed in three distinct stages:
- Latent Primitive Extraction: Instead of training on tasks directly, Canonical Correlation Analysis (CCA) is applied to a corpus of tasks to identify core transformations that maximize the correlation between inputs and outputs across the entire dataset.
- Modular Pre-training: The RNN is partitioned into independent, unconnected modules (e.g., M1, M2, M3). Each is pre-trained to represent a specific CCA-derived primitive while inter-module connections remain frozen.
- Task-Specific Training: Once modules are established, their internal recurrent weights are permanently frozen. Learning a new task involves updating only the task-specific input and output readout weights, effectively treating the pre-trained modules as a specialized reservoir of basis computations.
Results
MoLaP was evaluated on nine standard cognitive neuroscience tasks, including Delay Pro, Memory tasks, and context-dependent decision-making. The model demonstrated significant advantages in both efficiency and robustness.
Efficiency and Performance
MoLaP achieved over 70% accuracy across all tasks while requiring approximately 100x fewer parameter updates than Dynamical Non-Interference (DNI). Specifically, MoLaP required ~5.2e3 updates compared to ~9.18e5 for DNI. A critical finding was the superiority of CCA over PCA for pre-training. While PCA maximizes variance within a dataset, CCA captures the actual transformations required by the environment, allowing MoLaP to learn "basis computations" that are more universally applicable across the task corpus.
Robustness and Generalization
The modular structure provides inherent resilience. MoLaP maintains high performance even with 10-30% of intra-module weights lesioned or under significant global noise. This robustness stems from the independence of the learned primitives; because modules are trained in isolation, damage to one does not necessarily corrupt the functional dynamics of others. Furthermore, "leave-one-out" cross-validation demonstrated that MoLaP generalizes to unseen tasks, confirming that the extracted primitives represent fundamental building blocks rather than task-specific memorization.
Discussion
MoLaP suggests that modularity and statistical pre-training are key to the brain's multi-tasking capabilities. While the network is robust to internal module damage, it remains sensitive to inter-module connection failures, highlighting a potential trade-off in modular architectures. Future research should investigate whether biological neural populations, such as those in the prefrontal cortex, exhibit similar modular latent dynamics. This work provides a computationally efficient and biologically plausible path toward more robust and adaptable artificial intelligence.
Summary updated