TL;DR
MIRAGE is a novel inference-time reasoning framework that introduces "cognitive flexibility" to Large Language Models by dynamically switching between 20 distinct conceptual perspectives (e.g., algebraic, geometric, probabilistic). By training a lightweight Selector via reinforcement learning to pick the best perspective for a given problem, MIRAGE significantly boosts accuracy on complex math and logic tasks while requiring a fraction of the computational cost of traditional ensembling methods.
What Problem Does This Paper Address?
While Large Language Models (LLMs) excel at open-ended text generation, they remain notoriously fragile when tackling complex mathematical, scientific, and logical reasoning. Small tweaks in prompt wording can cause a model to swing from a perfectly correct answer to a completely wrong one.
Current remedies fall short in distinct ways:
- Fragile Prompting: Techniques like Chain-of-Thought (CoT) rely heavily on carefully engineered exemplars.
- Costly Ensembling: Methods like Self-Consistency or DIPPER sample multiple reasoning paths and vote on an answer, which inflates API costs and latency by up to 5×.
- Rigid Representations: Existing frameworks force the model to process a problem through a single, fixed perspective. If that initial representation doesn't align well with the problem's underlying structure, the model fails.
Humans, by contrast, exhibit cognitive flexibility. If we get stuck trying to solve a scheduling problem algebraically, we naturally re-encode it—perhaps transforming it into a visual graph problem—until we find a representation that yields an "aha!" moment. MIRAGE brings this fluid problem-reframing capability to LLMs.
Methods
The MIRAGE (Multi-perspective Inference-time Reasoning via Agent-Guided Exploration) framework consists of two primary components: a Selector and a Reasoner.
The authors curated a library of 20 human-interpretable conceptual perspectives spanning symbolic logic, spatial/geometric, graph/network, and probabilistic domains. The framework operates in two phases:
- Training Phase (Selector RL): The Selector (a Qwen2.5-7B model fine-tuned with LoRA) learns to predict which perspectives suit an input prompt. It is trained using the REINFORCE algorithm with a frozen Reasoner. Crucially, the reward function penalizes the Selector for choosing too many perspectives, forcing it to learn a compact, sparse subspace of reasoning.
- Inference Phase (Sequential Reasoning): When a new problem arrives, the Selector ranks the 20 perspectives. The Reasoner attempts the problem using the top-ranked perspective. If the Reasoner's self-reported confidence hits a predefined threshold, the system stops early and returns the answer. If not, it sequentially moves down the list, aggregating answers via majority voting as a fallback.
Datasets
- Training: The Selector was trained on a shuffled slice of 5,700 questions from the MMLU (Massive Multitask Language Understanding) dataset (100 samples per subject).
- Evaluation: The framework was evaluated across four standard benchmarks using five diverse base models (DeepSeek-v3, ChatGPT-4o, Claude 3.7-Sonnet, Gemini 2.0 Flash, and Qwen2.5-7B):
- GSM8K: Grade-school math word problems.
- MATH500: Challenging, competition-level math problems.
- MMLU-Pro: A more robust, multi-choice extension of MMLU focusing on hard reasoning.
- Game-of-24: A highly structured logical arithmetic puzzle.
Key Insights and Ideas
- Emergent Sparsity: The RL penalty successfully prevents the Selector from simply spamming all perspectives. The model naturally stabilizes at selecting around 8 perspectives during training, and during inference, it achieves high accuracy while averaging fewer than two forward passes on most benchmarks.
- Skewed Preferences: The trained Selector develops a strong, intuitive hierarchy of perspectives. The top five perspectives—Algebraic (11.8%), Probabilistic (11.6%), Network Flow (9.8%), Dimensional Analysis (8.7%), and Stochastic Process (7.8%)—account for nearly half of all selections. However, it retains a long tail of niche perspectives to handle specialized problems.
- Reframing Beats Raw Sampling: The ablation studies show that forcing the model to look at a problem through a specific conceptual lens (like an Information-Theoretic or Graph-Based view) yields higher accuracy than simply asking it to "think step-by-step" multiple times. Reframing alters the latent space trajectory of the LLM, bypassing cognitive dead-ends.
Key Results
MIRAGE consistently outperforms standard prompting and expensive ensembling baselines while maintaining a highly efficient accuracy-vs-cost profile.
- GSM8K: Claude 3.7-Sonnet achieved 96.21% accuracy with an average of just 1.07 perspective queries per problem. Gemini 2.0 Flash hit 95.53% using only 1.02 queries.
- MATH500: Gemini 2.0 Flash achieved 84.40% accuracy, outperforming both standard CoT (80.60%) and DIPPER with 5 parallel samples (80.20%), while cutting the computational cost by more than half compared to DIPPER.
- MMLU-Pro: MIRAGE delivered massive absolute accuracy gains of 20–30% over Chain-of-Thought across multiple base models, requiring only 2 to 4 queried perspectives on average.
- Game-of-24: Gemini 2.0 Flash reached a near-perfect 99.20% accuracy with minimal computational overhead (1.13 average perspectives).
Limitations and Future Work
The authors openly acknowledge several constraints that pave the way for future research:
- Manually Crafted Perspectives: The 20 conceptual perspectives are discrete and hand-curated by experts. To scale to open-domain or non-STEM tasks, the framework needs a mechanism to automatically discover or synthesize new perspectives.
- Calibration of Early Stopping: The sequential halting mechanism relies on the model's self-reported confidence scores, which can sometimes be poorly calibrated or overconfident.
- Statistical Variance: Due to computational budget limits, the results are based on single-run executions. Future work will require multi-seed experiments to provide rigorous error bars and variance estimates.
Summary updated