OpenICL: An Open-Source Framework for In-context Learning
Not on the map. Why?
Abstract (arXiv)
In recent years, In-context Learning (ICL) has gained increasing attention and emerged as the new paradigm for large language model (LLM) evaluation. Unlike traditional fine-tuning methods, ICL instead adapts the pre-trained models to unseen tasks without any parameter updates. However, the implementation of ICL is sophisticated due to the diverse retrieval and inference methods involved, as well as the varying pre-processing requirements for different models, datasets, and tasks. A unified and flexible framework for ICL is urgently needed to ease the implementation of the aforementioned components. To facilitate ICL research, we introduce OpenICL, an open-source toolkit for ICL and LLM evaluation. OpenICL is research-friendly with a highly flexible architecture that users can easily combine different components to suit their needs. It also provides various state-of-the-art retrieval and inference methods to streamline the process of adapting ICL to cutting-edge research. The effectiveness of OpenICL has been validated on a wide range of NLP tasks, including classification, QA, machine translation, and semantic parsing. As a side-product, we found OpenICL to be an efficient yet robust tool for LLMs evaluation. OpenICL is released at https://github.com/Shark-NLP/OpenICL
Key facts. Cited by 51 papers in the map (data through 7 Oct 2026). Builds on 41 of its 58 references that are in the map. First posted on arXiv 6 Mar 2023.
Builds on
41 of 58 references.
References · 41
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
- 2022Emergent Abilities of Large Language Modelscited by 2,483
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
29 more
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
- 2019Language Models as Knowledge Bases?cited by 1,922
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
- 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,255
- 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,199
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
- 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,054
- 2021Did Aristotle Use a Laptop? A Question Answering Benchmark with Implicit Reasoning Strategiescited by 736
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
- 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 709
- 2022Automatic Chain of Thought Prompting in Large Language Modelscited by 684
- 2020It's Not Just Size That Matters: Small Language Models Are Also Few-Shot Learnerscited by 668
- 2022Complexity-Based Prompting for Multi-Step Reasoningcited by 387
- 2022Selection-Inference: Exploiting Large Language Models for Interpretable Logical Reasoningcited by 331
- 2022Transformer Memory as a Differentiable Search Indexcited by 242
- 2022Selective Annotation Makes Language Models Better Few-Shot Learnerscited by 242
- 2022In-context Examples Selection for Machine Translationcited by 172
- 2021Noisy Channel Language Model Prompting for Few-Shot Text Classificationcited by 163
- 2021OpenPrompt: An Open-source Framework for Prompt-learningcited by 148
- 2023Compositional Exemplars for In-context Learningcited by 143
- 2022Diverse Demonstrations Improve In-context Compositional Generalizationcited by 136
- 2022Iteratively Prompt Pre-trained Language Models for Chain of Thoughtcited by 75
- 2022ProGen: Progressive Zero-shot Dataset Generation via In-context Feedbackcited by 67
- 2019Simple and Effective Noisy Channel Modeling for Neural Machine Translationcited by 37
- 2016The Neural Noisy Channelcited by 19
Built on by
Citing papers per year: 2023: 15; 2024: 19; 2025: 10; 2026: 7.
51 papers.
Sort:
By area:
- 2024OS-Copilot: Towards Generalist Computer Agents with Self-Improvementcited by 203
- 2023Multilingual Machine Translation with Large Language Models: Empirical Results and Analysiscited by 156
- 2023Corex: Pushing the Boundaries of Complex Reasoning through Multi-Model Collaborationcited by 70
- 2024Retrieval Augmented Generation (RAG) and Beyond: A Comprehensive Survey on How to Make your LLMs use External Data More Wiselycited by 65
- 2024Revisiting Demonstration Selection Strategies in In-Context Learningcited by 57
- 2023Small Models are Valuable Plug-ins for Large Language Modelscited by 42
- 2023Forward-Backward Reasoning in Large Language Models for Mathematical Verificationcited by 39
- 2025Multilingual Machine Translation with Open Large Language Models at Practical Scale: An Empirical Studycited by 38
- 2024Assessment of Multimodal Large Language Models in Alignment with Human Valuescited by 36
- 2024Get more for less: Principled Data Selection for Warming Up Fine-Tuning in LLMscited by 32
- 2023Language Versatilists vs. Specialists: An Empirical Revisiting on Multilingual Transfer Abilitycited by 27
- 2023Fewer is More: Boosting LLM Reasoning with Reinforced Context Pruningcited by 26
38 more
- 2024Let's Ask GNN: Empowering Large Language Model for Graph In-Context Learningcited by 21
- 2023LLMeBench: A Flexible Framework for Accelerating LLMs Benchmarkingcited by 20
- 2023In-Context Demonstration Selection with Cross Entropy Differencecited by 17
- 2024Improving Weak-to-Strong Generalization with Scalable Oversight and Ensemble Learningcited by 17
- 2024On the Noise Robustness of In-Context Learning for Text Generationcited by 15
- 2024The Impact of Demonstrations on Multilingual In-Context Learning: A Multidimensional Analysiscited by 13
- 2025LazyReview A Dataset for Uncovering Lazy Thinking in NLP Peer Reviewscited by 13
- 2023Debiasing Multimodal Sarcasm Detection with Contrastive Learningcited by 12
- 2024ICLEval: Evaluating In-Context Learning Ability of Large Language Modelscited by 12
- 2024CEBench: A Benchmarking Toolkit for the Cost-Effectiveness of LLM Pipelinescited by 11
- 2024Evaluating the Performance and Robustness of LLMs in Materials Science Q&A and Property Predictionscited by 9
- 2023MetaAdapt: Domain Adaptive Few-Shot Misinformation Detection via Meta Learningcited by 8
- 2023Assessing Translation capabilities of Large Language Models involving English and Indian Languagescited by 8
- 2024Jailbreaking? One Step Is Enough!cited by 8
- 2023EMO: Earth Mover Distance Optimization for Auto-Regressive Language Modelingcited by 7
- 2023Knowledgeable In-Context Tuning: Exploring and Exploiting Factual Knowledge for In-Context Learningcited by 6
- 2024A Three-Pronged Approach to Cross-Lingual Adaptation with Multilingual LLMscited by 6
- 2026OpenCompass: A Universal Evaluation Platform for Large Language Modelscited by 5
- 2024AlpaPICO: Extraction of PICO Frames from Clinical Trial Documents Using LLMscited by 4
- 2026VeriAgent: A Tool-Integrated Multi-Agent System with Evolving Memory for PPA-Aware RTL Code Generationcited by 4
- 2023In-context Interference in Chat-based Large Language Modelscited by 3
- 2024Comparative Analysis of Demonstration Selection Algorithms for LLM In-Context Learningcited by 3
- 2025Topic Coverage-based Demonstration Retrieval for In-Context Learningcited by 3
- 2023Computational modeling of semantic changecited by 2
- 2025Dual Debiasing for Noisy In-Context Learning for Text Generationcited by 2
- 2025Towards Predicting Any Human Trajectory In Contextcited by 2
- 2024Machine Translation with Large Language Models: Decoder Only vs. Encoder-Decodercited by 1
- 2024Evolutionary Pre-Prompt Optimization for Mathematical Reasoningcited by 1
- 2025Prompt Optimization with Logged Bandit Datacited by 1
- 2025Optimal Attention Temperature Improves the Robustness of In-Context Learning under Distribution Shift in High Dimensionscited by 1
- 2026DiffuMask: Diffusion Language Model for Token-level Prompt Pruningcited by 1
- 2024Distributed In-Context Learning under Non-IID Among Clientscited by 0
- 2025Exploring Imbalanced Annotations for Effective In-Context Learningcited by 0
- 2025ARISE: Iterative Rule Induction and Synthetic Data Generation for Text Classificationcited by 0
- 2025Factors affecting the in-context learning abilities of LLMs for dialogue state trackingcited by 0
- 2026Meta-Sel: Efficient Demonstration Selection for In-Context Learning via Supervised Meta-Learningcited by 0
- 2026LM-Lexicon: Improving Definition Modeling via Harmonizing Semantic Expertscited by 0
- 2026UCS: Estimating Unseen Coverage for Improved In-Context Learningcited by 0
50 most cited of 51 All 51 (JSON)
- 2026OpenCompass: A Universal Evaluation Platform for Large Language Models19 May 2026
- 2026Grounding Multi-Hop Reasoning in Structural Causal Models via Group Relative Policy Optimization2 May 2026
- 2026UCS: Estimating Unseen Coverage for Improved In-Context Learning13 Apr 2026
- 2026DiffuMask: Diffusion Language Model for Token-level Prompt Pruning8 Apr 2026
- 2026VeriAgent: A Tool-Integrated Multi-Agent System with Evolving Memory for PPA-Aware RTL Code Generation18 Mar 2026
- 2026LM-Lexicon: Improving Definition Modeling via Harmonizing Semantic Experts15 Feb 2026
- 2026Meta-Sel: Efficient Demonstration Selection for In-Context Learning via Supervised Meta-Learning12 Feb 2026
- 2025Optimal Attention Temperature Improves the Robustness of In-Context Learning under Distribution Shift in High Dimensions3 Nov 2025
- 2025Topic Coverage-based Demonstration Retrieval for In-Context Learning15 Sep 2025
- 2025Factors affecting the in-context learning abilities of LLMs for dialogue state tracking10 Jun 2025
- 2025Towards Predicting Any Human Trajectory In Context1 Jun 2025
- 2025Dual Debiasing for Noisy In-Context Learning for Text Generation31 May 2025
38 more
- 2025LazyReview A Dataset for Uncovering Lazy Thinking in NLP Peer Reviews15 Apr 2025
- 2025Prompt Optimization with Logged Bandit Data3 Apr 2025
- 2025ARISE: Iterative Rule Induction and Synthetic Data Generation for Text Classification9 Feb 2025
- 2025Exploring Imbalanced Annotations for Effective In-Context Learning6 Feb 2025
- 2025Multilingual Machine Translation with Open Large Language Models at Practical Scale: An Empirical Study4 Feb 2025
- 2024Jailbreaking? One Step Is Enough!17 Dec 2024
- 2024Evolutionary Pre-Prompt Optimization for Mathematical Reasoning5 Dec 2024
- 2024Comparative Analysis of Demonstration Selection Algorithms for LLM In-Context Learning30 Oct 2024
- 2024Let's Ask GNN: Empowering Large Language Model for Graph In-Context Learning9 Oct 2024
- 2024Retrieval Augmented Generation (RAG) and Beyond: A Comprehensive Survey on How to Make your LLMs use External Data More Wisely23 Sep 2024
- 2024Evaluating the Performance and Robustness of LLMs in Materials Science Q&A and Property Predictions22 Sep 2024
- 2024AlpaPICO: Extraction of PICO Frames from Clinical Trial Documents Using LLMs15 Sep 2024
- 2024Machine Translation with Large Language Models: Decoder Only vs. Encoder-Decoder12 Sep 2024
- 2024Distributed In-Context Learning under Non-IID Among Clients31 Jul 2024
- 2024A Three-Pronged Approach to Cross-Lingual Adaptation with Multilingual LLMs25 Jun 2024
- 2024ICLEval: Evaluating In-Context Learning Ability of Large Language Models21 Jun 2024
- 2024CEBench: A Benchmarking Toolkit for the Cost-Effectiveness of LLM Pipelines20 Jun 2024
- 2024On the Noise Robustness of In-Context Learning for Text Generation27 May 2024
- 2024Get more for less: Principled Data Selection for Warming Up Fine-Tuning in LLMs5 May 2024
- 2024Assessment of Multimodal Large Language Models in Alignment with Human Values26 Mar 2024
- 2024The Impact of Demonstrations on Multilingual In-Context Learning: A Multidimensional Analysis20 Feb 2024
- 2024OS-Copilot: Towards Generalist Computer Agents with Self-Improvement12 Feb 2024
- 2024Improving Weak-to-Strong Generalization with Scalable Oversight and Ensemble Learning1 Feb 2024
- 2024Revisiting Demonstration Selection Strategies in In-Context Learning22 Jan 2024
- 2023Debiasing Multimodal Sarcasm Detection with Contrastive Learning16 Dec 2023
- 2023Fewer is More: Boosting LLM Reasoning with Reinforced Context Pruning14 Dec 2023
- 2023Assessing Translation capabilities of Large Language Models involving English and Indian Languages15 Nov 2023
- 2023EMO: Earth Mover Distance Optimization for Auto-Regressive Language Modeling7 Oct 2023
- 2023Corex: Pushing the Boundaries of Complex Reasoning through Multi-Model Collaboration30 Sep 2023
- 2023Knowledgeable In-Context Tuning: Exploring and Exploiting Factual Knowledge for In-Context Learning26 Sep 2023
- 2023In-context Interference in Chat-based Large Language Models22 Sep 2023
- 2023Forward-Backward Reasoning in Large Language Models for Mathematical Verification15 Aug 2023
- 2023LLMeBench: A Flexible Framework for Accelerating LLMs Benchmarking9 Aug 2023
- 2023Language Versatilists vs. Specialists: An Empirical Revisiting on Multilingual Transfer Ability11 Jun 2023
- 2023In-Context Demonstration Selection with Cross Entropy Difference24 May 2023
- 2023MetaAdapt: Domain Adaptive Few-Shot Misinformation Detection via Meta Learning22 May 2023
- 2023Small Models are Valuable Plug-ins for Large Language Models15 May 2023
- 2023Computational modeling of semantic change13 Apr 2023
50 newest of 51 All 51 (JSON)
- 2023Corex: Pushing the Boundaries of Complex Reasoning through Multi-Model Collaborationcited by 70
- 2023Forward-Backward Reasoning in Large Language Models for Mathematical Verificationcited by 39
- 2023Fewer is More: Boosting LLM Reasoning with Reinforced Context Pruningcited by 26
- 2025LazyReview A Dataset for Uncovering Lazy Thinking in NLP Peer Reviewscited by 13
- 2024Evolutionary Pre-Prompt Optimization for Mathematical Reasoningcited by 1
- 2026DiffuMask: Diffusion Language Model for Token-level Prompt Pruningcited by 1
- 2026Grounding Multi-Hop Reasoning in Structural Causal Models via Group Relative Policy Optimizationcited by 0
- 2026Grounding Multi-Hop Reasoning in Structural Causal Models via Group Relative Policy Optimization2 May 2026
- 2026DiffuMask: Diffusion Language Model for Token-level Prompt Pruning8 Apr 2026
- 2025LazyReview A Dataset for Uncovering Lazy Thinking in NLP Peer Reviews15 Apr 2025
- 2024Evolutionary Pre-Prompt Optimization for Mathematical Reasoning5 Dec 2024
- 2023Fewer is More: Boosting LLM Reasoning with Reinforced Context Pruning14 Dec 2023
- 2023Corex: Pushing the Boundaries of Complex Reasoning through Multi-Model Collaboration30 Sep 2023
- 2023Forward-Backward Reasoning in Large Language Models for Mathematical Verification15 Aug 2023
- 2024Jailbreaking? One Step Is Enough!cited by 8
- 2024Jailbreaking? One Step Is Enough!17 Dec 2024
- 2023Multilingual Machine Translation with Large Language Models: Empirical Results and Analysiscited by 156
- 2024Revisiting Demonstration Selection Strategies in In-Context Learningcited by 57
- 2023Small Models are Valuable Plug-ins for Large Language Modelscited by 42
- 2025Multilingual Machine Translation with Open Large Language Models at Practical Scale: An Empirical Studycited by 38
- 2024Get more for less: Principled Data Selection for Warming Up Fine-Tuning in LLMscited by 32
- 2023Language Versatilists vs. Specialists: An Empirical Revisiting on Multilingual Transfer Abilitycited by 27
- 2024Let's Ask GNN: Empowering Large Language Model for Graph In-Context Learningcited by 21
- 2023LLMeBench: A Flexible Framework for Accelerating LLMs Benchmarkingcited by 20
- 2023In-Context Demonstration Selection with Cross Entropy Differencecited by 17
- 2024On the Noise Robustness of In-Context Learning for Text Generationcited by 15
- 2024The Impact of Demonstrations on Multilingual In-Context Learning: A Multidimensional Analysiscited by 13
- 2023Debiasing Multimodal Sarcasm Detection with Contrastive Learningcited by 12
12 most cited of 37 All 37 (JSON)
- 2026OpenCompass: A Universal Evaluation Platform for Large Language Models19 May 2026
- 2026UCS: Estimating Unseen Coverage for Improved In-Context Learning13 Apr 2026
- 2026Meta-Sel: Efficient Demonstration Selection for In-Context Learning via Supervised Meta-Learning12 Feb 2026
- 2025Optimal Attention Temperature Improves the Robustness of In-Context Learning under Distribution Shift in High Dimensions3 Nov 2025
- 2025Topic Coverage-based Demonstration Retrieval for In-Context Learning15 Sep 2025
- 2025Factors affecting the in-context learning abilities of LLMs for dialogue state tracking10 Jun 2025
- 2025Towards Predicting Any Human Trajectory In Context1 Jun 2025
- 2025Dual Debiasing for Noisy In-Context Learning for Text Generation31 May 2025
- 2025Prompt Optimization with Logged Bandit Data3 Apr 2025
- 2025ARISE: Iterative Rule Induction and Synthetic Data Generation for Text Classification9 Feb 2025
- 2025Exploring Imbalanced Annotations for Effective In-Context Learning6 Feb 2025
- 2025Multilingual Machine Translation with Open Large Language Models at Practical Scale: An Empirical Study4 Feb 2025
12 newest of 37 All 37 (JSON)