atlas

Research map / Reinforcement learning / RL from feedback

One-Shot Safety Alignment for Large Language Models via Optimal Dualization

NeurIPS 2024 · Reinforcement learning › RL from feedback · approach: Theory of RLHF · 2 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.

Reduces constrained safety alignment of LMs to unconstrained alignment by pre-optimizing a closed-form smooth convex dual function, yielding one-shot model-based (CAN-M) and preference-based (CAN-P) algorithms.

Problem

Constrained RLHF for LM safety alignment usually relies on iterative primal-dual (Lagrangian) policy optimization, which is expensive, unstable, and requires repeatedly retraining LMs as dual variables change.

Approach

Derive a closed-form dual function via Donsker-Varadhan, show it is convex, smooth and locally strongly convex, minimize it over offline data to get optimal dual variables, then solve a single unconstrained alignment with the modified reward r + <lambda*, g>, implemented via pseudo-preference DPO-style training.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase the dual variable λ (ablation)Model-based CAN (CAN-M) · PKU-SafeRLHF-30K test; model- and GPT-based evaluationsafety score / safety win rateHelped
Increase the dual variable λ (ablation)Model-based CAN (CAN-M) · PKU-SafeRLHF-30K test; model- and GPT-based evaluationhelpfulness score / helpfulness win rateHurt
Use preference-based CAN instead of model-based CANCAN-M · GPT-based evaluationhelpfulness and safety win ratesHurt
Optimize the dual variable with CAN-MAlpaca-7b-reproduced · PKU-SafeRLHF-30K testsafety improvement predictionHelped
Increase the number of prompts used for offline dual optimization (ablation)CAN dual optimization · PKU-SafeRLHF-30Kdual-variable stabilityHelped
Use fewer than 100 responses per prompt for offline dual optimization (ablation)CAN dual optimization · PKU-SafeRLHF-30Kdual-variable accuracyHurt

Surprising findings

Limitations

Experimental setup

Datasets: PKU-SafeRLHF-30K Alpaca-eval

Benchmarks: PKU-SafeRLHF-30K test set Alpaca-eval helpful_base prompts

Metrics: average reward score average safety score pairwise win rate vs SFT predicted vs empirical safety improvement

Baselines: SFT DPO (safety-only) DPO (helpfulness-only) Safe-RLHF (primal-dual PPO)

Builds on: DPO Safe RLHF Donsker-Varadhan variational formula Bradley-Terry 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