Introduction
In the realm of robotics and continuous control, trajectory optimization is a foundational technique. Traditional methods like Differential Dynamic Programming (DDP) or Guided Policy Search (GPS) typically operate by linearizing the system's dynamics—assuming the physics behaves like a simple linear equation locally.
However, this assumption is a double-edged sword. If the physical environment is highly non-linear (e.g., a robot arm hitting joint limits or experiencing complex friction), the linear approximation introduces a "bias." This bias can lead the algorithm to a sub-optimal policy or cause it to fail entirely. Conversely, purely model-free reinforcement learning (RL) methods, which make no assumptions about physics, often require millions of trials, rendering them impractical for real-world physical robots.
MOTO (Model-Free Trajectory Optimization) bridges this gap. It provides the stability and closed-form updates of trajectory optimization while remaining strictly model-free to avoid linearization bias, achieving stable, high-quality control in complex, non-linear robotic tasks.
Core Methodology
MOTO operates within an Approximate Policy Iteration framework, alternating between two primary steps:
- Policy Evaluation: Instead of learning a global dynamics model, MOTO fits a local quadratic Q-function to the data gathered from recent trajectories. It leverages Importance Sampling to reuse data from previous iterations and different time-steps, drastically improving sample efficiency.
- Policy Update: The algorithm calculates a new policy by solving a constrained optimization problem. It seeks a policy that maximizes the expected Q-value while staying "close" to the previous policy, enforced via a Kullback-Leibler (KL) divergence constraint.
Key Algorithmic Innovations
- Closed-Form Updates: Unlike many model-free methods that rely on gradient descent, MOTO derives a closed-form solution for the policy update. This ensures the KL-constraint is satisfied exactly, providing superior stability.
- Entropy Control: MOTO includes a constraint to prevent the policy's entropy (exploration) from dropping too quickly, helping the agent avoid getting stuck in local optima.
- No Dynamics Linearization: Unlike GPS, MOTO never attempts to learn the transition dynamics $p(s_{t+1}|s_t, a_t)$. It only models the Q-function, making it far more robust to complex physics.
Experimental Datasets and Tasks
The authors evaluated MOTO on several simulated continuous control benchmarks:
- Multi-link Swing-up: 2-link (double pendulum) and 4-link (quadruple pendulum) tasks. These are classic underactuated problems where the robot must learn to swing a pole upright.
- Quadruple Link with Joint Limits: A harder version of the swing-up where the joints have "soft limits," introducing harsh non-linearities that break standard linearization-based methods.
- Robot Table Tennis: A high-dimensional task involving a simulated 9-DOF robot arm tasked with returning a spinning ball.
Key Insights and Results
The Power of Locality and Exact Constraints: You don't need a perfect global model of the world to make progress. By fitting a quadratic Q-function locally around the current trajectory, MOTO captures enough "curvature" to make a smart update without the baggage of a full dynamics model. Furthermore, MOTO’s ability to satisfy the KL-constraint exactly in closed form makes the learning process significantly more trustworthy, a vital trait for physical robotics.
Robustness to Non-linearity: On the quadruple-link swing-up with joint limits, MOTO significantly outperformed Guided Policy Search (GPS). While GPS struggled because its linear dynamics model couldn't handle the joint limits, MOTO successfully learned the task.
High-Dimensional Success and Sample Efficiency: In the table tennis task, MOTO successfully learned a forehand stroke to return spinning balls, converging faster than other information-theoretic methods like REPS or MORE. It successfully adapted to "noisy" ball bounces (simulating spin), whereas methods relying on fixed movement primitives failed because they couldn't update their trajectories mid-flight. Crucially, MOTO demonstrated it could learn complex tasks with only a few hundred rollouts, bringing it within the realm of what is possible on a physical robot.
Limitations and Future Work
While highly effective, MOTO has a few limitations:
- Quadratic Assumption: MOTO assumes the Q-function is locally quadratic. While this works well for many control tasks, it might struggle with extremely discontinuous reward functions or "cliff-like" value landscapes.
- V-Function Bias: Using a quadratic function for the V-function (used in the dynamic programming step) might introduce some bias. Exploring more complex function approximators for the V-function is a promising direction.
- State Distribution Estimation: As iterations grow, the mixture of policies used for importance sampling becomes complex, potentially leading to a drop in "effective" samples. Finding better ways to represent the state distribution over time remains an open challenge.
Summary updated