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

Introduction

Dialogue tutoring systems have demonstrated significant potential in augmenting learning outcomes across various domains Wollny et al. (2021); Ji et al. (2023). However, the progress of scaling them is considerably hindered by a lack of high-quality datasets, which actually provide students with space for exploration by scaffolding their learning Tack and Piech (2022); Macina et al. (2023). The current datasets are frequently marred with issues like low pedagogical quality, are too small, or focus on noisy classroom settings. While recording tutoring sessions might be a scalable alternative, it bears strong privacy concerns Demszky and Hill (2023). On the other hand, crowdsourcing dialogues is costly, requires synchronizing annotators, and can lead to insufficient quality due to poor annotator training Stasaski et al. (2020).

At the same time, recent advancements in Large Language Models (LLMs) have enabled significant improvements in generative dialogue systems Budzianowski and Vulić (2019); Thoppilan et al. (2022); Xu et al. (2023) and simultaneously shown great success in reasoning over educational domains, such as math problems Cobbe et al. (2021); Wei et al. (2022); Wang et al. (2023b); OpenAI (2023). However, this has not yet translated to improvements in dialogue tutoring systems, as showcased by the lack of pedagogical understanding and factually incorrect behaviour of GPT-3 Tack and Piech (2022) and open-source LLMs Macina et al. (2023). Figure 1 shows examples of generations that reveal information to students too early and misunderstand their solutions. This is also confirmed in our human evaluation: when asked ChatGPT to tutor a student as a teacher, it directly reveals the solution 66% of times and provides incorrect feedback 59% of times (cf. Section 6.3).

To address these issues, we collect and present a dialogue tutoring dataset called MathDial . The dataset has rich tutoring quality which we measure by equitable tutoring Tanner (2013): providing opportunities for the student to learn, think and explore potential solutions. For this, we take inspiration from human tutoring strategies Nye et al. (2014) and active learning approaches in classrooms Freeman et al. (2014) that show a positive impact on student learning gains.

We collect our dataset using a novel data collection approach. This approach pairs human teachers with an LLM that simulates students and their errors, which the same teachers rate as representative of real students in our study. MathDial is grounded in math word problems and student confusions and therefore provides a challenging testbed for creating faithful and equitable dialogue tutoring models that can reason over complex data. Figure 1 shows one dialogue from MathDial , where a teacher scaffolds student learning by asking an interactive scaffolding question instead of leaking the solution.

We benchmark various models on the task of generating tutor responses for MathDial , using both finetuning and prompting. We find that finetuning smaller open-source LLMs on our dataset can make them significantly more equitable and faithful to the teaching material than prompting larger LLMs (Section 6.3). Moreover, we propose an interactive, end-to-end tutoring simulation between a teacher and student model where we measure a trade-off between student solving success and teachers directly revealing answers in (Section 6.4). Open-source LLMs that are finetuned on our dataset achieve similar student-solving success as ChatGPT while telling solutions less often. Finally, we highlight open challenges on this dataset, such as generalization to new problems.

Background & Related Work

Research on task-oriented dialogue systems has mainly focused on customer service, for instance, restaurant reservations Henderson et al. (2014); Gašic et al. (2014). Notably, Wen et al. (2017) collect such dialogues with the Wizard-of-Oz (WoZ) paradigm Kelley (1984), where crowdworkers are connected to roleplay interlocutors. One plays the user who interacts with the system, and the other roleplays the system and is often exclusively given access to domain knowledge. WoZ has been used to collect many popular datasets, such as MultiWoZ Budzianowski et al. (2018) and extensions Kim et al. (2020); Zhu et al. (2020), Taskmaster Byrne et al. (2019), and open-domain datasets like Wizard-of-Wikipedia Dinan et al. (2019). Other collection methods include crowdworkers filling dialogue outlines Shah et al. (2018); Rastogi et al. (2020); Majewska et al. (2023), or scraping from the web Li et al. (2017); Dziri et al. (2019).

Multiple works have shown shortcomings in using non-expert crowdworkers. For instance, document-grounded corpora often contain hallucinations in ground-truth data Dziri et al. (2022), and task-oriented corpora tend to suffer from annotation errors and low lexical diversity Casanueva et al. (2022). More closely related to this work, current tutoring corpora lack sufficient tutoring quality Tack and Piech (2022); Macina et al. (2023).

