Skip to main content
QUICK REVIEW

[Paper Review] An Incomplete Loop: Instruction Inference, Instruction Following, and In-context Learning in Language Models

Emmy Liu, Graham Neubig|arXiv (Cornell University)|Apr 3, 2024
Natural Language Processing TechniquesComputer Science3 citations
TL;DR

This paper investigates the interplay between deductive (instruction following), inductive (few-shot prompting), and abductive (instruction inference) reasoning in large language models. It finds that these reasoning types are dissociated: models can excel at few-shot learning without understanding task rules, and can generate plausible task descriptions while failing to apply them, revealing non-systematic reasoning even in state-of-the-art models.

ABSTRACT

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.

Motivation & Objective

  • To investigate how different reasoning types—deductive, inductive, and abductive—are triggered by distinct prompting methods in large language models.
  • To determine whether proficiency in one form of reasoning (e.g., few-shot prompting) implies proficiency in another (e.g., instruction inference).
  • To evaluate the effectiveness of instruction inference as a method for improving zero-shot and few-shot performance compared to standard prompting.
  • To assess the consistency and reliability of language models in generating and applying task rules from in-context examples.
  • To explore the limitations of current LMs in systematically reasoning across different prompting paradigms, despite their strong performance on individual tasks.

Proposed method

  • Proposes a framework mapping instruction following to deductive reasoning, few-shot prompting to inductive reasoning, and instruction inference to abductive reasoning.
  • Employs instruction inference by prompting models to generate natural language task descriptions from in-context examples before making predictions.
  • Uses two evaluation tasks: learning linear functions and low-resource machine translation (Kalamang and Colours datasets).
  • Evaluates model performance using accuracy and chrF scores, with human-annotated correctness for hypothesis quality in translation tasks.
  • Applies multiple reranking strategies (e.g., p_data_given_hyp_logprobs, p_answer_given_hyp_logprobs) to assess hypothesis quality and model confidence.
  • Conducts correlation analysis between translation quality (chrF) and hypothesis correctness to validate the reliability of generated task descriptions.
Figure 1: Diagram of abductive reasoning for an LM. Red arrows show data flow in inductive reasoning (few-shot prompting), while blue arrows show data flow in deductive reasoning (instruction following). Black arrows indicate data flow unique to abductive reasoning (instruction induction). Instructi
Figure 1: Diagram of abductive reasoning for an LM. Red arrows show data flow in inductive reasoning (few-shot prompting), while blue arrows show data flow in deductive reasoning (instruction following). Black arrows indicate data flow unique to abductive reasoning (instruction induction). Instructi

Experimental results

Research questions

  • RQ1RQ1: When does instruction inference improve performance over standard few-shot prompting in language models?
  • RQ2RQ2: How is the ability to learn from instructions (deductive) related to the ability to learn from in-context examples (inductive or abductive)?
  • RQ3RQ3: Are there cases where models can generate correct task descriptions (abduction) but fail to apply them, or vice versa?
  • RQ4RQ4: Does success in inductive reasoning (few-shot learning) correlate with success in abductive reasoning (instruction inference) across different models and tasks?

Key findings

  • Instruction inference improves performance over few-shot prompting in simple tasks such as learning linear functions and artificial language rules.
  • In complex tasks like low-resource machine translation (Kalamang), instruction inference fails due to incorrect or unhelpful hypotheses, with accuracy dropping to as low as 0.0813 when morphology is excluded.
  • There is no significant correlation between few-shot learning performance and instruction inference success—models can succeed in one without excelling in the other.
  • For GPT-3.5-turbo, the point-biserial correlation between translation quality (chrF) and hypothesis correctness was 0.1746 (p = 0.0063), indicating a weak but statistically significant link.
  • GPT-4-turbo achieved 15.25 avg chrF in translation with instruction inference, but only 13.54 when hypotheses were incorrect, highlighting the impact of hypothesis quality.
  • Llama-2-70b showed higher translation chrF (23.62) than GPT-3.5-turbo (19.29) in instruction inference, but still struggled with hypothesis correctness, indicating model-specific limitations in abductive reasoning.
Figure 2: Real coefficients of linear functions and relationship to hypothesized coefficients for GPT-3.5-turbo and GPT-4-turbo. Remaining models can be found in Appendix D . The x-axis has been truncated for visualization purposes (as there are some large outlier hypotheses). GPT-4-turbo is able to
Figure 2: Real coefficients of linear functions and relationship to hypothesized coefficients for GPT-3.5-turbo and GPT-4-turbo. Remaining models can be found in Appendix D . The x-axis has been truncated for visualization purposes (as there are some large outlier hypotheses). GPT-4-turbo is able to

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.