[Paper Review] Hypothesis Search: Inductive Reasoning with Language Models
The paper proposes a two-level hypothesis-driven pipeline that prompts LLMs to generate natural-language hypotheses about the underlying rules, then implements them as Python programs to solve inductive reasoning tasks, with filtering via summaries or human selection to manage cost.
Inductive reasoning is a core problem-solving capacity: humans can identify underlying principles from a few examples, which robustly generalize to novel scenarios. Recent work evaluates large language models (LLMs) on inductive reasoning tasks by directly prompting them yielding "in context learning." This works well for straightforward inductive tasks but performs poorly on complex tasks such as the Abstraction and Reasoning Corpus (ARC). In this work, we propose to improve the inductive reasoning ability of LLMs by generating explicit hypotheses at multiple levels of abstraction: we prompt the LLM to propose multiple abstract hypotheses about the problem, in natural language, then implement the natural language hypotheses as concrete Python programs. These programs can be verified by running on observed examples and generalized to novel inputs. To reduce the hypothesis search space, we explore steps to filter the set of hypotheses to implement: we either ask the LLM to summarize them into a smaller set of hypotheses or ask human annotators to select a subset. We verify our pipeline's effectiveness on the ARC visual inductive reasoning benchmark, its variant 1D-ARC, string transformation dataset SyGuS, and list transformation dataset List Functions. On a random 100-problem subset of ARC, our automated pipeline using LLM summaries achieves 30% accuracy, outperforming the direct prompting baseline (accuracy of 17%). With the minimal human input of selecting from LLM-generated candidates, performance is boosted to 33%. Our ablations show that both abstract hypothesis generation and concrete program representations benefit LLMs on inductive reasoning tasks.
Motivation & Objective
- Motivate inductive reasoning as a core problem and identify limitations of in-context learning for complex tasks.
- Introduce a two-stage hypothesis pipeline: natural-language hypotheses followed by programmatic implementations.
- Explore hypothesis-reduction strategies (LLM summaries and human selection) to manage generation costs.
- Evaluate the approach on ARC, 1D-ARC, and SyGuS to assess generalization and scalability.
Proposed method
- Prompt an LLM (GPT-4) to generate multiple natural-language hypotheses about the transformation rule.
- Reduce the number of hypotheses via LLM summaries or human annotation to limit program generation cost.
- Generate multiple Python programs per hypothesis and execute them on training examples to verify correctness.
- Apply feedback iterations where failures are appended to prompts to refine program generation.
- Compare against direct prompting baselines and ablations to quantify the value of abstraction and program representations.
Experimental results
Research questions
- RQ1Can explicit natural-language hypotheses and their programmatic realizations improve inductive reasoning beyond direct prompting on ARC-like tasks?
- RQ2How do abstract (natural-language) versus concrete (programmatic) representations contribute to performance in inductive reasoning with LLMs?
- RQ3What is the impact of hypothesis filtering (summaries or human selection) on overall accuracy and cost?
- RQ4Do results generalize across ARC, 1D-ARC, and SyGuS datasets?
Key findings
- On ARC (random 40-task subset), direct prompting yields 12.5% accuracy, while the pipeline with summarized hypotheses achieves 27.5%.
- With human-selected hypotheses, accuracy rises to 37.5%, matching the performance when using human-written hypotheses, indicating strong capacity of LLMs to generate useful hypotheses and implementations.
- Program-only ablation yields 17.5% accuracy, showing the value of hypothesis guidance beyond pure program generation.
- On 1D-ARC, full pipeline reaches 77.8% accuracy, substantially higher than direct prompting (38.8%); program-only also improves (58.3%).
- On SyGuS (89 tasks), GPT-4 achieves 94.3% with 8 programs and two feedback rounds without hypotheses; with hypothesis guidance, 93.2% is observed, still competitive against CrossBeam’s 74.8% (domain-specific DSL).
- Ablations show both hypothesis generation and executable representations contribute to improved inductive reasoning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.