atlas

Research map / Large language models / Alignment and preferences

Rule Based Rewards for Language Model Safety

NeurIPS 2024 · Large language models › Alignment and preferences · approach: LLM-as-judge and feedback data · 8 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Rule-Based Rewards (RBR), which combine LLM-graded proposition probabilities from few-shot prompts with a helpful-only reward model during PPO, to improve safety while reducing over-refusals with minimal human data.

Problem

Human preference data for LLM safety is costly, slow to update, and under-specified instructions lead annotators to induce over-refusal or judgmental refusal styles.

Approach

Decompose desired safety behavior into binary propositions judged by a few-shot grader LLM, define rules over proposition truth values, fit a linear rule-based reward on synthetic ranked completions with a hinge loss, and add this reward to the helpful RM directly during PPO rather than distilling rules into RM data.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
train with RBRs instead of human safety preference dataPPO safety training · Internal safety, human evaluationF1-Score: 91.7 $\pm$ 1.3% -> 97.1 $\pm$ 0.7%Helped
train with RBRs instead of helpful-only preferencesPPO safety training · Internal safety, human evaluationF1-Score: 95.8 $\pm$ 0.8% -> 97.1 $\pm$ 0.7%Helped
add RBR rewards to helpful-only PPOLarge policy model · MMLUscore: $75.9\pm0.8\%$ -> $74.4\pm0.9\%$Hurt
add RBR reward to outdated-safety-data trainingPPO safety training · Internal safety, medium policy modelF1-Score: 87.7 $\pm$ 1.2% -> 94.2 $\pm$ 0.8%Helped
add RBR reward to Human-RM trainingPPO safety training · Internal safety, medium policy modelNot-Overrefuse: +16%Helped
add synthetic safety SFT data but omit RBR reward (ablation)RBR-PPO · Internal safety, medium policy modelF1-Score: 94.1 $\pm$ 0.8% -> 92.3 $\pm$ 0.9%Hurt
omit the helpful RM score on safety prompts (ablation)RBR-PPO · Internal safety, medium policy modelF1-Score: 94.1 $\pm$ 0.8% -> 92.7 $\pm$ 0.9%Hurt
omit synthetic safety SFT data (ablation)RBR-PPO · Internal safety, medium policy modelF1-Score: 94.1 $\pm$ 0.8% -> 92.2 $\pm$ 0.9%Hurt
use only 518 human-labeled safety completions (ablation)Human safety data baseline · Internal safety, medium policy modelF1-Score: 94.1 $\pm$ 0.8% -> 81.5 $\pm$ 1.5%Hurt
increase the amount of safety prompts seen during PPO (ablation)RBR-PPO · Internal safetyNot-UnsafeHelped
increase the Hard-Refusal/Comply prompt ratio (ablation)RBR-PPO · Internal safetyNot-UnsafeMixed
increase Soft-Refusal prompts from about one quarter to about matching Comply prompts (ablation)RBR-PPO · Soft-Refusal promptsSoft-Refusal styleHelped

Surprising findings

Limitations

Experimental setup

Datasets: Safety-relevant RL prompts (internal, 6.7K) Synthetic RBR comparison data (internal) Gold set (518 human-labelled completions) WildChat XSTest

Benchmarks: Internal safety RBR eval XSTest WildChat unsafe subset MMLU HellaSwag GPQA Lambada

Metrics: Not-Unsafe Not-Overrefuse F1 score between Not-Unsafe and Not-Overrefuse Hard-Refusal-Style ModAPI safety score Llama Guard 2 safety score error rate

Baselines: Helpful-PPO Human-PPO Human-match RBR-PPO Old Data-PPO HumanRM+RBR-PPO

Builds on: PPO Constitutional AI Sparrow rule-conditioned reward model

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy