Modeling Balanced Explicit and Implicit Relations with Contrastive Learning for Knowledge Concept Recommendation in MOOCs

Gu Hengnian, Zhiyi Duan, Pan Xie, Dongdai Zhou

Abstract

Knowledge concept recommendation (KCR) is a critical component in enhancing student engagement and completion rates within Massive Open Online Courses (MOOCs). While existing recommendation methods primarily focus on explicit user-concept interactions, they often overlook the rich, implicit relations—such as shared learning paths or similar knowledge levels—inherent in student behavior. Furthermore, the significant disparity in the quantity of explicit versus implicit relations makes it difficult to represent both effectively. This paper introduces CL-KCRec, a novel framework that leverages contrastive learning to represent and balance these relations. By utilizing a dual-stream architecture comprising a relation-updated Graph Convolutional Network (GCN) and a stacked multi-channel Graph Neural Network (GNN), combined with prototypical contrastive learning, CL-KCRec captures deep relational insights. Experimental results on real-world datasets, including MOOCCube1819, demonstrate that CL-KCRec significantly outperforms state-of-the-art baselines in terms of Hit Rate (HR), Normalized Discounted Cumulative Gain (NDCG), and Mean Reciprocal Rank (MRR).

Introduction

Massive Open Online Courses (MOOCs) have revolutionized education by providing accessible, high-quality content to millions. However, the platform's greatest strength—its scale—is also its greatest challenge, often leading to low student completion rates due to information overload. Personalized recommendation systems that suggest specific "knowledge concepts" (e.g., the Pythagorean theorem within a broader geometry course) are essential for maintaining student interest.

Traditional recommendation models face two primary hurdles in the MOOC environment. First, relational imbalance: explicit interactions (direct clicks or completions) are sparse, while implicit relations (latent similarities between users) are abundant but difficult to model. Second, the representation gap: the sheer volume of implicit data can easily overshadow sparse explicit signals, leading to biased recommendations. CL-KCRec addresses these challenges by treating explicit and implicit signals as distinct but complementary streams, balanced through self-supervised contrastive learning.

Methodology

The CL-KCRec framework operates through four integrated stages designed to extract and harmonize complex relational data.

1. MOOCs Heterogeneous Information Network (MHIN) Construction

To capture the multifaceted nature of online learning, the model first constructs a Heterogeneous Information Network (MHIN). This network incorporates five distinct node types—Users, Concepts, Courses, Videos, and Teachers—connected by seven types of interaction edges. This structure provides the foundation for identifying both direct and multi-hop relationships.

2. Dual-Stream Learning

The model processes the MHIN through two specialized streams:

  • Explicit Stream: A relation-updated Graph Convolutional Network (GCN) is employed to embed direct user-concept interactions. This stream focuses on the clear, high-intent signals provided by student clicks.
  • Implicit Stream: A stacked multi-channel GNN with a soft attention mechanism is used to discover latent similarities. By aggregating multi-hop paths (e.g., User A $\rightarrow$ Course 1 $\rightarrow$ User B), the model identifies students with similar learning trajectories even if they have not interacted with the same specific concepts.

3. Prototypical Contrastive Learning

To bridge the gap between sparse explicit data and dense implicit data, CL-KCRec introduces prototypical contrastive learning. The model clusters users and concepts into "prototypes"—representative embeddings for semantically similar groups. It then applies an InfoNCE-based contrastive loss to align individual node representations with these prototypes. This self-supervised signal acts as a regularizer, helping the model learn robust, discriminative features that are less susceptible to the noise of individual variations.

4. Dual-Head Attention Fusion

To ensure that neither the explicit nor the implicit stream dominates the final output, a dual-head attention mechanism merges the representations. This allows the model to dynamically weight the importance of each stream for every user, ensuring a balanced and personalized recommendation.

Experimental Evaluation

Datasets and Metrics

The framework was evaluated primarily on MOOCCube1819, a large-scale dataset from the XuetangX platform containing over 900,000 interactions. To test the model's robustness beyond the educational domain, the authors also utilized the Yelp (business) and Douban Movie datasets.

Performance Results

CL-KCRec consistently outperformed state-of-the-art baselines, including ACKRec, KGCL, and HGCL. On the MOOCCube1819 dataset, the model achieved a Mean Reciprocal Rank (MRR) of 0.4032, a significant improvement over the next best baseline, HGCL (0.3598). Similar gains were observed in HR and NDCG metrics.

Ablation Study

Ablation experiments confirmed the necessity of the model's core components:

  • Removing the contrastive learning module (w/o-cl) resulted in a performance drop, highlighting its role in refining embeddings.
  • Removing the implicit relation stream (w/-er) significantly degraded accuracy, proving that latent student similarities are vital for effective recommendation.

Discussion and Insights

The success of CL-KCRec suggests that implicit relations are not just "noise" but are essential predictors of student interest. By using prototypes, the model effectively filters individual-level variations to focus on broader semantic patterns. This approach effectively "guides" the propagation of student preferences through the graph, even when direct interaction data is limited.

Conclusion and Future Work

CL-KCRec provides a powerful framework for balancing disparate data types in MOOC recommendation systems. While the model achieves state-of-the-art results, future research could address its computational complexity to better handle millions of users. Additionally, integrating temporal dynamics—capturing how student interests evolve over the course of a semester—could further refine the accuracy of knowledge concept suggestions. Finally, exploring cold-start scenarios for entirely new users remains a promising avenue for future development.

Summary updated

BibTeX
@inproceedings{hengnian2024modeling,
  author = {Gu Hengnian and Zhiyi Duan and Pan Xie and Dongdai Zhou},
  title = {{Modeling Balanced Explicit and Implicit Relations with Contrastive Learning for Knowledge Concept Recommendation in MOOCs}},
  booktitle = {The Web Conference},
  year = {2024},
  doi = {10.1145/3589334.3645559},
}
Figure