MathDial mitigates these issues by adapting the WoZ paradigm to using human teachers as experts in collaboration with an LLM.

2 Dialogue Tutoring Corpora & Teacher Moves

Theoretical and empirical studies have shown the importance of questioning in human learning Roscoe and Chi (2008); Shahriar and Matsuda (2021); Shridhar et al. (2022). Therefore, prior research has explored which types of questions in tutoring conversations improve student learning. Nye et al. (2014), for instance, show the effectiveness of deep reasoning questions, and Howe et al. (2019) find that elaboration and challenging of previous contributions can benefit student learning. This has led to a series of human-authored dialogue tutoring systems, like AutoTutor Nye et al. (2014), which guide students in problem-solving using natural language explanations. Assisting students to succeed in complex tasks commonly referred to as scaffolding Reiser (2004); Anghileri (2006). More recently, several rule-based dialogue systems with predefined goals have been proposed Ruan et al. (2019); Winkler et al. (2020); Cai et al. (2021), but scaling them requires extensive human authoring and quickly becomes complex. As a consequence, building effective automatic tutors at scale remains an open problem.

While data-driven approaches seem like a promising direction (Macina et al., 2023; Wang et al., 2023a), only a limited number of tutoring corpora are publicly available to our knowledge: CIMA Stasaski et al. (2020), TSCC Caines et al. (2020), TalkMoves Suresh et al. (2022), and NCTE Demszky and Hill (2023). All of them suffer from several limitations, such as missing grounding information (TSCC, TalkMoves, NCTE), low tutoring quality (CIMA), small dataset sizes (all), or a focus on noisy classroom scenarios (see Table 1).

3 Synthetic Dialogue Data Creation

LLMs have recently found their way as synthetic dialogue dataset generators due to their increasingly human-like behaviour. Both methods using finetuning Dai et al. (2022) and prompting Kim et al. (2022); Chen et al. (2023) haven been proposed. The human-like behaviour also manifests in them showing similar biases in logical reasoning as humans Dasgupta et al. (2022); Binz and Schulz (2023), and can be comparable to gold-human annotations for generation tasks Ziems et al. (2023). Consequently, they have been used to simulate students for teacher training Markel et al. (2023), suggesting that one might also rely upon them to create meaningful tutors. However, Tack and Piech (2022); Macina et al. (2023) show that they can not yet perform well as teachers out-of-the-box, because they often incorrectly assess student solutions and reveal answers too quickly.

MathDial Collection Pipeline

This section introduces a framework for collecting high-quality tutoring conversations, highlighted in Figure 2. The core idea behind it is to connect an expert annotator, who roleplays a teacher, with an LLM that simulates the student.In contrast, in WoZ two users are connected, with one simulating a system. We use this methodology to collect dialogues based on GSM8k Cobbe et al. (2021), a diverse collection of grade school multi-step math word problems (MWPs).

First, we estimate student confusion for a given MWP by using temperature sampling to obtain diverse solutions from an LLM. We then select the most frequent incorrect solution. Therefore, each tutoring dialogue deals with the solution of exactly one MWP and one confusion. As a next step, we pair a human teacher with the LLM to create a dialogue that should resolve the confusion. We ground the LLM in one of six student profiles. These student profiles consist of common misconceptions of students learning algebra, such as struggling to recognize the problem type, and are taken from Booth et al. (2017). A detailed description of these profiles is found in Section C.

The teacher has access to the MWP and its correct step-by-step solution, as well as the initial student confusion (cf. Figure 7). Then, the teacher is tasked to guide the student to solve the problem by employing a sequence of scaffolding moves, which we refer to as a teaching strategy. The teachers themselves can use their expertise to determine the strategy but are required to select the current move before writing a response, as we have found this to lead to more diverse pedagogical patterns. We describe these moves in Section 3.4. The dialogue ends when the teacher marks the problem as solved or a certain time limit is reached.

In addition to the collected dialogues, we obtain metadata that future work can explore for building more effective tutor models. In particular, for each dialogue MathDial contains the MWP, step-by-step solution, the exact step that led to student confusion, and annotations indicating if it was resolved over the course of the dialogue. Step-by-step and student solutions are also provided as equations.

