Rule Based Rewards for Language Model Safety

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Mu, Tong, Helyar, Alec, Heidecke, Johannes, Achiam, Joshua, Vallone, Andrea, Kivlichan, Ian, Lin, Molly, Beutel, Alex, Schulman, John, Weng, Lilian
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866909376016547840
author Mu, Tong
Helyar, Alec
Heidecke, Johannes
Achiam, Joshua
Vallone, Andrea
Kivlichan, Ian
Lin, Molly
Beutel, Alex
Schulman, John
Weng, Lilian
author_facet Mu, Tong
Helyar, Alec
Heidecke, Johannes
Achiam, Joshua
Vallone, Andrea
Kivlichan, Ian
Lin, Molly
Beutel, Alex
Schulman, John
Weng, Lilian
contents Reinforcement learning based fine-tuning of large language models (LLMs) on human preferences has been shown to enhance both their capabilities and safety behavior. However, in cases related to safety, without precise instructions to human annotators, the data collected may cause the model to become overly cautious, or to respond in an undesirable style, such as being judgmental. Additionally, as model capabilities and usage patterns evolve, there may be a costly need to add or relabel data to modify safety behavior. We propose a novel preference modeling approach that utilizes AI feedback and only requires a small amount of human data. Our method, Rule Based Rewards (RBR), uses a collection of rules for desired or undesired behaviors (e.g. refusals should not be judgmental) along with a LLM grader. In contrast to prior methods using AI feedback, our method uses fine-grained, composable, LLM-graded few-shot prompts as reward directly in RL training, resulting in greater control, accuracy and ease of updating. We show that RBRs are an effective training method, achieving an F1 score of 97.1, compared to a human-feedback baseline of 91.7, resulting in much higher safety-behavior accuracy through better balancing usefulness and safety.
format Preprint
id arxiv_https___arxiv_org_abs_2411_01111
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Rule Based Rewards for Language Model Safety
Mu, Tong
Helyar, Alec
Heidecke, Johannes
Achiam, Joshua
Vallone, Andrea
Kivlichan, Ian
Lin, Molly
Beutel, Alex
Schulman, John
Weng, Lilian
Artificial Intelligence
Reinforcement learning based fine-tuning of large language models (LLMs) on human preferences has been shown to enhance both their capabilities and safety behavior. However, in cases related to safety, without precise instructions to human annotators, the data collected may cause the model to become overly cautious, or to respond in an undesirable style, such as being judgmental. Additionally, as model capabilities and usage patterns evolve, there may be a costly need to add or relabel data to modify safety behavior. We propose a novel preference modeling approach that utilizes AI feedback and only requires a small amount of human data. Our method, Rule Based Rewards (RBR), uses a collection of rules for desired or undesired behaviors (e.g. refusals should not be judgmental) along with a LLM grader. In contrast to prior methods using AI feedback, our method uses fine-grained, composable, LLM-graded few-shot prompts as reward directly in RL training, resulting in greater control, accuracy and ease of updating. We show that RBRs are an effective training method, achieving an F1 score of 97.1, compared to a human-feedback baseline of 91.7, resulting in much higher safety-behavior accuracy through better balancing usefulness and safety.
title Rule Based Rewards for Language Model Safety
topic Artificial Intelligence
url https://arxiv.org/abs/2411.01111