Plan-Space State Embeddings for Improved Reinforcement Learning

Max Pflueger, Gaurav S. SukhatmearXiv 2020

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.

System pipeline for training Plan-Space State Embeddings and integrating them into Reinforcement Learning.

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.

Performance comparison on the Cartpole Swingup task using TRPO, showing improved learning speed and reduced variance with augmented state embeddings.

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

Abstract

Robot control problems are often structured with a policy function that maps state values into control values, but in many dynamic problems the observed state can have a difficult to characterize relationship with useful policy actions. In this paper we present a new method for learning state embeddings from plans or other forms of demonstrations such that the embedding space has a specified geometric relationship with the demonstrations. We present a novel variational framework for learning these embeddings that attempts to optimize trajectory linearity in the learned embedding space. We show how these embedding spaces can then be used as an augmentation to the robot state in reinforcement learning problems. We use kinodynamic planning to generate training trajectories for some example environments, and then train embedding spaces for these environments. We show empirically that observing a system in the learned embedding space improves the performance of policy gradient reinforcement learning algorithms, particularly by reducing the variance between training runs. Our technique is limited to environments where demonstration data is available, but places no limits on how that data is collected. Our embedding technique provides a way to transfer domain knowledge from existing technologies such as planning and control algorithms, into more flexible policy learning algorithms, by creating an abstract representation of the robot state with meaningful geometry.
BibTeX
@misc{pflueger2020plan,
  author = {Max Pflueger and Gaurav S. Sukhatme},
  title = {{Plan-Space State Embeddings for Improved Reinforcement Learning}},
  year = {2020},
  eprint = {2004.14567},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.14567},
}
Figure