Abstract
Reinforcement learning (RL) lacks the rich, interactive visualization tools commonly used to debug supervised learning models. This paper introduces Vizarel, an interactive visualization system specifically designed for the unique workflow of RL. Vizarel allows researchers to inspect replay buffers, track temporal dynamics, and visually debug agent policies to uncover issues like reward hacking or critic overestimation.
Introduction
While supervised learning benefits from a mature ecosystem of visualization tools like TensorBoard, RL practitioners often lack specialized debugging frameworks. Supervised learning tools typically assume a static dataset, whereas RL is inherently interactive—the agent's policy dictates the data it collects. Furthermore, the state representations an agent processes (e.g., vectors of joint angles) are often unintuitive to humans compared to rendered images. Vizarel addresses these challenges by providing a framework to answer complex questions regarding dynamics, behavior, and state visitation distributions.
The Vizarel Framework
Vizarel is a modular visualization tool built around "viewports" backed by fundamental visualization specifications (e.g., image buffers, line plots, scatter plots). These viewports are categorized into three primary types:
Temporal and State Views
Temporal views track data streams over time. State Viewports synchronize raw state vectors with human-readable rendered images, while Action Viewports track action distributions over an episode. Reward Viewports allow for the visualization of individual reward components, which is crucial for identifying reward hacking.
Spatial and Spatio-Temporal Views
Spatial views visualize the distribution of events. The Replay Buffer Viewport projects high-dimensional transitions into a navigable 2D space, providing a proxy for state diversity and exploration. The Trajectory Viewport links spatial and temporal data, plotting Temporal Difference (TD) error across an episode's timesteps. This allows users to hover over specific points to see the exact rendered state, bridging the gap between agent math and human intuition.
Applications and Insights
The authors demonstrate Vizarel's capabilities using standard RL environments such as Inverted Pendulum, Pong, and HalfCheetah.
A key insight is that RL requires its own "visual grammar." Because agents influence their own training data, the replay buffer must be treated as a dynamic dataset. By scaling points in the replay buffer visualization by their absolute normalized TD error, Vizarel naturally directs researchers toward problematic transitions.
In practice, the tool has been used to diagnose critic overestimation bias in DDPG agents. By visualizing trajectories, users can spot high variance in TD errors across specific action sequences. This rapid identification of high-variance states allows for the application of targeted algorithmic fixes, such as Double Q-learning, significantly accelerating the debugging loop.
Limitations and Future Work
Currently, Vizarel relies heavily on environment renderings, making it less applicable to non-visual domains like healthcare. Additionally, navigating massive replay buffers can be visually overwhelming. Future work includes integrating saliency maps to visualize agent attention and adding advanced querying capabilities to the replay buffer viewport to improve AI safety and prioritized experience replay.
Summary updated