On the Noise Robustness of In-Context Learning for Text Generation
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) have shown impressive performance on downstream tasks by in-context learning (ICL), which heavily relies on the quality of demonstrations selected from a large set of annotated examples. Recent works claim that in-context learning is robust to noisy demonstrations in text classification. In this work, we show that, on text generation tasks, noisy annotations significantly hurt the performance of in-context learning. To circumvent the issue, we propose a simple and effective approach called Local Perplexity Ranking (LPR), which replaces the "noisy" candidates with their nearest neighbors that are more likely to be clean. Our method is motivated by analyzing the perplexity deviation caused by noisy labels and decomposing perplexity into inherent perplexity and matching perplexity. Our key idea behind LPR is thus to decouple the matching perplexity by performing the ranking among the neighbors in semantic space. Our approach can prevent the selected demonstrations from including mismatched input-label pairs while preserving the effectiveness of the original selection methods. Extensive experiments demonstrate the effectiveness of LPR, improving the EM score by up to 18.75 on common benchmarks with noisy annotations. Our code is available at https://github.com/ml-stat-Sustech/Local-Perplexity-Ranking.
Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). Builds on 61 of its 73 references that are in the map. First posted on arXiv 27 May 2024.
Builds on
61 of 73 references.
References · 61
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2023Mistral 7Bcited by 3,065
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
38 more
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
- 2017Crowdsourcing Multiple Choice Science Questionscited by 742
- 2022Automatic Chain of Thought Prompting in Large Language Modelscited by 684
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
- 2021MetaICL: Learning to Learn In Contextcited by 450
- 2023Detecting Language Model Attacks with Perplexitycited by 411
- 2023Larger language models do in-context learning differentlycited by 386
- 2020Normalized Loss Functions for Deep Learning with Noisy Labelscited by 257
- 2023Label Words are Anchors: An Information Flow Perspective for Understanding In-Context Learningcited by 235
- 2022Demystifying Prompts in Language Models via Perplexity Estimationcited by 215
- 2022Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Orderingcited by 158
- 2023What Makes Good Examples for Visual In-Context Learning?cited by 150
- 2023Large Language Models Are Latent Variable Models: Explaining and Finding Good Demonstrations for In-Context Learningcited by 149
- 2023What In-Context Learning "Learns" In-Context: Disentangling Task Recognition and Task Learningcited by 149
- 2023Unified Demonstration Retriever for In-Context Learningcited by 141
- 2022Diverse Demonstrations Improve In-context Compositional Generalizationcited by 136
- 2023Finding Support Examples for In-Context Learningcited by 104
- 2018NL2Bash: A Corpus and Semantic Parser for Natural Language Interface to the Linux Operating Systemcited by 97
- 2023Mitigating Label Biases for In-context Learningcited by 88
- 2021Types of Out-of-Distribution Texts and How to Detect Themcited by 80
- 2023In-Context Learning with Iterative Demonstration Selectioncited by 74
- 2023Symbol tuning improves in-context learning in language modelscited by 72
- 2023Dr.ICL: Demonstration-Retrieved In-context Learningcited by 71
- 2022Z-ICL: Zero-Shot In-Context Learning with Pseudo-Demonstrationscited by 70
- 2023Meta-in-context learning in large language modelscited by 59
- 2023Coverage-based Example Selection for In-Context Learningcited by 58
- 2021Detecting Corrupted Labels Without Training a Model to Predictcited by 57
- 2024Revisiting Demonstration Selection Strategies in In-Context Learningcited by 57
- 2023OpenICL: An Open-Source Framework for In-context Learningcited by 51
- 2022Evaluating the Impact of Model Scale for Compositional Generalization in Semantic Parsingcited by 50
- 2023In-Context Learning Learns Label Relationships but Is Not Conventional Learningcited by 48
- 2023Pre-Training to Learn in Contextcited by 41
- 2022Mitigating Memorization of Noisy Labels by Clipping the Model Predictioncited by 40
- 2023Which Examples to Annotate for In-Context Learning? Towards Effective and Efficient Selectioncited by 36
- 2023In-Context Learning for Text Classification with Many Labelscited by 35
- 2023MultiTabQA: Generating Tabular Answers for Multi-Table Question Answeringcited by 32
50 most cited of 61 All 61 (JSON)
Built on by
Citing papers per year: 2024: 2; 2025: 9; 2026: 4.
15 papers.
Sort:
By area:
- 2025Control the Temperature: Selective Sampling for Diverse and High-Quality LLM Outputscited by 15
- 2025What Makes a Good Curriculum? Disentangling the Effects of Data Ordering on LLM Mathematical Reasoningcited by 10
- 2024Failing Forward: Improving Generative Error Correction for ASR with Synthetic Data and Retrieval Augmentationcited by 9
- 2025Exploring the Noise Robustness of Online Conformal Predictioncited by 4
- 2025TestNUC: Enhancing Test-Time Computing Approaches and Scaling through Neighboring Unlabeled Data Consistencycited by 4
- 2026TabSieve: Explicit In-Table Evidence Selection for Tabular Predictioncited by 4
- 2024MILE: A Mutation Testing Framework of In-Context Learning Systemscited by 2
- 2025Review of Hallucination Understanding in Large Language and Vision Modelscited by 2
- 2025LSPRAG: LSP-Guided RAG for Language-Agnostic Real-Time Unit Test Generationcited by 1
- 2025Optimal Attention Temperature Improves the Robustness of In-Context Learning under Distribution Shift in High Dimensionscited by 1
- 2025Robustness of Probabilistic Models to Low-Quality Data: A Multi-Perspective Analysiscited by 1
- 2025Exploring Imbalanced Annotations for Effective In-Context Learningcited by 0
- 2026Grounding latent algorithm routing in transformer reasoning27 Jul 2026
- 2026The Text Uncanny Valley: Non-Monotonic Performance Degradation in LLM Information Retrieval8 May 2026
- 2026Holistic Optimal Label Selection for Robust Prompt Learning under Partial Labels8 Apr 2026
- 2026TabSieve: Explicit In-Table Evidence Selection for Tabular Prediction12 Feb 2026
- 2025Robustness of Probabilistic Models to Low-Quality Data: A Multi-Perspective Analysis11 Dec 2025
- 2025Optimal Attention Temperature Improves the Robustness of In-Context Learning under Distribution Shift in High Dimensions3 Nov 2025
- 2025LSPRAG: LSP-Guided RAG for Language-Agnostic Real-Time Unit Test Generation25 Oct 2025
- 2025What Makes a Good Curriculum? Disentangling the Effects of Data Ordering on LLM Mathematical Reasoning21 Oct 2025
- 2025Review of Hallucination Understanding in Large Language and Vision Models26 Sep 2025
- 2025Control the Temperature: Selective Sampling for Diverse and High-Quality LLM Outputs20 Sep 2025
- 2025TestNUC: Enhancing Test-Time Computing Approaches and Scaling through Neighboring Unlabeled Data Consistency26 Feb 2025
- 2025Exploring Imbalanced Annotations for Effective In-Context Learning6 Feb 2025
- 2025What Makes a Good Curriculum? Disentangling the Effects of Data Ordering on LLM Mathematical Reasoningcited by 10
- 2025TestNUC: Enhancing Test-Time Computing Approaches and Scaling through Neighboring Unlabeled Data Consistencycited by 4
- 2026Grounding latent algorithm routing in transformer reasoningcited by 0
- 2026Grounding latent algorithm routing in transformer reasoning27 Jul 2026
- 2025What Makes a Good Curriculum? Disentangling the Effects of Data Ordering on LLM Mathematical Reasoning21 Oct 2025
- 2025TestNUC: Enhancing Test-Time Computing Approaches and Scaling through Neighboring Unlabeled Data Consistency26 Feb 2025
- 2025Control the Temperature: Selective Sampling for Diverse and High-Quality LLM Outputscited by 15
- 2025Exploring the Noise Robustness of Online Conformal Predictioncited by 4
- 2026TabSieve: Explicit In-Table Evidence Selection for Tabular Predictioncited by 4
- 2024MILE: A Mutation Testing Framework of In-Context Learning Systemscited by 2
- 2025Review of Hallucination Understanding in Large Language and Vision Modelscited by 2
- 2025LSPRAG: LSP-Guided RAG for Language-Agnostic Real-Time Unit Test Generationcited by 1
- 2025Optimal Attention Temperature Improves the Robustness of In-Context Learning under Distribution Shift in High Dimensionscited by 1
- 2025Robustness of Probabilistic Models to Low-Quality Data: A Multi-Perspective Analysiscited by 1
- 2025Exploring Imbalanced Annotations for Effective In-Context Learningcited by 0
- 2026The Text Uncanny Valley: Non-Monotonic Performance Degradation in LLM Information Retrievalcited by 0
- 2026The Text Uncanny Valley: Non-Monotonic Performance Degradation in LLM Information Retrieval8 May 2026
- 2026TabSieve: Explicit In-Table Evidence Selection for Tabular Prediction12 Feb 2026
- 2025Robustness of Probabilistic Models to Low-Quality Data: A Multi-Perspective Analysis11 Dec 2025
- 2025Optimal Attention Temperature Improves the Robustness of In-Context Learning under Distribution Shift in High Dimensions3 Nov 2025
- 2025LSPRAG: LSP-Guided RAG for Language-Agnostic Real-Time Unit Test Generation25 Oct 2025
- 2025Review of Hallucination Understanding in Large Language and Vision Models26 Sep 2025
- 2025Control the Temperature: Selective Sampling for Diverse and High-Quality LLM Outputs20 Sep 2025
- 2025Exploring Imbalanced Annotations for Effective In-Context Learning6 Feb 2025
- 2025Exploring the Noise Robustness of Online Conformal Prediction30 Jan 2025
- 2024MILE: A Mutation Testing Framework of In-Context Learning Systems7 Sep 2024