mlsanityData to 14 Oct 2026

Learning-to-Context Slope: Evaluating In-Context Learning Effectiveness Beyond Performance Illusions

arXiv 2506.23146 ↗First posted 29 Jun 2025cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

In-context learning (ICL) has emerged as an effective approach to enhance the performance of large language models (LLMs). However, its effectiveness varies significantly across models and tasks, posing challenges for practitioners to determine when ICL reliably improves performance. Current evaluation approaches, reliant on performance change after applying ICL, suffer from low reliability, poor attribution, and impracticality in data-insufficient scenarios. We propose the Learning-to-Context Slope (LCS), a novel metric that quantifies ICL effectiveness by modeling the slope between learning gain (loss decrease from demonstrations) and contextual relevance (demonstration-input relevance). LCS addresses key limitations of performance-based metrics: (1) it captures continuous loss changes even when outputs are incorrect, improving reliability; (2) its formulation attributes ICL failures to weak contextual alignment (inability to adapt inputs to demonstrations) or strong output calibration (self-verification of correctness); and (3) it minimizes reliance on labeled data via synthetic evaluation. Extensive experiments demonstrate that LCS strongly correlates with performance improvements in labeled settings and reliably reflects true effectiveness in biased or data-scarce scenarios. Further analysis reveals actionable thresholds for LCS and identifies model capabilities critical to ICL success.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 57 of its 71 references that are in the map. First posted on arXiv 29 Jun 2025.

Builds on

57 of 71 references.

References · 57

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  4. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  5. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  6. 2023Let's Verify Step by Stepcited by 3,789
  7. 2021Program Synthesis with Large Language Modelscited by 3,637
  8. 2014Sequence to Sequence Learning with Neural Networkscited by 2,986
  9. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
  10. 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,848
  11. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
  12. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
38 more
  1. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
  2. 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,076
  3. 2022A Survey on In-context Learningcited by 721
  4. 2021Learning To Retrieve Prompts for In-Context Learningcited by 648
  5. 2021FinQA: A Dataset of Numerical Reasoning over Financial Datacited by 562
  6. 2022Can language models learn from explanations in context?cited by 249
  7. 2023Label Words are Anchors: An Information Flow Perspective for Understanding In-Context Learningcited by 236
  8. 2024Many-Shot In-Context Learningcited by 206
  9. 2024Large Language Models for Data Annotation and Synthesis: A Surveycited by 205
  10. 2023Large Language Models Are Latent Variable Models: Explaining and Finding Good Demonstrations for In-Context Learningcited by 149
  11. 2023Pretraining task diversity and the emergence of non-Bayesian in-context learning for regressioncited by 146
  12. 2023Unified Demonstration Retriever for In-Context Learningcited by 142
  13. 2022Diverse Demonstrations Improve In-context Compositional Generalizationcited by 139
  14. 2025LLMs Can Easily Learn to Reason from Demonstrations Structure, not content, is what matters!cited by 132
  15. 2023What and How does In-Context Learning Learn? Bayesian Model Averaging, Parameterization, and Generalizationcited by 118
  16. 2024The Evolution of Statistical Induction Heads: In-Context Learning Markov Chainscited by 118
  17. 2018Ordered Neurons: Integrating Tree Structures into Recurrent Neural Networkscited by 101
  18. 2022Structured Prompting: Scaling In-Context Learning to 1,000 Examplescited by 81
  19. 2023In-Context Learning with Iterative Demonstration Selectioncited by 74
  20. 2024In-context Learning with Retrieved Demonstrations for Language Models: A Surveycited by 70
  21. 2022Self-Generated In-Context Learning: Leveraging Auto-regressive Language Models as a Demonstration Generatorcited by 68
  22. 2023Learning to Retrieve In-Context Examples for Large Language Modelscited by 60
  23. 2019Quick and (not so) Dirty: Unsupervised Selection of Justification Sentences for Multi-hop Question Answeringcited by 59
  24. 2023Active Learning Principles for In-Context Learning with Large Language Modelscited by 54
  25. 2024Competition Dynamics Shape Algorithmic Phases of In-Context Learningcited by 54
  26. 2023In-Context Learning Learns Label Relationships but Is Not Conventional Learningcited by 51
  27. 2023Self-ICL: Zero-Shot In-Context Learning with Self-Generated Demonstrationscited by 42
  28. 2023Understanding In-Context Learning via Supportive Pretraining Datacited by 41
  29. 2022Self-Prompting Large Language Models for Zero-Shot Open-Domain QAcited by 39
  30. 2024In-Context Learning with Representations: Contextual Generalization of Trained Transformerscited by 38
  31. 2023The Mystery of In-Context Learning: A Comprehensive Survey on Interpretation and Analysiscited by 34
  32. 2023Can Large Language Models Capture Dissenting Human Voices?cited by 33
  33. 2025The Curse of CoT: On the Limitations of Chain-of-Thought in In-Context Learningcited by 30
  34. 2023Selective Demonstrations for Cross-domain Text-to-SQLcited by 21
  35. 2024Differential learning kinetics govern the transition from memorization to generalization during in-context learningcited by 21
  36. 2025From Few to Many: Self-Improving Many-Shot Reasoners Through Iterative Optimization and Generationcited by 21
  37. 2024Sampling-based Pseudo-Likelihood for Membership Inference Attackscited by 20
  38. 2024Is In-Context Learning Sufficient for Instruction Following in LLMs?cited by 19

50 most cited of 57 All 57 (JSON)

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.