atlas

Research map / Large language models / Alignment and preferences

Gaining Wisdom from Setbacks: Aligning Large Language Models via Mistake Analysis

ICLR 2024 · Large language models › Alignment and preferences · approach: Steering and correcting LLM behavior

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 aligning LLMs by having the model induce harmful responses, write mistake analyses of them, and fine-tune on those analyses (unguided) alongside helpful/harmless data, without external models or human annotation.

Problem

Existing alignment methods (SFT, RLHF) rely on human-annotated error-free instruction-response pairs and discard harmful data; the paper asks how LLMs can learn from their own mistakes safely to improve harmlessness.

Approach

Exploit the model's stronger discrimination ability: guided mistake induction produces harmful self-responses, the model writes mistake analyses of them, and these unguided analysis samples are added to SFT so the model learns what to avoid; guided harmless prompting is used at inference.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use mistake analysis for alignmentAlpaca-7B · PKU-SafeRLHF testHarmless Rate: 52.5 -> 72.4Helped
use GPT-3.5 instead of Alpaca as the analysis sourceOurs · PKU-SafeRLHF testHarmless Rate: 72.4 -> 74.1Helped
add mistake analysis to ChatGLM-6B alignmentChatGLM-6B · Goal HijackingGoal Hijacking Rate (%): 68.4 -> 85.3Helped
use unguided instead of guided SFT instruction (ablation)mistake-analysis alignment · PKU-SafeRLHF testHarmless Rate: 67.4 -> 71.0Helped
use Alpaca-induced mistakes instead of original training-set mistakes (ablation)mistake-analysis alignment · PKU-SafeRLHF testHarmless Rate: 71.0 -> 72.4Helped
add guided analysis rather than use unguided analysis (ablation)mistake-analysis alignment · PKU-SafeRLHF testHarmless Rate: 63.3 -> 72.4Helped
double mistake-analysis quantity by adding analyses of original-dataset mistakes (ablation)mistake-analysis alignment · PKU-SafeRLHF testHarmless Rate: 72.4 -> 71.2Hurt
place hint keywords at positions #1, #2, and #3 rather than no hint (ablation)Alpaca guided mistake induction · Mistake inductionHarmful Rate (%): 47.2 -> 72.2Helped
include hint keywords at position #2 in addition to position #3 (ablation)Alpaca guided mistake induction · Mistake inductionHarmful Rate (%): 67.1 -> 69.5Helped
use unguided rather than guided SFT instruction (ablation)ChatGLM-6B mistake-analysis defense · Goal HijackingGoal Hijacking Score: 7.64 -> 8.02Helped
use mistake analysis for binary harmfulness classificationAlpaca-7B · PKU-SafeRLHF testAccuracy (%): 54.5 -> 72.6Helped

Surprising findings

Limitations

Experimental setup

Datasets: PKU-SafeRLHF AlpacaFarm SafetyPrompts MOSS

Benchmarks: PKU-SafeRLHF test set AlpacaFarm test set SafetyPrompts test set MOSS helpfulness set

Metrics: Helpful Score Harmless Score Harmless Rate Goal Hijacking score and rate binary harmfulness discrimination accuracy

Baselines: Alpaca (vanilla) SFT RLHF (PPO-Lag) CoH Critique-Revise ChatGLM

Builds on: Chain of Hindsight Critique-Revise PPO-Lag LoRA Alpaca

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