Abstract
We propose an architecture for learning complex controllable behaviors by having simple Policies Modulate Trajectory Generators (PMTG), a powerful combination that can provide both memory and prior knowledge. This hybrid approach enables highly efficient locomotion learning, allowing quadruped robots to achieve controllable gaits in significantly fewer training trials than standard reinforcement learning methods.
Introduction
Learning periodic, complex behaviors like locomotion is a fundamental challenge in robotics. While Deep Reinforcement Learning (RL) has achieved notable successes, it often suffers from low data efficiency and difficulties in learning temporal dependencies. Standard feed-forward networks are reactive and lack the inherent memory required for cyclic tasks, often necessitating complex recurrent architectures like LSTMs which are difficult to train.
This work introduces the Policies Modulating Trajectory Generators (PMTG) architecture. By injecting prior knowledge of periodic motion through a predefined Trajectory Generator (TG), we simplify the learning task. The policy's role shifts from generating raw motor commands to modulating the rhythm and shape of a basic gait, leading to faster convergence and more robust behaviors.
Methods
The PMTG architecture decomposes the control problem into two main components: a stateful Trajectory Generator and a learned policy.
- Trajectory Generator (TG): This is a predefined mathematical model that outputs a basic periodic motion (e.g., a sine wave). It maintains an internal phase, providing the system with a "clock."
- Learned Policy: A simple neural network that receives the robot's state, control inputs, and the TG's internal state. It outputs two signals:
- TG Parameters: These modulate the TG's behavior, such as frequency (warping time), amplitude (stride length), and walking height.
- Feedback Signal ($u_{fb}$): An additive correction to the TG's output ($u_{tg}$) to handle balance, obstacles, and fine-grained control.
The final command sent to the robot is $u = u_{tg} + u_{fb}$. This structure allows the policy to leverage the TG's inherent memory, effectively providing "implicit recurrence" without the training overhead of recurrent neural networks.
Experimental Setup
The PMTG framework was evaluated across three domains:
- 2D Synthetic Control: A toy problem requiring a point to follow a complex figure-eight pattern.
- PyBullet Simulation: Training the "Minitaur" quadruped robot on various locomotion tasks.
- Real-World Validation: Transferring learned policies to physical hardware to test "sim-to-real" performance.
Results and Discussion
The primary advantage of PMTG is its extreme data efficiency. In quadruped walking tasks, the architecture learned stable locomotion in under 1,000 rollouts, a significant improvement over vanilla RL methods.
Key findings include:
- Warping Time: By controlling the TG's frequency, the policy can dynamically adjust the gait speed, allowing for smooth transitions from standstill to running (up to 0.8 m/s).
- Simplicity of the Policy: Surprisingly, simple linear policies with as few as 77 parameters were sufficient to outperform deep neural networks when paired with a TG.
- Robust Sim-to-Real Transfer: Policies trained in simulation successfully controlled the real Minitaur robot, demonstrating resilience to the reality gap.
Conclusion
PMTG demonstrates that combining simple learned policies with structured priors like Trajectory Generators can drastically improve the efficiency and controllability of robotic locomotion. While current TGs are manually designed, future work could explore learning these generators from demonstrations or extending the framework to non-periodic tasks.
Summary updated