TL;DR
This paper investigates whether Large Language Models (LLMs) "mentalize" – reason about a learner's knowledge – when teaching, or if they rely on simpler heuristics. Using a controlled graph-teaching task, they found most LLMs act like "Bayes-Optimal Teachers," suggesting sophisticated reasoning, but surprisingly, lightweight scaffolding prompts that help humans don't improve LLM teaching and can even hinder it.
What Problem Does This Paper Address?
As LLMs are increasingly integrated into education as tutors, understanding how they teach is crucial. While many studies focus on if LLMs improve learning outcomes, this paper delves into the underlying teaching strategy. Specifically, it asks whether LLMs, when tasked with helping a learner navigate a reward-annotated graph, employ a model-based approach (inferring the learner's knowledge and choosing the most informative piece of information to reveal) or a model-free approach (using simpler rules of thumb based on environmental cues like rewards). This distinction is important because if LLMs rely on heuristics, their deployment as tutors might require more robust scaffolding and monitoring. Conversely, if they exhibit model-based reasoning, their teaching capacity could be further leveraged.
Methods
The researchers adapted the "Graph Teaching task," a controlled experiment previously used to study human teaching strategies. In this task:
- Environment: A directed acyclic graph where nodes have reward values.
- Learner: An agent that traverses the graph, choosing paths it believes are optimal based on its partial knowledge of the graph's edges.
- Teacher (LLM): Observes the learner's chosen path and knows the full graph structure. The teacher's goal is to reveal a single edge that, if the learner were to replan with this new information, would lead to a higher total reward.
To analyze LLM behavior, the researchers employed a cognitive modeling approach:
- Cognitive Models: They fitted several models to the LLMs' trial-by-trial choices, mirroring those used for human participants. These included:
- Bayesian Teacher Models: The "Bayes-Optimal Teacher" (BOT) infers the learner's knowledge state and chooses the edge that maximizes expected teaching utility. Variants like "No Inverse Planning" and "Prior-only" were also tested.
- Heuristic Models: Simple baselines like the "Reward Heuristic" (scoring edges by endpoint rewards) and "Depth Heuristic" (prioritizing lower edges).
- Non-mentalizing Utility Models: Models that compute edge utility without explicitly representing a learner's knowledge.
- Model Fitting: Parameters for each model were fit using maximum likelihood, and models were compared using Bayesian Information Criterion (BIC) scores to determine the best fit for each LLM's behavior.
- Scaffolding Intervention: A separate experiment tested the effect of auxiliary prompts designed to guide LLMs towards specific strategies (Inference Scaffolding, Reward Scaffolding) during training, followed by test trials without scaffolding.
Datasets
The study did not introduce new datasets. Instead, it utilized the stimulus sets and trial structures from human experiments previously conducted by Harootonian et al. (2025). These consist of various "graph configurations" designed to probe different aspects of teaching difficulty and strategy.
Key Insights and Ideas
- LLMs as "Bayes-Optimal Teachers": Most LLMs in the baseline experiment performed well and were best described by the Bayes-Optimal Teacher model, suggesting they are capable of sophisticated, learner-model-based teaching strategies. This contrasts with human data, which shows a more pronounced mixture of mentalizing and heuristic strategies.
- Scaffolding Disconnect: Surprisingly, lightweight scaffolding prompts (e.g., asking the LLM to identify edges the learner might not know) that successfully shift human teaching strategies did not reliably improve LLM teaching performance. In some cases, they even reduced performance.
- Prompt Compliance vs. Effective Teaching: LLMs can follow scaffolding instructions (e.g., identifying relevant edges), but this compliance doesn't necessarily translate into better teaching decisions. This suggests the auxiliary step might be treated as a separate instruction-following task rather than an integrated part of the teaching strategy.
- Resource Rationality and LLMs: The authors speculate that LLMs, unlike humans, might not face the same cognitive "cost" for complex reasoning. This could explain why they appear more consistently "model-based," as their computational architecture might not inherently favor simpler heuristics when complex ones are feasible.
Key Results
- Baseline Performance: Most LLMs achieved high "Teaching Scores" (a measure of expected teaching utility), indicating effective teaching. Their performance was stable across trials and modulated by graph difficulty in a way that mirrored human patterns.
- Model Fits: The Bayes-Optimal Teacher model provided the best fit for the majority of LLM teachers in the baseline experiment. Heuristic and non-mentalizing models were less competitive for LLMs compared to humans.
- Scaffolding Impact:
- LLMs successfully performed the auxiliary scaffolding steps (e.g., identifying edges related to inference or reward).
- However, test performance did not improve after Inference Scaffolding, and Reward Scaffolding sometimes led to worse performance.
- The "congruency effect" (where training on heuristic-aligned graphs affects test performance) seen in humans was inconsistent in LLMs.
- Model fits at test showed that the Bayes-Optimal Teacher remained a better fit, even after scaffolding, suggesting no broad shift towards heuristic strategies.
Limitations and Future Work
- Distinguishing Genuine Mentalizing: The authors acknowledge that strong fits to a mentalizing model don't definitively prove LLMs are performing human-like mental state inference. They could be using high-capacity heuristics that mimic optimal behavior. Future work could involve more diagnostic tests (e.g., adversarial graphs, out-of-distribution learner policies) to probe this.
- Cost-Sensitivity of LLMs: The paper suggests that future work could explore how manipulating test-time constraints (latency, token budgets) might influence LLM strategy selection, potentially revealing cost-sensitive behavior akin to human resource rationality.
- Scaffold Design: The findings highlight the need for scaffolds that are tightly coupled to the LLM's action-selection process, rather than just auxiliary instruction-following tasks, to effectively improve pedagogical decisions.
- Generalizability: The study uses a specific, controlled task. Further research is needed to see if these findings generalize to more open-ended tutoring scenarios.
Summary updated