Constructing a Question-Answering Simulator through the Distillation of LLMs

Haipeng Liu, Ting Long, Jing Fu

Abstract

Training Educational Recommendation Systems (ERS) on real students is inherently risky and slow, as undertrained models may provide discouraging or harmful suggestions. This paper introduces LDSim, a question-answering simulator designed to serve as a high-fidelity "digital twin" for students. By distilling the high-level reasoning and domain knowledge of Large Language Models (LLMs) into a lightweight neural network, LDSim achieves the predictive accuracy of state-of-the-art LLMs while maintaining the speed required for real-time reinforcement learning. Experimental results across four major educational benchmarks demonstrate that LDSim outperforms both traditional LLM-free models and direct LLM-based agents in both accuracy and computational efficiency.

Introduction

Educational Recommender Systems (ERS) aim to personalize learning by suggesting the most effective next question for a student. However, developing these systems requires massive amounts of interaction data. Training directly on human subjects is problematic: a "clueless" recommender in the early stages of training can frustrate students with inappropriate content, potentially hindering their actual learning progress.

Conceptual overview of training environments and knowledge tracing tasks.

To mitigate this, researchers utilize Question-Answering (QA) Simulators. As shown in Figure 1, simulators provide a SAFE environment (a) compared to the RISK of direct student interaction (b). Current simulators generally fall into two categories: LLM-free methods (e.g., RNNs or Transformers), which are fast but lack semantic understanding, and LLM-based methods, which are accurate but prohibitively slow and expensive for the iterative nature of reinforcement learning. LDSim bridges this gap by distilling LLM "intelligence" into a small, deployable model capable of multi-step knowledge tracing (c).

Methodology

LDSim employs a three-pronged distillation strategy to extract specialized knowledge from a teacher LLM (specifically GLM-4-Flash):

1. Knowledge Distillation (KD) Module

Traditional models treat educational concepts as arbitrary IDs. LDSim prompts the LLM to identify prerequisite relationships between concepts (e.g., mastering "addition" before "multiplication"). This information is used to construct a Concept Relation Graph, providing the simulator with a semantic map of the domain.

2. Reasoning Distillation (RD) Module

The RD module uses the LLM to analyze a student's history and infer their mastery levels (0-100) for various concepts. Crucially, the authors employ the LLM to generate pseudo-QA records. These synthetic records allow the model to learn how a student might have performed on questions they never actually encountered, providing a much richer training signal than raw historical data alone.

3. Simulation Module (Sim)

This is the lightweight core of LDSim. It utilizes a Graph Attention Network (GAT) to process the Concept Relation Graph and a multi-head attention mechanism to track the student's evolving learning state. The module is trained to replicate the mastery levels and response predictions generated by the teacher LLM, resulting in a model that is both semantically aware and computationally efficient.

Key Results and Discussion

LDSim was evaluated on four major datasets: Junyi, Assist09, Assist12, and Algebra. The results highlight several critical advantages:

  • Superior Accuracy: LDSim outperformed 10 baseline models, including both LLM-free and fine-tuned LLM approaches. It showed a 2% to 20% improvement in prediction accuracy (ACC) and Area Under Curve (AUC). Interestingly, LDSim often outperformed its own teacher LLM, suggesting that the distillation process acts as a filter, removing "general" noise and focusing the model on domain-specific reasoning patterns.
  • Massive Speedup: In a 30-step simulation task, LDSim required only 0.73 seconds, whereas the LLM-based Agent4Edu took over 50 minutes. This speed is essential for the thousands of iterations required in reinforcement learning loops.
  • Resource Efficiency: LDSim is significantly lighter than fine-tuned LLMs, requiring only 170MB of GPU memory compared to 2338MB for LLM-based alternatives. This makes it practical for deployment on standard hardware.

Conclusion

LDSim demonstrates that the reasoning capabilities of Large Language Models can be successfully distilled into lightweight architectures for specialized educational tasks. By combining semantic awareness with high-speed execution, LDSim provides a viable path for training sophisticated recommendation systems without risking student engagement. Future work will explore the application of this distillation framework to less hierarchical subjects and its direct integration into real-time reinforcement learning pipelines.

Summary updated

Abstract

The question-answering (QA) simulator is a model that mimics real student learning behaviors and predicts their correctness of their responses to questions. QA simulators enable educational recommender systems (ERS) to collect large amounts of training data without interacting with real students, thereby preventing harmful recommendations made by an undertrained ERS from undermining actual student learning. Given the QA history, there are two categories of solutions to predict the correctness, conducting the simulation: (1) LLM-free methods, which apply a traditional sequential model to transfer the QA history into a vector representation first, and make predictions based on the representation; (2) LLM-based methods, which leverage the domain knowledge and reasoning capability of LLM to enhence the prediction. LLM-free methods offer fast inference but generally yield suboptimal performance. In contrast, most LLM-based methods achieve better results, but at the cost of slower inference speed and higher GPU memory consumption. In this paper, we propose a method named LLM Distillation based Simulator (LDSim), which distills domain knowledge and reasoning capability from an LLM to better assist prediction, thereby improving simulation performance. Extensive experiments demonstrate that our LDSim achieves strong results on both the simulation task and the knowledge tracing (KT) task. Our code is publicly available at https://anonymous.4open.science/r/LDSim-05A9.
BibTeX
@misc{liu2025constructing,
  author = {Haipeng Liu and Ting Long and Jing Fu},
  title = {{Constructing a Question-Answering Simulator through the Distillation of LLMs}},
  year = {2025},
  eprint = {2509.09226},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.09226},
}
Figure