pyCD: A Unified Benchmark for Reliable Evaluation of Cognitive Diagnosis Models
Youheng Bai ⋅ Xueyi Li ⋅ Tengteng Cheng ⋅ Mingliang Hou ⋅ Teng Guo ⋅ Jiaqi Zheng ⋅ Zitao Liu
Abstract
Cognitive diagnosis (CD) infers students' mastery of knowledge components (KCs) from their responses, supporting personalized feedback and exercise recommendation. Cognitive diagnosis models (CDMs) are usually ranked by response-prediction AUC under varying protocols across papers, while their KC-level mastery profiles receive little systematic evaluation. \rev{We introduce \texttt{pyCD}, a unified benchmark that runs 12 CDMs on 7 public datasets under standardized preprocessing, splits, hyperparameter search, and stopping rules, and evaluates KC-level mastery estimates alongside prediction with the Degree of Agreement (DOA). Two findings show that response-prediction AUC alone is an incomplete basis for comparing CDMs.} First, the AUC gaps narrow under protocol control: the per-dataset best non-IRT CDM improves over IRT by only $0.017$ in AUC on average, while removing early stopping shifts individual model--dataset results by up to $0.13$. Second, on 5 of the 6 datasets other than XES3G5M the top-AUC model falls outside the DOA top three (per-dataset Spearman $\rho$ between AUC and DOA ranks: $-0.32$ to $0.19$), and on Junyi, zero-shot LLMs given only exercise titles correlate with human difficulty ratings more strongly than CDMs’ learned difficulty parameters ($\rho \approx 0.58$ vs.\ $0.17$--$0.21$). CDM evaluations should therefore assess KC-level outputs alongside prediction;} \texttt{pyCD} provides a unified protocol for doing so. We open-source \texttt{pyCD} at \url{https://pycd.io}.
Successful Page Load