arXiv:2610.08778cs.AIOct 2026

Manuscript Offprint

arXiv:2610.08778

Sherpa: Teaching LLMs to Teach Adaptively

Weixian Xu, Yanzhe Zhang, Zora Zhiruo Wang, Changyu Chen, Diyi Yang

Weixian Xu ∗^{*}

Stanford University

weixianx@stanford.edu

Yanzhe Zhang

Georgia Tech

z_yanzhe@gatech.edu

Zora Zhiruo Wang

Carnegie Mellon University

zhiruow@cs.cmu.edu

Changyu Chen

Stanford University

chency@stanford.edu

Diyi Yang

Stanford University

diyiy@stanford.edu

ABSTRACT

Large language models (LLMs) have become increasingly capable problem solvers, but being able to solve a problem is not the same as being able to teach it. Existing approaches to training LLMs as teachers rely on demonstrations, preference data, or predefined pedagogical criteria that specify what good teaching looks like. However, these signals are often not grounded in individual student learning outcomes, where effective teaching strategies can vary substantially across learners. To address this, we introduce SHERPA 1^{1}, a multi-turn reinforcement learning framework that instantiates multiple student archetypes with LLMs conditioned on distinct learning preferences and trains a teacher model to adapt its instruction by directly maximizing their learning outcomes. Teacher LLMs trained with SHERPA improve instructed students' performance across all archetypes by an average of 20.5 percentage points. Under MathTutorBench's evaluation, SHERPA raises the overall pedagogy score from 52.5% to 79.2%, indicating better teaching responses. Our human studies show that the trained teacher is preferred over the base model in 79.6% of pairwise comparisons. Together, SHERPA trains LLM teachers to adapt to diverse simulated students and become better aligned with human teachers, paving the road towards AI tutors teaching real students. 2^{2}

1 INTRODUCTION

Large language models (LLMs) have advanced rapidly, achieving strong capabilities in mathematical reasoning and code generation (Yang et al., 2024; Hui et al., 2024). Solving a problem, however, is different from teaching someone else to solve it. Srinivasa et al. (2025) finds that none of the 16 evaluated frontier models scores above 56% against its expert-written tutoring rubrics, while Macina et al. (2025) shows that strong problem-solving ability does not directly translate into effective teaching. This gap matters for human learners: studies of general-purpose AI use have raised concerns that receiving effective task assistance does not necessarily translate into learning, and may even reduce cognitive engagement or subsequent independent performance (Kosmyna et al., 2025; Bastani et al., 2025). LLMs may thus erode learners' agency rather than help preserve it. Developing models that help people learn to think and solve problems independently is therefore increasingly important, beyond improving individual dimensions of teaching skill.

One approach to AI-assisted learning is to build educational systems around existing LLMs, injecting human-designed pedagogical strategies through prompts or external scaffolding (Chen et al., 2024; Puech et al., 2024). Such systems can provide useful instructional structure, but they primarily shape the model's behavior at inference time. To develop teaching as an intrinsic capability of the model itself, a growing body of work instead trains LLMs specifically as teachers. Supervised fine-tuning and preference optimization came first, but they rely on the quality and coverage of instructional demonstrations or preference data (Macina et al., 2023; Scarlatos et al., 2025). More

∗^{*}Project done while Weixian Xu is visiting Stanford.

1^{1}Named after the Sherpa people, renowned Himalayan mountaineering guides, our framework aims to enable language models to help people reach new heights through learning.

2^{2}Code and model are available at https://github.com/SALT-NLP/Sherpa.

recent work has turned to reinforcement learning so that teachers can learn from their own interactions with simulated students (Dinucu-Jianu et al., 2025; Chang et al., 2026). Yet these approaches share a fundamental limitation: their training signals encode predefined notions of what good teaching looks like, rather than being grounded directly in diverse students' learning outcomes. In practice, students differ in their preferences and needs, and effective teaching cannot be fully specified without accounting for this heterogeneity.

To close this gap, we introduce SHERPA, a multi-turn reinforcement learning framework that trains a teacher to improve student task-solving across diverse student archetypes. In this work, we train through interactions with language-model students and use pairwise comparisons from human teachers to assess whether the learned teaching behavior aligns with human judgments of effective teaching. Rather than predefining what constitutes good teaching, SHERPA separates pedagogical specification from teacher optimization: diverse instructional needs are instantiated on the student side, while the teacher is optimized based on student improvement. Each teaching episode follows a preparation-tutoring-testing cycle: given a problem, the teacher first prepares a solution, tutors the student over multiple turns of interaction, and is rewarded based on the student's improvement at test time. However, student models exhibit similar preferences for instructional strategies even after prompting or across model families, making them insufficiently diverse as archetypes for our environment. We therefore design a gating mechanism that makes instructional strategies consequential: guidance that meets the student's preference passes the gate and is forwarded to the student backbone model to elicit substantive reasoning, whereas incompatible guidance is blocked and receives feedback requesting more appropriate instruction. The teacher must therefore infer each student's needs from interaction and adapt its teaching accordingly. In this way, SHERPA allows diverse teaching behaviors to emerge while keeping the optimization objective simple and outcome-based.

We identify six important student learning preferences from education literature and initiate corresponding student archetypes using Qwen3-1.7B (Yang et al., 2025) as the backbone model, and train a Qwen3-8B (Yang et al., 2025) teacher to help students on MATH problems (Hendrycks et al., 2021). SHERPA improves final test accuracy across all student archetypes, including those unseen during training, increasing average student performance by 20.5 percentage points. Moreover, these gains transfer to unseen data and settings: on MathTutorBench (Macina et al., 2025), our training raises the overall pedagogy score from 52.5% to 79.2%, outperforming PedagogicalRL (Dinucu-Jianu et al., 2025) on all four pedagogical metrics and achieving the highest average pedagogy score among the evaluated models. Our human study shows that the trained teacher is preferred over the base model in 79.6% of pairwise comparisons. Finally, we compare different student archetype designs and show that our design effectively elicits the student behaviors needed for our training environment compared to baselines. We further ablate different reward designs and show that a simple optimization objective substantially improves generalization.