mlsanityData to 7 Oct 2026

Exploring an LM to generate Prolog Predicates from Mathematics Questions

arXiv 2309.03667 ↗First posted 7 Sep 2023cs.CLcited by 0

On the map: LLM reasoning → Mathematical reasoning

Abstract (arXiv)

Recently, there has been a surge in interest in NLP driven by ChatGPT. ChatGPT, a transformer-based generative language model of substantial scale, exhibits versatility in performing various tasks based on natural language. Nevertheless, large language models often exhibit poor performance in solving mathematics questions that require reasoning. Prior research has demonstrated the effectiveness of chain-of-thought prompting in enhancing reasoning capabilities. Now, we aim to investigate whether fine-tuning a model for the generation of Prolog codes, a logic language, and subsequently passing these codes to a compiler can further improve accuracy. Consequently, we employ chain-of-thought to fine-tune LLaMA7B as a baseline model and develop other fine-tuned LLaMA7B models for the generation of Prolog code, Prolog code + chain-of-thought, and chain-of-thought + Prolog code, respectively. The results reveal that the Prolog generation model surpasses the baseline in performance, while the combination generation models do not yield significant improvements. The Prolog corpus based on GSM8K and the correspondingly finetuned Prolog generation model based on LLaMA7B are released to the research community.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Mathematical reasoning, one of 17 directions in LLM reasoning. Builds on 4 of its 4 references that are in the map. First posted on arXiv 7 Sep 2023.

Builds on

4 of 4 references.

References · 4

  1. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  3. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  4. 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,199

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024Arithmetic Reasoning with LLM: Prolog Generation & Permutation
  2. 2024MathGenie: Generating Synthetic Data with Question Back-translation for Enhancing Mathematical Reasoning of LLMs
  3. 2023Why Can Large Language Models Generate Correct Chain-of-Thoughts?
  4. 2024Assessing the Emergent Symbolic Reasoning Abilities of Llama Large Language Models
  5. 2023Boosting Logical Reasoning in Large Language Models through a New Framework: The Graph of Thought
  6. 2025A Survey on Large Language Models for Mathematical Reasoning
  7. 2023ChatGPT as a Math Questioner? Evaluating ChatGPT on Generating Pre-university Math Questions
  8. 2024A Systematic Evaluation of Large Language Models for Natural Language Generation Tasks