In traditional imitation learning, the simplest approach is Behavioral Cloning: treating the expert's actions as labels in a supervised learning problem. However, this often fails in practice because small errors in the agent's actions lead it into states the expert never visited. Once "off-track," the agent doesn't know how to recover, leading to errors that compound quadratically over time.
To solve this, researchers have shifted toward a minimax framework known as Adversarial Imitation Learning. Instead of just copying actions, the agent tries to make its entire trajectory distribution indistinguishable from the expert's.
The Minimax Game of Imitation
The core intuition behind this research direction is to treat imitation as a zero-sum game between two players: a discriminator (or reward function) and a policy.
- The Discriminator acts as a judge. It looks at trajectories and tries to maximize the difference between the expert's behavior and the agent's behavior. It effectively "learns" a reward function where high values are assigned to expert-like states and actions.
- The Policy acts as a generator. It tries to minimize this difference by changing its behavior to maximize the rewards assigned by the discriminator.
As Jonathan Ho and Stefano Ermon demonstrated in Model-Free Imitation Learning with Policy Optimization, this adversarial framing allows agents to learn complex, high-dimensional behaviors without a manually engineered reward function. By optimizing against an adaptive adversary, the agent learns to stay within the expert's state-action distribution, which Tian Xu and colleagues proved in On Value Discrepancy of Imitation Learning reduces the compounding error from quadratic to linear.
The Alternating Optimization Loop
The practical implementation of this idea relies on an alternating update strategy. In each iteration, the system performs two phases:
- Reward Update Phase: The discriminator is updated to better distinguish between expert demonstrations and the agent's current samples. In the context of LLM reasoning, Xian Wu and others used this in rePIRL to train process reward models that evolve alongside the model's reasoning capabilities.
- Policy Update Phase: The agent treats the current discriminator as a fixed reward function and uses Reinforcement Learning (RL) to improve its policy. Deyi Xiong applied this to Text Summarization, showing that this loop helps models capture abstractive qualities that standard supervised training misses.
This iterative refinement ensures the reward signal remains challenging but achievable, guiding the agent toward the expert's "occupancy measure"—the total distribution of states and actions visited.
Proving Global Convergence
While the minimax objective is powerful, it is notoriously difficult to optimize because it involves non-convex-concave landscapes. However, recent theoretical work has provided a foundation for why these algorithms actually work.
Mingyi Hong and Zhaoran Wang provided the first global convergence guarantees for Generative Adversarial Imitation Learning (GAIL) in the Linear Quadratic Regulator setting. This was later extended by Yufeng Zhang and Zhuoran Yang, who proved in Generative Adversarial Imitation Learning with Neural Network Parameterization that GAIL can converge to a globally optimal solution even when using complex neural networks.
Robustness to Imperfect Data
A major advantage of the adversarial approach is its flexibility. In real-world scenarios, "expert" demonstrations are often noisy or sub-optimal.
Yunke Wang and Chang Xu addressed this by introducing a third player into the game: a weighting component. In their SAIL framework, the model learns to identify which demonstrations are high-quality and should be prioritized, allowing the agent to learn effectively even from "imperfect" experts. Similarly, Xinyan Su demonstrated that this adversarial logic can be applied to Batch Inverse RL, enabling recommendation systems to learn from messy, historical user logs.
By framing imitation as a continuous process of distribution alignment rather than a one-time supervised task, these methods allow agents to recover the underlying motivations of behavior—whether in fish schooling or mathematical reasoning.