TL;DR
In reinforcement learning, giving an agent a good mental map of its environment helps it learn much faster—especially if that map highlights dangerous, low-reward pitfalls. Until now, building such a "reward-aware" map (known as the Default Representation) required constructing and decomposing massive matrices, making it impossible to scale beyond toy problems. This paper introduces DROGO, a mathematically clever loss function that lets neural networks learn the most useful slice of this representation directly from experience, scaling it up to coordinate and pixel inputs.
What Problem Does This Paper Address?
Imagine navigating a city. A standard map tells you how many blocks separate Point A and Point B. In reinforcement learning (RL), the Successor Representation (SR) acts like this map, capturing the expected number of steps between states while ignoring rewards. This is great if your destination changes, because the map stays valid. However, if you have a single goal and there is a toxic swamp between Point A and Point B, a reward-blind map might guide you straight through the muck.
Enter the Default Representation (DR), an idea borrowed from neuroscience. Unlike the SR, the DR is reward-aware: it captures not just how states connect, but the rewards accumulated along the way.
The principal eigenvector of the DR (essentially the primary axis summarizing this map) is fantastic for guiding agents via reward shaping—nudging them toward goals while steering them around hazards. There’s just one catch: previously, getting this eigenvector meant estimating the entire $|S| \times |S|$ DR matrix and running an eigendecomposition. That works fine in a tiny grid, but completely breaks down when states are continuous coordinates or high-dimensional pixels. How do we approximate this eigenvector directly from sampled transitions using a neural network?
Methods
The authors start with a standard tool from spectral graph theory—the Graph Drawing Objective (GDO), commonly used to find eigenvectors of the SR—and systematically re-engineer it to handle the numerical quirks of the DR, resulting in DROGO (Default Representation Objective via Graph Optimization):
- Log-Space Parameterization: Entries in the DR's principal eigenvector can be microscopically small (though strictly positive). Standard neural networks inevitably make tiny approximation errors that push these near-zero values into negative territory, breaking downstream log-transformations. To fix this, DROGO trains the network to directly predict the logarithm of the eigenvector, guaranteeing positivity upon exponentiation.
- Natural Gradient Descent: Optimizing in log-space warps the parameter landscape—a tiny step in Euclidean space can trigger an explosive change after exponentiation. The authors derive the natural gradient (using the Riemannian metric tensor of the log-space) to dynamically rescale updates and stabilize training.
- Terminal-State Anchoring: Standard GDO uses a quadratic penalty to keep the learned vector from collapsing to zero, which proves notoriously finicky to balance alongside the DR objective. DROGO drops this penalty entirely and instead anchors the vector by clamping the output at the terminal state to zero ($v(s_T) = 0$).
Datasets
Rather than static datasets, RL methods are evaluated in interactive environments. No new benchmarks are introduced; the authors use established environments to validate their theory against computable ground-truths:
- Four discrete grid worlds (Grid Task, Four Rooms, Grid Maze, Grid Room): Used to test DROGO across three input modalities—one-hot encodings, $(x, y)$-coordinates, and RGB pixels—using 200,000 transitions collected via a uniform random policy.
- Point Maze: A continuous state-space environment (detailed in the paper's appendix) to verify applicability beyond discrete grids.
Key Insights and Ideas
- Reward-aware regularization: Adapting GDO to the DR reveals neat intuition: the DR objective is mathematically equivalent to the standard graph Laplacian objective plus a penalty term that crushes the eigenvector's magnitude at low-reward states.
- The "Wrong" Vector is Almost the Right One: Clamping the terminal state ($v(s_T) = 0$) forfeits the strict theoretical guarantee of learning the exact principal eigenvector; instead, DROGO technically learns the terminal-state column of the DR matrix. However, the authors prove that as terminal rewards approach zero, these terminal columns actually form a basis for the principal eigenspace! Even in symmetrized practical settings, they bound the angle between the two vectors and show the discrepancy is negligible.
Key Results
- Near-Perfect Approximation: Across all four grid environments and all three input modalities (one-hot, coordinates, pixels), the cosine similarity between DROGO's learned vectors and the exact ground-truth logarithm of the principal eigenvector converges to nearly 1.0.
- Faster, Safer Learning: When used for potential-based reward shaping with Q-learning, DROGO consistently beats reward-blind baselines (including exact, closed-form eigenvectors of the SR). For instance, in Grid Maze, unshaped Q-learning takes 71.82 ($\times 10^3$? — note: reported as unitless scaled steps in Table 1) mean steps to converge to the optimal return and exact SR takes 15.20, whereas pixel-based DROGO converges in 7.47 (and coordinate-based in 6.46).
- Hazard Avoidance: Agents shaped by DROGO visit low-reward "danger" states drastically less often during training—dropping from 1.30 mean visits (exact SR) down to 0.06 (pixel DROGO) in Four Rooms.
Limitations and Future Work
- Episodic Constraint: Because the DR is formulated within Linearly Solvable MDPs—and DROGO explicitly anchors $v(s_T) = 0$—the method only works in environments that have terminal states, ruling out continuing, infinite-horizon tasks.
- Two-Stage Training & Scale: The experiments rely on an offline, two-stage pipeline (collect random transitions $\rightarrow$ learn eigenvector $\rightarrow$ train RL agent) in relatively small domains. Scaling DROGO to complex 3D visual or continuous-control benchmarks, and learning the eigenvector online alongside a changing policy, remain open challenges for future work.
Summary updated