atlas

Research map / Large language models / Alignment and preferences

RAIN: Your Language Models Can Align Themselves without Finetuning

ICLR 2024 · Large language models › Alignment and preferences · approach: Steering and correcting LLM behavior · 7 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 RAIN, a training-free inference method that lets frozen LLMs self-evaluate partial generations and rewind a token-set search tree (PUCT-style) to produce more harmless and truthful outputs.

Problem

Aligning large language models with human preferences usually requires finetuning (RLHF, RLAIF, DPO) and human or AI-labeled data; the paper asks whether frozen LLMs can align themselves at inference time without any data or parameter updates.

Approach

Integrate self-evaluation with a rewindable tree search over token sets during auto-regressive decoding: forward PUCT-guided exploration, LLM self-scoring of leaf texts, value/visit-count backpropagation with sibling similarity updates, and rewinding, so the final next-token-set distribution is reweighted toward self-judged harmless text.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add RAIN inferenceVicuna · AdvBench, GCG white-box and transferred attacksattack success rate: 86% -> 72%; 80% -> 55% (7B); 83% -> 38%; 79% -> 32% (13B); 94% -> 19%; 34% -> 10% (33B)Helped
Add RAIN inferenceLLaMA-2-chat 13B · TruthfulQAtruthfulness: 69.2% -> 74.1%Helped
Add RAIN inferenceLLaMA-2-chat 13B · TruthfulQAinformativeness: 98.8% -> 98.6%No clear effect
Add RAIN inferenceLLaMA 7B · IMDBpositive sentiment rate: 62.1% -> 82.1%Helped
Add RAIN inferenceAlpaca 7B and Vicuna 7B · IMDBpositive sentiment rate: 72.5% -> 94.4% (Alpaca 7B); 64.4% -> 89.1% (Vicuna 7B)Helped
Add RAIN inferenceLLaMA 7B, LLaMA-2 7B, and LLaMA 30B · HHharmlessness rate: 64.4% -> 69.3% (LLaMA 7B); 81.2% -> 86.6% (LLaMA-2 7B); 82.2% -> 97.0% (LLaMA 30B)Helped
Use 500 repeated vanilla samples and select with the LLM instead of one-time samplingLLaMA 7B · HHharmlessness rate: 64.4% -> 64.4%No clear effect
Use 500 repeated vanilla samples and select with the LLM instead of one-time samplingLLaMA 30B · HHharmlessness rate: 82.2% -> 88.1%Helped
Remove similarity update (ablation)RAIN on LLaMA-2-chat 13B · AdvBench, GCG white-box attackattack success rate: 19% -> 22%Hurt
Remove similarity update and dynamic node addition (ablation)RAIN on LLaMA-2-chat 13B · AdvBench, GCG white-box attackattack success rate: 19% -> 25%Hurt
Remove similarity update, dynamic node addition, and exploration encouragement (ablation)RAIN on LLaMA-2-chat 13B · AdvBench, GCG white-box attackattack success rate: 19% -> 27%Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Anthropic HH AdvBench TruthfulQA IMDB

Benchmarks: HH AdvBench TruthfulQA IMDB

Metrics: harmlessness rate helpfulness rate attack success rate truthful and informative rate positive sentiment proportion time ratio self-evaluation accuracy

Baselines: Vanilla auto-regressive inference RLHF RLAIF Repeated cherry-pick sampling

Builds on: RLAIF PUCT superficial alignment hypothesis Sentence-BERT

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