Beyond Examples: High-level Automated Reasoning Paradigm in In-Context Learning via MCTS

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Wu, Jinyang, Feng, Mingkuan, Zhang, Shuai, Che, Feihu, Wen, Zengqi, Liao, Chonghua, Tao, Jianhua
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909630810030080
author Wu, Jinyang
Feng, Mingkuan
Zhang, Shuai
Che, Feihu
Wen, Zengqi
Liao, Chonghua
Tao, Jianhua
author_facet Wu, Jinyang
Feng, Mingkuan
Zhang, Shuai
Che, Feihu
Wen, Zengqi
Liao, Chonghua
Tao, Jianhua
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2411_18478
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Beyond Examples: High-level Automated Reasoning Paradigm in In-Context Learning via MCTS
Wu, Jinyang
Feng, Mingkuan
Zhang, Shuai
Che, Feihu
Wen, Zengqi
Liao, Chonghua
Tao, Jianhua
Computation and Language
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.
title Beyond Examples: High-level Automated Reasoning Paradigm in In-Context Learning via MCTS
topic Computation and Language
url https://arxiv.org/abs/2411.18478