mlsanityData to 7 Oct 2026

LLMs Learn Better In-Context from Rules than from Examples

arXiv 2609.03213 ↗First posted 2 Sep 2026cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) exhibit in-context learning capabilities, where they can learn new tasks from prompt contexts without weight updates. We compare the learning efficacies of two prominent modes of in-context learning: (1) learning from descriptions of rules (instruction following); and (2) learning from examples of input-output demonstrations (few-shot prompting). Through five learning tasks that cover diverse domains (games, arithmetic, linguistic inferences), we compare two modes of learning (rules vs. examples) specifying the same underlying task. We furthermore explore model and task properties that modulate the learning efficacies. We find that models generally learn more reliably from rules than from examples alone, and additional examples on top of rules or simply scaling up the number of examples do not lead to consistent and significant gains. Instruction tuning amplifies the benefit of rule-based learning while keeping example-based learning capacities intact. Surprisingly, we find no privileged effect of example-based learning in base models, and rules still lead to gains in algebraic task domains. Overall, the comparative efficacy of rules over examples is larger when the task recruits algebraic abstractions and computations, and smaller when the task requires distributional sensitivity and/or recruits parametric knowledge.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 19 of its 51 references that are in the map. First posted on arXiv 2 Sep 2026.

Builds on

19 of 51 references.

References · 19

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  3. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
  4. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
  5. 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 858
  6. 2023Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formattingcited by 778
  7. 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
  8. 2023Reasoning or Reciting? Exploring the Capabilities and Limitations of Language Models Through Counterfactual Taskscited by 243
  9. 2023What In-Context Learning "Learns" In-Context: Disentangling Task Recognition and Task Learningcited by 149
  10. 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 126
  11. 2023Large Language Models can Learn Rulescited by 66
  12. 2022Transformers generalize differently from information stored in context vs in weightscited by 49
7 more
  1. 2024The broader spectrum of in-context learningcited by 33
  2. 2024Can LLMs Reason with Rules? Logic Scaffolding for Stress-Testing and Improving LLMscited by 28
  3. 2021Distinguishing rule- and exemplar-based generalization in learning systemscited by 12
  4. 2025Do different prompting methods yield a common task representation in language models?cited by 9
  5. 2024Minimization of Boolean Complexity in In-Context Concept Learningcited by 2
  6. 2025Programming by Backprop: An Instruction is Worth 100 Examples When Finetuning LLMscited by 2
  7. 2026Shared Lexical Task Representations Explain Behavioral Variability In LLMscited by 2

Built on by

Not cited yet.