mlsanityData to 7 Oct 2026

Exploring Imbalanced Annotations for Effective In-Context Learning

arXiv 2502.04037 ↗First posted 6 Feb 2025cs.CL cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) have shown impressive performance on downstream tasks through in-context learning (ICL), which heavily relies on the demonstrations selected from annotated datasets. However, these datasets often exhibit long-tailed class distributions in real-world scenarios, leading to biased demonstration selection. In this work, we show that such class imbalances significantly degrade the ICL performance across various tasks, regardless of selection methods. Moreover, classical rebalancing methods, which focus solely on class weights, yield poor performance due to neglecting condition bias--skewed feature distributions within classes. To address this, we propose Reweighting with Conditional Bias (dubbed RCB), a simple and complementary approach to enhance ICL performance under class imbalance. In particular, RCB estimates conditional bias using a balanced subset and re-weights demonstration scores based on both class weight and conditional bias. In effect, RCB prevents over-selection from dominant classes while preserving the efficacy of current selection methods. Extensive experiments on common benchmarks demonstrate the effectiveness of our method, improving the average accuracy of current selection methods by up to 5.42%.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 59 of its 71 references that are in the map. First posted on arXiv 6 Feb 2025.

Builds on

59 of 71 references.

References · 59

  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. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  5. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
  6. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
  7. 2019Class-Balanced Loss Based on Effective Number of Samplescited by 1,239
  8. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
  9. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
  10. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
  11. 2019Decoupling Representation and Classifier for Long-Tailed Recognitioncited by 806
  12. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
38 more
  1. 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
  2. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
  3. 2021MetaICL: Learning to Learn In Contextcited by 450
  4. 2023In-Context Learning Creates Task Vectorscited by 302
  5. 2020Equalization Loss for Long-Tailed Object Recognitioncited by 285
  6. 2022Selective Annotation Makes Language Models Better Few-Shot Learnerscited by 242
  7. 2022Demystifying Prompts in Language Models via Perplexity Estimationcited by 215
  8. 2024Many-Shot In-Context Learningcited by 203
  9. 2022Active Example Selection for In-Context Learningcited by 195
  10. 2018Large Scale Fine-Grained Categorization and Domain-Specific Transfer Learningcited by 174
  11. 2020Rethinking Class-Balanced Methods for Long-Tailed Visual Recognition from a Domain Adaptation Perspectivecited by 143
  12. 2020The Multilingual Amazon Reviews Corpuscited by 142
  13. 2023Few-shot Fine-tuning vs. In-context Learning: A Fair Comparison and Evaluationcited by 134
  14. 2022Retrieval Augmented Classification for Long-Tail Visual Recognitioncited by 106
  15. 2023Mitigating Label Biases for In-context Learningcited by 88
  16. 2024Mind Your Format: Towards Consistent Evaluation of In-Context Learning Improvementscited by 82
  17. 2023In-Context Learning through the Bayesian Prismcited by 78
  18. 2023In-Context Learning with Iterative Demonstration Selectioncited by 74
  19. 2022Complementary Explanations for Effective In-Context Learningcited by 71
  20. 2024In-context Learning with Retrieved Demonstrations for Language Models: A Surveycited by 69
  21. 2023In-context Example Selection with Influencescited by 60
  22. 2024Revisiting Demonstration Selection Strategies in In-Context Learningcited by 57
  23. 2024What Makes Multimodal In-Context Learning Work?cited by 54
  24. 2023OpenICL: An Open-Source Framework for In-context Learningcited by 51
  25. 2024Is In-Context Learning in Large Language Models Bayesian? A Martingale Perspectivecited by 51
  26. 2024Let's Learn Step by Step: Enhancing In-Context Learning Ability with Curriculum Learningcited by 47
  27. 2024Language Models for Text Classification: Is In-Context Learning Enough?cited by 39
  28. 2023How Re-sampling Helps for Long-Tail Learning?cited by 36
  29. 2022Open-Sampling: Exploring Out-of-Distribution data for Re-balancing Long-tailed datasetscited by 25
  30. 2024Beyond Performance: Quantifying and Mitigating Label Bias in LLMscited by 24
  31. 2024C-ICL: Contrastive In-context Learning for Information Extractioncited by 22
  32. 2024Enhancing In-context Learning via Linear Probe Calibrationcited by 16
  33. 2024On the Noise Robustness of In-Context Learning for Text Generationcited by 15
  34. 2023More Samples or More Prompts? Exploring Effective In-Context Sampling for LLM Few-Shot Prompt Engineeringcited by 13
  35. 2023How Robust are LLMs to In-Context Majority Label Bias?cited by 13
  36. 2023Fine-tune Language Models to Approximate Unbiased In-context Learningcited by 12
  37. 2025More is not always better? Enhancing Many-Shot In-Context Learning with Differentiated and Reweighting Objectivescited by 12
  38. 2024A Survey of Deep Long-Tail Classification Advancementscited by 11

50 most cited of 59 All 59 (JSON)

Built on by

Not cited yet.