Advancing Multi-Step Mathematical Reasoning in Large Language Models Through Multi-Layered Self-Reflection with Auto-Prompting

Abstract

Recent advancements in Large Language Models (LLMs) have significantly improved their problem-solving capabilities. However, these models still struggle when faced with complex multi-step reasoning tasks. In this paper, we propose the Multi-Layered Self-Reflection with Auto-Prompting (MAPS) framework, a novel approach designed to enhance multi-step mathematical reasoning in LLMs by integrating techniques such as Chain of Thought (CoT), Self-Reflection, and Auto-Prompting. Unlike traditional static prompting methods, MAPS employs an iterative refinement process. Initially, the model generates a solution using CoT prompting. When errors are detected, an adaptive self-reflection mechanism identifies and analyzes them, generating tailored prompts to guide corrections. These dynamically adjusted prompts enable the model to iteratively refine its reasoning. Experiments on four well-established benchmarks across multiple LLMs show that MAPS significantly outperforms standard CoT and achieves competitive results with reasoning-optimized models. In addition, MAPS enables general-purpose LLMs to reach performance levels comparable to specialized reasoning models. While deeper reflection layers improve accuracy, they also increase token usage and costs. To balance this trade-off, MAPS strategically limits reflection depth, ensuring an optimal balance between cost and reasoning performance.

Cite

Text

de Souza Loureiro et al. "Advancing Multi-Step Mathematical Reasoning in Large Language Models Through Multi-Layered Self-Reflection with Auto-Prompting." European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases, 2025. doi:10.1007/978-3-032-06078-5_12

Markdown

[de Souza Loureiro et al. "Advancing Multi-Step Mathematical Reasoning in Large Language Models Through Multi-Layered Self-Reflection with Auto-Prompting." European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases, 2025.](https://mlanthology.org/ecmlpkdd/2025/desouzaloureiro2025ecmlpkdd-advancing/) doi:10.1007/978-3-032-06078-5_12

BibTeX

@inproceedings{desouzaloureiro2025ecmlpkdd-advancing,
  title     = {{Advancing Multi-Step Mathematical Reasoning in Large Language Models Through Multi-Layered Self-Reflection with Auto-Prompting}},
  author    = {de Souza Loureiro, André and Valverde-Rebaza, Jorge and Noguez, Julieta and Escarcega, David and Marcacini, Ricardo M.},
  booktitle = {European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases},
  year      = {2025},
  pages     = {205-223},
  doi       = {10.1007/978-3-032-06078-5_12},
  url       = {https://mlanthology.org/ecmlpkdd/2025/desouzaloureiro2025ecmlpkdd-advancing/}
}