How Many Examples, and Which Ones? A Study of In-Context Learning for Natural Language Inference
Georgos Dikaios, Isidoros Perikos, Ioannis Hatzilygeroudis
Key points
From the paper's conclusion- Our findings also show that the use of a few representative examples, in the case of few-shot, produced performance comparable or superior to prompts with higher example counts, although the efficacy of the prompting techniques is model and dataset-dependent.
Abstract
Natural language inference (NLI) is a fundamental task of natural language processing and crucial for evaluating the strengths and weaknesses of AI methods. Research has mostly focused on encoder or encoder-decoder architectures. However, the field of decoder-only Large Language Models (LLMs) remains underexplored. While prior work has mainly investigated complex sampling and prompting techniques, the effectiveness of a minimalistic prompting approach is yet to be examined in decoder-only LLMs. In this work, we examine and provide a comprehensive benchmark of LLMs (Llama, Mistral, Gemma, and Phi 4) in this domain, across the MNLI, QNLI and SciTail datasets. The performance of these models was evaluated using zero-shot and few-shot prompting strategies with simple and direct prompts. The results of the article indicate that LLMs generally perform exceptionally well when they are provided with a simple, straightforward prompt, challenging the notion that complex prompting techniques are always required for NLI tasks. Additionally, we find that the choice of demonstration label in one-shot prompting significantly affects performance for most models, with entailment-primed examples performing best. Our findings also show that the use of a few representative examples, in the case of few-shot, produced performance comparable or superior to prompts with higher example counts, although the efficacy of the prompting techniques is model and dataset-dependent. Moreover, our simple prompting approach consistently matched or outperformed more elaborate methods such as ICS and MCQ-based prompting.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- The ROI of Small Examples: Optimizing In-Context Learning Under Token BudgetsarXiv · 2026
- From Copying to Composition: How Language Models Develop In-Context LearningarXiv · 2026
- Shortcuts or Memorisation? Revisiting Data Corruption in Natural Language Understanding with Large Language ModelsarXiv · 2026
- How Utilitarian are OpenAI’s Models Really? Replicating and Reinterpreting Pfeffer, Krügel, and Uhl (2025)Science and Engineering Ethics · 2026
- Simplicity Goes Far: Auditing Prompt Optimizers with Demonstration-Conditioned Prompt SearcharXiv · 2026
- Can Jev Improve Demonstration Retrieval for In-Context Learning?arXiv · 2026