Saved in:
Bibliographic Details
Main Authors: Yang, Xiaocong, Lin, Jiacheng, Wang, Ziqi, Zhai, Chengxiang
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2411.16454
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913585287921664
author Yang, Xiaocong
Lin, Jiacheng
Wang, Ziqi
Zhai, Chengxiang
author_facet Yang, Xiaocong
Lin, Jiacheng
Wang, Ziqi
Zhai, Chengxiang
contents Large language models (LLMs) are known to struggle with complicated reasoning tasks such as math word problems (MWPs). In this paper, we present how analogy from similarly structured questions can improve LLMs' problem-solving capabilities for MWPs. Specifically, we rely on the retrieval of problems with similar computational graphs to the given question to serve as exemplars in the prompt, providing the correct reasoning path for the generation model to refer to. Empirical results across six math word problem datasets demonstrate the effectiveness of our proposed method, which achieves a significant improvement of up to 6.7 percent on average in absolute value, compared to baseline methods. These results highlight our method's potential in addressing the reasoning challenges in current LLMs.
format Preprint
id arxiv_https___arxiv_org_abs_2411_16454
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Learning by Analogy: Enhancing Few-Shot Prompting for Math Word Problem Solving with Computational Graph-Based Retrieval
Yang, Xiaocong
Lin, Jiacheng
Wang, Ziqi
Zhai, Chengxiang
Computation and Language
Large language models (LLMs) are known to struggle with complicated reasoning tasks such as math word problems (MWPs). In this paper, we present how analogy from similarly structured questions can improve LLMs' problem-solving capabilities for MWPs. Specifically, we rely on the retrieval of problems with similar computational graphs to the given question to serve as exemplars in the prompt, providing the correct reasoning path for the generation model to refer to. Empirical results across six math word problem datasets demonstrate the effectiveness of our proposed method, which achieves a significant improvement of up to 6.7 percent on average in absolute value, compared to baseline methods. These results highlight our method's potential in addressing the reasoning challenges in current LLMs.
title Learning by Analogy: Enhancing Few-Shot Prompting for Math Word Problem Solving with Computational Graph-Based Retrieval
topic Computation and Language
url https://arxiv.org/abs/2411.16454