Abstract
Large language models (LLMs) built on existing reinforcement learning with human feedback (RLHF) frameworks typically optimize responses based on immediate turn-level human preferences. However, this approach falls short in multi-turn dialogue settings, such as online math tutoring. We propose a method to enhance LLM-based tutors by representing the dialogue history with a lower-dimensional latent state representation of a student and optimizing a long-term policy to determine high-level actions based on the latent state. The goal is to better align the tutor's behavior with the long-term objective of guiding the student towards solving a target math problem on their own. Our model is lightweight, requiring less computational resources than prior work of training the tutor policy end-to-end to directly output the tutor's next utterance. Our experiment results demonstrate that these modifications lead to improved long-term outcomes compared to prompting in LLM-simulated tutoring tasks.
Introduction
Most Large Language Models (LLMs) today are aligned using Reinforcement Learning from Human Feedback (RLHF), which typically optimizes for the most "preferred" response in a single turn. While this makes models polite and helpful in the short term, it is often sub-optimal for goal-directed, multi-turn interactions like tutoring. In a tutoring scenario, the "best" immediate response might be to give the student the answer. However, the long-term goal is for the student to solve the problem themselves. A greedy, turn-level approach fails to account for these long-term pedagogical objectives. Furthermore, training LLM policies end-to-end at the token level is computationally expensive and often results in "black box" behaviors that are difficult for system designers to interpret or control.
Methodology
The authors propose a four-step decomposition of the tutoring problem to make RL both efficient and interpretable:
- Latent State Representation: Instead of feeding the entire raw text history into an RL agent, they use an LLM (Claude 3 Sonnet) to extract a 25-dimensional vector. This vector represents features like student sentiment, "math density," whether the student asked a question, and if they made a mistake.
- High-Level Action Space: The RL policy doesn't generate text directly. Instead, it chooses from four discrete high-level actions: Instruct, Encourage, Refocus, or Ask a question.
- Offline RL (CQL): They use Conservative Q-Learning (CQL) to train a policy on static datasets. Because the state and action spaces are so small, this training can be done efficiently without massive GPU resources.
- Optimism-Guided Data Augmentation: To improve the policy, they identify "promising" actions (those with high predicted Q-values that weren't taken in the original data) and use an LLM to simulate how the conversation would have unfolded if those actions had been chosen.
Finally, a separate LLM acts as the "voice" of the tutor, generating a natural language response conditioned on the dialogue history and the high-level action selected by the RL policy.
Experimental Setup
The model was evaluated using a combination of synthetic and real-world datasets:
- Synthetic Dialogues: 3,000 simulated conversations between an AI tutor and a student on SAT-level math problems, generated using Claude 3 Sonnet.
- CoMTA Dataset: Used examples from Khan Academy’s CoMTA dataset to make the synthetic dialogues more realistic.
- GSM8K: Used for testing the model's ability to generalize to new, unseen math problems.
- Augmented Dataset ($D^+$): An additional 2,500 samples generated via the "optimism-guided" exploration strategy.
Key Insights and Results
The proposed method (CQL+) achieved a 82.83% success rate in the simulated tutoring task, significantly outperforming standard prompt engineering and behavioral cloning. CQL on the augmented data performed substantially better than CQL on the original data (~74.64%), proving the value of their exploration strategy.
Analysis showed that the RL-optimized tutor learned to rely less on direct "instruction" and more on "encouragement" and "questioning" compared to baseline models, mirroring effective human pedagogical strategies. This study confirms that abstraction is efficient: by moving the RL optimization from the token level to a "latent state to high-level action" level, the authors reduced a massive computational problem into one that is lightweight and manageable. While compressing a dialogue into 25 dimensions loses some nuance, the gain in strategic planning (looking multiple turns ahead) far outweighs the loss for goal-oriented tasks.
Conclusion
The study demonstrates that prompt-engineered LLMs often fall into a "greedy trap"—being too helpful too soon—which prevents the student from reaching the long-term goal of independent problem-solving. While the current tutor is limited to only four high-level actions, future work could explore a more fine-grained taxonomy of teaching strategies. Additionally, the evaluation relied on a simulated student; real-world student behavior is more unpredictable, and the model needs testing in actual classrooms. Generalization to entirely different types of math problems (GSM8K) remains a challenge, suggesting that training on a wider variety of problems or developing problem-agnostic state representations is a necessary next step.
Summary updated