atlas

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

On the Noise Robustness of In-Context Learning for Text Generation

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

Shows that noisy demonstration labels significantly hurt in-context learning on text generation tasks, and proposes Local Perplexity Ranking (LPR), a training-free wrapper that swaps low-ranked demonstration candidates for semantic neighbors with lower perplexity.

Problem

In-context learning for text generation is sensitive to noisy annotations in demonstrations, unlike the reported robustness on classification tasks; existing selection methods (Random, TopK, DPP) do not account for label noise.

Approach

Decompose perplexity into inherent and matching components; approximate inherent perplexity via semantic neighbors so that candidates with higher perplexity than their local neighborhood are likely mislabeled and get replaced by a cleaner neighbor. The method is training-free and plugs into existing selection methods.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add LPR to TopK selectionTopK ICL on SCIQ · SCIQ, 60% irrelevant label noiseEM: 29.31 -> 48.06Helped
Add LPR to Random selectionRandom ICL on NQ · NQ, 60% irrelevant label noiseEM: 4.23$\pm$0.46 -> 8.87$\pm$0.74Helped
Use noisy annotations in demonstrationsICL for text generation · Text generation tasks, increasing noise ratesEMHurt
Increase demonstration set size under noisy annotationsICL for text generation · Noisy settings, K=2 versus K=8EMHurt
Add LPR to ICL demonstrationsICL on clean SCIQ with TopK selection · SCIQ, 0% noiseEM: 68.62$\pm$1.13 -> 70.06$\pm$0.32No clear effect
Lower the LPR threshold γ (ablation)LPR · Generation tasks, especially 60% noiseEMHelped
Set the threshold γ to 75% (ablation)LPR · Generation tasks with noiseEMHelped
Increase local-neighbor count from 0 to 2, 4, or 6 (ablation)LPR · Generation tasks with noiseEMHelped
Increase local-neighbor count beyond the saturation point (ablation)LPR · Generation tasks with noiseEMNo clear effect
Use global rather than local perplexity ranking (ablation)Perplexity-based ICL selection · Generation tasks, most settingsEMHurt
Use global rather than local perplexity ranking (ablation)Perplexity-based ICL selection · Generation taskstime (h): 3.05/0.57Hurt
Use cosine similarity instead of BM25 to find local neighbors (ablation)LPR · Generation tasks with noisy annotationsEMNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: NQ WebQ SQuAD SCIQ GeoQuery NL2Bash SST2 AGNews

Benchmarks: NQ WebQ SQuAD SCIQ GeoQuery NL2Bash SST2 AGNews MT-bench Arena-Hard

Metrics: exact match BLEU accuracy GPT-4 score

Baselines: Random TopK DPP Zero-Shot Zero-Shot-CoT Manual-CoT Auto-CoT Global perplexity ranking

Builds on: TopK demonstration retrieval DPP demonstration selection OpenICL

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