Open-ended Knowledge Tracing for Computer Science Education
Naiming Liu, Zichao Wang, Richard G. Baraniuk, Andrew S. Lan
Abstract
In educational applications, knowledge tracing refers to the problem of estimating students' time-varying concept/skill mastery level from their past responses to questions and predicting their future performance.One key limitation of most existing knowledge tracing methods is that they treat student responses to questions as binary-valued, i.e., whether they are correct or incorrect. Response correctness analysis/prediction is straightforward, but it ignores important information regarding mastery, especially for open-ended questions.In contrast, exact student responses can provide much more information.In this paper, we conduct the first exploration int open-ended knowledge tracing (OKT) by studying the new task of predicting students' exact open-ended responses to questions.Our work is grounded in the domain of computer science education with programming questions. We develop an initial solution to the OKT problem, a student knowledge-guided code generation approach, that combines program synthesis methods using language models with student knowledge tracing methods. We also conduct a series of quantitative and qualitative experiments on a real-world student code dataset to validate and demonstrate the promise of OKT.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
6 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Tree-Based Representation and Generation of Natural and Mathematical Language cites Language Models are Few-Shot Learners
- KASER: Knowledge-Aligned Student Error Simulator for Open-Ended Coding Tasks cites Language Models are Few-Shot Learners
- SMART: Simulated Students Aligned with Item Response Theory for Question Difficulty Prediction cites Language Models are Few-Shot Learners
Cited by top-tier papers6
- Tree-Based Representation and Generation of Natural and Mathematical LanguageAlexander Scarlatos, Andrew S. LanACL 2023 · 13 citations
- KASER: Knowledge-Aligned Student Error Simulator for Open-Ended Coding TasksZhangqi Duan, Nigel Fernandez, Andrew LanACL 2026 · 5 citations
- SMART: Simulated Students Aligned with Item Response Theory for Question Difficulty PredictionAlexander Scarlatos, Nigel Fernandez, Christopher Ormerod, Susan Lottridge et al.EMNLP 2025
- A Good Plan is Hard to Find: Aligning Models with Preferences is Misaligned with What Helps UsersNishant Balepur, Matthew Shu, Yoo Yeon Sung, Seraphina Goldfarb-Tarrant et al.EMNLP 2025
- CSG: Cognitive Structure Generation for Intelligent EducationHengnian Gu, Zhifu Chen, Yuxin Chen, Jin Zhou et al.ICML 2026
Builds on2
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- No Task Left Behind: Multi-Task Learning of Knowledge Tracing and Option Tracing for Better Student AssessmentSuyeong An, Junghoon Kim, Minsam Kim, Juneyoung ParkAAAI 2022 · 22 citations
Related papers
- Automated Knowledge Component Generation and Interpretable Knowledge Tracing in Coding ProblemsZhangqi Duan, Nigel Fernandez, Arun Balajiee Lekshmi Narayanan, Mohammad Hassany et al.ACL Findings 2026 · 1 citation
- Knowledge Tracing in Programming Education Integrating Students' QuestionsDoyoun Kim, Suin Kim, Yohan JoACL 2025
- Interpretable Knowledge Tracing with Multiscale State RepresentationJianwen Sun, Fenghua Yu, Qian Wan, Qing Li et al.WWW 2024 · 41 citations
- Tracing Knowledge State with Individual Cognition and Acquisition EstimationTing Long, Yunfei Liu, Jian Shen, Weinan Zhang et al.SIGIR 2021 · 105 citations
- Leveraging LLM and Multiscale Knowledge States to Improve Knowledge Tracing in Programming TasksMingxing Shao, Tiancheng Zhang, Yifang Yin, Wenhui Wu et al.WWW 2026
