Unraveling Indirect In-Context Learning Using Influence Functions
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
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2019Unsupervised Cross-lingual Representation Learning at Scalecited by 3,935
- 2023Mistral 7Bcited by 3,164
38 more
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,181
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
- 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,822
- 2017Understanding Black-box Predictions via Influence Functionscited by 1,741
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
- 2021DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharingcited by 1,254
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
- 2021Did Aristotle Use a Laptop? A Question Answering Benchmark with Implicit Reasoning Strategiescited by 743
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 648
- 2020Estimating Training Data Influence by Tracing Gradient Descentcited by 580
- 2024LESS: Selecting Influential Data for Targeted Instruction Tuningcited by 532
- 2023Zephyr: Direct Distillation of LM Alignmentcited by 506
- 2020What Neural Networks Memorize and Why: Discovering the Long Tail via Influence Estimationcited by 497
- 2021MetaICL: Learning to Learn In Contextcited by 454
- 2023Studying Large Language Model Generalization with Influence Functionscited by 326
- 2022Selective Annotation Makes Language Models Better Few-Shot Learnerscited by 243
- 2019A backdoor attack against LSTM-based text classification systemscited by 227
- 2022Demystifying Prompts in Language Models via Perplexity Estimationcited by 216
- 2022Exploring Length Generalization in Large Language Modelscited by 206
- 2022Active Example Selection for In-Context Learningcited by 196
- 2018Representer Point Selection for Explaining Deep Neural Networkscited by 187
- 2022Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Orderingcited by 161
- 2021Mind the Style of Text! Adversarial and Backdoor Attacks Based on Text Style Transfercited by 158
- 2023Active Prompting with Chain-of-Thought for Large Language Modelscited by 154
- 2023Large Language Models Are Latent Variable Models: Explaining and Finding Good Demonstrations for In-Context Learningcited by 149
- 2020Explaining Black Box Predictions and Unveiling Data Artifacts through Influence Functionscited by 144
- 2023Compositional Exemplars for In-context Learningcited by 144
- 2021Scaling Up Influence Functionscited by 132
- 2023DataInf: Efficiently Estimating Data Influence in LoRA-tuned LLMs and Diffusion Modelscited by 123
- 2020FastIF: Scalable Influence Functions for Efficient Model Interpretation and Debuggingcited by 120
- 2022Compositional Semantic Parsing with Large Language Modelscited by 95
- 2024What is Your Data Worth to GPT? LLM-Scale Data Valuation with Influence Functionscited by 94
- 2021Influence Selection for Active Learningcited by 84
- 2021Input Similarity from the Neural Network Perspectivecited by 79
- 2023In-context Example Selection with Influencescited by 61
- 2023Coverage-based Example Selection for In-Context Learningcited by 59
50 most cited of 64 All 64 (JSON)
Built on by
Citing papers per year: 2025: 3.
3 papers.
- 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challengescited by 28
- 2025LayerIF: Estimating Layer Quality for Large Language Models using Influence Functionscited by 12
- 2025First is Not Really Better Than Last: Evaluating Layer Choice and Aggregation Strategies in Language Model Data Influence Estimationcited by 5
- 2025First is Not Really Better Than Last: Evaluating Layer Choice and Aggregation Strategies in Language Model Data Influence Estimation6 Nov 2025
- 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challenges27 Oct 2025
- 2025LayerIF: Estimating Layer Quality for Large Language Models using Influence Functions27 May 2025
Similar, not cited
Close in wording, no citation either way
- 2023In-Context Learning with Iterative Demonstration Selection
- 2023Dr.ICL: Demonstration-Retrieved In-context Learning
- 2024Does In-Context Learning Really Learn? Rethinking How Large Language Models Respond and Solve Tasks via In-Context Learning
- 2025Refract ICL: Rethinking Example Selection in the Era of Million-Token Models
- 2024Large Language Models Know What Makes Exemplary Contexts
- 2024Investigating the Pre-Training Dynamics of In-Context Learning: Task Recognition vs. Task Learning
- 2025On the Relationship Between the Choice of Representation and In-Context Learning
- 2026The Alchemy of Thought: Understanding In-Context Learning Through Supervised Classification