Introduction: Beyond Statistical Mapping
Deep Reinforcement Learning (RL) has demonstrated superhuman capabilities in specific, narrow domains. However, these models are often "brittle." A standard model-free agent (like A3C or DQN) trained on Atari Breakout may fail entirely if the paddle is shifted by a few pixels or if a small obstacle is introduced. This fragility stems from a lack of causal reasoning; these agents learn complex statistical mappings between pixel patterns and rewards rather than the underlying "physics" of the environment.
Schema Networks address this gap by introducing a structured, object-oriented generative model. Instead of treating the screen as a raw pixel grid, the model learns the causal rules governing entities and their interactions. This allows for zero-shot transfer: the ability to perform perfectly in new variations of a task without any additional training.
Architecture and Methods
Schema Networks represent the world as a collection of entities (objects or parts of objects) defined by attributes such as position and color. The core of the model is a Probabilistic Graphical Model (PGM) implemented as a factor graph.
Key Components:
- Schemas: These are local cause-effect templates. A schema defines the preconditions (e.g., a ball moving at a certain velocity hitting a brick) required to produce a specific outcome in the next timestep.
- Factor Graph Logic: Grounded schemas function as "AND" gates, where all preconditions must be met for the schema to activate. Their outputs are combined via "OR" gates, allowing the model to understand that multiple distinct causes can lead to the same effect (e.g., a brick disappearing because of a ball hit or a timeout).
- Structure Learning: The model learns its own structure using a greedy algorithm based on Linear Programming (LP) relaxations, searching for the simplest set of schemas that perfectly predict observed transitions.
- Planning as Inference: To act, the network performs "regression planning." It identifies a goal state (a reward) and uses Max-Product Belief Propagation (MPBP) to reason backward through the causal chain to determine the optimal current action.
Experimental Evaluation
The model was evaluated on several custom variations of Breakout designed to test generalization. These included scenarios with middle walls, offset paddles, and multiple balls (juggling). While traditional RL baselines require millions of frames to adapt to such changes, Schema Networks require zero additional training if the underlying physics remain constant.
Key Results and Insights
- Zero-Shot Performance: In the "Middle Wall" and "Offset Paddle" variations, Schema Networks achieved high scores immediately. In contrast, A3C and Progressive Networks failed to generalize, often scoring near zero because their learned pixel-to-action mappings were no longer valid.
- Object-Oriented Generalization: Because schemas are templates, a rule learned in one part of the screen applies globally. This spatial invariance is why the model handles the "Offset Paddle" variation effortlessly—the physics of the interaction remain the same regardless of coordinates.
- Interpretability: Unlike the "black box" nature of deep neural networks, the learned schemas are human-readable logical rules, making the agent's reasoning transparent.
- Multi-Object Tracking: In the "Juggling" task, the model successfully managed three balls simultaneously, demonstrating a robust ability to prioritize and track multiple entities.
Limitations and Future Directions
While powerful, the current implementation of Schema Networks assumes a largely deterministic environment and operates on a discrete state space. Future work aims to extend this framework to continuous, high-dimensional, and stochastic real-world environments. Additionally, while the current experiments used a pre-defined entity extractor, integrating unsupervised vision systems (like autoencoders) to parse pixels into entities is a key next step for the architecture.
Summary updated