Skip to main content
QUICK REVIEW

[Paper Review] Beyond Examples: High-level Automated Reasoning Paradigm in In-Context Learning via MCTS

Jinyang Wu, Mingkuan Feng|arXiv (Cornell University)|Nov 27, 2024
Intelligent Tutoring Systems and Adaptive LearningComputer Science3 citations
TL;DR

This paper proposes HiAR-ICL, a novel in-context learning paradigm that replaces example-dependent prompting with high-level reasoning patterns generated via Monte Carlo Tree Search (MCTS). By defining five atomic reasoning actions and using a cognitive complexity framework to match problems to optimal thought cards, HiAR-ICL achieves state-of-the-art 79.6% accuracy on the MATH benchmark with Qwen2.5-7B-Instruct, outperforming GPT-4o and Claude 3.5.

ABSTRACT

In-context learning (ICL) enables large language models (LLMs) to perform downstream tasks through advanced prompting and high-quality demonstrations. However, traditional ICL paradigms encounter significant limitations in complex reasoning tasks, stemming primarily from their dependence on example quality and absence of explicit reasoning guidance. To address these challenges, we introduce HiAR-ICL, a **Hi**gh-level **A**utomated **R**easoning paradigm in **ICL** that shifts focus from specific examples to abstract reasoning patterns, thereby extending the conventional concept of "context" in ICL. Our approach begins by defining five atomic reasoning actions, upon which we employ Monte Carlo Tree Search to systematically construct high-level reasoning patterns. During inference, HiAR-ICL dynamically selects appropriate reasoning patterns based on problem attributes, providing explicit guidance for the model's reasoning process. Experiments demonstrate HiAR-ICL's effectiveness and efficiency: utilizing only 200 prior samples with Qwen2.5-7B-Instruct, our method achieves 80.6% accuracy on MATH and 62.5% on AMC, exceeding GPT-4o's 77.2% and 57.5%. Our approach enhances performance across models of varying sizes while generalizing effectively across domains. Further analysis reveals that HiAR-ICL can also serve as a plug-and-play inference method compatible with post-training techniques like GRPO. Code and data are available at https://github.com/jinyangwu/HiARICL.

Motivation & Objective

  • To overcome the limitations of traditional in-context learning (ICL), which heavily depends on high-quality, human-annotated demonstrations and shows poor generalization in complex reasoning tasks.
  • To reduce reliance on human intervention in crafting demonstrations by shifting focus from example-level analogical learning to abstract reasoning patterns.
  • To enable automated, efficient, and generalizable reasoning in large language models (LLMs) without fine-tuning or extensive human supervision.
  • To improve performance on challenging mathematical reasoning benchmarks by dynamically matching problems to cognitively appropriate reasoning patterns.

Proposed method

  • Define five atomic reasoning actions—problem decomposition, step-by-step reasoning, reflection, subquestion generation, and solution verification—as fundamental building blocks for constructing chain-structured reasoning patterns (thought cards).
  • Use Monte Carlo Tree Search (MCTS) with four phases—selection, expansion, simulation, and backpropagation—on a small set of seed examples to explore and generate diverse reasoning paths.
  • Construct multiple thought cards by iteratively exploring reasoning paths via MCTS, storing them as reusable cognitive templates for downstream inference.
  • Develop a cognitive complexity metric comprising subquestion count, problem condition complexity, and semantic similarity to match target problems with the most suitable thought cards.
  • Execute reasoning using the selected thought cards and apply multi-stage verification via Output Reward Model (ORM), Process Reward Model (PRM), and self-consistency checks to ensure solution quality.
  • Leverage a lightweight reward model (math-shepherd-mistral-7b-prm) and a fine-tuned ORM (Llama3.1-8B-ORM-Mistral-Data) to score reasoning steps and final outputs.

Experimental results

Research questions

  • RQ1Can high-level reasoning patterns, rather than specific examples, serve as effective context in in-context learning for complex reasoning tasks?
  • RQ2How can automated reasoning be achieved without human-annotated demonstrations, especially for small LLMs under 10B parameters?
  • RQ3To what extent does using MCTS to explore and generate reasoning patterns improve performance on mathematical reasoning benchmarks?
  • RQ4Does matching problems to thought cards based on cognitive complexity lead to better reasoning accuracy and generalization?
  • RQ5Can verification mechanisms like PRM, ORM, and self-consistency significantly enhance solution reliability in automated reasoning pipelines?

Key findings

  • HiAR-ICL achieves a state-of-the-art accuracy of 79.6% on the MATH benchmark using Qwen2.5-7B-Instruct, surpassing GPT-4o (76.6%) and Claude 3.5 (71.1%).
  • The method improves performance by +7.1% on the most difficult level 4 of the MATH benchmark, indicating strong efficacy in handling high-complexity problems.
  • Even for easier levels (1–3), HiAR-ICL achieves an average accuracy boost of +2.6% over baseline few-shot CoT and CoT+SC methods.
  • The use of verification mechanisms—particularly PRM with 'min' scoring strategy—significantly improves solution reliability, with self-consistency alone achieving strong baseline performance.
  • The cognitive complexity metric effectively identifies the most appropriate thought cards for a given problem, enhancing reasoning alignment and accuracy.
  • HiAR-ICL demonstrates reduced time complexity compared to prior tree-search-based methods, due to frontloading computation during thought card generation.

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.