Designing effective reward functions is often the most tedious part of reinforcement learning (RL). If a reward is too sparse, the agent wanders aimlessly; if it's too complex, you might accidentally incentivize the wrong behavior. This paper, "Reward Propagation Using Graph Convolutional Networks," presents a clever way to automatically "spread" reward signals across an environment using Graph Convolutional Networks (GCNs), significantly accelerating learning without the risk of changing the optimal policy.
TL;DR
The authors propose a scalable framework that uses GCNs to propagate reward information throughout an environment's state-space graph. By using the GCN's output as a "potential function" for reward shaping, they provide the agent with a denser, more informative signal that preserves the original optimal policy and leads to faster convergence across diverse tasks.
What Problem Does This Paper Address?
In RL, "reward shaping" involves adding auxiliary rewards to guide an agent. However, naive shaping can lead to "policy sub-optimization"—where the agent learns to game the auxiliary reward instead of solving the actual task. Potential-based reward shaping (PBRS) is a mathematically sound alternative that guarantees the optimal policy remains unchanged.
The catch? Finding a good potential function is usually just as hard as solving the RL problem itself. Traditional methods like "message passing" (borrowed from probabilistic inference) can find these functions but don't scale to the massive or continuous state spaces found in modern AI benchmarks.
Methods
The authors bridge the gap between probabilistic inference and deep learning by treating the RL environment as a graph where states are nodes and transitions are edges.
- RL as Inference: They model the control task as a graphical model, where rewards are treated as "observations" of optimality.
- GCN Propagation: Instead of expensive exact inference, they use a Graph Convolutional Network (GCN) to perform message passing. The GCN takes state features as input and propagates information from rewarding states to their neighbors.
- The Loss Function: The GCN is trained with a dual-purpose loss:
- Supervised Loss ($L_0$): Anchors the function at states where rewards are actually found.
- Propagation Loss ($L_{prop}$): Uses the graph Laplacian to ensure the potential function is "smooth" across the state space, effectively diffusing the reward signal.
- Scalable Sampling: To handle large environments, they don't build the full graph. Instead, they train the GCN on small sub-graphs constructed from recently sampled trajectories.
Datasets
The authors evaluated their approach across a wide spectrum of RL benchmarks:
- Tabular Domains: Classic "FourRooms" and a "FourRoomsTraps" variant with negative rewards.
- MiniWorld: Vision-based 3D navigation tasks (e.g.,
MiniWorld-FourRooms-v0,MyWayHome-v0). - Atari 2600: 20 different games, ranging from reactive ones to hard-exploration challenges (e.g., Venture, Gopher, Zaxxon).
- MuJoCo: Continuous control tasks like
Hopper,Walker2d, andAnt, modified to have sparse, delayed rewards.
Key Insights and Ideas
- The Laplacian Advantage: By building on spectral graph theory, the GCN naturally induces a "smoothing prior." This means the learned potential function respects the actual topology of the environment (e.g., it knows that two states separated by a wall are "far apart" even if they are coordinate-adjacent).
- Sample Efficiency: A surprising "aha moment" was that the GCN doesn't need the whole graph to be effective. The validation accuracy remains stable even when training on only a small fraction of the total state space.
- Reward Exploitation vs. Exploration: Unlike methods like Curiosity (ICM) or Random Network Distillation (RND) which seek novelty, this method focuses on better exploiting the rewards the agent has already seen by spreading that information to nearby states.
Key Results
- MiniWorld: In high-dimensional vision tasks, the GCN-based approach almost doubled the score of the PPO baseline.
- Atari: The method was more consistent than exploration-based baselines. While RND performed better on "hard exploration" games like Venture, it often degraded performance on others; the GCN approach provided more stable improvements across the board.
- Continuous Control: In MuJoCo environments with delayed rewards, the GCN method significantly outperformed both vanilla PPO and Learning Intrinsic Rewards (LIRPG).
- Computational Efficiency: The overhead is minimal. In Atari, the system achieved 1054 FPS, compared to 1126 FPS for vanilla PPO, making it much faster than complex intrinsic reward methods like LIRPG (280 FPS).
Limitations and Future Work
- Laplacian Approximation: The method currently uses the graph Laplacian as a surrogate for the true transition matrix. The authors suggest that exploring more complex transition models could further improve results.
- Hyperparameter Sensitivity: The trade-off between the original reward and the shaped reward (controlled by a scalar $\alpha$) is an important hyperparameter that may need tuning for different environments.
- Model-Free Focus: This work is primarily model-free. Future directions include combining this sampling strategy with model-based "roll-outs" to construct even more accurate underlying graphs.
For researchers looking to squeeze more performance out of sparse-reward environments without the headache of manual reward engineering, this GCN-based propagation offers a robust, theoretically grounded path forward.
Summary updated