NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MathDial: A Dialogue Tutoring Dataset with Rich Pedagogical Properties Grounded in Math Reasoning Problems

Jakub Macina, Nico Daheim, Sankalan Pal Chowdhury, Tanmay Sinha, Manu Kapur, Iryna Gurevych, Mrinmaya Sachan · DOI

Introduction

Large Language Models (LLMs) have demonstrated remarkable proficiency in solving complex mathematical problems. However, their utility as educational tools is often hampered by a fundamental pedagogical failure: the tendency to "leak" answers rather than guide students through the learning process. In educational theory, effective instruction relies on scaffolding—providing incremental support that allows a learner to bridge the gap between their current knowledge and a target concept. Standard LLMs typically oscillate between providing incorrect feedback or immediately revealing the full solution, failing to foster the "productive struggle" necessary for learning.

To address this, researchers have introduced MATHDIAL, a dataset of approximately 3,000 dialogue tutoring sessions. This dataset is designed to train models in Socratic tutoring, emphasizing pedagogical restraint and grounded reasoning over simple answer generation.

Methodology: The Semi-Synthetic Pipeline

Collecting high-quality tutoring data is challenging due to privacy concerns in real classrooms and the lack of pedagogical expertise in general crowdsourced datasets. The authors employed a novel semi-synthetic data collection pipeline to generate MATHDIAL:

  1. Error Identification: Using the GSM8k dataset, the researchers prompted an LLM to generate incorrect solutions to math word problems. They selected the most plausible and frequent errors to serve as the basis for tutoring sessions.
  2. Student Simulation: Rather than using human students, the pipeline utilized an LLM (InstructGPT) prompted to roleplay specific student personas, such as those who struggle with specific problem types or logic steps.
  3. Expert Teacher Intervention: 91 expert teachers were recruited to interact with these simulated students. Teachers were instructed to follow a specific pedagogical taxonomy, including Focusing (directing attention to an error), Probing (asking for explanations), and Telling (revealing information as a last resort).

This approach resulted in 2,861 high-quality dialogues where every turn is annotated with the teacher's intent and grounded in the underlying mathematical reasoning.

The MATHDIAL Dataset

MATHDIAL stands out from previous tutoring datasets due to its size and the depth of its grounding. Each dialogue is linked to a multi-step math problem from GSM8k, including metadata on exactly where the student's reasoning diverged from the correct path. This grounding allows models to provide feedback that is both mathematically accurate and pedagogically sound, avoiding the hallucinations common in zero-shot LLM interactions.

Key Insights and Evaluation

The research yields several critical insights into the behavior of LLMs in educational contexts:

LLMs as Students vs. Teachers

The study found that while LLMs struggle to act as effective Socratic tutors out of the box, they are excellent at simulating the confusion of a student. Human experts rated the simulated student behaviors in MATHDIAL as highly plausible, suggesting that LLM-driven simulations can be a viable proxy for real-world student data in training pipelines.

The Success vs. Telling Trade-off

A core contribution of the paper is the introduction of the Success@k vs. Telling@k metric. An ideal tutor should maximize the student's eventual success (Success@k) while minimizing the frequency with which they simply provide the answer (Telling@k). This metric highlights the "pedagogical restraint" required for effective teaching.

Performance of Specialized Models

The authors fine-tuned a 780M parameter Flan-T5 model on the MATHDIAL dataset. Despite its small size, this model significantly outperformed massive models like ChatGPT in pedagogical quality:

  • Pedagogical Restraint: In interactive tests, ChatGPT revealed the solution in 66% of its turns. In contrast, the MATHDIAL-tuned Flan-T5 model leaked the answer in only 1% to 4% of cases.
  • Equity and Correctness: On a 3-point scale for "Equitable Tutoring," human evaluators gave the MATHDIAL-tuned model a score of 2.19, compared to ChatGPT’s 1.43.

Conclusion and Future Work

MATHDIAL demonstrates that specialized, smaller models trained on high-quality pedagogical data can be more effective tutors than general-purpose LLMs. However, limitations remain. The reliance on simulated students may not capture the full emotional or idiosyncratic range of human learners. Furthermore, while the model excels in math, generalizing these Socratic strategies to more subjective domains like history or literature remains a challenge for future research.

By releasing MATHDIAL publicly, the authors provide a robust benchmark for the development of AI tutors that prioritize learning over mere answer retrieval.

Summary updated

BibTeX
@inproceedings{macina2023mathdial,
  author = {Jakub Macina and Nico Daheim and Sankalan Pal Chowdhury and Tanmay Sinha and Manu Kapur and Iryna Gurevych and Mrinmaya Sachan},
  title = {{MathDial: A Dialogue Tutoring Dataset with Rich Pedagogical Properties Grounded in Math Reasoning Problems}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.372},
}
Figure