mlsanityData to 14 Oct 2026

MalAlgoQA: Pedagogical Evaluation of Counterfactual Reasoning in Large Language Models and Implications for AI in Education

arXiv 2407.00938 ↗First posted 1 Jul 2024cs.CL cs.CYcited by 8

On the map: LLM reasoning → Reasoning benchmarks and evaluation

Abstract (arXiv)

This paper introduces MalAlgoQA, a novel dataset designed to evaluate the counterfactual reasoning capabilities of Large Language Models (LLMs) through a pedagogical approach. The dataset comprises mathematics and reading comprehension questions, each accompanied by four answer choices and their corresponding rationales. At the heart of MalAlgoQA are ``malgorithms'' - rationales behind incorrect answer choices that represent flawed yet logically coherent reasoning paths. These malgorithms serve as counterfactual scenarios, allowing us to assess an LLM's ability to identify and analyze flawed reasoning patterns. We propose the Malgorithm Identification task, where LLMs are assessed based on their ability to identify corresponding malgorithm given an incorrect answer choice. To evaluate the model performance, we introduce two metrics: Algorithm Identification Accuracy (AIA) for correct answer rationale identification, and Malgorithm Identification Accuracy (MIA) for incorrect answer rationale identification. Our experiments reveal that state-of-the-art LLMs exhibit significant performance drops in MIA compared to AIA, highlighting the challenges in counterfactual reasoning. Surprisingly, we find that the chain-of-thought prompting technique not only fails to consistently enhance MIA but can sometimes lead to underperformance compared to simple prompting. These findings have important implications for developing LLMs with improved counterfactual reasoning, particularly relevant for AI-powered tutoring systems, where identifying and addressing student misconceptions is essential. MalAlgoQA dataset is available hrefhttps://github.com/luffycodes/MalAlgoQA-Datasethere.

Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Placed in Reasoning benchmarks and evaluation, one of 17 directions in LLM reasoning. Builds on 7 of its 36 references that are in the map. First posted on arXiv 1 Jul 2024.

Builds on

7 of 36 references.

References · 7

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2021On the Opportunities and Risks of Foundation Modelscited by 4,033
  3. 2022Emergent Abilities of Large Language Modelscited by 2,512
  4. 2020Text and Causal Inference: A Review of Using Text to Remove Confounding from Causal Estimatescited by 59
  5. 2024Pedagogical Alignment of Large Language Modelscited by 19
  6. 2023Novice Learner and Expert Tutor: Evaluating Math Reasoning Abilities of Large Language Models with Misconceptionscited by 15
  7. 2024Student Data Paradox and Curious Case of Single Student-Tutor Model: Regressive Side Effects of Training LLMs for Personalized Learningcited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 5; 2026: 3.

8 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Large Language Models and Mathematical Reasoning Failures
  2. 2026Can LLMs Model Incorrect Student Reasoning? A Case Study on Distractor Generation
  3. 2025CounterBench: Evaluating and Improving Counterfactual Reasoning in Large Language Models
  4. 2025Flying Pigs, FaR and Beyond: Evaluating LLM Reasoning in Counterfactual Worlds
  5. 2024CLR-Bench: Evaluating Large Language Models in College-level Reasoning
  6. 2024Reasoning Elicitation in Language Models via Counterfactual Feedback
  7. 2022Towards Reasoning in Large Language Models: A Survey
  8. 2025FINEREASON: Evaluating and Improving LLMs' Deliberate Reasoning through Reflective Puzzle Solving