Generative Adversarial Reward Learning for Generalized Behavior Tendency Inference

Xiaocong Chen, Lina Yao, Xianzhi Wang, Aixin Sun, Wenjie Zhang, Quan Z. Sheng · DOI

Abstract

Recent advances in reinforcement learning have inspired increasing interest in learning user modeling adaptively through dynamic interactions, e.g., in reinforcement learning based recommender systems. Reward function is crucial for most of reinforcement learning applications as it can provide the guideline about the optimization. However, current reinforcement-learning-based methods rely on manually-defined reward functions, which cannot adapt to dynamic and noisy environments. Besides, they generally use task-specific reward functions that sacrifice generalization ability. We propose a generative inverse reinforcement learning for user behavioral preference modelling, to address the above issues. Instead of using predefined reward functions, our model can automatically learn the rewards from user's actions based on discriminative actor-critic network and Wasserstein GAN. Our model provides a general way of characterizing and explaining underlying behavioral tendencies, and our experiments show our method outperforms state-of-the-art methods in a variety of scenarios, namely traffic signal control, online recommender systems, and scanpath prediction.

Introduction

Reinforcement Learning (RL) has emerged as a powerful paradigm for modeling complex, sequential decision-making processes in dynamic environments. However, the effectiveness of RL agents is heavily dependent on the quality of the reward function. Traditionally, these functions are manually engineered by experts—a process that is often brittle, prone to human bias, and difficult to scale across different domains. This "reward engineering" bottleneck limits the generalization of RL models, particularly in noisy real-world scenarios like urban mobility or personalized recommendations.

Inverse Reinforcement Learning (IRL) attempts to solve this by inferring reward functions from expert demonstrations. Yet, traditional IRL methods face significant challenges: they are often computationally expensive, unstable during training, and susceptible to the "absorbing state problem," where agents learn sub-optimal policies to avoid penalties by ending tasks prematurely. This paper introduces Generative Adversarial Reward Learning (GARL), a framework designed to provide stable, sample-efficient, and generalized behavior tendency inference.

Methodology: Generative Adversarial Reward Learning

The GARL framework integrates an adversarial learning structure with a stabilized actor-critic network to automatically discover the underlying reward functions driving observed behaviors.

The GARL architecture, featuring an adversarial framework where a discriminator (D) learns to distinguish between expert and learned state-action pairs, providing a reward signal for the policy network.

As illustrated in Figure 1, the model consists of several key components:

  1. Adversarial Framework: At its core, GARL operates like a Generative Adversarial Network (GAN). The "Generator" is an actor-critic policy network that attempts to mimic expert behavior, while the "Discriminator" ($D$) acts as the reward function, learning to differentiate between expert trajectories and those generated by the current policy.
  2. Wasserstein GAN (WGAN) with Gradient Penalty: To overcome the instability of standard GANs in RL settings, GARL employs the Wasserstein distance (EM-distance). This approach provides a smoother gradient for the policy to follow and significantly improves training stability.
  3. Stabilized Actor-Critic with Off-Policy Learning: To enhance sample efficiency, the model utilizes a replay buffer and importance sampling. This allows the agent to leverage past experiences, reducing the need for exhaustive environment interactions.
  4. Addressing the Absorbing State: The framework incorporates a learnable bias term and indicators for terminal states. This prevents the agent from adopting "quitting" strategies to avoid accumulated negative rewards, ensuring the learned policy is robust and task-oriented.

The policy is optimized using Proximal Policy Optimization (PPO) and Generalized Advantage Estimation (GAE), ensuring reliable updates even in complex state-action spaces.

Experimental Evaluation

The authors evaluated GARL across three distinct domains to test its generalization capabilities:

  • Urban Mobility Management: Simulating traffic signal control in a two-way road network using the SUMO library.
  • Recommendation Systems: Utilizing VirtualTB, an open-source platform that simulates complex user interests and demographic interactions.
  • Scanpath Prediction: Predicting human eye-fixation sequences using the COCO-18 Search dataset.

Results and Discussion

GARL consistently outperformed state-of-the-art baselines across all tested scenarios.

Performance comparison in the traffic signal control task. GARL (Ours) achieves significantly lower total waiting times compared to standard RL algorithms, approaching expert-level performance.

In the traffic signal control task (Figure 4), GARL demonstrated superior efficiency, reducing total waiting times significantly faster and more effectively than standard Q-Learning, DQN, or A2C. In the recommendation domain, it achieved a higher Click-Through Rate (CTR) than specialized models like IRecGAN and KGRL. For scanpath prediction, GARL achieved a Scanpath Ratio of 0.881, outperforming existing IRL-based gaze models and closely matching human performance.

Beyond performance metrics, the learned reward functions provide interpretability. By visualizing reward maps, the authors demonstrated that the model "understands" which environmental features (e.g., specific objects in an image) are most salient to human decision-makers, effectively using rewards as explanations for behavior.

Conclusion

Generative Adversarial Reward Learning offers a robust solution to the reward engineering problem in reinforcement learning. By combining the stability of WGANs with the efficiency of off-policy actor-critic methods, GARL provides a generalized framework for inferring behavioral tendencies from demonstrations. Future work will focus on improving scalability for massive state-action spaces and refining experience replay mechanisms to handle increasingly complex real-world environments.

Summary updated

BibTeX
@article{chen2021generative,
  author = {Xiaocong Chen and Lina Yao and Xianzhi Wang and Aixin Sun and Wenjie Zhang and Quan Z. Sheng},
  title = {{Generative Adversarial Reward Learning for Generalized Behavior Tendency Inference}},
  journal = {IEEE Trans. Knowl. Data Eng.},
  year = {2021},
  doi = {10.1109/tkde.2022.3186920},
}
Figure