Improving Reward Model Generalization from Adversarial Process Enhanced Preferences

Zhilong Zhang, Tian Xu, Xinghao Du, Xingchen Cao, Yihao Sun, Yang YuICML 2025

TL;DR

APEC (Automated Preference generation with Enhanced Coverage) is a new framework designed to train robust reward models by leveraging the natural progression of Adversarial Imitation Learning (AIL). By treating policies from later training stages as superior to earlier ones and enforcing a "diversity" check via Wasserstein distance, APEC generates high-coverage preference data. This allows agents to learn robust reward functions and significantly outperform the suboptimal demonstrations they initially learned from.

What Problem Does This Paper Address?

In Reinforcement Learning (RL), the reward function is the "north star" that tells an agent what to do. However, hand-designing these functions is notoriously difficult and prone to "reward hacking," where agents find loopholes to get high scores without performing the desired task.

To scale RL, researchers have turned to Preference-based Reward Learning, where a model learns the reward function by observing which of two behaviors a human prefers. Because human labeling is expensive and slow, automated preference generation (like the D-REX algorithm) attempts to solve this by taking a suboptimal demonstration and injecting noise to create "worse" versions.

The problem? These noise-based methods usually stay very close to the original demonstration's path. They lack coverage—if the agent wanders into a new part of the state space during training, the reward model doesn't know how to evaluate it, leading to poor generalization and failure in complex tasks.

Methods

APEC introduces a three-stage pipeline to ensure that preference data is both accurate and diverse:

The APEC pipeline
  1. AIL Policy Collection: Instead of adding random noise to one policy, the authors run Adversarial Imitation Learning (AIL). AIL naturally produces a sequence of policies that get progressively better at mimicking the goal. The authors save checkpoints throughout this process.
  2. Diverse Preference Generation: They sample pairs of policies from different stages of the AIL process. Because AIL policies improve over time, a policy from iteration 400 is almost certainly "better" than one from iteration 10.
  3. The Wasserstein Criterion: To handle environmental noise (stochasticity), they don't just rely on the iteration count. They calculate the Wasserstein distance between the new trajectories and the original suboptimal demonstrations. A trajectory is only added to the preference buffer if it satisfies both the "later iteration" rule and a "distance threshold," ensuring the data covers a wide variety of behaviors.
  4. Reward Learning: Finally, they train a reward model using the standard Bradley-Terry model (a probabilistic ranking model) on random segments of these trajectories. This helps the model focus on specific local behaviors rather than just the total episode return.

Datasets

The authors evaluated APEC on two major continuous control benchmarks:

  • MuJoCo (Feature-based): Five tasks including Ant-v2, HalfCheetah-v2, Hopper-v2, Humanoid-v2, and Walker2d-v2.
  • DeepMind Control Suite (Pixel-based): Three vision-based tasks: cheetah_run, walker_run, and walker_walk.
  • Atari: They also included a discrete action space experiment using Pong.

Unlike many previous studies that use hundreds of expert demonstrations, this paper used a much more challenging setup: often providing only one suboptimal demonstration for MuJoCo tasks.

Key Insights and Ideas

  • The "Learning Path" is a Goldmine: The most clever insight is that the process of learning (the intermediate, "failing" policies of AIL) contains more useful information for a reward model than a single noisy expert. These intermediate policies explore the environment in a structured way that random noise cannot replicate.
  • Coverage is Mathematically Essential: The authors provide a theoretical analysis showing that the sub-optimality of a learned policy is directly tied to the "coverage coefficient" of the preference dataset. If your preference data doesn't cover high-return regions, your agent will never reach them.
  • Doubly Robust Labeling: By combining the iteration index (temporal) with the Wasserstein distance (spatial/distributional), APEC avoids the "performance spikes" or "dips" common in adversarial training, leading to much cleaner preference labels.

Key Results

  • Superior Correlation: APEC achieved an average reward correlation of 0.72 on MuJoCo tasks, dwarfing the next best baseline, AIRL, which sat at 0.47. In pixel-based DMControl tasks, APEC reached a correlation of 0.79, while some baselines actually showed negative correlation.
  • Outperforming the "Teacher": In 7 out of 8 tasks, agents trained with APEC's reward model achieved higher returns than the suboptimal demonstrations they were given. For example, in HalfCheetah, APEC reached a return of ~12,000, while the demonstrations were capped at ~7,500.
Performance on Humanoid-v2 and walker_run
  • Labeling Accuracy: APEC's automated labels were correct 90-98% of the time across various tasks, significantly higher than noise-injection methods like D-REX (~76-80%).

Limitations and Future Work

  • Environment Interaction: APEC still requires "online" interaction with the environment to generate rollouts from the AIL policies. A promising future direction would be adapting this to a purely offline setting where no further environment interaction is allowed.
  • Complex Reward Hacking: While APEC mitigates reward hacking through better coverage, the authors admit that in extremely high-dimensional or complex tasks, the model might still find unintended shortcuts.
  • Human Priors: The authors suggest that integrating human prior knowledge (e.g., "moving forward is generally good") could further stabilize the reward learning process in the future.

Summary updated

BibTeX
@inproceedings{zhang2025improving,
  author = {Zhilong Zhang and Tian Xu and Xinghao Du and Xingchen Cao and Yihao Sun and Yang Yu},
  title = {{Improving Reward Model Generalization from Adversarial Process Enhanced Preferences}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=2FGpL5Nd4C},
}
Figure