atlas

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

In-Context Principle Learning from Mistakes

ICML 2024 · Large language models › Language, safety and interpretability · approach: In-context learning analysis · 3 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 LEAP, which has the LLM make mistakes zero-shot on a few labeled examples, writes low- and high-level natural-language principles from those mistakes, and prepends them to the standard few-shot prompt at test time.

Problem

Standard in-context learning only learns from correct input-output examples, ignoring the information in the model's mistakes on those same few examples.

Approach

Intentionally induce mistakes on the few-shot examples via sampled zero-shot CoT, have the same LLM articulate explicit task-level principles by contrasting mistaken reasoning with the correct answer, then condition test-time few-shot prompts on these principles; the principle learning is done once per task.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add LEAP low-level principles to few-shot CoT (ablation)GPT-4 · DROPaccuracy: 72.05 -> 79.55Helped
Add LEAP high-level principles to few-shot CoTGPT-4 · HotpotQAaccuracy: 36.35 -> 39.65Helped
Add LEAP low-level principles to few-shot CoT (ablation)GPT-3.5-turbo · HotpotQAaccuracy: 29.10 -> 32.60Helped
Add LEAP low-level principles to few-shot CoT (ablation)GPT-4-turbo · HotpotQAaccuracy: 38.10 -> 37.85Hurt
Add LEAP principlesGemini Pro · HotpotQAaccuracy: 28.25 -> 23.70; 28.25 -> 25.50Hurt
Add LEAP low-level principles to few-shot CoT (ablation)GPT-3.5-turbo · DROPaccuracy: 63.20 -> 63.35No clear effect
Add LEAP high-level principles to few-shot CoTGPT-3.5-turbo · DROPaccuracy: 63.20 -> 63.00Hurt
Add LEAP principlesGPT-3.5-turbo · GSM8Kaccuracy: 76.4 -> 77.4; 76.4 -> 76.6Helped
Add LEAP principlesGPT-4 · GSM8Kaccuracy: 93.6 -> 94.2; 93.6 -> 93.8Helped
Add LEAP principlesGPT-3.5-turbo · MATHaccuracy: 55.6 -> 56.1; 55.6 -> 56.5Helped
Add LEAP principlesClaude-2 · GSM8Kaccuracy: 84.3 -> 82.7; 84.3 -> 83.8Hurt
Add LEAP principlesGemini Pro · MATHaccuracy: 31.1 -> 29.7; 31.1 -> 30.3Hurt

Surprising findings

Limitations

Experimental setup

Datasets: HotpotQA DROP GSM8K MATH BIG-Bench Hard

Benchmarks: HotpotQA DROP GSM8K MATH BIG-Bench Hard

Metrics: accuracy

Baselines: Few-shot CoT Zero-shot CoT Contrastive CoT OPRO Self-Refine MemPrompt EvoPrompt

Builds on: chain-of-thought prompting Self-Refine OPRO Contrastive Chain-of-Thought

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