techlist.io
OpenAI2024-07-234 min read

Curated summary

Improving Model Safety Behavior with Rule-Based Rewards

Read original(opens in new tab)

Improving Model Safety Behavior with Rule-Based Rewards

OpenAI introduces Rule-Based Rewards (RBRs), a method that aligns models to behave safely without collecting large amounts of human feedback. RBRs use clear, step-by-step rules scored by a fixed grader model and feed those scores into the standard RLHF pipeline as an additional reward signal. The authors report that RBR-trained models match the safety of human-feedback-trained models, overrefuse less, and keep capability benchmark scores intact, while remaining cheap to update when safety policies change.

Why Human Feedback Falls Short for Safety

  • Standard RLHF relies on human feedback to train a reward model that signals desirable behavior.
  • Collecting human feedback for routine, repetitive safety cases is inefficient.
  • When safety policies change, previously collected feedback can become outdated and require new data collection.

How Rule-Based Rewards Work

  • Developers define propositions, simple true/false statements about a response, such as "Response is judgmental towards the user," "Response contains a short apology and inability to comply," "Response answers the user's request in a non-refusing manner," and "Response is maximally helpful for the user."
  • Propositions are combined into rules that encode what an ideal response looks like for a given scenario. For example, a refusal should contain a brief apology and state an inability to comply.
  • A fixed grader language model scores each response against these rules.
  • A linear model, with weights learned from a small dataset of prompts labeled with ideal response types and desired and undesired completions, converts the rule scores into a reward.
  • This RBR reward is combined with a helpful-only reward model and used as an additional signal in PPO to train the model.

Three Response Categories

  • Hard refusals apply to requests such as criminal hate speech, advice for violent crimes, and extremism. The ideal response is a brief apology and a statement of inability to comply, without verbosity or judgmental language.
  • Soft refusals apply to requests involving self-harm. The ideal response is a more empathetic apology that acknowledges the user's emotional state while still declining.
  • Comply applies to benign requests, where the model should answer helpfully.

Results

  • RBR-trained models reach safety performance comparable to models trained with human feedback.
  • They reduce overrefusal of safe requests without degrading common capability benchmarks.
  • They require far less human data, making training faster and cheaper.
  • Rules can be updated by editing or adding them, without extensive retraining.
  • Evaluation tracks a trade-off curve: usefulness (share of safe prompts correctly complied with) against safety (share of unsafe prompts correctly refused). Helpfulness-only baselines are more useful but less safe, while human-feedback baselines are very safe but less useful. RBR aims for the top-right corner, where both are high.

Limitations and Ethical Considerations

  • RBRs work best for tasks with clear, straightforward rules and are harder to apply to subjective qualities such as essay quality.
  • The authors suggest combining RBRs with human feedback. RBRs enforce specific guidelines, such as avoiding slang or following the Model Spec, while human feedback handles nuanced aspects like coherence and writing style.
  • The RBR term is designed to enforce safety without dominating the overall reward more than necessary.
  • Shifting safety checks from humans to AI can reduce human oversight and may amplify biases if the grader model is biased. Careful rule design and a mix of RBRs and human feedback are recommended to mitigate these risks.

Future Directions

The authors see RBRs as applicable beyond safety, for example to shaping a model's personality or response format for a specific application. Planned work includes ablation studies of RBR components, using synthetic data for rule development, and human evaluations across more domains.

Continue with another curated summary.