atlas

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

Are Human-generated Demonstrations Necessary for In-context Learning?

ICLR 2024 · Large language models › Language, safety and interpretability · approach: In-context learning analysis · 0 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 self-contemplation prompting (SEC), where an LLM first generates its own few-shot demonstrations (optionally with reasoning) for each test input and then answers, removing the need for human-crafted demonstrations.

Problem

In-context learning depends heavily on which human-crafted demonstrations are chosen, and crafting demonstrations (especially reasoning rationales) is laborious or infeasible for many tasks.

Approach

Instead of supplying hand-crafted demonstrations, the LLM is prompted to generate demonstrations tailored to each test input (with reasoning in the CoT variant) and then uses these self-generated demonstrations to produce the final answer, requiring two queries per sample.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace human-crafted CoT demonstrations with LLM-generated demonstrationsGPT-3.5 · MATH Testaccuracy: 31.2 -> 33.5Helped
Replace human-crafted vanilla demonstrations with LLM-generated demonstrationsGPT-3.5 · HumanEval Testaccuracy: 73.8 -> 75.6Helped
Replace human-crafted CoT demonstrations with LLM-generated demonstrationsGPT-3.5 · ARC Testaccuracy: 87.9 -> 86.9Hurt
Replace human-crafted CoT demonstrations with LLM-generated demonstrationsGPT-3.5 · GSM8K Testaccuracy: 77.4 -> 77.0Hurt
Use CoT-SEC instead of CoT-ICLGPT-4 · ARC Testaccuracy: 95.1 -> 96.2Helped
Use CoT-SEC instead of CoT-ICLGPT-4 · MATH Testaccuracy: 42.3 -> 41.9Hurt
Use CoT-SEC instead of CoT-ICLGPT-4 · GSM8K Testaccuracy: 92.0 -> 92.1Helped
Replace human-crafted demonstrations with model-generated demonstrationsSEC vs. ICL · MATH Testaccuracy: 31.2 -> 33.5; 42.3 -> 41.9; 7.4 -> 7.5Mixed
Increase the number of generated demonstrations (ablation)SEC · HumanEval TestaccuracyHurt
Use SEC with a model that is not strong enough instead of ICL (ablation)smaller GPT-3.5-family models · GSM8KaccuracyHurt
Use SEC rather than ICL on rare 3-digit base-5 addition problemsSEC · 3-digit base-5 addition problemsaccuracy: 28.0 -> 27.0; 27.0 -> 24.0Hurt
Use CoT-SEC rather than zero-shot promptingGPT-3.5 · GSM8K Testaccuracy: 73.4 -> 77.0Helped

Surprising findings

Limitations

Experimental setup

Datasets: GSM8K MATH ARC MMLU C-Eval HumanEval

Benchmarks: MATH GSM8K ARC MMLU C-Eval HumanEval

Metrics: exact match accuracy pass@1 accuracy

Baselines: Zero-shot Zero-shot CoT Vanilla ICL CoT-ICL Auto-CoT

Builds on: chain-of-thought prompting zero-shot chain-of-thought Auto-CoT kNN prompting

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