Proper Laplacian Representation Learning

Diego Gomez, Michael Bowling, Marlos C. Machado

In reinforcement learning (RL), how an agent perceives its world—its state representation—is the difference between stumbling in the dark and having a map. One of the most elegant "maps" is the Laplacian representation, which uses the eigenvectors of the environment's transition graph to understand topology.

However, as a new paper from the University of Alberta (published at ICLR 2024) points out, our current deep learning methods for "learning" these representations are fundamentally broken. They produce "rotated" versions of the truth and rely on hyperparameters that are impossible to tune without already knowing the answer.

TL;DR

The authors introduce the Augmented Lagrangian Laplacian Objective (ALLO), a theoretically grounded method to learn state representations that perfectly match the graph Laplacian's eigenvectors and eigenvalues. By using a max-min optimization and clever "stop-gradient" operators, ALLO eliminates the need for untunable hyperparameters and prevents the representation from converging to arbitrary, less-useful rotations.

What Problem Does This Paper Address?

The Laplacian representation is powerful because it embeds states into a space where Euclidean distance correlates with temporal distance (how long it takes to get from A to B). This is incredibly useful for the discovery of "options" (sub-goals) and reward shaping.

To scale this to large or continuous spaces, researchers use deep neural networks to approximate the eigenvectors of the graph Laplacian. Previous methods like the Graph Drawing Objective (GDO) and its generalized version (GGDO) have three major flaws:

  1. The Rotation Problem: These objectives are "rotationally invariant." A network can minimize the loss by finding an arbitrary rotation of the eigenvectors. These rotations are mathematically valid but practically inferior for RL because they mix different temporal scales.
  2. The Hyperparameter Trap: GGDO requires a sequence of decreasing weights to break symmetry. The "best" weights change depending on the environment. To find them, you'd need the true eigenvectors—but if you had those, you wouldn't need the neural network!
  3. Missing Eigenvalues: Previous methods struggled to recover the actual eigenvalues, which are essential for understanding the temporal scale of a feature.

Methods: The ALLO Approach

The authors propose ALLO (Augmented Lagrangian Laplacian Objective). It transforms the representation learning task into a constrained optimization problem solved via a max-min (Primal-Dual) approach.

The Secret Sauce:

  • Asymmetric Constraints via Stop-Gradients: To prevent the "rotation" issue, the authors introduce an ordering. Vector $i$ is constrained to be orthogonal to vectors $1 \dots i-1$. By applying a stop-gradient operator to the previous vectors in the objective, they break the dynamical symmetry. This forces the network to learn the eigenvectors in a specific, stable order.
  • Augmented Lagrangian: Instead of just using a "penalty" for violating orthonormality (which shifts the equilibrium away from the true solution), they use dual variables ($\beta$).
  • Eigenvalue Recovery: In a beautiful bit of mathematical synergy, the optimal dual variables ($\beta^*$) in this formulation are directly proportional to the true eigenvalues of the Laplacian.

Datasets and Environments

The researchers evaluated ALLO across 12 different grid-world environments with varying topologies, including:

  • GridRooms: Simple open rooms or rooms connected by narrow doorways (e.g., GridRoom-16).
  • GridMazes: Complex, winding paths (e.g., GridMaze-19, GridMaze-32).
  • Input Types: They tested both raw $(x, y)$ coordinates and pixel-based representations (using CNNs), proving the method works with high-dimensional visual inputs.
Visualizations of the learned Laplacian representations across different grid-world topologies, capturing the underlying structure of the environments.

Key Insights and Results

  • Symmetry is the Enemy: In many optimization problems, symmetry is good. Here, it’s a bug. The "stop-gradient" is a simple but profound architectural choice that turns a global "cloud" of possible solutions into a single, unique, stable equilibrium.
  • Accuracy and Eigenvalue Precision: ALLO consistently achieved higher cosine similarity to the true Laplacian eigenvectors than the baseline (GGDO) across almost all environments. In several complex mazes where GGDO failed completely, ALLO found near-perfect approximations. Furthermore, ALLO successfully recovered the eigenvalues of the Laplacian, whereas previous heuristics were highly inaccurate.
  • Robustness is Built-In: Unlike previous methods where the "barrier coefficient" ($b$) had to be perfectly tuned for each maze, ALLO is remarkably robust. As long as $b$ is above a certain theoretical threshold, the system converges to the correct answer.
Average cosine similarity to true eigenvectors across different environments. The varying lines represent different hyperparameter values, demonstrating ALLO's robust convergence once a threshold is met.
  • Temporal Scales Matter: By recovering the true eigenvectors (not rotations), ALLO ensures that each dimension of the representation corresponds to a distinct "frequency" or temporal scale of the environment. This makes the features much more useful for downstream RL tasks like exploration.

Limitations and Future Work

While the paper provides strong theoretical guarantees and empirical evidence in grid worlds, a few areas remain open:

  • Extreme Scale: While it works with pixels, testing ALLO in massive, 3D continuous environments (like MuJoCo or Habitat) is the next logical step.
  • Downstream Impact: The paper focuses on learning the representation. The authors suggest that these "proper" representations will lead to better exploration and reward shaping, but they leave the full integration into a complete RL agent for future work.
  • Dual Variable Stability: The authors conjecture that dual variables add stability in larger environments, but more empirical "stress-testing" is needed to confirm this in non-tabular settings.

Summary updated

BibTeX
@inproceedings{gomez2024proper,
  author = {Diego Gomez and Michael Bowling and Marlos C. Machado},
  title = {{Proper Laplacian Representation Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=7gLfQT52Nn},
}
Figure