We recruit professionals with teaching experience through Prolifichttps://www.prolific.co. We only select teachers who have completed at least 500 submissions and achieved a 100% completion rate. Annotators read guidelines for the task in an initial training phase (cf. Section D.3) and then complete a test on an example conversation to assess their understanding of the task. We only select annotators with 100% test scores for further rounds of data collection, similar to Zhang et al. (2023). We employ 9191 expert annotators, of which 7171 identify as female and 1818 as male. The majority of annotators are nationals of the UK, followed by the USA, Canada, Australia, India, and Germany, with a median age of 39 years.

2 Problem & Confusion Selection

We employ an LLM to generate plausible student confusions and base the dialogues on them. We pick the most frequent incorrect solution sampled from ChatGPT (gpt-3.5-turbo) Ouyang et al. (2022) using chain-of-thought prompting. To be precise, we first use temperature sampling to obtain N=50N=50 reasoning paths for every MWP in GSM8k, with T=0.7T=0.7 and no top-k truncation Wang et al. (2023b). Then, we group incorrect solutions according to their final numeric answer and pick one from the set with the largest cardinality. More details can be found in Appendix B. As we will show in Section 4.1, teachers think that the majority of sampled confusions are plausible and could also have been made by a real student.

3 Student Turn Generation

We use InstructGPT (text-davinci-003) Ouyang et al. (2022) to generate student turns. We prompt the model with the previous dialogue history and additional information that grounds the next turn. The prompt contains the MWP, the initial student confusion, as well as the student profile which explains the type of confusion and persona of the student.

4 Taxonomy of Teacher Moves

This section defines the taxonomy of all teacher moves that are used in MathDial . We base the first two on the work of Reiser (2004), who suggest that scaffolding strategies can be split into two main categories: structure and problematize. These form the basis for the Focus and Probing moves employed in our study. Focus is used to constrain the student to make direct progress towards solving the problem. Probing is used to generalize certain aspects of the problem which allows the student to explore its underlying concepts. More concretely, a teacher might construct a new, related problem that targets only one specific concept that is needed to solve the original MWP. However, scaffolding might also fail, for example when a student gets stuck. Then, teachers may need to reveal parts of the answer. This is called Telling. Finally, turns that just serve as conversational elements and have limited pedagogical value are classed as Generic. Table 2 lists finer-grained intents for each of these four categories along with a set of accompanying examples.

MathDial Analysis

We quantitatively evaluate the collected tutoring dialogues to assess their quality. For this, we outline descriptive statistics in Table 1. First of all, we can see that our dataset is significantly larger in terms of the number of dialogues and utterances than all related datasets that are listed. By open-sourcing such a large dataset, we fill a crucial gap of sufficiently-sized open-source tutoring corpora which has so far hindered research in the area Macina et al. (2023).

Furthermore, MathDial exhibits a higher diversity, measured in bigram entropy Zhang et al. (2018), than CIMA and TalkMoves. The diversity is similar to NCTE and TSCC which consist of transcripts of classroom and one-to-one tutoring sessions, respectively. This supports the observation that expert annotators tend to create more diverse utterances than untrained crowdworkers Casanueva et al. (2022), and also that LLMs can be used to generate diverse tutoring dialogues. Finally, we measure the Uptake Demszky et al. (2021) of annotated teacher utterances. Uptake indicates how coherent the teacher’s utterance is with respect to the previous student’s turn. We find that MathDial and CIMA have similar uptake. Both surpass the other datasets in our comparison.

Our collection methodology relies on LLMs for simulating students. Therefore, it is crucial to ensure that the turns simulated by the LLM also match what a teacher would expect of a real student, who in our case is a sixth grader. In this section, we evaluate this quantitatively.

Figure 3 shows that annotators rate the majority of generations by the model positively along two dimensions. The first one says that the confusion of the student is typical confusion of a sixth grader. The second one says that the interaction with the student as a whole is as expected of a sixth grader. We release these annotations with our final dataset which allows users of MathDial to filter out utterances that are of a lower quality.

Moreover, LLMs can be prone to incorrect arithmetic calculations. Therefore, we asked annotators to distinguish conceptual errors from such simple calculation mistakes. Arithmetic errors may be easily resolved through calculators but conceptual errors are likely to require tutors to resolve them, for example by scaffolding. Annotators identified around 80%80\% of the confusions as conceptual, leaving around a fifth containing arithmetic errors. Again, we include these annotations to allow for data filtering.

2 Which teaching strategies do annotators choose?

