Introduction
Autonomous agents, ranging from robotic controllers to automated trading systems, often exhibit significant fragility when deployed in environments that differ even slightly from their training conditions. This lack of robustness is a major hurdle for real-world applications where environmental parameters—such as friction, gravity, or sensor noise—are dynamic and unpredictable. While the standard approach involves training on massive, diverse datasets to cover edge cases, this strategy is often unscalable. This paper explores the challenge of zero-shot generalization: enabling an agent to adapt to entirely novel environmental physics immediately, without the need for further training or fine-tuning.
The Context+Skill (CS) Architecture
The core contribution of this work is the Context+Skill (CS) Network, a modular neural architecture designed to decouple reactive behavior from environmental understanding. The system is composed of three primary components:
- Skill Module: A feedforward network that produces immediate reactive outputs based on current sensory observations.
- Context Module: A Long Short-Term Memory (LSTM) cell that integrates observations over time. Its primary function is "system identification"—inferring hidden environmental parameters (e.g., drag or gravity) by observing how the agent's actions influence its state trajectory.
- Controller: A final feedforward network that synthesizes the outputs of the Skill and Context modules to determine the optimal action.
To optimize this architecture, the researchers utilized Neuroevolution, specifically the NSGA-II algorithm. This approach evolves the network weights over successive generations, optimizing for a multi-objective reward function that balances obstacle navigation with collision avoidance.
Experimental Evaluation: Flappy Ball
The CS architecture was evaluated using Flappy Ball, a physics-intensive extension of the Flappy Bird game. Unlike the original, Flappy Ball incorporates complex dynamics including "forward flap" forces and air resistance (drag).
Agents were initially trained in environments where four key physics parameters (Flap strength, Gravity, Forward force, and Drag) varied within a narrow $\pm 20\%$ range. To test generalization, the agents were then subjected to a "stress test" featuring a much wider $\pm 75\%$ parameter variation, with all four variables changing simultaneously—scenarios entirely absent from the training set.
Key Results and Generalization
The experimental results demonstrate that modularity is a prerequisite for robust generalization. In head-to-head comparisons, the full CS network significantly outperformed both Skill-only (S) and Context-only (C) baseline models.
Statistical analysis of thousands of test runs revealed that the CS model's performance distribution remained skewed toward high scores even in extreme environments. For example, in a specific high-difficulty scenario where the Context-only and Skill-only models passed 15 and 16 pipes respectively, the CS model passed 21 pipes without a single collision, eventually reaching scores as high as 27.
Beyond raw scores, the CS agent developed emergent strategies, such as "gliding" to allow natural forces to align it with openings, a behavior the more rigid baseline models failed to discover. This indicates that the architecture is capable of extrapolation—performing effectively in parameter regimes far beyond its training data.
Conclusion and Future Work
By explicitly representing context through an LSTM-based module, the CS architecture allows agents to perform real-time system identification, leading to superior zero-shot generalization. Future research will focus on evolving the network topology itself rather than using fixed structures, and integrating convolutional layers to enable learning directly from raw visual input. Ultimately, the goal is to scale these modular principles to high-fidelity simulators and physical robotic platforms.
Summary updated