atlas

Research map / Large language models / Language, safety and interpretability

A Theoretical Understanding of Self-Correction through In-context Alignment

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: Task vectors and steering · 6 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.

Theoretically shows that transformers can perform gradient descent on Bradley-Terry/Plackett-Luce alignment objectives in-context from self-correction triplets, and proposes Checking-as-Context (CaC) for intrinsic self-correction to reduce social bias and jailbreak success.

Problem

Little is known about how LLM self-correction arises; prior in-context learning theory covers only linear regression with linear attention and does not explain alignment from preference-style (query, response, reward) triplets.

Approach

Formulates self-correction as in-context alignment: a stacked multi-head softmax transformer with FFN can implement gradient descent on BT (N=2) and Plackett-Luce (N>2) objectives using (x, y, r) triplets, with critics acting as supervision. Proposes Checking-as-Context, a generation-critique-regeneration procedure with no external feedback.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add Checking-as-Context self-correctionVicuna · AdvBench, GCG-individualASR: 95% -> 1%Helped
Add Checking-as-Context self-correctionVicuna · AdvBench, GCG-transferASR: 90% -> 0%Helped
Add Checking-as-Context self-correctionVicuna · AdvBench, AutoDANASR: 91% -> 29%Helped
Add Checking-as-Context self-correctionLlama2 · AdvBench, AutoDANASR: 12% -> 0%Helped
Replace multi-round checking with diverse checking context (ablation)CaC on Vicuna · AdvBench, AutoDANASR: 88% -> 80%Helped
Add self-instruct refinement instead of repeating the query (ablation)CaC on Vicuna · AdvBench, AutoDANASR: 88% -> 29%Helped
Add diverse checking context (ablation)CaC on Vicuna · AdvBench, GCG-individualASR: 2% -> 2%No clear effect
Use 2 checking rounds instead of 1 (ablation)CaC-self on Vicuna · AdvBench, GCG-individualASR: 4% -> 2%Helped
Use 3 checking rounds instead of 2 (ablation)CaC-self on Vicuna · AdvBench, GCG-individualASR: 2% -> 2%No clear effect
Use 2 checking rounds instead of 1 (ablation)CaC-diverse on Vicuna · AdvBench, GCG-individualASR: 6% -> 3%Helped
Use 3 checking rounds instead of 2 (ablation)CaC-diverse on Vicuna · AdvBench, GCG-individualASR: 3% -> 2%Helped
Use more accurate critics (ablation)CaC · BBQaccuracyHelped

Surprising findings

Limitations

Experimental setup

Datasets: BBQ AdvBench GLUE

Benchmarks: BBQ AdvBench GLUE

Metrics: normalized MSE accuracy attack success rate

Baselines: Self-reminder RAIN ICD gradient descent on PL model

Builds on: in-context learning theory for linear regression Bradley-Terry model Plackett-Luce model Self-reminder ICD

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