Skip to main content
QUICK REVIEW

[Paper Review] Visualizing and Understanding Atari Agents

Sam Greydanus, Anurag Koul|arXiv (Cornell University)|Oct 31, 2017
Explainable Artificial Intelligence (XAI)Computer Science19 references90 citations
TL;DR

Introduces a perturbation-based saliency method to visualize and interpret Atari agents trained with A3C, revealing what they attend to, how policies evolve during learning, and how to detect overfitting and memory usage.

ABSTRACT

While deep reinforcement learning (deep RL) agents are effective at maximizing rewards, it is often unclear what strategies they use to do so. In this paper, we take a step toward explaining deep RL agents through a case study using Atari 2600 environments. In particular, we focus on using saliency maps to understand how an agent learns and executes a policy. We introduce a method for generating useful saliency maps and use it to show 1) what strong agents attend to, 2) whether agents are making decisions for the right or wrong reasons, and 3) how agents evolve during learning. We also test our method on non-expert human subjects and find that it improves their ability to reason about these agents. Overall, our results show that saliency information can provide significant insight into an RL agent's decisions and learning behavior.

Motivation & Objective

  • Explain deep RL agents trained on vision-based inputs using interpretable saliency visualizations.
  • Identify what features agents attend to and whether they rely on sensible or spurious cues.
  • Show how agent attention changes during learning and with memory.
  • Demonstrate the approach on multiple Atari environments and assess non-expert interpretability.
  • Provide debugging insights for poorly performing policies and overfitting scenarios.

Proposed method

  • Introduce a perturbation-based saliency method that blurs localized regions of input frames to measure impact on policy and value outputs.
  • Define a perturbation Phi(I_t,i,j) that smoothly interpolates between the original frame and a blurred version using a Gaussian mask.
  • Compute saliency as the squared difference of policy logits (or value estimates) with and without the perturbation, yielding spatial saliency maps.
  • Apply saliency to both the actor (policy) and critic (value) networks in an A3C architecture.
  • Visualize saliency over time to analyze policy evolution and memory influence in recurrent agents (LSTM).
  • Evaluate on Pong, Breakout, SpaceInvaders, MsPacman, Frostbite, Enduro with preprocessed 80x80 grayscale inputs.

Experimental results

Research questions

  • RQ1What regions of the input do strong Atari agents rely on to make decisions?
  • RQ2How do saliency patterns evolve during training and across actor vs. critic networks?
  • RQ3Can saliency reveal decisions made for the wrong reasons or indications of overfitting?
  • RQ4What is the role of memory in saliency for recurrent policies?
  • RQ5Can saliency visualizations help non-experts reason about agent behavior and robustness?

Key findings

  • Saliency videos reveal that agents may rely on non-ball features or environment determinism, indicating overfitting to specific opponents (e.g., Pong).
  • During training, actor and critic saliency diverge, showing evolving focus on different regions (e.g., ball/paddle vs. value regions).
  • Saliency can detect high rewards earned for wrong reasons by highlighting attention to hints or distractors in overfit agents.
  • The method helps debug underperforming games by exposing misfocused attention (e.g., MsPacman, Frostbite, Enduro).
  • Non-experts using saliency videos more accurately judge robustness and explain agent decisions than with raw videos alone.
  • Memory perturbations indicate saliency peaks near critical moments (e.g., just before ball-paddle contact), suggesting memory importance in some games.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.