Introduction
Reinforcement Learning (RL) in large-scale environments often hinges on the quality of value function approximation. Traditional methods like Least-Squares Policy Iteration (LSPI) rely on hand-coded basis functions—such as polynomials or radial basis functions (RBFs)—to project high-dimensional state spaces into manageable subspaces. However, these fixed features are typically "topology-blind," failing to account for the actual geometry of the environment, such as walls or obstacles.
This paper introduces Representation Policy Iteration (RPI), a framework that automates the discovery of basis functions by leveraging spectral graph theory. By extracting eigenfunctions from the state-space graph Laplacian, RPI generates "proto-value functions" that inherently respect the environment's connectivity and non-linear structure.
Problem Statement
In large Markov Decision Processes (MDPs), tabular representations are computationally infeasible. Approximation techniques solve this by representing the value function as a linear combination of basis functions. The primary challenge is that standard Euclidean-based features do not reflect geodesic distances. For instance, two states separated by a thin wall might be close in Euclidean space but very far in terms of the agent's reachability. RPI addresses this by seeking a coordinate-free representation that reflects the manifold of the state space.
Methodology: Representation Policy Iteration
RPI integrates representation learning directly into the policy iteration loop. The algorithm proceeds through three main phases: graph construction, eigenfunction extraction, and policy optimization.
- Graph Construction: The agent explores the environment (e.g., via a random walk) to build a neighborhood graph $G$ that captures the state-space topology.
- Laplacian Operator: The combinatorial graph Laplacian is computed. This operator acts as a discrete version of the Laplace-Beltrami operator, enforcing smoothness across the graph.
- Eigenfunction Extraction: The algorithm computes the lowest-order $k$ eigenfunctions of the Laplacian. These eigenfunctions serve as an orthonormal basis for functions defined on the state-space manifold.
- Policy Iteration: These learned basis functions are used within LSPI to approximate the action-value function and derive an improved policy.
Experimental Evaluation
The effectiveness of RPI was evaluated across several topologically diverse environments, including chain graphs (50-state open and closed-loop variants) and various gridworlds, such as a 20x20 grid with a central obstacle and a large four-room gridworld with 2,480 states.
Key Results
- Stability and Accuracy: In the 50-state chain MDP, RPI demonstrated superior stability compared to polynomial bases. While 25-degree polynomials led to catastrophic numerical failure in LSPI (error -36), RPI with just 5 basis functions achieved a low average policy error of -3.8.
- Efficient Compression: In the 2,480-state four-room environment, RPI successfully reduced the representation to just 20 dimensions while maintaining high policy performance.
Key Insights: Geometric Harmonics
The core strength of RPI lies in its ability to perform a global Fourier analysis on the state space. Just as sines and cosines decompose signals in Euclidean space, the Laplacian eigenfunctions decompose the state space into "geometric harmonics."
As shown in the visualization above, these eigenfunctions are "geodesically smooth." They vary gradually within connected regions but can exhibit sharp transitions at environmental bottlenecks or obstacles. This property allows the value function approximation to naturally "wrap around" barriers, a feat difficult for standard RBFs.
Conclusion and Future Directions
RPI offers a principled way to automate feature engineering in RL by grounding representations in the geometry of the environment. While computationally more intensive than fixed bases due to the spectral decomposition step, it provides a significantly more robust and topologically aware foundation for learning. Future work includes scaling RPI to even larger state spaces using Nystrom approximations and exploring localized representations like diffusion wavelets.
Summary updated