MATHSENSEI: A Tool-Augmented Large Language Model for Mathematical Reasoning
Preprint
Abstract
Tool-augmented Large Language Models (TALM) are known to enhance the skillset of large language models (LLM), thereby, leading to their improved reasoning abilities across many tasks. While, TALMs have been successfully employed in different question-answering benchmarks, their efficacy on complex mathematical reasoning benchmarks, and the potential complimentary benefits offered by tools for knowledge retrieval and mathematical equation solving, are open research questions. In this work, we present MATHSENSEI, a tool-augmented large language model for mathematical reasoning. Augmented with tools for knowledge retrieval (Bing Web Search), program execution (Python), and symbolic equation solving (Wolfram-Alpha), we study the complimentary benefits of these tools through evaluations on mathematical reasoning datasets. We perform exhaustive ablations on MATH,a popular dataset for evaluating mathematical reasoning on diverse mathematical disciplines. We also conduct experiments involving well-known tool planners to study the impact of tool sequencing on the model performance. MATHSENSEI achieves 13.5% better accuracy over gpt-3.5-turbo with chain-of-thought on the MATH dataset. We further observe that TALMs are not as effective for simpler math word problems (in GSM-8k), and the benefit increases as the complexity and required knowledge increases (progressively over AQuA, MMLU-Math, and higher level complex questions in MATH). The code and data are available at https://github.com/Debrup-61/MathSensei.Keywords
All Related Versions
This publication has 8 references indexed in Scilit:
- Encouraging Divergent Thinking in Large Language Models through Multi-Agent Debate2024
- A Survey of Deep Learning for Mathematical Reasoning2023
- Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Them2023
- A neural network solves, explains, and generates university math problems by program synthesis and few-shot learning at human levelProceedings of the National Academy of Sciences of the United States of America, 2022
- HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answering2018
- FEVER: a Large-scale Dataset for Fact Extraction and VERification2018
- Program Induction by Rationale Generation: Learning to Solve and Explain Algebraic Word Problems2017
- Parsing Algebraic Word Problems into EquationsTransactions of the Association for Computational Linguistics, 2015