TL;DR
MP3 (Movement Primitive-based Planning Policy) bridges the gap between step-based and episodic reinforcement learning by executing closed-loop replanning in trajectory space. By combining Probabilistic Dynamic Movement Primitives (ProDMPs) with trust-region deep RL, MP3 generates smooth, safe robotic motions, handles sparse and non-Markovian rewards, and adapts online to environmental disturbances.
What Problem Does This Paper Address?
Deep reinforcement learning for robotics typically falls into two camps, each with significant drawbacks:
- Step-based RL (SRL): The agent outputs raw atomic actions (e.g., joint torques) at every step. This random-walk exploration causes jerky, dangerous robot movements, suffers from noisy credit assignment, and struggles when rewards are sparse or delayed (non-Markovian).
- Episode-based RL (ERL) with Movement Primitives (MPs): The agent samples trajectory parameters only once at the beginning of an episode. While this ensures smooth, temporally extended exploration and handles sparse rewards effectively, it operates open-loop—making it incapable of adapting to environmental changes or sensor noise during execution.
The authors address this trade-off by introducing a framework that allows an RL agent to plan in trajectory space while periodically replanning online, unifying the adaptability of SRL with the structured exploration and smoothness of ERL.
Methods
MP3 operates across a hierarchical structure governed by an adjustable planning horizon $k$:
- Policy with Trust Region Projection Layers (TRPL): Instead of issuing single-step controls, a deep policy observes the current state and outputs a weight vector $w$ parameterizing a trajectory segment of duration $k$. The policy is trained via policy gradients using TRPL to guarantee stable updates in high-dimensional parameter spaces.
- Trajectory Generation via ProDMPs: The weights feed into Probabilistic Dynamic Movement Primitives (ProDMPs). Unlike standard ProMPs (which suffer from jerky discontinuities when concatenated) or DMPs (which require slow numerical integration), ProDMPs provide closed-form, computationally efficient trajectories with second-order smoothness (matching both position and velocity at replanning boundaries).
- Low-Level Tracking Controller: A tracking controller converts the desired position and velocity trajectories into raw low-level control actions (e.g., torques).
- Spectrum of Control: By altering $k$, the framework seamlessly transitions between paradigms:
- $k = 1$: Step-based RL exploring in parameter space.
- $k = T$: Episodic black-box optimization (MP3-BB).
- $1 < k < T$: Online replanning (MP3), enabling closed-loop feedback at regular intervals.
State s_t ──► Policy (TRPL) ──► Weights w_t ──► ProDMP (k steps) ──► Tracking Controller ──► Action a_t
▲ │
└────────────── Replans every k steps ────────────────────┘
Datasets & Benchmarks
The authors evaluated MP3 across several simulated continuous-control robotic tasks:
- 5D Reacher: A modified OpenAI Gym planar reacher with 5 actuated joints, tested with dense and sparse terminal rewards.
- Box Pushing (7-DoF Franka Emika Panda): Pushing and orienting a box using joint torques, evaluated under dense rewards, temporally sparse rewards, and dynamic goal switching mid-trajectory.
- Hopper Jump: A modified OpenAI Gym Hopper trained under a non-Markovian reward to jump as high as possible and land at a target point.
- Beer Pong (7-DoF arm): Throwing a ball into cups at randomized table coordinates under non-Markovian trajectory-level reward conditions.
- Table Tennis (7-DoF arm): Returning randomized incoming balls to randomized opponent landing targets. Evaluated in static setups, sudden goal switches (at step 99), and unobserved continuous external perturbations (wind forces).
- Meta-World Benchmark Suite: Comprehensive multi-task evaluation across all 50 manipulation tasks with shaped dense rewards.
Key Insights and Ideas
- Smooth Exploration Beats Random Walks: Exploring in the parameter space of movement primitives enforces continuous, second-order smooth joint trajectories, preventing the erratic shaking typical of step-based Gaussian action noise.
- Temporal Abstraction Solves Non-Markovian Settings: By aggregating rewards over trajectory chunks ($R^k_t = \sum \gamma^i r_{t+i}$), the credit assignment problem is dramatically simplified. Tasks defined by whole-trajectory outcomes (e.g., peak jump height, ball bounce sequences) become naturally solvable where step-wise MDP formulations fail.
- ProDMPs Are Essential for Replanning: Ablations confirmed that non-dynamic primitives (ProMPs) cause severe performance drops during replanning due to boundary velocity mismatches, whereas ProDMPs provide smooth continuity between planning segments.
- Trust Regions Are Critical in Parameter Space: Learning high-dimensional trajectory parameters directly destabilizes standard PPO clipping; analytical KL projections (TRPL) proved necessary for stable policy improvement.
Key Results
- Sparse & Non-Markovian Rewards: SRL methods (PPO, TRPL, SAC) failed or suffered heavy performance degradation in sparse Reacher, sparse Box Pushing, Beer Pong, and Table Tennis. MP3 consistently achieved $>80\%$ success rates. In Hopper Jump, MP3 achieved a jump roughly 20 cm higher with superior landing precision compared to PPO.
- Meta-World (50 Tasks): MP3-BB achieved competitive sample efficiency with PPO/TRPL and slightly higher asymptotic success. Performance profiles showed that MP3 achieved significantly higher consistency above the 80% success threshold.
- Robustness to Environment Dynamics:
- Box Pushing with Goal Switch: MP3 adapted online after goals shifted at 20% of episode completion, outperforming PPO and TRPL.
- Table Tennis with Goal Switch & Wind: Open-loop black-box MP3-BB failed completely when target positions switched mid-flight (0% success). MP3 successfully adapted its paddle trajectory mid-swing, reaching over 70% success. Under random constant wind perturbations, MP3 inferred trajectory deviations from ball velocity and maintained near-80% hit rates.
Limitations and Future Work
- Fixed Replanning Triggers: Replanning currently occurs at rigid, predefined time intervals ($k$). An event-triggered mechanism (e.g., replanning upon physical contact or substantial tracking error) would be more natural and computationally efficient.
- Sample Efficiency in Dense Reward Regimes: In standard dense environments (such as Meta-World), temporal abstraction discards fine-grained step-level transition data, meaning MP3 can require more environment interaction steps than purely step-based off-policy RL.
Summary updated