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 one aspect of learning interactions where curious students with partial knowledge interactively ask a teacher questions about the material in the textbook. We highlight various quality criteria that such dialogues should fulfill and compare several approaches relying on either prompting or fine-tuning large language models. We use synthetic dialogues to train educational chatbots and show benefits of further fine-tuning in different educational domains. However, 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
Developing effective educational chatbots is often hindered by a "cold start" problem: high-quality transcripts of pedagogical interactions are rare, expensive to produce, and frequently restricted by privacy regulations. While general-purpose conversational datasets exist, they often lack the specific "curious student vs. knowledgeable teacher" dynamic required for effective learning. The Book2Dial framework addresses this scarcity by synthetically generating teacher-student dialogues directly from textbooks, leveraging Large Language Models (LLMs) to simulate pedagogical interactions.
The Book2Dial Framework
The core of the Book2Dial framework is a dual-model architecture consisting of a Student model and a Teacher model. These models interact to generate multi-turn dialogues grounded in specific textbook content. The researchers explored three primary technical approaches for this generation:
- Multi-turn QG-QA (SimSeek): A pipeline approach where one model generates questions (Question Generation) and another identifies answers within the text (Conversational Answer Finder).
- Dialogue Inpainting: This method involves masking parts of a textbook and training a model to "fill in" missing student questions, while extracting teacher responses directly from the source material.
- Persona-based Generation: Utilizing LLMs (specifically GPT-3.5) to role-play. The researchers varied the information provided to the student persona (Low, Medium, or High Info) to mimic a real student with partial knowledge who has skimmed the material but lacks deep understanding.
Datasets and Evaluation
The study utilized a corpus of 35 textbooks from OpenStax, spanning Math, Business, Science, and Social Science. Deep-dive experiments focused on four specific titles: Introductory Statistics, Business Ethics, Physics, and Psychology 2e.
To assess the quality of generated dialogues, the authors introduced QFactScore, a novel metric that employs a separate QA model to verify if the generated teacher's answer is factually consistent with the source textbook. This was supplemented by human evaluation across several dimensions, including Answer Relevance, Coherence, and Groundedness.
Key Results and Analysis
The persona-based approach significantly outperformed specialized pipelines in producing coherent and relevant interactions. Human evaluators overwhelmingly preferred the Persona (High Info) model, which achieved high scores in Answer Relevance (0.97) and Coherence (0.85).
Key insights from the evaluation include:
- Contextual Necessity: Providing the student model with "partial" information (like section titles and summaries) led to more realistic and higher-quality dialogues.
- The Grounding Trade-off: While "Dialogue Inpainting" was highly factually grounded due to direct text extraction, it produced generic questions. Conversely, persona-based models were more engaging but carried a higher risk of "hallucinating" information not present in the text.
- Synthetic Pre-training Benefits: Pre-training models on synthetic data before fine-tuning on real-world data led to measurable performance gains. For instance, synthetic Social Science data improved BLEU scores on the MCTest benchmark by 4.16 points.
Conclusion and Future Work
While Book2Dial demonstrates the potential of synthetic data to overcome educational data scarcity, challenges remain. Human evaluation revealed that approximately 21% of persona-generated QA pairs still lacked factual consistency, highlighting a persistent "hallucination tax." Furthermore, the current framework primarily models "Direct Instruction" (Q&A) rather than more complex strategies like Socratic questioning or scaffolding. Future research will focus on incorporating these sophisticated pedagogical techniques and improving the factual grounding of LLM-based personas.
Summary updated