Enhanced Scene Specificity with Sparse Dynamic Value Estimation

Jaskirat Singh, Liang ZhengarXiv 2020

Abstract

Multi-scene reinforcement learning (RL) agents often struggle with high sample variance when estimating value functions across diverse, procedurally generated environments. While Dynamic Value Estimation (DVE) addresses this by modeling values as Gaussian Mixture Models, it frequently suffers from "cluster confusion" where overlapping state assignments degrade prediction accuracy. We introduce Sparse Dynamic Value Estimation, which employs a novel confusion-contribution loss to enforce distinct, non-overlapping state clusters. Our results on the OpenAI ProcGen benchmark demonstrate that this sparsity not only improves reward performance by up to 28% but also facilitates emergent skill discovery and drastically enhances navigation efficiency.

Introduction

Training RL agents on multiple procedural levels is essential for generalization but introduces significant variance in policy gradient updates. Standard algorithms like Proximal Policy Optimization (PPO) often struggle with this increased complexity. Dynamic Value Estimation (DVE) was developed to mitigate this by clustering states and predicting values as a weighted sum of these clusters. However, in high-stakes or critical game states, these clusters often overlap significantly. This "confusion" pulls cluster means together, effectively shrinking the range of values the model can accurately predict and hindering performance in complex environments.

Methodology: Sparse Dynamic Value Estimation

To resolve the overlap issue, we propose Sparse Dynamic Value Estimation. The core of this method is the confusion-contribution loss, an auxiliary objective designed to refine the state-space partitioning:

  1. Minimizing Confusion (Sparsity): This component penalizes ambiguous cluster assignments, forcing the network to categorize a state into a single, specific cluster (approaching a one-hot encoding).
  2. Maximizing Contribution: To prevent "cluster collapse"—where the network assigns all states to one dominant cluster—this component ensures that all available clusters contribute meaningfully across the entire state space.
Comparison of cluster overlap in state space. High overlap (left) leads to "confusion" at critical states, while Sparse DVE (right) enforces distinct boundaries.

Implementation requires careful timing based on exploration dynamics. In "Pre-boost" scenarios (rapid exploration), the loss is applied early. In "Post-boost" scenarios (gradual exploration), the agent is pre-trained with standard DVE for 50 million steps before activating the sparsity loss to avoid premature convergence on incorrect generalizations.

Key Insights: Prediction Accuracy and Emergent Skills

The primary technical advantage of Sparse DVE is the relationship between cluster separation and prediction range. By pushing cluster means further apart, the model can interpolate value estimates over a much broader range of critical states, significantly reducing prediction error.

Impact of cluster overlap on prediction range. Low overlap (right) results in a wider prediction range and lower prediction error compared to high overlap (left).

Furthermore, this sparsity leads to emergent skill discovery. Visual analysis reveals that clusters naturally align with specific in-game behaviors, such as dodging enemies or performing precision jumps. This self-organized curriculum allows the agent to navigate environments with unprecedented efficiency. Because its value estimates are highly accurate, the agent realizes that exploring new areas yields higher expected returns than backtracking, achieving efficient navigation without manually coded penalties.

Results and Discussion

Evaluated on 8 OpenAI ProcGen games, Sparse DVE consistently outperformed baselines. Notable improvements include a 28.3% reward increase in CaveFlyer and a 22.4% increase in Climber compared to standard DVE. Navigation efficiency saw the most dramatic gains; in CaveFlyer, the average episode length plummeted from 275.1 steps to just 75.2 steps, indicating the agent learned highly direct paths to objectives.

While highly effective, the method is sensitive to the timing of the sparsity loss. If applied before adequate exploration, the network may incorrectly generalize sparse assignments to unseen states. Future work will focus on automating this timing and exploring the utility of these emergent skills as human-interpretable teaching aids for complex games.

Summary updated

BibTeX
@misc{singh2020enhanced,
  author = {Jaskirat Singh and Liang Zheng},
  title = {{Enhanced Scene Specificity with Sparse Dynamic Value Estimation}},
  year = {2020},
  eprint = {2011.12574},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.12574},
}
Figure