MathCD: A Benchmark Dataset for Cognitive Diagnosis with Semantic Information

Xueyi Li, Youheng Bai, Tengteng Cheng, Mingliang Hou, Teng Guo, Jiaqi Zheng, Yongdong Wu, Zitao LiuNeurIPS 2026 Evaluations and Datasets Track Poster 2026

TL;DR

Cognitive diagnosis (CD) models try to figure out what a student knows by looking at their past homework—much like a tutor spotting where a student is stuck. Until now, most CD datasets have only recorded anonymous IDs and right/wrong labels, hiding the actual content of the problems. This paper introduces MathCD, a K-12 math dataset packed with problem text, knowledge concepts, difficulty levels, and actual student responses, showing that semantic context boosts traditional CD models while revealing that foundation LLMs still struggle to diagnose students reliably without task-specific adaptation.

What Problem Does This Paper Address?

Imagine trying to tutor a student when your only record says: "Student 12 got Exercise 23 wrong." You have no idea what Exercise 23 asked, whether it tested fractions or geometry, or if the student made a silly arithmetic slip versus a deep conceptual error.

That is the exact bottleneck in Cognitive Diagnosis (CD) research today. Most existing CD datasets represent students, exercises, and knowledge concepts (KCs) as discrete, meaningless identifiers paired with binary correctness labels (0 or 1). This "ID-only" setup prevents researchers from building semantic-enhanced CD models and makes it impossible to test whether modern large language models (LLMs) can actually understand educational content and student learning behaviors.

Figure 1: Illustration of the CD task.

Methods

The authors use MathCD to benchmark two very different worlds of AI:

  1. Traditional & Neural CD Models: They evaluate 9 established CD models—ranging from classic psychometric models (DINA, IRT, MIRT) to modern neural and graph-based approaches (NeuralCDM, RCD, HyperCDM, ORCDF, KSCD, KaNCD)—using 5-fold cross-validation. They then run an ablation study on three representative models (IRT, KaNCD, and KSCD) by injecting semantic text embeddings (from question text and KC descriptions) using two fusion strategies: addition and concatenation.
  2. Foundation LLMs: They test 5 major LLMs (Gemma-4-26B-A4B, Qwen3.5-35B-A3B, Qwen3.5-397B-A17B, GPT-5.4, and Claude-Opus-4.6) in a prompt-based, zero-shot setting (temperature 0.1) across three tasks: predicting whether a student will answer a question correctly, predicting which multiple-choice option they will pick, and judging which of two exercises is more difficult.

Datasets

The authors introduce MathCD, built from real-world interaction logs on TAL Education Group's intelligent tutoring system. After filtering out incomplete records and students with fewer than 15 interactions, MathCD comprises 2,197 students, 46,425 exercises, 3,257 KCs, and 106,212 interactions across three subsets:

  • Grade3: 3rd-grade math (translated into English).
  • Math50k: 4th- and 5th-grade math (Chinese).
  • MidMath: 7th-grade math (Chinese).

Unlike existing benchmarks (such as ASSIST09, Junyi, or XES3G5M), MathCD is the first CD dataset to collectively provide exercise text, KC text, answer text, student response text, exercise type, and 5-level difficulty labels.

Figure 2: An example with semantic information in MathCD.

Key Insights and Ideas

  • Semantics help, but how you fuse them matters: Adding textual semantics to CD models generally improves performance, but additive fusion consistently beats concatenation—in fact, concatenating semantic embeddings actually hurts KSCD's performance compared to its ID-only baseline.
  • More history doesn't always help LLMs: Traditional CD models get better when given longer student histories. Foundation LLMs, however, often get worse or noisier when fed more past interactions (with MidMath being the main exception), suggesting they struggle to extract clean knowledge-state signals from raw, long interaction logs.
  • LLMs grasp coarse difficulty, not fine-grained nuances: In pairwise difficulty comparisons, all 5 LLMs beat the trivial position-only baseline, proving they read actual difficulty signals from the text. However, they perform best when the difficulty gap is large ($\Delta_3$) and struggle when two problems are close in difficulty ($\Delta_1$).

Key Results

  • Identifier-based CD: Neural models clearly outperform classic psychometric models. KSCD achieves the highest AUC across all three subsets (0.7397 on Grade3, 0.7263 on Math50k, 0.7378 on MidMath), while KaNCD often leads in RMSE and Degree of Agreement (DOA).
  • Semantic-enhanced CD: Incorporating semantic embeddings pushes KaNCD to AUCs of 0.7426 (Grade3), 0.7311 (Math50k), and 0.7574 (MidMath), matching or beating the best identifier-only models.
  • Foundation LLMs: Predicting a student's exact multiple-choice option is substantially harder than binary correctness prediction, and overall LLM performance remains unstable without task-specific fine-tuning.

Limitations and Future Work

  • Data Imbalance: Like real-world classrooms, MathCD has right-skewed interaction histories and an imbalanced difficulty distribution (most exercises are easy-to-moderate, with very few at level 5).
  • No Cold-Start Evaluation: Experiments followed the standard interaction-level split and did not test generalization to completely unseen students, exercises, or KCs.
  • Zero-Shot LLM Limits: LLMs were only evaluated via prompting without fine-tuning, and the authors did not include controlled ablations (like shuffling student histories) to verify how much LLMs actually rely on student-specific context. Future work can use MathCD to fine-tune LLMs for CD, analyze student misconceptions, and build distractor-aware diagnostic models.

Summary updated

BibTeX
@inproceedings{li2026mathcd,
  author = {Xueyi Li and Youheng Bai and Tengteng Cheng and Mingliang Hou and Teng Guo and Jiaqi Zheng and Yongdong WU and Zitao Liu},
  title = {{MathCD: A Benchmark Dataset for Cognitive Diagnosis with Semantic Information}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=XhTjbnmlac},
}
Figure