atlas

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

In-Context Learning Learns Label Relationships but Is Not Conventional Learning

ICLR 2024 · Large language models › Language, safety and interpretability · approach: In-context learning analysis · 4 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.

Probes how in-context learning uses in-context label information via probabilistic metrics and full context-size training curves, finding ICL does use labels and can learn novel tasks but cannot fully overcome pre-training label preferences and does not weight all in-context information equally.

Problem

There is no consensus on how in-context learning (ICL) uses label information in LLMs; prior work disagrees on whether ICL learns input-label relationships, so the paper tests whether ICL behaves like a conventional learner.

Approach

Formulates three null hypotheses about how an idealized conventional learner should use labels, evaluates ICL across all context sizes with probabilistic metrics (log likelihood, entropy), and introduces a single-forward-pass method to compute ICL training dynamics at every number of in-context examples.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Randomize the in-context labelsFew-shot ICL · SST-2log likelihood: 0.51Hurt
Randomize the in-context labelsFew-shot ICL · AG Newslog likelihood: 0.90Hurt
Use flipped labels instead of default labelsFew-shot ICL · SST-2entropy: -0.17Hurt
Use flipped labels instead of default labelsFew-shot ICL · AG Newsentropy: -1.00Hurt
Provide in-context examples for a novel author-identification label relationshipFew-shot ICL · Novel author identificationaccuracyHelped
Add prompts explaining the flipped label relationshipPrompted few-shot ICL · SST-2performanceMixed
Present default labels before flipped labels rather than flipped labels before default labelsFew-shot ICL with changing label relationships · Tasks with dynamic label flippingpredictionsMixed
Calibrate predicted probabilities by dividing by a prior and renormalizingFew-shot ICL · Tasks with randomized labelsperformanceNo clear effect
Use 8-bit quantization instead of full 32-bit precisionLLaMa-2-7B · SubjectivityperformanceNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: SST-2 Subjectivity Financial Phrasebank Hate Speech AG News MQP MRPC RTE WNLI authorship identification (private Slack messages)

Benchmarks: SST-2 Subjectivity Financial Phrasebank Hate Speech AG News MQP MRPC RTE WNLI

Metrics: accuracy log likelihood entropy

Baselines: guessing baseline based on class frequencies

Builds on: Min et al. 2022 rethinking the role of demonstrations Xie et al. 2022 implicit Bayesian inference in ICL Akyürek et al. 2022 ICL as gradient descent

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