mlsanityData to 7 Oct 2026

Fine-tune Language Models to Approximate Unbiased In-context Learning

arXiv 2310.03331 ↗First posted 5 Oct 2023cs.LGcited by 12

Not on the map. Why?

Abstract (arXiv)

In-context learning (ICL) is an astonishing emergent ability of large language models (LLMs). By presenting a prompt that includes multiple input-output pairs as examples and introducing a new query input, models can generate the corresponding output. However, the performance of models heavily relies on the quality of the input prompt when implementing in-context learning. Biased or imbalanced input prompts can significantly degrade the performance of language models. To address this issue, we introduce a reweighted algorithm called RICL (Reweighted In-context Learning). This algorithm fine-tunes language models using an unbiased validation set to determine the optimal weight for each input-output example to approximate unbiased in-context learning. Furthermore, we also introduce a low-cost reweighted algorithm, a linear optimal weight approximation algorithm called LARICL (Linear Approximation of Reweighted In-context Learning). This algorithm requires minimal training cost while providing effective results. We prove the convergence of our algorithm and validate its performance through experiments conducted on a numerical dataset. The experimental findings reveal a substantial improvement in comparison to benchmarks including the performance of casual prompt-based in-context learning and the performance of a classic fine-tuning method.

Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 59 of its 77 references that are in the map. First posted on arXiv 5 Oct 2023.

Builds on

59 of 77 references.

References · 59

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  5. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  6. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  7. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  8. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
  9. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
  10. 2022Emergent Abilities of Large Language Modelscited by 2,483
  11. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
  12. 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,205
38 more
  1. 2022Survey of Hallucination in Natural Language Generationcited by 2,056
  2. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
  3. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
  4. 2023PaLM 2 Technical Reportcited by 1,154
  5. 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 886
  6. 2023StarCoder: may the source be with you!cited by 790
  7. 2022Transformers learn in-context by gradient descentcited by 714
  8. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
  9. 2021P-Tuning v2: Prompt Tuning Can Be Comparable to Fine-tuning Universally Across Scales and Taskscited by 686
  10. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
  11. 2018Learning to Reweight Examples for Robust Deep Learningcited by 670
  12. 2023Larger language models do in-context learning differentlycited by 386
  13. 2023How Good Are GPT Models at Machine Translation? A Comprehensive Evaluationcited by 344
  14. 2023Trained Transformers Learn Linear Models In-Contextcited by 331
  15. 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
  16. 2023How Language Model Hallucinations Can Snowballcited by 310
  17. 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 294
  18. 2020Evaluation of Text Generation: A Surveycited by 275
  19. 2022Emergent Analogical Reasoning in Large Language Modelscited by 239
  20. 2021SPoT: Better Frozen Model Adaptation through Soft Prompt Transfercited by 235
  21. 2017Survey of the State of the Art in Natural Language Generation: Core tasks, applications and evaluationcited by 206
  22. 2022Delta Tuning: A Comprehensive Study of Parameter Efficient Methods for Pre-trained Language Modelscited by 179
  23. 2023Sources of Hallucination by Large Language Models on Inference Taskscited by 168
  24. 2021Noisy Channel Language Model Prompting for Few-Shot Text Classificationcited by 163
  25. 2023Progressive-Hint Prompting Improves Reasoning in Large Language Modelscited by 147
  26. 2023Towards Making the Most of ChatGPT for Machine Translationcited by 138
  27. 2023The Learnability of In-Context Learningcited by 126
  28. 2021Differentiable Prompt Makes Pre-trained Language Models Better Few-shot Learnerscited by 115
  29. 2023Multitask Prompt Tuning Enables Parameter-Efficient Transfer Learningcited by 115
  30. 2023Do Language Models Know When They're Hallucinating References?cited by 115
  31. 2023Finding Support Examples for In-Context Learningcited by 104
  32. 2023Execution-based Code Generation using Deep Reinforcement Learningcited by 95
  33. 2023Attention Scheme Inspired Softmax Regressioncited by 49
  34. 2019Learning to Balance: Bayesian Meta-Learning for Imbalanced and Out-of-distribution Taskscited by 48
  35. 2019Learning Data Manipulation for Augmentation and Weightingcited by 44
  36. 2022Neural Collapse Inspired Attraction-Repulsion-Balanced Loss for Imbalanced Learningcited by 43
  37. 2023Using In-Context Learning to Improve Dialogue Safetycited by 41
  38. 2022Tuning Language Models as Training Data Generators for Augmentation-Enhanced Few-Shot Learningcited by 36

50 most cited of 59 All 59 (JSON)

Built on by

Cited by year

Citing papers per year: 2023: 5; 2024: 4; 2025: 3.

12 papers.