mlsanityData to 7 Oct 2026

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

arXiv 2405.17264 ↗First posted 27 May 2024cs.CL cs.LGcited by 15

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2023GPT-4 Technical Reportcited by 18,132
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  5. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  6. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  7. 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
  8. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  9. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  10. 2023Mistral 7Bcited by 3,065
  11. 2019The Curious Case of Neural Text Degenerationcited by 2,881
  12. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
38 more
  1. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
  2. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
  3. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
  4. 2017Crowdsourcing Multiple Choice Science Questionscited by 742
  5. 2022Automatic Chain of Thought Prompting in Large Language Modelscited by 684
  6. 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
  7. 2021MetaICL: Learning to Learn In Contextcited by 450
  8. 2023Detecting Language Model Attacks with Perplexitycited by 411
  9. 2023Larger language models do in-context learning differentlycited by 386
  10. 2020Normalized Loss Functions for Deep Learning with Noisy Labelscited by 257
  11. 2023Label Words are Anchors: An Information Flow Perspective for Understanding In-Context Learningcited by 235
  12. 2022Demystifying Prompts in Language Models via Perplexity Estimationcited by 215
  13. 2022Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Orderingcited by 158
  14. 2023What Makes Good Examples for Visual In-Context Learning?cited by 150
  15. 2023Large Language Models Are Latent Variable Models: Explaining and Finding Good Demonstrations for In-Context Learningcited by 149
  16. 2023What In-Context Learning "Learns" In-Context: Disentangling Task Recognition and Task Learningcited by 149
  17. 2023Unified Demonstration Retriever for In-Context Learningcited by 141
  18. 2022Diverse Demonstrations Improve In-context Compositional Generalizationcited by 136
  19. 2023Finding Support Examples for In-Context Learningcited by 104
  20. 2018NL2Bash: A Corpus and Semantic Parser for Natural Language Interface to the Linux Operating Systemcited by 97
  21. 2023Mitigating Label Biases for In-context Learningcited by 88
  22. 2021Types of Out-of-Distribution Texts and How to Detect Themcited by 80
  23. 2023In-Context Learning with Iterative Demonstration Selectioncited by 74
  24. 2023Symbol tuning improves in-context learning in language modelscited by 72
  25. 2023Dr.ICL: Demonstration-Retrieved In-context Learningcited by 71
  26. 2022Z-ICL: Zero-Shot In-Context Learning with Pseudo-Demonstrationscited by 70
  27. 2023Meta-in-context learning in large language modelscited by 59
  28. 2023Coverage-based Example Selection for In-Context Learningcited by 58
  29. 2021Detecting Corrupted Labels Without Training a Model to Predictcited by 57
  30. 2024Revisiting Demonstration Selection Strategies in In-Context Learningcited by 57
  31. 2023OpenICL: An Open-Source Framework for In-context Learningcited by 51
  32. 2022Evaluating the Impact of Model Scale for Compositional Generalization in Semantic Parsingcited by 50
  33. 2023In-Context Learning Learns Label Relationships but Is Not Conventional Learningcited by 48
  34. 2023Pre-Training to Learn in Contextcited by 41
  35. 2022Mitigating Memorization of Noisy Labels by Clipping the Model Predictioncited by 40
  36. 2023Which Examples to Annotate for In-Context Learning? Towards Effective and Efficient Selectioncited by 36
  37. 2023In-Context Learning for Text Classification with Many Labelscited by 35
  38. 2023MultiTabQA: Generating Tabular Answers for Multi-Table Question Answeringcited by 32

50 most cited of 61 All 61 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 9; 2026: 4.

15 papers.

Sort:

By area: