Toward Optimal LLM Alignments Using Two-Player Games

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Zheng, Rui, Guo, Hongyi, Liu, Zhihan, Zhang, Xiaoying, Yao, Yuanshun, Xu, Xiaojun, Wang, Zhaoran, Xi, Zhiheng, Gui, Tao, Zhang, Qi, Huang, Xuanjing, Li, Hang, Liu, Yang
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866917695415386112
author Zheng, Rui
Guo, Hongyi
Liu, Zhihan
Zhang, Xiaoying
Yao, Yuanshun
Xu, Xiaojun
Wang, Zhaoran
Xi, Zhiheng
Gui, Tao
Zhang, Qi
Huang, Xuanjing
Li, Hang
Liu, Yang
author_facet Zheng, Rui
Guo, Hongyi
Liu, Zhihan
Zhang, Xiaoying
Yao, Yuanshun
Xu, Xiaojun
Wang, Zhaoran
Xi, Zhiheng
Gui, Tao
Zhang, Qi
Huang, Xuanjing
Li, Hang
Liu, Yang
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2406_10977
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Toward Optimal LLM Alignments Using Two-Player Games
Zheng, Rui
Guo, Hongyi
Liu, Zhihan
Zhang, Xiaoying
Yao, Yuanshun
Xu, Xiaojun
Wang, Zhaoran
Xi, Zhiheng
Gui, Tao
Zhang, Qi
Huang, Xuanjing
Li, Hang
Liu, Yang
Computation and Language
Artificial Intelligence
68
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.
title Toward Optimal LLM Alignments Using Two-Player Games
topic Computation and Language
Artificial Intelligence
68
url https://arxiv.org/abs/2406.10977