MIRAGE: Evaluating and Explaining Inductive Reasoning Process in Language Models

Jiachun Li, Pengfei Cao, Zhuoran Jin, Yubo Chen, Kang Liu, Jun Zhao

TL;DR

Researchers have long debated whether Large Language Models (LLMs) truly "reason" or simply perform sophisticated pattern matching. This paper introduces MIRAGE, a new synthetic benchmark that reveals a startling disconnect: LLMs are surprisingly bad at inducing abstract rules, yet they can often guess the right answer by relying on "neighboring" examples in their context window.

The Problem: Unpacking the Black Box of Induction

Inductive reasoning—the ability to derive general rules from specific observations—is a cornerstone of human intelligence and a prerequisite for Artificial General Intelligence (AGI). While we know LLMs can solve many reasoning tasks, we don't fully understand the process they use to arrive at their answers.

Previous benchmarks had two major flaws: they were either too rigid (fixed test sets) or they only evaluated one half of the equation. They tested either the model's ability to state a rule or its ability to provide an answer, but rarely both in a controlled manner.

Rule Induction vs Example Inference Tasks

This paper addresses this gap by creating a framework that evaluates both the inductive stage (finding the rule) and the deductive stage (applying it), while allowing researchers to tweak the difficulty and distribution of the data.

Methods: The MIRAGE Benchmark

The authors developed MIRAGE (Meta Inductive ReAsoninG Evaluation), a synthetic dataset generator. The core of MIRAGE is a library of "meta-rules" built from five atomic vector operations: Add, Copy, Map, Pad, and Swap.

By applying these rules to integer vectors, the system generates "facts." To see if the reasoning is truly abstract, the authors project these facts into four distinct scenarios:

The four MIRAGE scenarios
  1. List Transformation (LT): Standard [A, B, C] → [X, Y, Z] formats.
  2. Real-world Problems (RP): Word problems about trading items or dieting.
  3. Code Generation (CG): Expressing the rule as a Python function.
  4. String Transformation (ST): Using characters instead of numbers.

The researchers then tested top-tier models (like GPT-4o and Claude 3.5) on two tasks: Rule Induction (RI) ("What is the rule?") and Example Inference (EI) ("Given this new input, what is the output?"). Unlike older datasets like ARC or ListFunctions, MIRAGE is procedurally generated, meaning it can produce an infinite variety of tests with controllable complexity.

Key Insights: The "Neighbor-Based" Hypothesis

  • The Induction-Deduction Gap: Models consistently perform better at answering the question (EI) than they do at explaining the rule (RI). This suggests that LLMs don't actually need to "understand" or "formulate" a rule to get the right answer—a behavior very different from human logical reasoning.
  • LLMs are Poor Rule-Based Reasoners: When a model is forced to use its own induced rule to solve a problem, its performance often drops. They lack "transferability"; a rule they "learned" in a list format doesn't help them solve the same logic in a code format.
  • The "Neighbor-Based" Hypothesis: This is the paper's most significant finding. The authors discovered that LLMs rely heavily on feature space proximity. If the test question is mathematically "close" to one of the examples provided in the prompt (a "neighbor"), the model succeeds. If you remove these nearby examples and only provide distant ones, the model’s performance craters.
  • Localized Intelligence: LLM reasoning appears to be "localized." They are excellent at interpolating within a small region of similar examples but struggle to generalize a global rule that applies to the entire task space.

Key Results

  • Performance Disparity: On the MIRAGE benchmark, GPT-4o achieved a 0.76 accuracy on Example Inference (EI) but only 0.46 on Rule Induction (RI) for the same tasks.
  • Sensitivity to Neighbors: When the prompt only contained "In-neighborhood" facts (examples very similar to the test case), accuracy jumped to 0.84. When only "Out-neighborhood" facts (distant examples) were provided, accuracy fell to 0.49.
  • Scenario Difficulty: Models performed worst on "Real-world Problems" (RP), suggesting that natural language context actually makes it harder for models to extract the underlying mathematical logic compared to pure symbolic lists or code.

Limitations and Future Work

The authors acknowledge that their study is based on synthetic data, which, while controllable, may not capture the full nuance of messy, real-world inductive leaps. Furthermore, the study is a black-box analysis; it observes the model's inputs and outputs but doesn't look at internal activations or "induction heads" in the transformer architecture.

Future research could focus on developing prompting techniques that force models to stick to induced rules more strictly, or architectural changes that move LLMs away from "neighbor-matching" toward true, global abstract reasoning.

Summary updated

BibTeX
@inproceedings{li2025mirage,
  author = {Jiachun Li and Pengfei Cao and Zhuoran Jin and Yubo Chen and Kang Liu and Jun Zhao},
  title = {{MIRAGE: Evaluating and Explaining Inductive Reasoning Process in Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=tZCqSVncRf},
}
Figure