Research map / Large language models / Language, safety and interpretability
In-Context Principle Learning from Mistakes
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
- LEAP improves GPT-4 on DROP by 7.5 points over few-shot CoT (72.05 to 79.55).
- LEAP improves GPT-4 on HotpotQA by 3.3 points (36.35 to 39.65 with high-level principles).
- In 37 of 42 task-model combinations on BIG-Bench Hard, at least one LEAP variant beats few-shot CoT.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Add LEAP low-level principles to few-shot CoT (ablation) | GPT-4 · DROP | accuracy: 72.05 -> 79.55 | Helped |
| Add LEAP high-level principles to few-shot CoT | GPT-4 · HotpotQA | accuracy: 36.35 -> 39.65 | Helped |
| Add LEAP low-level principles to few-shot CoT (ablation) | GPT-3.5-turbo · HotpotQA | accuracy: 29.10 -> 32.60 | Helped |
| Add LEAP low-level principles to few-shot CoT (ablation) | GPT-4-turbo · HotpotQA | accuracy: 38.10 -> 37.85 | Hurt |
| Add LEAP principles | Gemini Pro · HotpotQA | accuracy: 28.25 -> 23.70; 28.25 -> 25.50 | Hurt |
| Add LEAP low-level principles to few-shot CoT (ablation) | GPT-3.5-turbo · DROP | accuracy: 63.20 -> 63.35 | No clear effect |
| Add LEAP high-level principles to few-shot CoT | GPT-3.5-turbo · DROP | accuracy: 63.20 -> 63.00 | Hurt |
| Add LEAP principles | GPT-3.5-turbo · GSM8K | accuracy: 76.4 -> 77.4; 76.4 -> 76.6 | Helped |
| Add LEAP principles | GPT-4 · GSM8K | accuracy: 93.6 -> 94.2; 93.6 -> 93.8 | Helped |
| Add LEAP principles | GPT-3.5-turbo · MATH | accuracy: 55.6 -> 56.1; 55.6 -> 56.5 | Helped |
| Add LEAP principles | Claude-2 · GSM8K | accuracy: 84.3 -> 82.7; 84.3 -> 83.8 | Hurt |
| Add LEAP principles | Gemini Pro · MATH | accuracy: 31.1 -> 29.7; 31.1 -> 30.3 | Hurt |
Surprising findings
- Open-source Llama-2-chat-70B did not benefit from principles, even when they were generated by GPT-4.
- Contrastive CoT's reported gains on GSM8K did not reproduce after fixing answer-extraction code, performing similar to or worse than few-shot CoT.
Limitations
- Open-source models did not follow the learned principles at test time, so gains appear limited to strong proprietary models.
- Gemini Pro on HotpotQA underperformed the baseline because its principles were overly example-specific and verbose.
- Gains on math benchmarks are modest and inconsistent across models (e.g., Claude-2 GSM8K and Gemini Pro MATH).
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
- The Surprising Effectiveness of Test-Time Training for Few-Shot Learning (ICML 2025 · similarity 0.89)
- Evolving Prompts In-Context: An Open-ended, Self-replicating Perspective (ICML 2025 · similarity 0.88)
- StrategyLLM: Large Language Models as Strategy Generators, Executors, Optimizers, and Evaluators for Problem Solving (NeurIPS 2024 · similarity 0.87)
- Is In-Context Learning Sufficient for Instruction Following in LLMs? (ICLR 2025 · similarity 0.87)
- Many-Shot CoT-ICL: Making In-Context Learning Truly Learn (ICML 2026 · similarity 0.87)
- Supervised Knowledge Makes Large Language Models Better In-context Learners (ICLR 2024 · similarity 0.87)
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.
