English

Toward Optimal LLM Alignments Using Two-Player Games

Computation and Language 2024-06-18 v1 Artificial Intelligence

Abstract

The standard Reinforcement Learning from Human Feedback (RLHF) framework primarily focuses on optimizing the performance of large language models using pre-collected prompts. However, collecting prompts that provide comprehensive coverage is both tedious and challenging, and often fails to include scenarios that LLMs need to improve on the most. In this paper, we investigate alignment through the lens of two-agent games, involving iterative interactions between an adversarial and a defensive agent. The adversarial agent's task at each step is to generate prompts that expose the weakness of the defensive agent. In return, the defensive agent seeks to improve its responses to these newly identified prompts it struggled with, based on feedback from the reward model. We theoretically demonstrate that this iterative reinforcement learning optimization converges to a Nash Equilibrium for the game induced by the agents. Experimental results in safety scenarios demonstrate that learning in such a competitive environment not only fully trains agents but also leads to policies with enhanced generalization capabilities for both adversarial and defensive agents.

Keywords

Cite

@article{arxiv.2406.10977,
  title  = {Toward Optimal LLM Alignments Using Two-Player Games},
  author = {Rui Zheng and Hongyi Guo and Zhihan Liu and Xiaoying Zhang and Yuanshun Yao and Xiaojun Xu and Zhaoran Wang and Zhiheng Xi and Tao Gui and Qi Zhang and Xuanjing Huang and Hang Li and Yang Liu},
  journal= {arXiv preprint arXiv:2406.10977},
  year   = {2024}
}

Comments

Our code is released at https://github.com/ruizheng20/gpo

R2 v1 2026-06-28T17:07:46.934Z