Book2Dial: Generating Teacher Student Interactions from Textbooks for Cost-Effective Development of Educational Chatbots

Junling Wang, Jakub Macina, Nico Daheim, Sankalan Pal Chowdhury, Mrinmaya Sachan

Abstract

Educational chatbots are a promising tool for assisting student learning. However, the development of effective chatbots in education has been challenging, as high-quality data is seldom available in this domain. In this paper, we propose a framework for generating synthetic teacher-student interactions grounded in a set of textbooks. Our approaches capture a key aspect of learning interactions where curious students with partial knowledge interactively ask teachers questions about the material in the textbook. We highlight various quality criteria that such dialogues must fulfill and compare several approaches relying on either prompting or finetuning large language models according to these criteria. We use the synthetic dialogues to train educational chatbots and show the benefits of further fine-tuning in educational domains. However, careful human evaluation shows that our best data synthesis method still suffers from hallucinations and tends to reiterate information from previous conversations. Our findings offer insights for future efforts in synthesizing conversational data that strikes a balance between size and quality. We will open-source our data and code.

Introduction

Building effective educational chatbots is notoriously difficult because high-quality data—actual transcripts of teachers and students interacting—is scarce. Privacy concerns, the need for domain expertise, and the sheer cost of manual annotation make scaling these systems a challenge. Furthermore, educational chatbots must remain "grounded," staying strictly within the bounds of a specific curriculum or textbook. The Book2Dial framework addresses this by leveraging the structure and content of textbooks to automatically generate high-quality, pedagogically sound conversations.

The Book2Dial Framework

The authors explore three distinct strategies for generating dialogues:

  1. Multi-turn QG-QA: A pipeline approach using separate models for Question Generation (the "student") and Answer Finding (the "teacher").
  2. Dialogue Inpainting: This method treats a textbook as a series of teacher utterances and trains a model to "fill in" the missing student questions that would lead to those answers.
  3. Persona-based Generation: This approach uses Large Language Models (LLMs) to simulate a student and a teacher. Crucially, it enforces information asymmetry: the "student" model is only given titles or summaries (simulating partial knowledge), while the "teacher" model has access to the full textbook text.
The Book2Dial framework leverages information asymmetry between a student model and a teacher model to generate realistic dialogues.

The source data for these interactions consists of 35 textbooks from OpenStax, covering diverse subjects like Math, Business, Science, and Social Science.

Evaluation and Results

To evaluate the generated dialogues, the researchers defined seven quality criteria: Answer Relevance, Coherence, Informativeness, Groundedness, Answerability, Factual Consistency, and Specificity. They also introduced QFactScore, a metric combining semantic similarity and QA-based validation to measure alignment with the source text.

Human evaluation reveals that the Persona (High Info) model significantly outperforms other strategies. As shown in the table below, it achieves near-perfect scores in Answer Relevance (0.97) and Specificity (0.99), and leads in Coherence and Factual Consistency.

Human evaluation results across various quality criteria, showing the superiority of the Persona-based approach.

Fine-tuning a base model (FLAN-T5-LARGE) on Book2Dial synthetic data led to measurable improvements in downstream tasks. For instance, a model fine-tuned on social science textbooks saw a +4.16 BLEU score increase on the CoQA MCTest benchmark.

Discussion and Limitations

While the Persona-based approach is highly conversational, a "consistency gap" remains. Even the best model lacked factual consistency in approximately 21% of its QA pairs, posing a risk in educational settings. Additionally, while "Dialogue Inpainting" is perfectly grounded, it often produces robotic, disjointed conversations.

Current models also lack pedagogical depth; the "teacher" model primarily provides direct answers rather than employing scaffolding or Socratic questioning. Future work will focus on improving grounding techniques to eliminate hallucinations and incorporating more complex teaching strategies to better simulate real-world educational interactions.

Summary updated

BibTeX
@inproceedings{wang2024book,
  author = {Junling Wang and Jakub Macina and Nico Daheim and Sankalan Pal Chowdhury and Mrinmaya Sachan},
  title = {{Book2Dial: Generating Teacher Student Interactions from Textbooks for Cost-Effective Development of Educational Chatbots}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  url = {https://openreview.net/forum?id=ewU74XlO2L},
}
Figure