Transforming and Combining Rewards for Aligning Large Language Models

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Wang, Zihao, Nagpal, Chirag, Berant, Jonathan, Eisenstein, Jacob, D'Amour, Alex, Koyejo, Sanmi, Veitch, Victor
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866914876738240512
author Wang, Zihao
Nagpal, Chirag
Berant, Jonathan
Eisenstein, Jacob
D'Amour, Alex
Koyejo, Sanmi
Veitch, Victor
author_facet Wang, Zihao
Nagpal, Chirag
Berant, Jonathan
Eisenstein, Jacob
D'Amour, Alex
Koyejo, Sanmi
Veitch, Victor
contents A common approach for aligning language models to human preferences is to first learn a reward model from preference data, and then use this reward model to update the language model. We study two closely related problems that arise in this approach. First, any monotone transformation of the reward model preserves preference ranking; is there a choice that is ``better'' than others? Second, we often wish to align language models to multiple properties: how should we combine multiple reward models? Using a probabilistic interpretation of the alignment procedure, we identify a natural choice for transformation for (the common case of) rewards learned from Bradley-Terry preference models. The derived transformation is straightforward: we apply a log-sigmoid function to the centered rewards, a method we term ``LSC-transformation'' (log-sigmoid-centered transformation). This transformation has two important properties. First, it emphasizes improving poorly-performing outputs, rather than outputs that already score well. This mitigates both underfitting (where some prompts are not improved) and reward hacking (where the model learns to exploit misspecification of the reward model). Second, it enables principled aggregation of rewards by linking summation to logical conjunction: the sum of transformed rewards corresponds to the probability that the output is ``good'' in all measured properties, in a sense we make precise. Experiments aligning language models to be both helpful and harmless using RLHF show substantial improvements over the baseline (non-transformed) approach.
format Preprint
id arxiv_https___arxiv_org_abs_2402_00742
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Transforming and Combining Rewards for Aligning Large Language Models
Wang, Zihao
Nagpal, Chirag
Berant, Jonathan
Eisenstein, Jacob
D'Amour, Alex
Koyejo, Sanmi
Veitch, Victor
Computation and Language
Artificial Intelligence
68T50
I.2
A common approach for aligning language models to human preferences is to first learn a reward model from preference data, and then use this reward model to update the language model. We study two closely related problems that arise in this approach. First, any monotone transformation of the reward model preserves preference ranking; is there a choice that is ``better'' than others? Second, we often wish to align language models to multiple properties: how should we combine multiple reward models? Using a probabilistic interpretation of the alignment procedure, we identify a natural choice for transformation for (the common case of) rewards learned from Bradley-Terry preference models. The derived transformation is straightforward: we apply a log-sigmoid function to the centered rewards, a method we term ``LSC-transformation'' (log-sigmoid-centered transformation). This transformation has two important properties. First, it emphasizes improving poorly-performing outputs, rather than outputs that already score well. This mitigates both underfitting (where some prompts are not improved) and reward hacking (where the model learns to exploit misspecification of the reward model). Second, it enables principled aggregation of rewards by linking summation to logical conjunction: the sum of transformed rewards corresponds to the probability that the output is ``good'' in all measured properties, in a sense we make precise. Experiments aligning language models to be both helpful and harmless using RLHF show substantial improvements over the baseline (non-transformed) approach.
title Transforming and Combining Rewards for Aligning Large Language Models
topic Computation and Language
Artificial Intelligence
68T50
I.2
url https://arxiv.org/abs/2402.00742