Policies Modulating Trajectory Generators

Atil Iscen, Ken Caluwaerts, Jie Tan, Tingnan Zhang, Erwin Coumans, Vikas Sindhwani, Vincent Vanhoucke

TL;DR

The Policies Modulating Trajectory Generators (PMTG) architecture combines the flexibility of Reinforcement Learning with the structural priors of classical control. By using a simple feed-forward policy to modulate a stateful, periodic trajectory generator, the authors achieved complex quadrupedal locomotion in under 1,000 rollouts—a massive leap in data efficiency that enables successful transfer to real-world hardware.

What Problem Does This Paper Address?

Deep Reinforcement Learning (RL) has shown great promise in simulated robotics, but it often hits a wall when moving to the real world. Two major issues persist:

  1. Data Inefficiency: Complex policies (like Recurrent Neural Networks) require massive amounts of data, which is expensive and dangerous to collect on physical robots.
  2. Lack of Prior Knowledge: Purely reactive, "black-box" policies often ignore the fundamental physics of the task. For locomotion, we know the motion is periodic and structured, yet standard RL often tries to learn this from scratch.

The authors seek a middle ground: an architecture that is easy to train like a simple feed-forward network but possesses the "memory" and structural intuition of a periodic controller.

Methods

The core of the paper is the PMTG architecture, which splits the controller into two interacting parts:

  • Trajectory Generator (TG): A predefined, stateful "black box" that generates a cyclic motion (e.g., a walking gait). It is parameterized by variables like frequency, amplitude, and foot clearance.
  • Learned Policy: A feed-forward neural network (or even a simple linear layer) that observes the robot's state and the TG's internal phase.
Figure 1: Overview of PMTG: The output (actions) utg of of a predefined Trajectory Generator (TG) is combined with that of a learned policy network (ufb). The learned policy also modulates the parameters of the TG at each time step and observes its state.

Crucially, the policy doesn't just output motor commands. It performs two roles simultaneously:

  1. Modulation: It dynamically adjusts the TG's parameters (like changing the gait frequency or stride length) at every timestep.
  2. Correction: It provides a feedback signal ($u_{fb}$) that is added to the TG's output ($u_{tg}$) to handle balance and perturbations.

The final action is $u = u_{tg} + u_{fb}$. The authors trained this system using both Proximal Policy Optimization (PPO) and Evolutionary Strategies (ARS).

Datasets

The researchers evaluated PMTG across three distinct environments:

  1. 2D Synthetic Control: A point-mass task where the agent must follow a deformed figure-eight trajectory. This served as a proof-of-concept for the TG-as-memory idea.
  2. Simulated Quadruped (PyBullet): Training a Ghost Robotics Minitaur to walk, run, and bound with controllable speeds (0 to 0.8 m/s).
  3. Real-World Minitaur: Policies learned in simulation were deployed directly onto a physical quadruped to verify sim-to-real transfer.

Key Insights and Ideas

  • TG as a Memory Unit: Because the TG is stateful (it tracks its own phase), the feed-forward policy effectively gains "memory" without the training complexity of an LSTM or GRU. The policy can "warp time" by modulating the TG's frequency.
  • Structured Priors as Regularizers: By basing the motion on a TG, the policy is biased toward realistic, periodic movements. This prevents the agent from learning "simulator hacks"—unrealistic high-frequency jitters that often cause RL policies to fail on real hardware.
  • Extreme Simplicity: The authors demonstrated that a linear policy with only 77 parameters was sufficient to learn controllable walking. This suggests that for many robotic tasks, the "intelligence" lies in how we structure the interaction between learning and physics, not just in the size of the neural network.

Key Results

  • Speed of Learning: PMTG learned stable walking gaits in fewer than 1,000 rollouts using Evolutionary Strategies. For comparison, vanilla RL methods often require tens of thousands of rollouts for similar tasks.
  • Robustness: The system learned to track a moving target velocity while being subjected to random external forces (up to 60N).
  • Minimal Sensing: The policy achieved controllable locomotion using only a 4-dimensional IMU observation (roll, pitch, and their angular velocities), plus the TG phase and desired speed.
  • Sim-to-Real Success: Policies transferred to the real Minitaur robot successfully, allowing for variable-speed walking and recovering from occasional slips.
Figure 3: Learning curves for the 2D Synthetic Control Problem using PMTG + PPO and Vanilla PPO. For Vanilla PPO, we simply remove the TG from the setup (u = ufb, s = [x, y]T .)

Limitations and Future Work

  • Ad-hoc TG Design: Currently, the Trajectory Generators are hand-designed based on human intuition of what a gait should look like. This requires domain expertise.
  • Generalization: While effective for periodic motion, it's unclear how this specific formulation scales to non-periodic tasks (e.g., manipulation), though the authors suggest kinematic controllers could replace the TG.
  • Future Directions: The authors aim to automate the TG design process, potentially by extracting trajectory generators directly from animal or human demonstrations. They also plan to explore the theoretical links between PMTG and recurrent neural architectures.

Summary updated

BibTeX
@inproceedings{iscen2018policies,
  author = {Atil Iscen and Ken Caluwaerts and Jie Tan and Tingnan Zhang and Erwin Coumans and Vikas Sindhwani and Vincent Vanhoucke},
  title = {{Policies Modulating Trajectory Generators}},
  booktitle = {CoRL},
  year = {2018},
  url = {https://openreview.net/forum?id=DAYfUmZxzj},
}
Figure