LASER: Learning a Latent Action Space for Efficient Reinforcement Learning

Arthur Allshire, Roberto Martín-Martín, Charles Lin, Shawn Manuel, Silvio Savarese, Animesh Garg · DOI

TL;DR

This paper introduces LASER, a method that learns an efficient "latent" action space for robots, making reinforcement learning (RL) tasks significantly faster and more effective. By discovering the underlying structure of manipulation tasks, LASER allows robots to learn complex behaviors with less data and generalize better to new, but similar, tasks.

What Problem Does This Paper Address?

Reinforcement learning (RL) for robot manipulation often struggles with inefficient exploration due to poorly chosen action spaces. Imagine trying to open a door by randomly wiggling every single joint motor – it's incredibly inefficient! The authors argue that many manipulation tasks, especially within a "task family" (like opening different types of doors), don't require exploring the entire vast space of possible robot actions. Instead, successful actions often lie on a lower-dimensional "manifold" that captures the essential movements for the task. Current RL approaches typically train policies directly in the raw, high-dimensional actuation space (e.g., joint torques), ignoring this inherent task structure. This leads to slow learning and poor generalization. LASER aims to solve this by learning a more appropriate, task-specific latent action space that aligns with the natural constraints of the manipulation problem.

Methods

LASER tackles this problem by factorizing it into two key components: learning the latent action space and then learning a policy within that space.

  1. Latent Action Space Learning: LASER uses a variational encoder-decoder architecture.
  2. Encoder: Takes raw robot actions and the current robot state (e.g., joint positions) and maps them into a lower-dimensional latent action space. This is conditioned on the robot's state because the mapping from latent to raw actions often depends on the current robot configuration (e.g., if you're already close to the target joint position, you need less torque).
  3. Decoder: Reconstructs the original action from the latent action and the robot state. This ensures that the learned latent actions can be translated back into meaningful commands for the robot.
  4. Latent Dynamics Model: A separate component learns to predict how the robot's state will change given a latent action. This helps ensure "dynamic consistency" – that similar latent actions lead to similar state transitions.
  5. Loss Functions: The training involves several losses:
  6. Reconstruction Loss: Ensures the decoder can accurately reconstruct original actions from latent ones.
  7. Dynamics Loss: Encourages the latent dynamics model to accurately predict state transitions.
  8. KL Divergence Loss: Regularizes the latent space to be smooth and centered around zero, a common practice in variational autoencoders (VAEs).
  9. Policy Learning: Once the latent action space is learned, a standard RL algorithm (like SAC) is trained to output actions in this latent space. The learned decoder then translates these latent actions into the robot's original action space for execution.

LASER offers two variants:

  • Offline LASER: Learns the latent action space from pre-collected expert demonstrations.
  • Online LASER: Learns the latent action space concurrently with the RL policy, using data generated during the policy's training.

Datasets

The paper uses data from two simulated robotic manipulation tasks:

  • Door Opening: The robot needs to open a door to a specific angle.
  • Wiping: The robot uses an end-effector to wipe dirt off a surface.

These tasks are designed to involve contact-rich interactions and clear underlying action manifolds. The data used for training LASER comes from either expert policies or the policies being trained (in the online setting).

Key Insights and Ideas

  • Action Space Matters (A Lot): The paper strongly emphasizes that the choice of action space is as crucial as the observation space for efficient RL. A well-aligned action space can dramatically reduce the exploration burden.
  • Task Manifolds are Key: Many manipulation tasks don't require exploring the entire action space but rather a specific, lower-dimensional manifold. LASER explicitly aims to discover and leverage these manifolds.
  • Factorization for Simplicity: Breaking down the problem into learning an action space representation and then learning a policy within it simplifies the overall learning challenge.
  • Latent Actions as Meta-Learning: The learned latent action space acts as a form of meta-knowledge, transferring information about task structure across different instances or even related tasks, accelerating future learning.
  • State-Conditioned Latent Actions: The realization that the mapping from a latent action to a raw action often depends on the robot's current state is a crucial insight that informs the encoder-decoder design.

Key Results

  • Faster Learning: In both simulated Door and Wipe tasks, training an RL agent (SAC) in the LASER-learned action space converged significantly faster than training in the original action space. For example, in the Door task, LASER achieved a reward of 100 zero-shot, while the original action space took 500,000 steps.
  • Improved Sample Efficiency: LASER demonstrated marked improvements in sample efficiency, meaning fewer interactions with the environment were needed to achieve a certain performance level.
  • Effective Task Transfer: When tested on new instances of the Door and Wipe tasks (e.g., a door with different damping, or wiping random circles), the LASER action space learned from the base task still provided a significant advantage for learning the new task.
  • Qualitative Alignment: Visualizations showed that the learned latent action spaces were indeed low-dimensional (e.g., 2D for a task that naturally had 2D movement) and aligned with the task's natural dimensions (e.g., lateral movements for wiping).
  • Online Learning Efficiency: The online LASER variant, which learns the action space and policy simultaneously, did not impede policy learning and even facilitated it, achieving comparable or better results than offline training.

Limitations and Future Work

  • Data Dependency: LASER relies on data from similar task instances. The quality and quantity of this data will influence the effectiveness of the learned latent action space.
  • Task Family Definition: The paper assumes a "task family" where latent action spaces can be shared. Defining what constitutes a task family and how to generalize across more diverse tasks remains an area for exploration.
  • Generalization to Unseen Tasks: While LASER shows promise in transferring knowledge to new instances of a task, its ability to generalize to entirely novel tasks with different underlying structures is not extensively explored.
  • Real-World Deployment: The experiments were conducted in simulation. Future work would involve validating LASER's effectiveness on real robotic hardware.
  • Exploration of Other Latent Space Properties: The paper mentions latent controllability, consistency, and scaling. Further investigation into how these properties can be explicitly controlled or optimized could lead to even better latent action spaces.

Summary updated

BibTeX
@inproceedings{allshire2021laser,
  author = {Arthur Allshire and Roberto Martín-Martín and Charles Lin and Shawn Manuel and Silvio Savarese and Animesh Garg},
  title = {{LASER: Learning a Latent Action Space for Efficient Reinforcement Learning}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2021},
  doi = {10.1109/icra48506.2021.9561232},
}
Figure