Transforming and Combining Rewards for Aligning Large Language Models (2402.00742v2)
Abstract: A common approach for aligning LLMs to human preferences is to first learn a reward model from preference data, and then use this reward model to update the LLM. 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 LLMs 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 LLMs to be both helpful and harmless using RLHF show substantial improvements over the baseline (non-transformed) approach.
- Zihao Wang (216 papers)
- Chirag Nagpal (25 papers)
- Jonathan Berant (107 papers)
- Jacob Eisenstein (73 papers)
- Alex D'Amour (5 papers)
- Sanmi Koyejo (111 papers)
- Victor Veitch (38 papers)