Latent Collocation (LatCo) is a novel approach to model-based reinforcement learning (MBRL) that plans long-horizon tasks by optimizing sequences of latent states alongside actions. By allowing the agent to temporarily "violate" physics during the planning phase to discover high-reward regions, LatCo successfully solves complex, sparse-reward robotic tasks where traditional methods fail.
The Problem: The Limits of "Shooting" Methods
In MBRL, an agent learns a model of the world and uses it to plan future actions. Most current visual MBRL methods rely on shooting methods: they sample a sequence of actions, simulate the outcome forward in a learned latent space, and pick the best one.
However, shooting methods struggle significantly with long-horizon tasks. Because the effects of actions compound over time, a tiny change in an early action can lead to a massive difference in the final state. This makes the optimization landscape "jagged" and full of local optima.
Imagine trying to throw a ball into a bucket 50 yards away; a millimeter of wrist movement changes the trajectory entirely. It is much easier to first imagine the path the ball should take (the states) and then figure out how to throw it (the actions).
The Solution: Latent Collocation (LatCo)
This paper brings the intuition of planning states first—known as collocation—to visual RL. Instead of optimizing only actions, LatCo optimizes a sequence of both latent states and actions to maximize reward, subject to the constraint that the states must be feasible according to the learned dynamics model.
Key technical contributions include:
- Latent-Space Planning: To handle high-dimensional images, LatCo operates in a compact, learned latent space (similar to world models used in PlaNet or Dreamer).
- Dynamics Relaxation ("Teleportation"): Using a Lagrangian formulation, the optimizer can initially "relax" the dynamics constraint. This allows the plan to temporarily "teleport" or violate physics to find a high-reward goal (like a hand already holding a tool). As optimization progresses, the constraints are tightened until the trajectory is physically feasible.
- Efficient Optimization: The authors use the Levenberg-Marquardt algorithm, a second-order optimizer. By exploiting the "block-tridiagonal" structure of the problem's Jacobian, the optimizer scales linearly with the planning horizon, making it 10-100x faster than standard gradient descent.
- Gaussian LatCo: For stochastic environments, the method is extended to optimize over Gaussian distributions of states, allowing the agent to reason about uncertainty.
Key Results and Performance
The authors evaluated LatCo on several challenging benchmarks, including a sparse-reward version of the MetaWorld robotic manipulation suite, the DeepMind Control Suite (DMC), and a custom "Lottery Task" designed to test planning under uncertainty.
- Superior Long-Horizon Planning: On sparse MetaWorld tasks, LatCo significantly outperformed shooting methods. For the "Reaching" task, LatCo achieved a 91% success rate, while the best shooting baseline (PlaNet) only reached 20%.
- Complex Tool Use: In the most difficult tasks requiring tool manipulation (like Hammer and Thermos), LatCo was often the only method able to find a successful plan from scratch, achieving up to 37% success where baselines stayed at 0%.
- Robustness to Difficulty: As the distance to the goal increased, shooting methods' performance plummeted, while LatCo remained relatively stable.
- Handling Uncertainty: Gaussian LatCo successfully solved the "Lottery" task by correctly estimating expected returns under stochasticity, whereas deterministic planners chose the "risky" path and failed.
Limitations and Future Directions
While highly effective, collocation involves many more variables than shooting since every state is a variable. Although the authors' optimizer is efficient, it remains computationally heavier than simple random sampling. Furthermore, while LatCo is better at escaping local optima than shooting, it isn't entirely immune to them.
Future directions proposed by the authors include applying these ideas to hierarchical RL (where LatCo plans subgoals) or state-only imitation learning, where an agent learns to mimic the states of a demonstration without knowing the exact actions taken.
Summary updated