mlsanityData to 14 Oct 2026

Unraveling Indirect In-Context Learning Using Influence Functions

arXiv 2501.01473 ↗First posted 1 Jan 2025cs.LG cs.AIcited by 3

Not on the map. Why?

Abstract (arXiv)

In this work, we introduce a novel paradigm for generalized In-Context Learning (ICL), termed Indirect In-Context Learning. In Indirect ICL, we explore demonstration selection strategies tailored for two distinct real-world scenarios: Mixture of Tasks and Noisy ICL. We systematically evaluate the effectiveness of Influence Functions (IFs) as a selection tool for these settings, highlighting the potential of IFs to better capture the informativeness of examples within the demonstration pool. For the Mixture of Tasks setting, demonstrations are drawn from 28 diverse tasks, including MMLU, BigBench, StrategyQA, and CommonsenseQA. We demonstrate that combining BertScore-Recall (BSR) with an IF surrogate model can further improve performance, leading to average absolute accuracy gains of 0.37% and 1.45% for 3-shot and 5-shot setups when compared to traditional ICL metrics. In the Noisy ICL setting, we examine scenarios where demonstrations might be mislabeled or have adversarial noise. Our experiments show that reweighting traditional ICL selectors (BSR and Cosine Similarity) with IF-based selectors boosts accuracy by an average of 2.90% for Cosine Similarity and 2.94% for BSR on noisy GLUE benchmarks. For the adversarial sub-setting, we show the utility of using IFs for task-agnostic demonstration selection for backdoor attack mitigation. Showing a 32.89% reduction in Attack Success Rate compared to task-aware methods. In sum, we propose a robust framework for demonstration selection that generalizes beyond traditional ICL, offering valuable insights into the role of IFs for Indirect ICL.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 64 of its 82 references that are in the map. First posted on arXiv 1 Jan 2025.

Builds on

64 of 82 references.

References · 64

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  5. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  6. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  7. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  8. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
  9. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  10. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  11. 2019Unsupervised Cross-lingual Representation Learning at Scalecited by 3,935
  12. 2023Mistral 7Bcited by 3,164
38 more
  1. 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,181
  2. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
  3. 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,822
  4. 2017Understanding Black-box Predictions via Influence Functionscited by 1,741
  5. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
  6. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
  7. 2021DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharingcited by 1,254
  8. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
  9. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
  10. 2021Did Aristotle Use a Laptop? A Question Answering Benchmark with Implicit Reasoning Strategiescited by 743
  11. 2021Learning To Retrieve Prompts for In-Context Learningcited by 648
  12. 2020Estimating Training Data Influence by Tracing Gradient Descentcited by 580
  13. 2024LESS: Selecting Influential Data for Targeted Instruction Tuningcited by 532
  14. 2023Zephyr: Direct Distillation of LM Alignmentcited by 506
  15. 2020What Neural Networks Memorize and Why: Discovering the Long Tail via Influence Estimationcited by 497
  16. 2021MetaICL: Learning to Learn In Contextcited by 454
  17. 2023Studying Large Language Model Generalization with Influence Functionscited by 326
  18. 2022Selective Annotation Makes Language Models Better Few-Shot Learnerscited by 243
  19. 2019A backdoor attack against LSTM-based text classification systemscited by 227
  20. 2022Demystifying Prompts in Language Models via Perplexity Estimationcited by 216
  21. 2022Exploring Length Generalization in Large Language Modelscited by 206
  22. 2022Active Example Selection for In-Context Learningcited by 196
  23. 2018Representer Point Selection for Explaining Deep Neural Networkscited by 187
  24. 2022Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Orderingcited by 161
  25. 2021Mind the Style of Text! Adversarial and Backdoor Attacks Based on Text Style Transfercited by 158
  26. 2023Active Prompting with Chain-of-Thought for Large Language Modelscited by 154
  27. 2023Large Language Models Are Latent Variable Models: Explaining and Finding Good Demonstrations for In-Context Learningcited by 149
  28. 2020Explaining Black Box Predictions and Unveiling Data Artifacts through Influence Functionscited by 144
  29. 2023Compositional Exemplars for In-context Learningcited by 144
  30. 2021Scaling Up Influence Functionscited by 132
  31. 2023DataInf: Efficiently Estimating Data Influence in LoRA-tuned LLMs and Diffusion Modelscited by 123
  32. 2020FastIF: Scalable Influence Functions for Efficient Model Interpretation and Debuggingcited by 120
  33. 2022Compositional Semantic Parsing with Large Language Modelscited by 95
  34. 2024What is Your Data Worth to GPT? LLM-Scale Data Valuation with Influence Functionscited by 94
  35. 2021Influence Selection for Active Learningcited by 84
  36. 2021Input Similarity from the Neural Network Perspectivecited by 79
  37. 2023In-context Example Selection with Influencescited by 61
  38. 2023Coverage-based Example Selection for In-Context Learningcited by 59

50 most cited of 64 All 64 (JSON)

Built on by

Cited by year

Citing papers per year: 2025: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2023In-Context Learning with Iterative Demonstration Selection
  2. 2023Dr.ICL: Demonstration-Retrieved In-context Learning
  3. 2024Does In-Context Learning Really Learn? Rethinking How Large Language Models Respond and Solve Tasks via In-Context Learning
  4. 2025Refract ICL: Rethinking Example Selection in the Era of Million-Token Models
  5. 2024Large Language Models Know What Makes Exemplary Contexts
  6. 2024Investigating the Pre-Training Dynamics of In-Context Learning: Task Recognition vs. Task Learning
  7. 2025On the Relationship Between the Choice of Representation and In-Context Learning
  8. 2026The Alchemy of Thought: Understanding In-Context Learning Through Supervised Classification