Next Article in Journal
A Forecast Model for COVID-19 Spread Trends Using Blog and GPS Data from Smartphones
Next Article in Special Issue
DKWM-XLSTM: A Carbon Trading Price Prediction Model Considering Multiple Influencing Factors
Previous Article in Journal
An Aliasing Measure of Factor Effects in Three-Level Regular Designs
Previous Article in Special Issue
A Reinforcement Learning-Based Generative Approach for Event Temporal Relation Extraction
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Dual-Encoder Contrastive Learning Model for Knowledge Tracing

1
Laboratory of AI for Education, East China Normal University, Shanghai 200062, China
2
School of Pharmacy, East China Normal University, Shanghai 200062, China
3
School of Computer Science and Technology, East China Normal University, Shanghai 200062, China
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Entropy 2025, 27(7), 685; https://doi.org/10.3390/e27070685
Submission received: 27 May 2025 / Revised: 21 June 2025 / Accepted: 25 June 2025 / Published: 26 June 2025

Abstract

Knowledge tracing (KT) models learners’ evolving knowledge states to predict future performance, serving as a fundamental component in personalized education systems. However, existing methods suffer from data sparsity challenges, resulting in inadequate representation quality for low-frequency knowledge concepts and inconsistent modeling of students’ actual knowledge states. To address this challenge, we propose Dual-Encoder Contrastive Knowledge Tracing (DECKT), a contrastive learning framework that improves knowledge state representation under sparse data conditions. DECKT employs a momentum-updated dual-encoder architecture where the primary encoder processes current input data while the momentum encoder maintains stable historical representations through exponential moving average updates. These encoders naturally form contrastive pairs through temporal evolution, effectively enhancing representation capabilities for low-frequency knowledge concepts without requiring destructive data augmentation operations that may compromise knowledge structure integrity. To preserve semantic consistency in learned representations, DECKT incorporates a graph structure constraint loss that leverages concept–question relationships to maintain appropriate similarities between related concepts in the embedding space. Furthermore, an adversarial training mechanism applies perturbations to embedding vectors, enhancing model robustness and generalization. Extensive experiments on benchmark datasets demonstrate that DECKT significantly outperforms existing state-of-the-art methods, validating the effectiveness of the proposed approach in alleviating representation challenges in sparse educational data.
Keywords: knowledge tracing; contrastive learning; graph neural network; data mining; deep learning knowledge tracing; contrastive learning; graph neural network; data mining; deep learning

Share and Cite

MDPI and ACS Style

Bai, Y.; Wu, X.; Wei, T.; He, L. A Dual-Encoder Contrastive Learning Model for Knowledge Tracing. Entropy 2025, 27, 685. https://doi.org/10.3390/e27070685

AMA Style

Bai Y, Wu X, Wei T, He L. A Dual-Encoder Contrastive Learning Model for Knowledge Tracing. Entropy. 2025; 27(7):685. https://doi.org/10.3390/e27070685

Chicago/Turabian Style

Bai, Yanhong, Xingjiao Wu, Tingjiang Wei, and Liang He. 2025. "A Dual-Encoder Contrastive Learning Model for Knowledge Tracing" Entropy 27, no. 7: 685. https://doi.org/10.3390/e27070685

APA Style

Bai, Y., Wu, X., Wei, T., & He, L. (2025). A Dual-Encoder Contrastive Learning Model for Knowledge Tracing. Entropy, 27(7), 685. https://doi.org/10.3390/e27070685

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop