Abstract
Reinforcement Learning (RL) often suffers from slow convergence and high sensitivity to initial conditions due to the lack of prior environmental knowledge. We present Plan-Space State Embeddings (PSSE), a method that leverages classical robotic planners to "prime" RL agents. By mapping raw sensor data into a latent space where successful trajectories are linear and possess constant velocity, we provide agents with a structured geometric representation of the task. Our results on MuJoCo benchmarks demonstrate that augmenting the state space with these embeddings significantly improves learning speed and reduces performance variance across different random seeds.
Introduction
Standard Reinforcement Learning agents typically begin training with no prior knowledge of environmental dynamics, relying solely on raw observations and scalar rewards. In complex robotics tasks, the mapping from high-dimensional sensor inputs to optimal actions is often highly non-linear, leading to "blind" exploration and inconsistent training outcomes. Furthermore, RL is notoriously sensitive to hyperparameter settings and random initializations, a phenomenon often referred to as "seed noise."
To address these challenges, we propose incorporating domain knowledge from classical motion planners into the RL perception pipeline. By creating a "meaningful geometry" through state embeddings, we can effectively transfer knowledge about "how the world moves" from a planner to the RL agent before active learning begins.
Methodology
The core of our approach is the Plan-Space State Embedding (PSSE). We utilize a classical kinodynamic planner, such as SST*, to generate a dataset of successful demonstration trajectories. These trajectories are then used to train a variational embedding network.
Variational Framework and Linearity Objective
We employ a variational framework to map raw states $x$ to a latent space $Z$. The primary objective is to ensure that trajectories in $Z$ are linear. Specifically, the loss function encourages the embedding of a midpoint state $z_t$ to be the mean of its temporal neighbors $z_{t-1}$ and $z_{t+1}$. This geometric constraint simplifies the representation of complex dynamics, effectively "smoothing" the landscape the RL agent must navigate.
System Pipeline
The overall training pipeline consists of three main stages: data generation via planning, embedding training, and RL policy optimization.
Once the embedding network is trained, the latent vector $z$ is appended to the raw state $x$. This augmented state $(x, z)$ provides the RL policy with both the necessary raw sensor data and a structured representation of the task geometry.
Experimental Results
We evaluated our method using the MuJoCo physics engine on two challenging benchmarks: Cartpole Swingup and a two-link Reacher arm.
Performance and Stability
In the Cartpole Swingup task, agents using augmented state embeddings showed significantly faster "rise times," reaching optimal performance much earlier than baseline agents. A critical finding was the substantial reduction in variance. While standard RL performance often fluctuates wildly depending on the random seed, our method produced much more consistent results across multiple runs.
As shown in the results, the "embedded augment" configurations (dashed and solid green/orange lines) not only reach the maximum reward faster but also exhibit much narrower confidence intervals compared to the "raw" baselines. This suggests that the structured latent space makes the policy gradient more informative and stable.
Task-Specific Insights
In the Reacher task, we observed that while the embedding provided early benefits in reducing variance for raw angular data, its impact was less pronounced when the baseline already utilized engineered trigonometric features. This highlights that PSSE is most effective when the raw state representation is difficult for standard RL to interpret directly.
Conclusion
Plan-Space State Embeddings offer a robust way to integrate classical robotics knowledge into modern reinforcement learning. By structuring the agent's perception through a linearity-constrained latent space, we can overcome the "blindness" of early-stage RL and mitigate the instability caused by random initialization. Future work will explore applying this framework to high-dimensional observation spaces, such as raw pixel data, and utilizing human demonstrations for tasks where automated planners are unavailable.
Summary updated