LLMs can Find Mathematical Reasoning Mistakes by Pedagogical Chain-of-Thought

Zhuoxuan Jiang, Haoyuan Peng, Shanshan Feng, Fan Li, Dongsheng Li · OpenReview

Abstract

Self-correction is emerging as a promising approach to mitigate the issue of hallucination in Large Language Models (LLMs). To facilitate effective self-correction, recent research has proposed mistake detection as its initial step. However, current literature suggests that LLMs often struggle with reliably identifying reasoning mistakes when using simplistic prompting strategies. To address this challenge, we introduce a unique prompting strategy, termed the Pedagogical Chain-of-Thought (PedCoT), which is specifically designed to guide the identification of reasoning mistakes, particularly mathematical reasoning mistakes. PedCoT consists of pedagogical principles for prompts (PPP) design, two-stage interaction process (TIP) and grounded PedCoT prompts, all inspired by the educational theory of the Bloom Cognitive Model (BCM). We evaluate our approach on two public datasets featuring math problems of varying difficulty levels. The experiments demonstrate that our zero-shot prompting strategy significantly outperforms strong baselines. The proposed method can achieve the goal of reliable mathematical mistake identification and provide a foundation for automatic math answer grading.

Introduction: The Challenge of Mistake Finding

Large Language Models (LLMs) frequently exhibit hallucinations—generating logically coherent but factually incorrect reasoning. While self-correction is a popular mitigation strategy, its success hinges on the model's ability to accurately identify mistakes. Current research indicates that LLMs struggle with this task when using direct prompts like "Is this step correct?"

Two primary issues hinder reliable mistake detection: the "lazy LLM" bias, where models tend to agree with provided text regardless of errors, and a lack of domain-specific structuring in prompts. Existing methods often treat mistake-finding as a generic text evaluation task, failing to leverage the hierarchical nature of mathematical learning and pedagogical theory.

The Pedagogical Chain-of-Thought (PedCoT) Framework

To address these limitations, we propose Pedagogical Chain-of-Thought (PedCoT). This framework bridges pedagogical theory and prompt engineering through three core components:

1. Pedagogical Principles for Prompts (PPP)

Inspired by the Bloom Cognitive Model (BCM), PedCoT focuses on the "learning ability" hierarchy to structure its evaluation. Instead of a monolithic check, the model evaluates a reasoning step across three distinct levels:

  • Remember: Verifying if the correct mathematical concepts are involved.
  • Understand: Assessing whether the problem-solving approaches are sound.
  • Apply: Checking the accuracy of the actual calculations.
The Bloom Cognitive Model adapted for prompt design principles, focusing on the hierarchy of learning abilities.

2. Two-Stage Interaction Process (TIP)

To mitigate the "lazy LLM" bias, PedCoT employs a two-stage process that forces the model to generate its own reasoning before seeing the potentially flawed step:

  • Stage 1 (Regenerate): The LLM receives the question and previous correct steps. It is tasked with generating the expected next step (concepts, analysis, and calculations) without viewing the actual student/model output.
  • Stage 2 (Extract-Compare): The LLM is then presented with the actual next step. It extracts the components used in that step and compares them against its "ideal" version from Stage 1 to determine if a mistake occurred.
Overview of the PedCoT pipeline, illustrating the two-stage regeneration and comparison process with a trigonometry example.

Experimental Evaluation

We evaluated PedCoT on two datasets of varying difficulty using GPT-4 and GPT-4 Turbo:

  • BIG-Bench Mistake: Focused on multi-step arithmetic. PedCoT achieved a Mistake Finding Accuracy of 85.33% on GPT-4 Turbo, significantly outperforming SelfCheck (80.33%) and direct prompting (43.33%).
  • PRM800K: Featuring high-school competition-level problems. PedCoT reached 44.33% accuracy, surpassing the 35.00% baseline.

Ablation studies further revealed that the "Apply" (calculation) principle is the most critical component; its removal led to the most significant performance drop, highlighting that arithmetic verification remains a primary hurdle for LLMs in mathematical tasks. Beyond accuracy, PedCoT is computationally efficient. While methods like SelfCheck require five LLM requests per step, PedCoT requires only two, making it a more scalable solution for automated grading.

Conclusion

PedCoT demonstrates that incorporating educational theory into prompt design can significantly enhance the reasoning capabilities of LLMs. By structuring evaluations around pedagogical levels and utilizing a "blind" regeneration stage, we can transform LLMs into more reliable tools for identifying mathematical errors and facilitating automated feedback.

Summary updated

Abstract

Self-correction is emerging as a promising approach to mitigate the issue of hallucination in Large Language Models (LLMs). To facilitate effective self-correction, recent research has proposed mistake detection as its initial step. However, current literature suggests that LLMs often struggle with reliably identifying reasoning mistakes when using simplistic prompting strategies. To address this challenge, we introduce a unique prompting strategy, termed the Pedagogical Chain-of-Thought (PedCoT), which is specifically designed to guide the identification of reasoning mistakes, particularly mathematical reasoning mistakes. PedCoT consists of pedagogical principles for prompts (PPP) design, two-stage interaction process (TIP) and grounded PedCoT prompts, all inspired by the educational theory of the Bloom Cognitive Model (BCM). We evaluate our approach on two public datasets featuring math problems of varying difficulty levels. The experiments demonstrate that our zero-shot prompting strategy significantly outperforms strong baselines. The proposed method can achieve the goal of reliable mathematical mistake identification and provide a foundation for automatic math answer grading. The results underscore the significance of educational theory, serving as domain knowledge, in guiding prompting strategy design for addressing challenging tasks with LLMs effectively.
BibTeX
@inproceedings{jiang2024llms,
  author = {Zhuoxuan Jiang and Haoyuan Peng and Shanshan Feng and Fan Li and Dongsheng Li},
  title = {{LLMs can Find Mathematical Reasoning Mistakes by Pedagogical Chain-of-Thought}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=Ge2O10YV2d},
}
Figure