Arithmetic Reasoning with LLM: Prolog Generation & Permutation
Open accessAbstract
Instructing large language models (LLMs) to solve elementary school math problems has shown great success using Chain of Thought (CoT). However, the CoT approach relies on an LLM to generate a sequence of arithmetic calculations which can be prone to cascaded calculation errors. We hypothesize that an LLM should focus on extracting predicates and generating symbolic formulas from the math problem description so that the underlying calculation can be done via an external code interpreter. We investigate using LLM to generate Prolog programs to solve mathematical questions. Experimental results show that our Prolog-based arithmetic problem-solving outperforms CoT generation in the GSM8K benchmark across three distinct LLMs. In addition, given the insensitive ordering of predicates and symbolic formulas in Prolog, we propose to permute the ground truth predicates for more robust LLM training via data augmentation.
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Integrity signals
Registry
Cites
Statistics
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Cites
Language Models are Few-Shot Learners
Brown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. (2020) · arXiv · doi:10.48550/arxiv.2005.14165 · Cited by 23,372 · cited 1× · see citing works
“…(LLMs), with their scaling of model size and data size, have demonstrated impressive performance across various understanding and generation tasks (Brown et al., 2020; Chowdh-ery et al., 2022; Rae et al., 2021; Thoppilan et al., 2022; Touvron et al., 2023; Almazrouei et al., 2023; Jiang et al.,…”
BackgroundXLNet: Generalized Autoregressive Pretraining for Language Understanding
Yang, Z., Dai, Z., Yang, Y., Carbonell, J., Salakhutdinov, R., & Le, Q. V. (2019) · arXiv · doi:10.48550/arxiv.1906.08237 · Cited by 6,687 · cited 2× · see citing works
“Since Prolog predicates are permutable, inspired by XLNet (Yang et al., 2020) that performs a token-wise permutation via attention masking, we decided to also use the permutation technique.”
MethodLoRA: Low-Rank Adaptation of Large Language Models
Hu, E. J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang, L., & Chen, W. (2021) · arXiv · doi:10.48550/arxiv.2106.09685 · Cited by 2,523 · cited 3× · see citing works
“We adopted 8-bit quantization and LoRA (Hu et al., 2021) to finetune models efficiently at a reasonable performance cost.”
MethodInfluentialClocksin, W., & Mellish, C. (1987) · Springer Berlin Heidelberg · doi:10.1007/978-3-642-97005-4 · Cited by 1,454 · cited 1×
“Prolog is a logic programming language, which was initially designed for artificial intelligence and computational linguistics (Clocksin and Mellish, 2003; Bratko, 2012; Covington, 2002).”
BackgroundProlog Programming for Artificial Intelligence
Bratko, I. (1986) · Information and Software Technology · doi:10.1016/0950-5849(87)90035-8 · Cited by 1,176 · cited 1× · see citing works
“Prolog is a logic programming language, which was initially designed for artificial intelligence and computational linguistics (Clocksin and Mellish, 2003; Bratko, 2012; Covington, 2002).”
BackgroundToolformer: Language Models Can Teach Themselves to Use Tools
Schick, T., Dwivedi-Yu, J., Dessì, R., Raileanu, R., Lomeli, M., Zettlemoyer, L., Cancedda, N., & Scialom, T. (2023) · arXiv · doi:10.48550/arxiv.2302.04761 · Cited by 1,150 · cited 1× · see citing works
“A line of work has focused on augmenting language models with deterministic computation resources like a calculator (Schick et al., 2023) or program-based tools (Gao et al., 2023; Gou et al., 2023).”
BackgroundAndreas, J., Rohrbach, M., Darrell, T., & Klein, D. (2016) · IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings · doi:10.1109/cvpr.2016.12 · Cited by 933 · cited 1× · see citing works
“Neural Symbolic Reasoning Neural symbolic reasoning (Andreas et al., 2016; Neelakantan et al., 2017; Hudson and Manning, 2019; Gupta et al., 2020; Nye et al., 2021) aims to leverage both neural networks and symbolic reasoning to obtain better reasoning abilities and transparency.”
BackgroundLaMDA: Language Models for Dialog Applications
Thoppilan, R., De Freitas, D., Hall, J., Shazeer, N., Kulshreshtha, A., Cheng, H.-T., Jin, A., Bos, T., Baker, L., Du, Y., et al. (2022) · arXiv · doi:10.48550/arxiv.2201.08239 · Cited by 778 · cited 1× · see citing works
“…with their scaling of model size and data size, have demonstrated impressive performance across various understanding and generation tasks (Brown et al., 2020; Chowdh-ery et al., 2022; Rae et al., 2021; Thoppilan et al., 2022; Touvron et al., 2023; Almazrouei et al., 2023; Jiang et al., 2023).”
BackgroundTraining Verifiers to Solve Math Word Problems
Cobbe, K., Kosaraju, V., Bavarian, M., Chen, M., Jun, H., Kaiser, L., Plappert, M., Tworek, J., Hilton, J., Nakano, R., et al. (2021) · arXiv · doi:10.48550/arxiv.2110.14168 · Cited by 575 · cited 12× · see citing works
“Dataset We used the GSM8K-Prolog described in Section 3.1.”
BackgroundMethodInfluentialCode Llama: Open Foundation Models for Code
Rozière, B., Gehring, J., Gloeckle, F., Sootla, S., Gat, I., Tan, X. E., Adi, Y., Liu, J., Sauvestre, R., Remez, T., et al. (2023) · arXiv · doi:10.48550/arxiv.2308.12950 · Cited by 531 · cited 4× · see citing works
“Note that this setting resulted in training only 0.248% of the 7 billion parameters for Llama2 and CodeLlama, and 0.188% of the 7 billion for Mistral.”
MethodInfluentialLeast-to-Most Prompting Enables Complex Reasoning in Large Language Models
Zhou, D., Schärli, N., Hou, L., Wei, J., Scales, N., Wang, X., Schuurmans, D., Cui, C., Bousquet, O., Le, Q., et al. (2022) · arXiv · doi:10.48550/arxiv.2205.10625 · Cited by 380 · cited 1× · see citing works
“Afterwards, advancements have been made in LLMs’ reasoning capacity via step-by-step meth-ods (Zhou et al., 2023; Zhu et al., 2023; Huang et al., 2022; Liang et al., 2023).”
MethodLarge Language Model Guided Tree-of-ThoughtPreprint
Long, J.-Y. (2023) · arXiv.org · doi:10.48550/arxiv.2305.08291 · Cited by 350 · cited 1× · see citing works
“Therefore, one trajectory of efforts has been made to leverage reasoning structures like trees (Yao et al., 2023; Long, 2023) and graphs (Besta et al., 2023; Zhang et al., 2023).”
BackgroundEncouraging Divergent Thinking in Large Language Models through Multi-Agent Debate
Liang, T., He, Z., Jiao, W., Wang, X., Wang, Y., Wang, R., Yang, Y., Shi, S., & Tu, Z. (2023) · arXiv · doi:10.48550/arxiv.2305.19118 · Cited by 320 · cited 1× · see citing works
“Afterwards, advancements have been made in LLMs’ reasoning capacity via step-by-step meth-ods (Zhou et al., 2023; Zhu et al., 2023; Huang et al., 2022; Liang et al., 2023).”
MethodLearning by Abstraction: The Neural State MachinePreprint
Hudson, D. A., & Manning, C. D. (2019) · Neural Information Processing Systems · doi:10.48550/arxiv.1907.03950 · Cited by 292 · cited 1× · see citing works
“Neural Symbolic Reasoning Neural symbolic reasoning (Andreas et al., 2016; Neelakantan et al., 2017; Hudson and Manning, 2019; Gupta et al., 2020; Nye et al., 2021) aims to leverage both neural networks and symbolic reasoning to obtain better reasoning abilities and transparency.”
BackgroundScaling Language Models: Methods, Analysis & Insights from Training Gopher
Rae, J. W., Borgeaud, S., Cai, T., Millican, K., Hoffmann, J., Song, F., Aslanides, J., Henderson, S., Ring, R., Young, S., et al. (2021) · arXiv · doi:10.48550/arxiv.2112.11446 · Cited by 235 · cited 2× · see citing works
“Nevertheless, such LLMs fall short in addressing mathematical problems that involves arithmetic, commonsense, and symbolic reasoning – topics that may appear deceptively simple to humans (Rae et al., 2021).”
BackgroundLarge Language Models Can Self-Improve
Huang, J., Gu, S. S., Hou, L., Wu, Y., Wang, X., Yu, H., & Han, J. (2022) · arXiv · doi:10.48550/arxiv.2210.11610 · Cited by 230 · cited 1× · see citing works
“Afterwards, advancements have been made in LLMs’ reasoning capacity via step-by-step meth-ods (Zhou et al., 2023; Zhu et al., 2023; Huang et al., 2022; Liang et al., 2023).”
MethodLILA: A Unified Benchmark for Mathematical Reasoning
Mishra, S., Finlayson, M., Lu, P., Tang, L., Welleck, S., Baral, C., Rajpurohit, T., Tafjord, O., Sabharwal, A., Clark, P., et al. (2022) · Conference on Empirical Methods in Natural Language Processing · doi:10.48550/arxiv.2210.17517 · Cited by 179 · cited 1×
“Another trajectory is to render the reasoning task based on external tools (Cobbe et al., 2021; Mishra et al., 2023; Gou et al., 2023; Gao et al., 2023; Shao et al., 2023; Chen et al., 2023), which is the one that we are following.”
BackgroundNatural Language Processing for Prolog Programmers
Covington, M. (1993) · doi:10.1016/0169-023x(94)90017-5 · Cited by 148 · cited 1×
“Prolog is a logic programming language, which was initially designed for artificial intelligence and computational linguistics (Clocksin and Mellish, 2003; Bratko, 2012; Covington, 2002).”
BackgroundLogic-LM: Empowering Large Language Models with Symbolic Solvers for Faithful Logical Reasoning
Pan, L., Albalak, A., Wang, X., & Wang, W. Y. (2023) · arXiv · doi:10.48550/arxiv.2305.12295 · Cited by 144 · cited 1× · see citing works
“LLMs are hence adopted to generate symbolic representations from natural language (Lyu et al., 2023; Pan et al., 2023; Yang et al., 2023), where deterministic symbolic solvers will process the query and symbolic representations generated by LLMs to conduct reasoning or proofs.”
BackgroundLearning a Natural Language Interface with Neural ProgrammerPreprint
Neelakantan, A., Le, Q. V., Abadi, M., Mccallum, A., & Amodei, D. (2016) · International Conference on Learning Representations · doi:10.48550/arxiv.1611.08945 · Cited by 140 · cited 1× · see citing works
“Neural Symbolic Reasoning Neural symbolic reasoning (Andreas et al., 2016; Neelakantan et al., 2017; Hudson and Manning, 2019; Gupta et al., 2020; Nye et al., 2021) aims to leverage both neural networks and symbolic reasoning to obtain better reasoning abilities and transparency.”
BackgroundChen, W., Ma, X., Wang, X., & Cohen, W. W. (2022) · arXiv · doi:10.48550/arxiv.2211.12588 · Cited by 125 · cited 1× · see citing works
“Another trajectory is to render the reasoning task based on external tools (Cobbe et al., 2021; Mishra et al., 2023; Gou et al., 2023; Gao et al., 2023; Shao et al., 2023; Chen et al., 2023), which is the one that we are following.”
BackgroundNeural Module Networks for Reasoning over TextPreprint
Gupta, N., Lin, K., Roth, D., Singh, S., & Gardner, M. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1912.04971 · Cited by 94 · cited 1× · see citing works
“Neural Symbolic Reasoning Neural symbolic reasoning (Andreas et al., 2016; Neelakantan et al., 2017; Hudson and Manning, 2019; Gupta et al., 2020; Nye et al., 2021) aims to leverage both neural networks and symbolic reasoning to obtain better reasoning abilities and transparency.”
BackgroundNye, M., Tessler, M. H., Tenenbaum, J. B., & Lake, B. M. (2021) · arXiv · doi:10.48550/arxiv.2107.02794 · Cited by 40 · cited 1× · see citing works
“Neural Symbolic Reasoning Neural symbolic reasoning (Andreas et al., 2016; Neelakantan et al., 2017; Hudson and Manning, 2019; Gupta et al., 2020; Nye et al., 2021) aims to leverage both neural networks and symbolic reasoning to obtain better reasoning abilities and transparency.”
BackgroundNeuro-Symbolic Integration Brings Causal and Reliable Reasoning Proofs
Yang, S., Li, X., Cui, L., Bing, L., & Lam, W. (2025) · North American Chapter of the Association for Computational Linguistics · doi:10.18653/v1/2025.findings-naacl.317 · Cited by 37 · cited 1× · see citing works
“LLMs are hence adopted to generate symbolic representations from natural language (Lyu et al., 2023; Pan et al., 2023; Yang et al., 2023), where deterministic symbolic solvers will process the query and symbolic representations generated by LLMs to conduct reasoning or proofs.”
BackgroundSolving Math Word Problems via Cooperative Reasoning induced Language Models
Zhu, X., Wang, J., Zhang, L., Zhang, Y., Huang, Y., Gan, R., Zhang, J., & Yang, Y. (2023) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2023.acl-long.245 · Cited by 32 · cited 1× · see citing works
“Afterwards, advancements have been made in LLMs’ reasoning capacity via step-by-step meth-ods (Zhou et al., 2023; Zhu et al., 2023; Huang et al., 2022; Liang et al., 2023).”
Method
Flagged first, then by citations
4 of the 29 references couldn’t be matched to a known paper.
Cited by
Sorted by citations
Large Language Models for Computer-Aided Design: A Survey
Zhang, L., Le, B., Akhtar, N., Lam, S.-K., & Ngo, D. (2026) · ACM Computing Surveys · doi:10.1145/3787499 · Cited by 23 · see citing works
“5 beneits from ine-tuning on code and improved instruction-following as well as RLHF. GPT-3.”
Haresamudram, H., Tang, C. I., Suh, S., Lukowicz, P., & Plötz, T. (2025) · Proceedings of the ACM on Interactive Mobile Wearable and Ubiquitous Technologies · doi:10.1145/3729467 · Cited by 33 · see citing works
“However, the scope of such ontologies is also limited, in particular when it comes to covering the entire breadth of less common situations.”
Evaluating and enhancing spatial cognition abilities of large language models
Yang, A.-R., Fu, C., Jia, Q.-R., Dong, W., Ma, M.-Y., Chen, H., Yang, F., & Wu, H. (2025) · International Journal of Geographical Information Science · doi:10.1080/13658816.2025.2490701 · Cited by 25 · see citing works
“1 For example, in a study on mathematics, researchers used LLM-generated Prolog code to solve math problems more reliably by avoiding cascaded calculation errors (Yang et al. 2024c).”
Comprehension Without Competence: Architectural Limits of LLMs in Symbolic Computation and Reasoning
Zhang, Z. (2025) · Trans. Mach. Learn. Res. · doi:10.48550/arxiv.2507.10624 · Cited by 17
Yuan, J., Du, D.-H., Zhang, H., Di, Z.-X., & Naseem, U. (2024) · Annual Meeting of the Association for Computational Linguistics · doi:10.48550/arxiv.2410.12323 · Cited by 16
“However, LLMs are prone to unfaith-fulness, resulting in cascaded intermediate errors (Bao et al., 2024; Yang et al., 2024b).”
Avila, C., Ilbay, D., & Rivera, D. (2025) · Buildings · doi:10.3390/buildings15173190 · Cited by 16 · see citing works
“They frequently hallucinate numbers, misapply logic, or embed biases—unacceptable in engineering contexts [10,11].”
Knowledge Augmented Complex Problem Solving with Large Language Models: A Survey
Zheng, D., Du, L., Su, J., Tian, Y.-C., Zhu, Y.-Q., Zhang, J., Wei, L., Zhang, N., & Chen, H.-J. (2025) · arXiv.org · doi:10.48550/arxiv.2505.03418 · Cited by 10
“The main tasks in this field include arithmetic computation problems [45, 56, 83, 151], math word problems (MWPs) [37, 49, 63, 116], and automated theorem proving (ATP) [2, 152].”
Alviano, M., Grillo, L., Scudo, F. L., & Reiners, L. A. R. (2025) · International Joint Conference on Artificial Intelligence · doi:10.24963/ijcai.2025/482 · Cited by 9 · see citing works
“…interest in the integration of LLMs and ASP to create powerful AI systems capable of both processing complex natural language inputs and performing sophisticated logical inference [ Ishay et al. , 2023b; Rajasekharan et al. , 2023a; Wang et al. , 2024; Yang et al. , 2024; Kaur et al. , 2025].”
DeonticBench: A Benchmark for Reasoning over Rules
Dou, G., Brena, L., Deo, A., Jurayj, W., Zhang, J.-Y., Holzenberger, N., & Durme, B. V. (2026) · arXiv.org · doi:10.48550/arxiv.2604.04443 · Cited by 8
Misinforming LLMs: vulnerabilities, challenges and opportunities
Zhou, B., Geissler, D., & Lukowicz, P. (2024) · arXiv.org · doi:10.48550/arxiv.2408.01168 · Cited by 8
“Another encouraging direction of equipping LLMs with real reasoning capabilities is to use LLMs as generative code writers of logic programming languages like Prolog [7, 11].”
BackgroundA Solver-in-the-Loop Framework for Improving LLMs on Answer Set Programming for Logic Puzzle Solving
Schrader, T. P., Lange, L., Kaminski, T., Razniewski, S., & Friedrich, A. (2025) · AAAI Conference on Artificial Intelligence · doi:10.48550/arxiv.2512.17093 · Cited by 6
“Existing approaches rely on prompt engineering or create complex planning and reasoning systems (Yang, Chen, and Tam 2024; Stein et al. 2023; Vyas et al. 2024).”
Ávila, C., Ilbay, D., Tapia, P., & Rivera, D. (2025) · Data · doi:10.3390/data10110169 · Cited by 4 · see citing works
“By design, LLMs generate statistical predictions rather than verifiable computations [12–14].”
Predicate-Guided Generation for Mathematical Reasoning
Chen, J., & Tam, Y.-C. (2025) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2025.emnlp-main.462
“Unlike prior work (Yang et al., 2024; Chen and Tam, 2024) Program Generation.”
InfluentialSelf-citationLarge Language Model-Empowered Debate Outcome Prediction via Argument Quality Assessment
Chen, X., Li, Y., Lee, O.-K. D., & Chin, A. G. (2026) · Group Decision and Negotiation · doi:10.1007/s10726-026-09986-9 · Cited by 2 · see citing works
“Their modules, such as self-attention and positional encoding, are optimized for capturing textual semantics, not mathematical operations and symbolic manipulations (Yang et al. 2024 ).”
Neuro-Symbolic Frameworks: Conceptual Characterization and Empirical Comparative Analysis
Sinha, S., Premsri, T., Kamali, D., & Kordjamshidi, P. (2025) · Neurosymbolic Artificial Intelligence · doi:10.48550/arxiv.2509.07122 · Cited by 3
“…models to generate the symbolic knowledge, based on the task or query, to overcome the labor-intensive nature of hand-crafting rules for every single task and the time required in the automatic learning of symbolic knowledge from data (Ishay et al., 2023; Xu et al., 2024a; Yang et al., 2024).”
Khattat: Enhancing Readability and Concept Representation of Semantic Typography
Hussein, A., Elsetohy, A., Hadhoud, S., Bakr, T., Rohaim, Y., & AlKhamissi, B. (2024) · ECCV Workshops · doi:10.48550/arxiv.2410.03748 · Cited by 3
“LLMs [33,46] have been utilized in various tasks in multiple domains [25,29,31, 38,41,57].”
MethodLi, L.-T., Shen, C., Xie, S.-Z., Gu, C.-H., He, Z., Meng, Y., Yang, X., Jiang, W.-Y., & Wang, Z. (2026) · arXiv.org · doi:10.48550/arxiv.2606.09738 · Cited by 2
Self-citationHermann, D., Wei, C., Mazzarella, L., Judd, J., Devey, J., Stähle, K., Hinz, G., & Knoll, A. (2026) · Automotive Innovation · doi:10.1007/s42154-025-00388-2 · Cited by 2
“Since LLMs process text-based information and do not perform actual calculations [46], the direct output can lead to errors in position and velocity values.”
Su, C., Wang, X., & Chen, Y. (2025) · Expert systems with applications · doi:10.1016/j.eswa.2025.130672 · Cited by 2
Caruso, S., Dodaro, C., Maratea, M., & Tarzariol, A. (2025) · International Joint Conference on Artificial Intelligence · doi:10.24963/ijcai.2025/490 · Cited by 2
Fine-Tuning Large Language Models for Solving Math Word Problems: A Case Study with LLaMA-3
Nie, H. (2024) · 2024 4th International Signal Processing, Communications and Engineering Management Conference (ISPCEM) · doi:10.1109/ispcem64498.2024.00024 · Cited by 2 · see citing works
From Reasoning to Code: GRPO Optimization for Underrepresented Languages
PENNINO, F., RAIMONDI, B., RONDELLI, M., GURIOLI, A., & GABBRIELLI, M. (2026) · Theory and Practice of Logic Programming · doi:10.1017/s1471068426100489 · Cited by 1 · see citing works
PrologMCP: A Standardized Prolog Tool Interface for LLM Agents
Mensfelt, A., Prabhakaran, A., Haret, A., Trencsenyi, V., & Stathis, K. (2026) · arXiv · doi:10.48550/arxiv.2606.14935 · Cited by 1 · see citing works
“[15] fine-tune LLMs to generate Prolog for arithmetic word problems, while [16] use a Prolog engine to produce verified reasoning trajectories that an LLM imitates as structured chain-of-thought.”
From Argumentation to Labeled Logic Program for LLM Verification
Galitsky, B. (2026) · AAAI Spring Symposia · doi:10.1609/aaaiss.v8i1.42572 · Cited by 1
“A promising strategy is pairing an LLM with a symbolic reasoning engine—such as a Prolog-style rule base, constraint solver, or medical ontology (Yang et al. 2024, Tan et al. 2024, Mellgren et al. 2025, Galitsky 2025).”
Bie, A., Dick, T., Kulesza, A., Raghavan, P., Raman, V., & Vassilvitskii, S. (2026) · arXiv.org · doi:10.48550/arxiv.2602.10416 · Cited by 1
Autonomous Business System via Neuro-symbolic AI
Pang, C., & Sayama, H. (2026) · IEEE International Systems Conference (SysCon) · doi:10.1109/syscon66367.2026.11503621
“Yang, Chen and Tam [31] used logic programs generated by LLMs to solve arithmetic problems.”
An LLM-based Neuro-symbolic Approach for Designing Fuzzy Logic Controllers
Rashid, F., & Long, Y. (2025) · International Conference on Frontiers of Information Technology · doi:10.1109/fit67061.2025.11333630 · Cited by 1 · see citing works
“Yang et al. [19] suggested ProPer in which Prolog code is generated using beam search on GSM-HARD, but the use of external interpreter limits scalability.”
Xie-Li, D., Agüero-Elizondo, N., & Fallas-Moya, F. (2025) · International Conference of the Chilean Computer Science Society · doi:10.1109/sccc67219.2025.11420610 · Cited by 1 · see citing works
“These developments have led to notable improvements in tasks such as arithmetic computation [19], algebraic manipulation [20], and theorem proving [21].”
Understanding Benchmark Language Under Weakened Formal Semantics
Chen, H., & Tanaka-Ishii, K. (2025) · Transactions of the Association for Computational Linguistics · doi:10.1162/tacl.a.789 · Cited by 1
Enhancing Mathematical Reasoning in LLMs with Background Operators
Chen, J., & Tam, Y.-C. (2024) · arXiv.org · doi:10.48550/arxiv.2412.04110 · Cited by 1
“With the help of GPT-4 and few-shot prompting technique, we handcraft Prolog solutions of a subset of the problems in the training set, and use GPT-4 to generate Prolog solutions on the rest of training problems following (Yang et al., 2024).”
Self-citationPerformance Analysis of Chinese Large Language Models in Solving Math Word Problems
Pan, S., Liu, K., Chen, W., & He, B. (2024) · 2024 International Conference on Intelligent Education and Intelligent Research (IEIR) · doi:10.1109/ieir62538.2024.10960109 · Cited by 1 · see citing works
“• Arithmetic problems [36] focus on numerical calculations and the application of formulas, requiring precision in math operations such as addition, subtraction, multiplication, division, and exponentiation.”
Haresamudram, H., Tang, C. I., Suh, S., Lukowicz, P., & Ploetz, T. (2024) · arXiv · Cited by 31 · see citing works
“However, the scope of such ontologies is also limited, in particular when it comes to covering the entire breadth of less common situations.”
Alviano, M., Capalbo, M., Gottlob, G., Grillo, L., Kareem, I., Lo Scudo, F., Piccolo, S. A., & Rodriguez Reiners, L. A. (2026) · Journal of Artificial Intelligence Research · doi:10.1613/jair.1.21678
“More broadly, LLMs have become standard tools for translating natural language into ASP or other logic-based representations amenable to symbolic inference (Kaur et al. 2025; Rajasekharan et al. 2023; Z. Wang et al. 2024; Yang et al. 2024).”
NeuroProlog: Multi-Task Fine-Tuning for Neurosymbolic Mathematical Reasoning via the Cocktail Effect
Zunjare, P., & Hsiao, M. (2026) · arXiv · doi:10.48550/arxiv.2603.02504
Zhao, J., Ju, M., Dong, M., Zhang, Y., Tang, K., Liu, X., Yang, K., Luo, H., Zhang, C., & Liu, G. (2026) · Journal of Cleaner Production · doi:10.1016/j.jclepro.2026.149322
Hiray, A., Shah, A., Lu, C., Tarte, M., Mittal, H., & Chava, S. (2026) · arXiv.org · doi:10.48550/arxiv.2607.26952
A DSL-Based Agent Framework for Reliable LLM Arithmetic using Model Context Protocol
C, R., & Jishnu, K. (2026) · 2026 International Conference on Data Science and Business Systems (ICDSBS) · doi:10.1109/icdsbs69077.2026.11634997
“Yang et al. [17] proposed that large language models could produce Prolog code that is executed outside the model to perform arithmetic reasoning.”
Peshave, A., Hossain, K., Kubricht, J., Narayanan, R., Burpee, Z., & Agarwal, A. (2025) · 2025 IEEE International Conference on Data Mining Workshops (ICDMW) · doi:10.1109/icdmw69685.2025.00072
“Some methods extract useful facts or write down rules to solve the problems [14].”
Bridging Large Language Models and Logic Programming
Crocetti, V., & Dragoni, A. F. (2025) · 2025 IEEE International Conference on Metrology for eXtended Reality, Artificial Intelligence and Neural Engineering (MetroXRAINE) · doi:10.1109/metroxraine66377.2025.11340308
“Moreover, studies such as Yang et al. (2024) [8] explored the task of generating Prolog code from mathematical word problems.”
$\pi$-CoT: Prolog-Initialized Chain-of-Thought Prompting for Multi-Hop Question-Answering
Wan, C., Gong, A., Mishra, M., Henneking, C.-L., Beger, C., & Weinberger, K. Q. (2025) · doi:10.48550/arxiv.2506.20642
ProtoReasoning: Prototypes as the Foundation for Generalizable Reasoning in LLMs
He, F., Chen, Z., Liang, X., Ma, T., Qiu, Y., Wu, S., & Yan, J. (2025) · arXiv · doi:10.48550/arxiv.2506.15211
“For Prolog programming language, some previous work [4, 7, 32] leveraged it as an intermediate representation to improve the reasoning ability of LLMs.”
Training Language Models to Use Prolog as a Tool
Mellgren, N., Schneider-Kamp, P., & Poech, L. G. (2025) · arXiv · doi:10.48550/arxiv.2512.07407
“• We show that grounding model reasoning in formal verification systems produces auditable symbolic traces and improves reliability—critical requirements for deploying language models in safety-critical applications”
- Authors
- Yang, X., Chen, B., & Tam, Y.-C.
- Affiliations
- New York University Shanghai (CN)
- Venue
- arXiv
- Publisher
- arXiv
- Published
- 2024
- ISSN
- 2331-8422 (ISSN-L)
- arXiv
- 2405.17893
- OpenAlex
- W4399151680
- Cited by
- 0
- References
- 29
- Type
- posted content
- Language
- en
- Open access
- green
- arxiv.org
- Licence
- Locations
- arXiv (Cornell University) (submittedVersion, cc-by)
- arXiv (Cornell University) (cc-by)
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
- Physical Sciences › Computer Science › Computational Theory and Mathematics › Mathematics, Computing, and Information Processing
- Keywords
- large language models, arithmetic reasoning, chain-of-thought, GSM8K, code interpreter, predicate extraction, data augmentation
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review