TL;DR
This paper investigates how Large Language Models (LMs) learn through different prompting strategies, relating them to deductive, inductive, and abductive reasoning. They find a surprising "dissociation" where LMs can excel at one type of reasoning (e.g., learning from examples) without necessarily being able to explain the underlying rules, and vice-versa. This suggests that current LMs might employ distinct, non-systematic learning mechanisms for different tasks.
What Problem Does This Paper Address?
Modern LMs can learn new tasks in several ways:
- Instruction Following: The LM is given an explicit natural language instruction (e.g., "Translate this sentence"). This is analogous to deductive reasoning, where a general rule is applied to a specific case.
- Few-Shot Prompting: The LM is given a few examples of input-output pairs for a task (e.g., "Input: 5, Output: 28; Input: 3, Output: 18"). This is analogous to inductive reasoning, where a general rule is inferred from specific examples.
- Instruction Inference: The LM is given examples and then prompted to generate a natural language instruction or rule that explains those examples, before using that generated instruction to perform the task. This is analogous to abductive reasoning, where the best explanation for observed data is sought.
While these are common ways to interact with LMs, it's unclear how these different learning capabilities relate to each other. Can an LM that learns well from examples also generate good instructions for itself? Does success in one area predict success in another? This paper aims to understand these relationships and identify potential dissociations between these reasoning types within LMs.
Methods
The core of the paper involves designing experiments to test LMs' abilities in instruction following (deductive), few-shot prompting (inductive), and instruction inference (abductive) across different tasks.
For instruction inference, they employ a multi-hypothesis approach:
- The LM generates several potential hypotheses (task descriptions) based on the provided examples.
- These hypotheses are then reranked using various methods, including:
- Verbalized confidence: The LM estimates the probability of its own hypothesis.
- P(data) / P(answer): The LM calculates the log-probability of the provided examples (or just their outputs) given the hypothesis.
- External validator: For structured tasks like linear functions, a separate mechanism parses the hypothesis and checks its accuracy against the examples.
- The highest-ranked hypothesis is then used as an instruction for the LM to perform the task.
They compare the performance of LMs using these different prompting strategies.
Datasets
The study uses three main domains for evaluation:
- Linear Functions: A synthetic dataset of 40 linear functions of the form $f(x) = ax + b$, with $a, b$ sampled from $[-20, 20]$. This tests the ability to infer and apply mathematical rules.
- Colours Domain (Artificial Language): A synthetic dataset involving nonce words and their corresponding colour terms, requiring the LM to learn a simple vocabulary and potentially grammatical rules (e.g., "repeat twice").
- Kalamang Translation: A low-resource machine translation task using the MTOB dataset, involving English-Kalamang translation. This tests the ability to learn and apply linguistic rules in a more complex, real-world scenario.
Key Insights and Ideas
- Dissociation is Key: The most striking finding is the significant "dissociation" between different reasoning types. LMs can be good at learning from examples (inductive) without being able to articulate the rules they've learned (abductive hypothesis generation), and vice-versa.
- Abduction is Tricky: Instruction inference (abductive reasoning) shows promise in simple synthetic tasks but struggles in more complex domains like low-resource translation. The quality of generated hypotheses doesn't always correlate with task performance.
- Deduction is Robust: Instruction following (deductive reasoning) generally performs well, especially when provided with a correct hypothesis.
- Non-Systematic Reasoning: The results suggest that even large LMs don't necessarily have a unified, systematic reasoning process. Different prompting strategies might trigger distinct, potentially independent, learning mechanisms.
- Hypothesis Quality Matters, But Not Always: While generating good hypotheses is crucial for instruction inference, the paper shows that sometimes LMs can perform well on a task even if their generated hypotheses are not perfectly accurate, or they can generate accurate hypotheses but fail to leverage them effectively for the task.
Key Results
- Linear Functions: Instruction inference significantly improved performance over few-shot prompting for GPT models, with GPT-4-turbo achieving ~96% accuracy. Hypothesis induction was markedly better than few-shot baselines. However, the correlation between the accuracy of induced coefficients and actual coefficients varied greatly by model, with GPT-4-turbo showing strong correlations while Llama models struggled.
- Colours Domain: Instruction inference also improved performance, though less dramatically than in linear functions. Interestingly, for some models (GPT-4-turbo, Llama-2-7b), using their self-generated hypotheses was sometimes better than using the ground-truth grammar.
- Kalamang Translation: Instruction inference did not improve translation metrics in most cases. Models struggled to leverage induced grammar and vocabulary hypotheses effectively.
- Correlation: The ability to generate accurate hypotheses (abductive) was generally not strongly correlated with the ability to learn from examples (inductive/few-shot). For instance, GPT-3.5-turbo showed a chance-level agreement between hypothesis accuracy and task performance in linear functions.
Limitations and Future Work
- Model Disparities: The study highlights significant differences in capabilities between LM families (e.g., GPT vs. Llama), with some models showing much stronger performance in hypothesis generation and utilization.
- Complexity of Abduction: The authors note that abductive reasoning appears to be a weaker capability in current LMs compared to instruction following.
- Future Directions:
- Develop better mechanisms for verifying and correcting natural language hypotheses.
- Explore using hypothesis proposal during the training phase of LMs, not just during inference.
- Investigate how to make the different reasoning types more consistent and synergistic within LMs to enhance autonomous learning.
Summary updated