Overview
This paper introduces Iterative Inversion (IT-IN), a novel algorithm for learning continuous control policies without relying on reward functions or action labels. By framing control as an inverse problem and iteratively training a policy to reconstruct its own noisy rollouts—while "steering" it with embeddings of desired video trajectories—IT-IN successfully imitates diverse, complex behaviors and outperforms traditional Reinforcement Learning (RL) and Inverse RL (IRL) baselines.
The Challenge of Inversion Distribution Shift
In traditional Reinforcement Learning (RL), an agent learns by maximizing a manually specified reward signal. However, designing a good reward function is notoriously difficult, especially for complex tasks defined by high-dimensional inputs like video. Inverse RL (IRL) tries to bypass this by learning a reward function from expert demonstrations, but it still requires defining a similarity metric and running complex, often unstable, RL algorithms in an inner loop.
Furthermore, if you only have videos of a desired behavior (states) but no record of the controls used (actions), you face an inversion distribution shift. An untrained, random policy will generate garbage trajectories. If you train a supervised model to map those garbage trajectories back to their random actions, the model will fail completely when you suddenly feed it a video of a highly coordinated, expert trajectory. The authors tackle this exact gap: how to learn an inverse function (mapping desired state trajectories to actions) using only samples of desired outcomes and access to the environment.
Iterative Inversion (IT-IN)
The authors propose IT-IN, a method that relies entirely on supervised learning and exploration, completely ditching reward functions. The algorithm works as follows:
- Embed the Goal: Take videos of desired behaviors and compress them into latent representations called "intents" using a pre-trained VQ-VAE.
- Steer and Rollout: Feed a batch of these desired intents into the current policy (which starts off random). The policy interacts with the environment to generate rollouts. Crucially, the authors inject random Gaussian exploration noise into the actions during this step.
- Relabel: Record the actual trajectories the agent took and the actual actions it performed. Encode these actual trajectories into new intents.
- Supervised Learning: Train the policy via standard supervised learning (MSE loss) to map the actual intents to the actual actions.
- Iterate: Repeat the process.
The secret sauce is the steering (Step 2). Even though the policy is trained on its own generated data, constantly prompting it with the desired intents pulls the distribution of generated trajectories closer and closer to the target distribution, eventually overcoming the distribution shift.
Experimental Setup
The authors evaluated their method on several simulated physics environments:
- 2D Particle: A custom environment where a particle must be controlled to follow complex paths. They created two datasets: Splines (highly diverse, curvy motions) and Deceleration (moving and then smoothly stopping).
- Reacher-v2: A modified OpenAI Gym Mujoco environment where one robot arm joint is fixed, and the agent must reconstruct full arm motions.
- Hopper-v2: A complex Mujoco environment with non-linear dynamics and ground contacts. The dataset was extracted from the D4RL
hopper-medium-v2benchmark, consisting of forward hopping behaviors.
Theoretical and Practical Insights
- Control as an Iterated Inverse Problem: By treating control simply as finding the inverse of the environment's forward dynamics, the authors bypass the instability of RL and adversarial IRL. The core optimization is just stable, supervised learning.
- Theoretical Link to Newton's Method: The authors provide mathematical proofs showing that IT-IN is essentially a variant of Newton's method for root-finding. Under certain conditions, feeding the desired outputs into the current inverse model mathematically guarantees that the next iteration's outputs will step closer to the target.
- Exploration Noise is Mandatory: The algorithm fails without the Gaussian noise added during rollouts. The noise acts as a stabilizer, ensuring the supervised learning problem is well-conditioned and helping the agent discover the precise actions needed for complex dynamics.
- RL Struggles with Multi-Task Diversity: When tasked with tracking many different trajectories, standard RL (PPO) struggles to generalize and easily overfits, even when given a mathematically perfect reward function. IT-IN handles this diversity naturally.
Performance and Generalization
- Accurate Video-to-Control: IT-IN successfully learned to control the complex Hopper-v2 robot to perform specific hopping motions using only action-less video embeddings as the target input.
- Outperforming RL/IRL Baselines: In the highly diverse
Particle:Splinesenvironment, IT-IN significantly outperformed both GAIL (an IRL baseline) and PPO (an RL baseline). Remarkably, IT-IN beat PPO even when PPO was given a privileged, exact state-based reward function that IT-IN didn't have access to.
- Strong Generalization: The learned policies generalized well to unseen trajectories from the same distribution. As the size of the "steering dataset" increased (from 10 to 500 trajectories), the test error dropped consistently.
Limitations and Future Directions
While highly effective, the theoretical proofs for IT-IN's convergence require strict conditions (like bijective functions and near-linear dynamics) that do not strictly hold in the complex, non-linear deep learning environments tested. This gap between theory and practice requires further investigation. Additionally, the method currently assumes deterministic (or only slightly noisy) environment dynamics; highly stochastic environments remain an open challenge.
Future work could explore jointly training the trajectory embedding alongside the policy, replacing simple Gaussian noise with advanced RL exploration strategies, and using diffusion models to generate "intents" directly from natural language descriptions.
Summary updated