In this Section, we evaluate when teachers use which teacher moves in the conversations. Figure 4 shows that teachers most frequently use Focus questions which are found in 37%37\% of utterances. Focus is followed by Generic and Probing. Telling is the rarest move. To validate these annotations, we sampled 1717 conversations consisting of 102102 teacher utterances and asked two independent annotators to annotate their moves. We obtain an agreement of κ=0.60\kappa=0.60 between the two annotators and κ=0.49\kappa=0.49 and κ=0.34\kappa=0.34, respectively, between either of the annotators and the teacher. We note that Probing and Focus appear to be particularly challenging to distinguish and acknowledge that the boundary between them may be subjective. Merging these two categories into one larger ‘scaffolding’ category improves agreements to κ=0.67\kappa=0.67, κ=0.75\kappa=0.75 and κ=0.55\kappa=0.55. Our observations are in line with related works that have shown low inter-annotator agreement between experts for detailed teacher moves in classroom settings Kelly et al. (2020).

The sequence of moves employed by the teachers constitutes their teaching strategy which we analyze in the following. Figure 4 shows the distribution of teacher moves for different stages of the conversations. We find that the initial utterance by the teacher is usually generic and serves as a conversation opener, oftentimes by asking the student to repeat the question or solution attempt. During the conversation, teachers mainly use scaffolding to either probe the student or focus the conversation on a specific part of the problem. The more the conversations progress the more likely teachers are to resort to Telling because students often get stuck at a specific subproblem and are unable to resolve it themselves. As a consequence, less Probing is used. This has been shown to keep students engaged in the conversation who otherwise become frustrated by being stuck VanLehn (2011).

3 How often can student confusion be resolved?

The goal of MathDial is to enable building tutors that can help students resolve their confusion. Therefore, we would like to know how often teachers can do so in our collected data. This is annotated by the teachers themselves, who assessed that they were successful in almost 89%89\% of the conversations. In ca. 75% of the conversations by using mainly scaffolding questions, and only in around 14%14\% by revealing the majority of the answer. The conversations in which confusions could not be resolved can still be useful, as they, for instance, can be used to train classifiers to determine when human intervention in such tutoring sessions is required.

Modeling Tutors with MathDial

We focus our initial studies on MathDial on the task of tutor response generation. Tutor response generation aims to model the teacher in a dialogue by generating follow-up turns to guide the student towards learning and solving the problem. In the following subsections, we compare different finetuned and prompted language models on the task and evaluate how much detailed information that can be given to the model, such as step-by-step solutions of the MWP, influence performance.

We use neural conditional language models that given a tutoring dialogue history u1Tu_{1}^{T}, grounding information K\mathcal{K}, and a teacher move A\mathcal{A}, we wish to generate a continuation of the dialogue uT+1⊂V∗u_{T+1}\subset\mathcal{V}^{\ast}. Here V∗\mathcal{V}^{\ast} denotes all strings that can be constructed from the model vocabulary V\mathcal{V} using Kleene’s closure. K\mathcal{K} is a string composed of information annotated in MathDial , namely the MWP, step-by-step solution, and the students’ solution attempt. We study locally-normalized models of the form

where θ{\bm{\theta}} denotes the parameters of the model and TT is moved throughout the dialogue to evaluate each intermediate teacher turn. We either optimize these parameters by finetuning for 10 epochs or zero-shot prompting an LLM. When finetuning, we use an initial learning rate of 6.25e−56.25e-5 and linear learning rate decay without warm-up, and optimize the negative log-likelihood of the ground-truth response using the AdamW optimizer Loshchilov and Hutter (2019). We experiment with state-of-the-art pretrained Transformer Vaswani et al. (2017) models and make use of the checkpoints provided by the transformers library Wolf et al. (2020). In particular, we finetune BART Lewis et al. (2020), Flan-T5 Chung et al. (2022) which is based on T5 Raffel et al. (2020) and was finetuned on the instruction-following flan collection Longpre et al. (2023), as well as OPT Zhang et al. (2022). Finally, we zero-shot prompt ChatGPT Brown et al. (2020).

We split our data into a training split containing 80%80\% of the conversations and a test set containing the remaining 20%20\%. Around 60%60\% of the problems in the test set are also found in the training data, where at least one conversation was based on it, and therefore constitute our ‘seen’ split. The remaining 40%40\% are unseen during training and test the ability of the model to generalize to new problems. The dataset split is published with the dataset.

