Equivariant Action Sampling for Reinforcement Learning and Planning

Linfeng Zhao, Owen Howell, Xupeng Zhu, Jung Yeon Park, Zhewen Zhang, Robin Walters, Lawson L. S. WongarXiv 2024 · DOI

Abstract

Many robotic control tasks possess inherent geometric symmetries, yet modern reinforcement learning (RL) and planning algorithms often fail to exploit them. While equivariant neural networks can bake symmetry into model architectures, sampling-based planners—which select actions by evaluating thousands of random trajectories—introduce "symmetry breaking" through stochasticity. This paper introduces a novel method for preserving symmetry in sampling-based RL. By augmenting action samples with group transformations, we achieve "strong equivariance" in decision-making. Our approach leads to 2–3x faster training and significantly improved generalization across complex robotic control benchmarks.

Introduction

In robotic tasks, such as a drone navigating a room or a robotic arm reaching for an object, the underlying physics are often symmetric. If the environment and the goal are rotated by 90 degrees, the optimal action should ideally be the original action rotated by the same amount.

Recent advances in "equivariant" neural networks have allowed researchers to encode these inductive biases directly into model architectures. However, a significant gap remains in model-based RL and planning algorithms like MPPI or TD-MPC. These algorithms rely on sampling potential trajectories to find the best action. Because a finite set of random samples is rarely perfectly balanced across all possible rotations, the agent suffers from "weak equivariance," forcing it to relearn the same physical principles for every possible orientation.

Methodology: Achieving Strong Equivariance

To address symmetry breaking in sampling, we propose a two-step Equivariant Action Sampling strategy:

  1. G-Invariant Models: We ensure that the energy or value functions used to score actions are invariant under a symmetry group $G$ (e.g., 90-degree rotations and reflections).
  2. G-Augmented Sampling: Instead of drawing $N$ independent random samples, we draw a smaller set of samples and apply all transformations in the symmetry group $G$ to each one.
Equivariant Action Sampling Framework. The model ensures that rotating the input image and coordinates leads to a consistently rotated output, maintaining equivariance through an energy-based model (EBM).

For instance, using the $D_4$ symmetry group (8 rotations and reflections), we might draw 100 random actions and apply all 8 transformations to each, resulting in 800 perfectly symmetric samples. This ensures the estimator is symmetric for every single set of samples, a property we define as strong equivariance.

We integrated this framework into TD-MPC, making every component—the image encoder, dynamics model, reward model, and MPPI planner—fully equivariant.

Experimental Results

We evaluated our method across several continuous control benchmarks, including the DeepMind Control Suite (PointMass, Reacher), MetaWorld (Reach), and custom 3D particle tasks.

Efficiency and Stability

In tasks like Reacher Hard and MetaWorld Reach, equivariant models reached near-optimal performance 2 to 3 times faster than non-equivariant baselines. Furthermore, the equivariant version of TD-MPC proved significantly more robust to hyperparameters, remaining stable even with minimal initial random data collection ("warmup steps"), where standard models typically collapse.

Generalization and Extrapolation

A key advantage of strong equivariance is the ability to generalize beyond the training distribution. In coordinate regression tasks, where a model must predict $(x, y)$ coordinates from an image, our equivariant model accurately predicted coordinates in regions it had never seen during training.

Comparison of generalization performance. Strong equivariance allows the model to extrapolate accurately to regions outside the training distribution (first quadrant), whereas non-equivariant and weakly equivariant models fail to maintain accuracy in unseen regions.

3D Control

For 3D tasks, we utilized finite subgroups of the rotation group $SO(3)$, such as the icosahedral group (order 60). The icosahedral-equivariant model consistently outperformed baselines in complex 3D particle control, demonstrating that the benefits of strong equivariance scale to higher-dimensional symmetries.

Discussion and Limitations

While Equivariant Action Sampling provides powerful inductive biases, it is not without trade-offs. Applying group transformations to every sample increases the computational cost per planning step (wall-clock time), even though it reduces the number of environment interactions required. Additionally, global rotation symmetry can be broken by kinematic constraints, such as a robotic joint with specific limits. Future work will focus on incorporating these constraints into the equivariant framework and extending the method to multi-modal robotic manipulation.

Summary updated

BibTeX
@misc{zhao2024equivariant,
  author = {Linfeng Zhao and Owen Howell and Xupeng Zhu and Jung Yeon Park and Zhewen Zhang and Robin Walters and Lawson L. S. Wong},
  title = {{Equivariant Action Sampling for Reinforcement Learning and Planning}},
  year = {2024},
  eprint = {2412.12237},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.12237},
}
Figure