arXiv:2609.03213cs.CL2026-09

规则比例子能让大模型更可靠地实现上下文学习。

LLMs Learn Better In-Context from Rules than from Examples

论文配图:LLMs Learn Better In-Context from Rules than from Examples
图 1 · 摘自论文原文
  • 用规则描述任务比用示例演示更有效
  • 规则学习在代数类任务中效果显著优于示例
  • 指令微调强化规则学习优势,适合需要抽象推理的任务

大型语言模型具备无需权重更新即可通过提示上下文学习新任务的能力。本文对比了两种主要的上下文学习方式:(1)基于规则的描述(指令遵循);(2)基于输入输出示例的少样本提示。在涵盖游戏、算术、语言推理等多领域的五个任务中,比较了同一任务下规则与示例两种方式的学习效果。研究发现,模型通常更可靠地从规则中学习,额外增加示例或单纯扩大示例数量并未带来一致且显著的提升。指令微调增强了规则学习的优势,同时保持了示例学习能力。令人意外的是,基础模型中并无示例学习的天然优势,规则在代数任务中仍表现更优。当任务涉及代数抽象与计算时,规则相比示例的效能优势更大;而当任务依赖分布敏感性或参数化知识时,优势则较小。

原文摘要 · Abstract (English)

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.

上下文学习规则学习大模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。