Metrics

We assess our models using the sacrebleu Post (2018) implementation of BLEU (sBLEU) Papineni et al. (2002), as well as BERTScore We use the deberta-large-mnli checkpoint Zhang et al. (2020) between generated response (uT+1u_{T+1}) and annotated response (u^T+1\hat{u}_{T+1}) for each teacher response in the conversation. Furthermore, in line with previous works Dziri et al. (2022); Daheim et al. (2023), we report BERTScore and the token level F1 (KF1) between generated utterance and math word problem as a proxy for faithfulness. However, we note that an increase in these metrics can be caused by an increase in overlap, which may also indicate more telling and can be undesirable. However, finding good evaluation metrics for assessing the faithfulness of dialogue tutors remains an open problem. Finally, we measure the Uptake of the generated response Demszky et al. (2021).

We propose two evaluation metrics for end-to-end tutoring, where a tutor model is evaluated interactively by using it to teach an LLM that simulates a student. Success@k measures the percentage of conversations where the student reaches the correct final answer at least once within the first kk turns (equivalent of % solve rate in prior work). Telling@k measures the percentage of conversations where the teacher explicitly tells the final answer before the student has reached it on their own within the first kk turns.

Results

Table 3 shows our main results for the task of tutor response generation on MathDial . A first general observation is that automatic metrics appear low when compared to state-of-the-art models on other dialogue data. This might be explained by two main challenges that tutoring models face: a high level of ambiguity when it comes to sound teaching strategies and complex problems that the models need be able to correctly assess. In contrast, the data that ground responses in other dialogue tasks often needs a lesser amount of interpretation.

Scaling models in terms of their parameter size is not directly reflected in improved metrics. This indicates that just using larger models might not be enough to build meaningful tutors on MathDial . Still, as shown in BERTScore and lexical overlap between response and grounding information, smaller models appear to rely more on the grounding information and might paraphrase less which might make teaching less engaging for students. Instruction tuning seems to have a largely positive effect in tutoring, as well. This is exhibited by the improvements that Flan-T5 yields over T5.

In order to be used in real-world settings, dialogue tutoring models need to be able to generalize to new problems. However, we find that there is still a large gap in the performance of all finetuned models between seen and unseen problems. This indicates a clear need to build models that can generalize better. Uptake on the other hand is generally high and for different models even higher than the ground-truth annotations. Finally, finetuned models tend to outperform zero-shot prompted GPT in terms of automatic metrics but the validity of them for evaluating such models may be questioned.

2 Influence of grounding information

MathDial provides a large set of annotations that can be used to ground the responses of dialogue tutors trained on it. Table 4 shows results obtained with Flan-T5780M when giving different information. The results show that the step-by-step solution is crucial for the model. Question and incorrect solution are not as crucial but are also often repeated by student or teacher throughout the dialogue. Future work can explore this information in more detail to improve tutoring models.

3 Human Evaluation

Finally, we conduct a human evaluation according to three criteria: 1) Coherence: how coherent the teacher’s response is with respect to the preceding dialogue, 2) Correctness: whether it is in itself correct, and 3) Equitable tutoring. Equitable tutoring describes how well the model provides the student with room for exploring the problem and solution space. We use three expert annotators that each annotate n=50n=50 responses. We obtain agreements of κ=0.29\kappa=0.29, κ=0.69\kappa=0.69, and κ=0.34\kappa=0.34 for the three categories. We find that the ground-truth data that we have collected shows high scores in all three criteria which confirms its quality. Then, we find that small fine-tuned models perform much better in terms of correctness and equitable tutoring than a prompted large language model (ChatGPT), even though the latter is pretrained on much more data and has a significantly larger parameter count. This shows the importance of high-quality data for training meaningful tutors. The automatic metrics are only partially confirmed. For instance, Flan-T53B{}_{\text{3B}} is rated slightly better than Flan-T5780M{}_{\text{780M}} in correctness despite lower automatic scores.

4 Interactive Evaluation of Dialogue Tutors

Good tutoring models need to maintain high quality not only when viewed per-utterance but especially over an entire conversation. In order to assess this, we use them to tutor an InstructGPT student and measure their success (Success@k), as well as the rate of telling (Telling@k). The tutor models are used as outlined in the previous subsections and the student model uses the same settings as during data collection. We compare our Flan-T5780M model with a simple baseline that repeatedly asks “What is the next step?" (NextStep), ChatGPT, and the ground-truth conversations.

