Introduction
In open-ended environments, such as massive multiplayer RPGs or complex text-based worlds, agents are often required to master a variety of roles (e.g., behaving like a thief versus a knight) rather than a single "win" condition. A significant challenge in Reinforcement Learning (RL) is task transfer: how an agent can quickly learn a new role without starting from scratch. Standard RL is notoriously sample-inefficient, often requiring millions of interactions. This research introduces a novel Mixture-of-Experts (MoE) architecture that enables agents to reuse existing knowledge to achieve high performance in zero-shot and few-shot transfer scenarios.
Methodology
The proposed approach is built upon the KG-A2C (Knowledge Graph Advantage Actor-Critic) framework. The architecture utilizes an ensemble of experts to handle the complexities of task transfer.
The MoE Architecture
- The Ensemble: The model consists of $N$ "frozen" experts, pre-trained on specific roles (e.g., 'Thief', 'Hunter'), and one "hot" expert that remains trainable to capture behaviors unique to the new task.
- Value Seeding: This mechanism multiplies each expert's action probabilities by its own "critic" value (an internal estimate of state quality). This allows experts who recognize the current situation to exert more influence on the final decision.
- Expert Attention: A learned attention mechanism ($\mathcal{G}$) processes the world state and expert suggestions to produce a final action distribution.
- Exploration: To prevent premature convergence, the authors employ Epsilon-Greedy sampling and a custom cross-entropy loss to maintain diverse probability distributions.
Experimental Setup
The agents were evaluated in the LIGHT environment, a large-scale text-based role-playing platform featuring 663 locations, 1775 NPCs, and 3462 objects. Four base experts were trained using "Story Shaping" for the roles of Adventurer, Thief, Hunter, and Hoarder. Evaluation tasks included "Blends" (mixing all four roles) and "Partial Blends" (mixing known roles with entirely new behaviors).
Key Results
The MoE agent was compared against a "from scratch" KG-A2C baseline and individual fine-tuned experts.
- Sample Efficiency: The MoE agent reached near-maximum rewards significantly faster than the baseline, often demonstrating strong zero-shot performance.
- Total Score: In "Partial Blend" scenarios requiring new behaviors, the MoE agent consistently outperformed individual experts, who frequently failed to discover rewards outside their original training scope.
- Reliability: Across 20 random seeds, the MoE approach proved highly reliable, with only one seed failing to achieve the maximum possible score.
Discussion and Limitations
Key insights from the study include the effectiveness of the "Hot" expert as a bridge for new knowledge and the utility of critics as gating signals. The system also showed robustness to noise, successfully ignoring "distractor" experts.
However, the authors identified a vulnerability regarding adversarial or irrelevant experts. If a task is entirely outside the scope of the frozen experts, they can negatively influence exploration, causing the agent to perform worse than a model trained from scratch. Future work will focus on dynamic expert pruning and scaling the approach to non-textual open-ended worlds.
Summary updated