Abstract
Mixtures of Experts (MoEs) have gained prominence in (self-)supervised learning due to their enhanced inference efficiency, adaptability to distributed training, and modularity. Previous research has illustrated that MoEs can significantly boost Deep Reinforcement Learning (DRL) performance by expanding the network's parameter count while reducing dormant neurons, thereby enhancing the model's learning capacity and ability to deal with non-stationarity. In this work, we shed more light on MoEs' ability to deal with non-stationarity and investigate MoEs in DRL settings with "amplified" non-stationarity via multi-task training, providing further evidence that MoEs improve learning capacity. In contrast to previous work, our multi-task results allow us to better understand the underlying causes for the beneficial effect of MoE in DRL training, the impact of the various MoE components, and insights into how best to incorporate them in actor-critic-based DRL networks.
Introduction
Deep Reinforcement Learning (DRL) is notoriously challenging due to the inherent non-stationarity of the learning process. Unlike standard supervised learning with fixed datasets, a DRL agent’s data distribution shifts as it explores and learns. This often leads to "plasticity loss," where neural networks lose their ability to adapt over time. A major symptom of this loss is the emergence of "dormant neurons"—units whose activations drop to near zero, effectively removing them from the learning process. This study investigates whether Mixture of Experts (MoE) architectures can mitigate these issues by maintaining a higher pool of active neurons and specialized sub-networks.
Methodology
Architecture Surgery
To understand the impact of MoE placement, we conducted a systematic evaluation of five distinct configurations, as illustrated in Figure 1:
- Baseline (a): A standard dense neural network.
- Middle (b): Replacing only the penultimate layer with an MoE module.
- Final (c): Replacing only the last layer.
- All (d): Replacing every layer with MoE modules.
- Big (e): A single MoE module where each "expert" is a full-sized version of the original baseline network.
Routing Strategies
We also explored various methods for assigning inputs to experts:
- Hardcoded: Manual assignment of one expert per task (serving as a gold-standard baseline).
- Top-K: A discrete routing strategy where the single best expert is selected for a given input.
- Soft MoE: A fully differentiable approach that passes a weighted blend of tokens to experts, avoiding the instability of discrete choices.
All experiments utilized the Proximal Policy Optimization (PPO) algorithm.
Experimental Setup
The study utilized the MinAtar suite, featuring simplified versions of classic Atari games: SpaceInvaders (SI), Breakout (BO), and Asterix (Ast). These were tested in two primary settings:
- Multi-Task RL (MTRL): Simultaneous learning of all three games.
- Continual RL (CRL): Sequential learning (e.g., SI → BO → Ast) to test skill retention and adaptation.
Key Results and Discussion
Performance and Routing
In multi-task settings, the routing strategy proved critical. While "Hard" Top-K routing is popular in supervised learning for its efficiency, it often struggled in the high-variance environment of RL. In contrast, Soft MoE demonstrated superior stability and performance, achieving a total normalized performance of 0.72 compared to the baseline's 0.63. Figure 2 highlights these performance gains across different games.
Mitigating Plasticity Loss
A core finding is that MoEs—particularly the "Big" and "Soft MoE" variants—drastically reduce the fraction of dormant neurons. By encouraging specialization, the architecture prevents the "mass extinction" of active neurons that typically plagues long RL training runs. For instance, while the baseline network's dormant neurons climbed to over 60% in the Asterix environment, MoE variants maintained significantly higher levels of active parameters.
Actor vs. Critic Specialization
Interestingly, MoEs provided a more substantial boost to the Actor (policy network) than the Critic (value network). This suggests that policy networks benefit more from the increased capacity and sparsity offered by MoE, whereas value networks may require more dense, global information for accurate reward prediction.
Conclusion
Mixture of Experts architectures offer a robust solution to the problem of plasticity loss in Deep RL. By maintaining active neurons and providing specialized learning paths, MoEs—especially when paired with soft routing—significantly improve performance in both multi-task and continual learning scenarios. Future research will focus on optimizing task curricula to further enhance the long-term memory and learning speed of MoE-based agents.
Summary updated