Figure 5 shows that NextStep has the lowest success rate, but never tells solutions by construction. ChatGPT, on the other hand, has a high success rate but also the highest rate of telling. This is a crucial shortcoming because high telling is counterproductive to effectively teach students. Flan-T5780M achieves a balance between the two and shows a similar amount of telling as the ground truth.

We note that the gap in success rate between Flan-T5780M and ChatGPT, at least in the initial steps, stems mostly from longer problems, as is evident from Figure 6. Overall, no model can match the success rate of the ground-truth annotations. This indicates a large room for future improvements and research.

Conclusion

We introduce a new framework for semi-synthetic dialogue dataset collection. We use it to collect a pedagogically rich dataset for tutoring math word problems that follow equitable tutoring practices and learning sciences research on scaffolding student understanding, called MathDial . Our dataset consists of ca. 3k tutoring conversations grounded in math word problems from GSM8k.

We benchmark open-source models on the task of tutor response generation and show that smaller models finetuned on our MathDial can significantly surpass the performance of much larger prompted LLMs. Moreover, in our proposed interactive tutoring simulation, the finetuned model achieves similar student-solving success as prompted LLM while keeping the direct telling rate lower. Nevertheless, models still require better reasoning over student solutions and better generalization to unseen problems.

Our dataset fills a crucial gap towards studying effective dialogue tutors at scale by providing a significantly larger amount of dialogues than other available corpora in one-on-one tutoring and provides a tough testbed towards better tutoring models. We hope that it can spark more research in this meaningful but understudied area of NLP.

Limitations

In this work, we used an LLM to simulate student confusion. However, we acknowledge that these models have a limited understanding of human learning and this is a key limitation in our dataset – certain kinds of student confusions may be under- or over-represented in our dataset. Future work can focus on addressing this limitation.

Furthermore, in our setup, teachers were interacting with an LLM role-playing as a student. However, it is possible that some teachers might have learned to interact with the student model in a different way than they would do in the classroom. Moreover, it is also possible that some teachers may have lost motivation when found out they are not interacting with real students, leading to lower data quality. In the future, we would like to explore solutions to build better LLM-based student models (Zhou et al., 2023).

The methodology to collect the dataset was instantiated just for the domain of math reasoning. The collection of additional domain-specific datasets is necessary to further generalize the effectiveness of our methodology.

Inspired by previous work in scaffolding, we acknowledge our focus is on a subset of common teaching moves. However, this does not cover all the goals of human tutors, such as meta-cognitive support or building rapport with a student. Moreover, text tutoring limits teachers’ use of additional instructional practices such as drawings.

Finally, measuring a student’s immediate success in solving a problem does not capture all the aspects of student learning. From a learning perspective, focusing on and measuring long-term learning is desired. Therefore, even if students struggle to answer a specific problem correctly, teachers asking scaffolding questions requiring conceptual understanding offer even better promise for deeper, wider, and more long-term learning.

Acknowledgements

This project was made possible by an ETH AI Center Doctoral Fellowship to Jakub Macina with further support from the Asuera Stiftung and the ETH Zurich Foundation. Nico Daheim has received funding by the German Federal Ministry of Education and Research and the Hessian Ministry of Higher Education, Research, Science and the Arts within their joint support of the National Research Center for Applied Cybersecurity ATHENE. Mrinmaya Sachan acknowledges support from the Swiss National Science Foundation (Project No. 197155), a Responsible AI grant by the Haslerstiftung; and an ETH Grant (ETH-19 21-1).

References

Appendix A Dataset statistics

For NCTE, uptake is calculated on the teacher-student dialogue pairs while bigram entropy is calculated on all teacher utterances. For TalkMoves and TSCC, bigram entropy is calculated on all teacher utterances having more than three words, while uptake is calculated on teacher utterances immediately following student utterances if both have more than three words.

Appendix B Problem and confusion selection

Q: Natalia sold clips to 48 of her friends in April, and then she sold half as many clips in May. How many clips did Natalia sell altogether in April and May?

A: Natalia sold 48/2 = <<48/2=24>>24 clips in May. Natalia sold 48+24 = <<48+24=72>>72 clips altogether in April and May. #### 72

