[论文解读] An Incomplete Loop: Instruction Inference, Instruction Following, and In-context Learning in Language Models
本文研究了大语言模型中演绎(指令遵循)、归纳( few-shot 提示)和类比(指令推理)推理之间的相互作用。研究发现这三种推理类型是分离的:模型可以在不理解任务规则的情况下擅长 few-shot 学习,也可以在无法应用规则的情况下生成看似合理的任务描述,揭示了即使在最先进的模型中也存在非系统性推理。
Modern language models (LMs) can learn to perform new tasks in different ways: in instruction following, the target task is described explicitly in natural language; in few-shot prompting, the task is specified implicitly with a small number of examples; in instruction inference, LMs are presented with in-context examples and are then prompted to generate a natural language task description before making predictions. Each of these procedures may be thought of as invoking a different form of reasoning: instruction following involves deductive reasoning, few-shot prompting involves inductive reasoning, and instruction inference involves abductive reasoning. How do these different capabilities relate? Across four LMs (from the gpt and llama families) and two learning problems (involving arithmetic functions and machine translation) we find a strong dissociation between the different types of reasoning: LMs can sometimes learn effectively from few-shot prompts even when they are unable to explain their own prediction rules; conversely, they sometimes infer useful task descriptions while completely failing to learn from human-generated descriptions of the same task. Our results highlight the non-systematic nature of reasoning even in some of today's largest LMs, and underscore the fact that very different learning mechanisms may be invoked by seemingly similar prompting procedures.
研究动机与目标
- 研究不同推理类型(演绎、归纳和类比)如何通过不同的提示方法在大语言模型中被触发。
- 确定一种推理形式的熟练程度(例如,few-shot 提示)是否意味着另一种推理形式(例如,指令推理)的熟练程度。
- 评估指令推理作为提升零样本和 few-shot 性能的方法,相较于标准提示的有效性。
- 评估语言模型在从上下文示例中生成和应用任务规则方面的一致性和可靠性。
- 探索当前大语言模型在不同提示范式之间系统性推理的局限性,尽管它们在单个任务上表现优异。
提出的方法
- 提出一个框架,将指令遵循映射为演绎推理,few-shot 提示映射为归纳推理,指令推理映射为类比推理。
- 通过在预测前提示模型从上下文示例中生成自然语言任务描述,来实施指令推理。
- 使用两个评估任务:学习线性函数和低资源机器翻译(Kalamang 和 Colours 数据集)。
- 使用准确率和 chrF 分数评估模型性能,翻译任务中使用人工标注的正确性来评估假设质量。
- 应用多种重排序策略(例如,p_data_given_hyp_logprobs,p_answer_given_hyp_logprobs)以评估假设质量和模型置信度。
- 对翻译质量(chrF)与假设正确性之间的相关性进行分析,以验证生成的任务描述的可靠性。

实验结果
研究问题
- RQ1RQ1:在什么情况下,指令推理相较于标准 few-shot 提示能提升大语言模型的性能?
- RQ2RQ2:理解指令的能力(演绎)与从上下文示例中学习的能力(归纳或类比)之间有何关联?
- RQ3是否存在模型能够生成正确任务描述(类比)但无法应用它们,或反之的情况?
- RQ4在不同模型和任务中,归纳推理(few-shot 学习)的成功是否与类比推理(指令推理)的成功相关?
主要发现
- 在学习线性函数和人工语言规则等简单任务中,指令推理相较于 few-shot 提示能提升性能。
- 在复杂的任务如低资源机器翻译(Kalamang)中,由于生成的假设错误或无用,指令推理失败,当排除形态学信息时,准确率低至 0.0813。
- few-shot 学习性能与指令推理成功之间无显著相关性——模型可能在一个方面表现优异,而另一方面表现平平。
- 对于 GPT-3.5-turbo,chrF(翻译质量)与假设正确性之间的点双列相关系数为 0.1746(p = 0.0063),表明存在微弱但统计显著的关联。
- GPT-4-turbo 在指令推理下翻译的平均 chrF 为 15.25,但当假设错误时,chrF 仅为 13.54,凸显了假设质量的影响。
- Llama-2-70b 在指令推理下的翻译 chrF 为 23.62,高于 GPT-3.5-turbo 的 19.29,但仍难以保证假设正确性,表明其在类比推理方面存在模型特异性局限。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。