Interpretable Learning Dynamics in Unsupervised Reinforcement Learning
Shashwat Pandey
TL;DR
This work addresses the interpretability gap in unsupervised reinforcement learning by introducing a unified framework that combines Grad-CAM, Layer-wise Relevance Propagation, and VAE-based representation analysis to study attention and abstraction. By evaluating five agents—DQN, ICM, RND, PPO, and Transformer-RND—on CoinRun, the authors show that curiosity-driven agents develop broader and more dynamic attention and richer latent structures, with Transformer-RND exhibiting the strongest combination of attention breadth and compact latent representations. The findings highlight how architectural inductive biases and training signals shape internal agent dynamics, offering diagnostic tools beyond reward-based metrics to diagnose perception, exploration, and abstraction. This framework has practical significance for building interpretable, robust, and generalizable RL systems in real-world domains like robotics and autonomous systems.
Abstract
We present an interpretability framework for unsupervised reinforcement learning (URL) agents, aimed at understanding how intrinsic motivation shapes attention, behavior, and representation learning. We analyze five agents DQN, RND, ICM, PPO, and a Transformer-RND variant trained on procedurally generated environments, using Grad-CAM, Layer-wise Relevance Propagation (LRP), exploration metrics, and latent space clustering. To capture how agents perceive and adapt over time, we introduce two metrics: attention diversity, which measures the spatial breadth of focus, and attention change rate, which quantifies temporal shifts in attention. Our findings show that curiosity-driven agents display broader, more dynamic attention and exploratory behavior than their extrinsically motivated counterparts. Among them, TransformerRND combines wide attention, high exploration coverage, and compact, structured latent representations. Our results highlight the influence of architectural inductive biases and training signals on internal agent dynamics. Beyond reward-centric evaluation, the proposed framework offers diagnostic tools to probe perception and abstraction in RL agents, enabling more interpretable and generalizable behavior.