Q: Weng earns $12 an hour for babysitting. Yesterday, she just did 50 minutes of babysitting. How much did she earn?

A: Weng earns 12/60 = <<12/60=0.2>>0.2 per minute. Working 50 minutes, she earned 0.2 x 50 = <<0.2*50=10>>10. #### 10

Of the problems in the GSM8k dataset, 56845684 problems were queried after eliminating problems with more than 5 steps in the solution. This yielded 2,3132,313 problems with at least one wrong solution. We then eliminated student solutions having fewer than 300300 characters (having too few characters makes it harder to pinpoint where exactly the error occurred) or more than 500500 characters (longer solutions require annotators to spend more time understanding the error), leaving us with 1,3791,379 wrong solutions. Finally, we eliminate problems where all 5050 or 4949 out of 5050 proposed solutions have the same (wrong) final answer, leaving us with our final set of 11311131 problems.

Appendix C Student model

We use InstructGPT (text-davinci-003) with the following prompt using temperature sampling with T=0.4T=0.4 and no top-k truncation:

Context: (STUDENT NAME) thinks their answer is correct. Only when the teacher provides several good reasoning questions, (STUDENT NAME) understands the problem and corrects the solution. (STUDENT NAME) can use a calculator and thus makes no calculation errors. Send EOM tag at the end of the student message.\n\n

C.2 Student characteristics

To build a dataset that would reflect students of various backgrounds, we use numerous student names associated with their given pronouns. List of all student characteristics based on prior work studying misconceptions in learning algebra Booth et al. (2017):

has a problem with understanding what steps or procedures are required to solve a problem.

has a problem with understanding underlying ideas and principles and a recognition of when to apply them.

struggle most with understanding what the problem is asking them to do.

has difficulty determining which pieces of information are relevant and which are irrelevant to solving the problem.

struggle to put the numbers in the correct order in the equation or determine the correct operation to use.

struggle to recognize the problem type and therefore do not know what strategy to use to solve it.

C.3 Common error cases

We manually screened some conversations and teacher feedback to understand common error cases of student model. The most common problem among them was the occurence of simple arithmetic errors (e.g. 7-2=9) and inconsistent student behaviour (e.g. student returning to the incorrect answer after figuring out the correct one in the previous utterance). These errors are captured in the teacher quality Likert scale rating of student behaviour. We acknowledge further analysis is needed to better understand the fine-grained student model behavior on problems with different numbers of steps e.g. by cognitive task analysis Koedinger and McLaughlin (2016).

Appendix D Data collection interface

We use Prolific for data collection and hire annotators with teaching experience. To ensure the data quality we filter only annotators with 100% completion rate with more than 500 total submissions. All the payments to the annotators exceeded the US federal minimum wage and the final batch of annotators were paid the equivalent of $12/hour. The data collection interface is shown in Figure 7. Annotators were restricted to having a maximum of five conversations in one annotation session. One conversation takes ca. 6 minutes. Data collection took place over a period of 2 months.

For each annotator, we randomly assign a student and math word problem. Teachers were instructed to first analyze the student homework solution and then start the conversation to scaffold student problem understanding. Post-conversation questionnaire is filled out by teachers to rate the conversation and get feedback on the type of student error.

As shown in Figure 8, the teacher first analyzes and compares the correct solution with the incorrect student solution (student confusion). The teacher marks the exact line of a first student error and categorizes the problem into the following categories:

Reached correct solution but proceeded further

Calculation error easily solved by a calculator

Tutoring conversation

Next, the teacher has a conversation (see Figure 7) with a student and uses scaffolding moves to help the student understand the problem. The conversation ends when the student correctly solves the problem or if the total conversation time exceeds 10 minutes.

Post conversation questionnaire

Teacher fills the post conversation questionnaire as shown in Figure 9.

D.2 Annotators training phase

We let annotators read best practices on how to have a productive conversation with students (cf. Section D.3 and D.4) and tested them on their understanding of our task afterwards. We started the data annotation with all the annotators able to successfully pass the test. Moreover, to improve the training phase we manually checked several conversations by each annotator in terms of the quality and usage of diverse scaffolding questions.

D.3 Annotation Guidelines

