mlsanityData to 26 Nov 2026

How Many Examples, and Which Ones? A Study of In-Context Learning for Natural Language Inference

arXiv 2611.09936 ↗Submitted 13 Oct 2026cs.CL cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 21 of its 31 references that are in the map. Submitted 13 Oct 2026.

Builds on

21 of 31 references.

References · 21

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 41,272
  2. 2020Language Models are Few-Shot Learnerscited by 33,113
  3. 2024The Llama 3 Herd of Modelscited by 16,114
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,866
  5. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,802
  6. 2020Measuring Massive Multitask Language Understandingcited by 8,473
  7. 2020Scaling Laws for Neural Language Modelscited by 7,119
  8. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 5,035
  9. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,747
  10. 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,238
  11. 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 2,225
  12. 2015A large annotated corpus for learning natural language inferencecited by 1,887
9 more
  1. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,181
  2. 2025Phi-4-Mini Technical Report: Compact yet Powerful Multimodal Language Models via Mixture-of-LoRAscited by 613
  3. 2019ERNIE 2.0: A Continual Pre-training Framework for Language Understandingcited by 238
  4. 2025A Survey of Efficient Reasoning for Large Reasoning Models: Language, Multimodality, and Beyondcited by 139
  5. 2025Efficient Inference for Large Reasoning Models: A Surveycited by 64
  6. 2024A Survey of Prompt Engineering Methods in Large Language Models for Different NLP Taskscited by 55
  7. 2023Prompting Frameworks for Large Language Models: A Surveycited by 31
  8. 2025More is not always better? Enhancing Many-Shot In-Context Learning with Differentiated and Reweighting Objectivescited by 15
  9. 2025S2LPP: Small-to-Large Prompt Prediction across LLMscited by 1

Built on by

Not cited yet.