Approximated Variational Bayesian Inverse Reinforcement Learning for Large Language Model Alignment

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Cai, Yuang, Yuan, Yuyu, Shi, Jinsheng, Lin, Qinhong
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866915019947507712
author Cai, Yuang
Yuan, Yuyu
Shi, Jinsheng
Lin, Qinhong
author_facet Cai, Yuang
Yuan, Yuyu
Shi, Jinsheng
Lin, Qinhong
contents The alignment of large language models (LLMs) is crucial for generating helpful and harmless content. Existing approaches leverage preference-based human feedback data to learn the reward function and align the LLM with the feedback data. However, these approaches focus on modeling the reward difference between the chosen and rejected demonstrations, rather than directly modeling the true reward from each demonstration. Moreover, these approaches assume that the reward is only obtained at the end of the sentence, which overlooks the modeling of intermediate rewards. These issues lead to insufficient use of training signals in the feedback data, limiting the representation and generalization ability of the reward and potentially resulting in reward hacking. In this paper, we formulate LLM alignment as a Bayesian Inverse Reinforcement Learning (BIRL) problem and propose a novel training objective, Approximated Variational Alignment (AVA), to perform LLM alignment through Approximated Variational Reward Imitation Learning (AVRIL). The BIRL formulation facilitates intermediate reward modeling and direct reward modeling on each single demonstration, which enhances the utilization of training signals in the feedback data. Experiments show that AVA outperforms existing LLM alignment approaches in reward modeling, RL fine-tuning, and direct optimization.
format Preprint
id arxiv_https___arxiv_org_abs_2411_09341
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Approximated Variational Bayesian Inverse Reinforcement Learning for Large Language Model Alignment
Cai, Yuang
Yuan, Yuyu
Shi, Jinsheng
Lin, Qinhong
Machine Learning
The alignment of large language models (LLMs) is crucial for generating helpful and harmless content. Existing approaches leverage preference-based human feedback data to learn the reward function and align the LLM with the feedback data. However, these approaches focus on modeling the reward difference between the chosen and rejected demonstrations, rather than directly modeling the true reward from each demonstration. Moreover, these approaches assume that the reward is only obtained at the end of the sentence, which overlooks the modeling of intermediate rewards. These issues lead to insufficient use of training signals in the feedback data, limiting the representation and generalization ability of the reward and potentially resulting in reward hacking. In this paper, we formulate LLM alignment as a Bayesian Inverse Reinforcement Learning (BIRL) problem and propose a novel training objective, Approximated Variational Alignment (AVA), to perform LLM alignment through Approximated Variational Reward Imitation Learning (AVRIL). The BIRL formulation facilitates intermediate reward modeling and direct reward modeling on each single demonstration, which enhances the utilization of training signals in the feedback data. Experiments show that AVA outperforms existing LLM alignment approaches in reward modeling, RL fine-tuning, and direct optimization.
title Approximated Variational Bayesian Inverse Reinforcement Learning for Large Language Model Alignment
topic Machine Learning
url https://arxiv.org/abs/2411.09341