Introduction
Training autonomous agents, such as robots or self-driving vehicles, to perform multiple tasks simultaneously is a significant challenge in artificial intelligence. The primary obstacle is task interference, where learning a new objective conflicts with previously acquired knowledge, leading to performance degradation or "catastrophic forgetting." While Spiking Neural Networks (SNNs) are ideal for these resource-constrained agents due to their low power consumption and temporal processing capabilities, existing multi-task SNN frameworks often rely on rigid, fixed training schedules. These schedules force task switches regardless of the agent's actual learning progress, resulting in inefficient resource allocation.
The SwitchMT Framework
To address these inefficiencies, we introduce SwitchMT, a novel framework that enables scalable multi-task learning through an adaptive context-switching methodology. SwitchMT optimizes training by detecting learning plateaus and dynamically reallocating compute resources to the tasks that require them most.
1. Architectural Specialization: Active Dendrites
SwitchMT utilizes a Deep Spiking Q-Network (DSQN) enhanced with a dueling structure and active dendrites. Unlike traditional methods that increase model size to accommodate new tasks, SwitchMT maintains a constant parameter footprint. It achieves specialization by using task-specific context signals to modulate neuron activity. This effectively creates specialized "sub-networks" within the same model, allowing the agent to encode task-specific features in dendritic weights that are resistant to interference from other tasks.
2. Adaptive Task-Switching Policy
The core innovation of SwitchMT is its Adaptive Task-Switching Policy. Rather than using a fixed timer, the system monitors the internal dynamics of the network's parameters ($\theta$). By calculating the relative change in parameters ($\Delta\theta$) over a sliding window using an $L2$ norm, the system identifies when the network has reached a learning plateau. When the rate of change drops below a specific threshold (e.g., 10%), the system automatically switches the agent to the next task. This ensures that harder tasks receive more training time while simpler tasks are cycled through efficiently.
Experimental Evaluation
We evaluated SwitchMT using the Gymnasium library on three classic Atari 2600 games: Pong, Breakout, and Enduro. These games provide a diverse set of challenges, from basic reaction tracking to long-term temporal processing.
Key Results
SwitchMT demonstrates state-of-the-art performance while maintaining zero complexity overhead (~3.3 million parameters):
- Superior Performance: In Enduro, SwitchMT achieved a score of 355.2, nearing the human baseline of 368. In Breakout, it reached a score of 5.6, significantly outperforming standard DQN and DSQN models which struggled to score.
- Efficiency: In Pong, SwitchMT reached 12 points, outperforming the previous state-of-the-art MTSpark_ADD (9 points) and standard DQN (1 point).
- Resource Optimization: The improvements stem entirely from the efficiency of the adaptive training policy, proving that intelligent scheduling can replace the need for larger, more power-hungry models.
Conclusion and Future Work
SwitchMT proves that tying training schedules to parameter stability allows autonomous agents to learn more effectively within fixed hardware constraints. While the framework significantly outperforms existing SNN methods, a performance gap remains in complex tasks like Breakout compared to human players. Future research will focus on making the plateau threshold itself adaptive and scaling the methodology to handle dozens of simultaneous tasks for truly generalist autonomous agents.
Summary updated