Semantic-tailored Variational-Contrastive Graph Learning for Cognitive Diagnosis

Chenao Xia, Fei Liu, Zihan Wang, Zhuangzhuang He, Pengyang Shao, Haowei Zhou, Yonghui Yang

TL;DR

This paper introduces SVGCD, a novel approach to cognitive diagnosis that uses semantic-aware graph learning and variational contrastive methods to improve student performance prediction, especially in data-scarce scenarios. By reconstructing student-exercise graphs based on response semantics and employing a tailored contrastive learning strategy, SVGCD effectively addresses limitations of existing methods that can distort graph structures or ignore crucial response-level differences.

What Problem Does This Paper Address?

Cognitive Diagnosis (CD) is crucial for intelligent education, aiming to accurately assess students' understanding of knowledge concepts. Graph Neural Networks (GNNs) have shown promise by modeling complex relationships between students, exercises, and concepts. However, a significant challenge in CD is data sparsity, where students have very few response logs, leading to poor diagnostic performance. Existing self-supervised methods, particularly Graph Contrastive Learning (GCL), attempt to mitigate this but suffer from two key issues:

  1. Distortion of the Student-Exercise Graph: Some GCL methods rely on randomly dropping edges to create different views of the graph. This can disrupt the inherent relationships and semantic integrity of the student-exercise graph, potentially leading to inaccurate student modeling.
  2. Ignoring Semantic Heterogeneity: Student responses can be categorized as correct or incorrect, each carrying distinct semantic information. Current GCL approaches often fail to adequately consider this difference, potentially leading to conflicting signals when trying to align representations from different semantic environments (correct vs. incorrect responses).

This paper aims to address these limitations by proposing a method that preserves graph structure while explicitly handling semantic differences in student responses.

Methods

The proposed method, Semantic-tailored Variational-Contrastive Graph Cognitive Diagnosis (SVGCD), introduces several novel components:

  • Semantic-aware GNN Layer: SVGCD first segments the student-exercise graph into two subgraphs: one for correct responses (G(+)) and one for incorrect responses (G(-)). A semantic-aware GNN is then applied to each subgraph independently to learn representations that capture the specific semantics of correct and incorrect interactions. These representations are then fused.
  • Semantic-specific Variational Graph Reconstruction (VG): To address the graph distortion issue, SVGCD employs a variational approach. Instead of randomly altering the graph, it uses a variational encoder to infer the probability distributions of node representations within each semantic subgraph. A graph reconstruction decoder then reconstructs these subgraphs while preserving the original topology but adjusting edge weights. This process generates contrastive views without damaging the intrinsic graph structure.
  • Semantic-specific Contrastive Learning (SCL): To handle semantic heterogeneity, SVGCD uses a "divide-and-conquer" strategy. It generates contrastive views from the semantically reconstructed subgraphs (both G(+) and G(-)) independently. This allows the model to learn distinct representations for correct and incorrect response semantics, preventing conflicting signals and enhancing the quality of self-supervised signals. The contrastive loss (InfoNCE) is applied separately to each semantic subgraph, and then combined.
  • Knowledge-Integrated Initialization: Student and exercise embeddings are initialized using a function that incorporates knowledge concept information, aiming for more interpretable initial traits.
  • Cognitive Diagnosis Layer: Finally, the learned representations are fed into a cognitive diagnosis layer to predict student performance, using a standard approach with monotonicity constraints for interpretability.

The overall model optimization involves a multi-task learning objective that combines the cognitive diagnosis loss, the contrastive learning loss, and the variational graph reconstruction loss.

Datasets

The paper evaluates SVGCD on two real-world datasets:

  • ASSISTments 2009-2010 Skill Builder Dataset: A widely used dataset for CD research.
  • Junyi Academy Math Practicing Log Dataset: Another dataset for evaluating CD models.

The paper provides statistics for these datasets, including the number of students, exercises, knowledge concepts, response logs, and the sparsity of student-exercise logs.

Key Insights and Ideas

  • Semantic Subgraphs are Crucial: Explicitly separating and processing correct and incorrect response logs as distinct subgraphs is vital for capturing nuanced student understanding.
  • Variational Reconstruction Preserves Structure: Using variational inference to reconstruct graphs, rather than random edge manipulation, is a more robust way to generate contrastive views without losing valuable structural information.
  • Divide-and-Conquer for Contrastive Learning: Applying contrastive learning independently to semantically distinct subgraphs (correct vs. incorrect) is more effective than a unified approach, as it respects the different nature of these interactions.
  • Data Sparsity Mitigation: The proposed semantic-tailored approach significantly improves performance in sparse student groups, demonstrating its effectiveness in addressing a key challenge in CD.
  • Component Importance: Ablation studies confirm that each component of SVGCD (variational graph reconstruction, semantic-specific contrastive learning) contributes significantly to the overall performance.

Key Results

  • Superior Performance: SVGCD consistently outperforms six well-known CD models (IRT, NeuralCD, KaNCD, RCD, SCD, ASG-CD) across various train/test splits on both ASSIST and Junyi datasets, achieving statistically significant improvements in AUC, RMSE, and ACC metrics.
  • Addressing Data Sparsity: SVGCD shows substantial gains, especially in sparse student groups, outperforming even other GCL-based methods like SCD.
  • Ablation Study Highlights:
    • Replacing variational reconstruction with random augmentation (w/o VG+w/R) leads to worse performance.
  • Ignoring semantic differences (w/o DCL+w/P) significantly degrades results.
  • Removing semantic-specific contrastive learning (w/o SCL) causes a notable performance drop.
  • Hyperparameter Sensitivity: The paper analyzes the sensitivity of SVGCD to hyperparameters like GNN layers, temperature coefficient, and the weights for contrastive and variational losses, providing insights into optimal configurations. For instance, it suggests that shallow GNN layers are generally sufficient and that specific ranges for contrastive and variational loss weights are beneficial.

Limitations and Future Work

  • Hyperparameter Tuning: While the paper analyzes hyperparameter sensitivity, finding optimal values for contrastive temperature, GNN layers, and loss weights (λ, β) can still be challenging and might require careful tuning for different datasets.
  • Computational Cost: The introduction of variational graph reconstruction and semantic-specific contrastive learning may increase the computational complexity compared to simpler GCL methods.
  • Future Work: The authors suggest that their work provides a strong foundation for future research in semantic-aware GCL for CD. Further exploration into more sophisticated semantic modeling and contrastive strategies could yield even better results. The paper also highlights the importance of understanding the interplay between different semantic environments and how to best leverage this for robust student modeling.
BibTeX
@inproceedings{xia2025semantic,
  author = {Chenao Xia and Fei Liu and Zihan Wang and Zhuangzhuang He and Pengyang Shao and Haowei Zhou and Yonghui Yang},
  title = {{Semantic-tailored Variational-Contrastive Graph Learning for Cognitive Diagnosis}},
  booktitle = {The Web Conference},
  year = {2025},
  doi = {10.1145/3701716.3717749},
}

Loading related content...