Teachers were instructed to have a one-on-one tutoring session with different 6th-grade students. They were told that students received a math word problem for homework and submitted their solutions beforehand. In a tutoring conversation, teachers were asked to go through the student’s solution and try to let the student understand using a series of sensemaking questions to support student reasoning and learning. Specifically, they were instructed to not just correct student solutions by telling what’s correct/incorrect, but to give students the opportunity to explore the problem with a focus on core aspects, such as their chosen strategy. However, as the goal is to focus on conceptual errors, they were allowed to let students use calculators or correct their arithmetic mistakes.

D.4 Teacher moves taxonomy

Table 2 refers to the details of teacher moves used during annotation. In summary, Focus comprises of all conversation elements that direct the student towards the solution without actually giving out any of the solution, while Probing attempts to develop reasoning skills and world knowledge relevant to the problem, but not necessarily specific to the given problem. Telling is giving out parts of the solution, either calculations or strategy or both. All other conversational elements, including trying to understand what the student has already tried, fall under Generic.

Most importantly, scaffolding questions that are productive for long-term learning are Focus and Probing. On the other hand, Telling represents giving out the partial or full answer to the student and should be mostly used when a student is stuck.

D.5 Background for teacher moves

Scaffolding Reiser (2004); Anghileri (2006) assists students to succeed in tasks that would otherwise be complex and differentiates between guidance (e.g. decomposing problem, clarifying) from cognitive activation (e.g. causing cognitive conflicts, activating prior knowledge Limón (2001)). The effective teacher moves to scaffold students’ understanding have been studied extensively by analyzing and annotating real human tutoring conversations Nye et al. (2014); VanLehn (2011). Experienced teachers can through natural language guide students’ focus and uncover misconceptions Nye et al. (2014). The teacher moves in the form of scaffolding to support student understanding by asking open-ended questions, activating their prior knowledge, or causing cognitive conflicts Limón (2001). A teacher asking scaffolding questions provides learning opportunities for students to actively construct their knowledge. However, at the same time asking only difficult questions could lead to a loss of learner motivation and potentially the end of the dialogue. On the other hand, only constantly revealing answers does not lead to long-term learning.

D.6 Postprocessing

As we are interested in real educational use cases for our tutoring system, we apply a safety filter to filter out conversations with any sensitive content. In particular, we use the Perspective APIhttps://perspectiveapi.com to filter out conversations containing toxic content (<1%).

D.7 Initial pilots

We initially explored two additional approaches of data collection: i) human-human conversations, and ii) synthetic generation by LLMs. The framework we used in the final data collection enables us to scalably create data since we are only reliant on one user who can quickly create entire conversations with the LLM, taking ca. 6 minutes per 7+ turn conversation. We found this more efficient and performant than both human-human conversations and synthetic data generation. Specifically, the human-to-human collection is too time-consuming (on average 15 minutes per conversation in our pilot experiments) and requires waiting times to synchronously connect participants Choi et al. (2018), and synthetic generation has proven to be error-prone (see example in Figure 10); for example, models fail to understand student solutions and themselves make arithmetic errors that are not expected from teachers.

Appendix E Interactive evaluation of tutoring

The student model in all 3 cases is an InstructGPT model (text-davinci-003) as defined in Section C.1, with the student name fixed to “Kayla". The first utterance of the teacher is hardcoded to “Hi Kayla, could you walk me through your solution?". For Flan-T5780M teacher model decoding, we used sampling without a beam search. For the ChatGPT teacher model (gpt-3.5-turbo), the following prompt is used: A tutor and a student work together to solve the following math word problem.\n

The correct solution is as follows: (CORRECT SOLUTION)\n

Your role is tutor. The tutor is a soft-spoken empathetic person who dislikes giving out direct answers to students and instead likes to answer with other questions that would help the student understand the concepts so students can solve the problem themselves.

Appendix F Human Evaluation Protocol

The following dimensions were rated by annotators:

Coherence - ”The response naturally follows up on the previous utterance and context and has no logical conflicts with the context.”

Correctness - ”The response is factually and mathematically correct and respects the learning concepts being taught.”

Equitable tutoring - ”The response gives a learning opportunity for the student by providing space for reflection, explanation, pointing to follow-up challenge, or engaging the student in other ways.

We use a 3-point Likert scale ranging from 1 (poor) and 3 (very good) for coherence and equitable tutoring and a binary scale for correctness.

ChatGPT prompt is the same as in the interactive tutoring scenario (Section E) with an additional section containing student solution.