Concept Prerequisite Relation Prediction by Using Permutation-Equivariant Directed Graph Neural Networks

Xiran Qu, Xuequn Shang, Yupei Zhang

TL;DR

Concept Prerequisite Relation Prediction (CPRP) helps educational systems determine the optimal order of learning topics, but standard directed Graph Neural Networks (GNNs) struggle to distinguish structurally distinct subgraphs. This paper adapts higher-order Weisfeiler-Leman (2-WL) graph isomorphism tests into a permutation-equivariant directed GNN. Combined with BERT embeddings and a Siamese link predictor, it achieves state-of-the-art F1-scores across three educational benchmark datasets.

What Problem Does This Paper Address?

In intelligent tutoring systems and automated curriculum planning, knowing dependencies between topics—such as mastering "conditional probability" before tackling "Bayesian networks"—is essential. This task, known as Concept Prerequisite Relation Prediction (CPRP), is typically modeled as directed link prediction over a concept graph.

While standard GNNs are the default tool for link prediction, their expressive power is theoretically bounded by the 1-Weisfeiler-Leman (1-WL) graph isomorphism test. They frequently fail to distinguish non-isomorphic local neighborhoods (such as counting directed triangles or resolving automorphic nodes). Although higher-order WL methods improve expressivity for undirected graphs, prerequisite relationships are inherently directed and asymmetric, creating an expressivity bottleneck when applied to CPRP.

Methods

The authors build a permutation-equivariant directed GNN inspired by SpeqNets, using a $k=2$ order Weisfeiler-Leman ($2$-WL) framework:

  1. Text Feature Extraction: Concept descriptions from course syllabi and Wikipedia pages are embedded using a pre-trained bert-large-uncased model (capped at 256 tokens).
  2. Directed $k$-Tuple Formulation: Rather than considering arbitrary node pairs, the authors define a restricted set of $k$-tuples $\widehat{V}(G)^k$ constrained by directed connectivity (specifically out-neighbors, $\mathcal{N}_{out}$). For a pair $(s_1, s_2)$, $s_2$ must be an out-neighbor of $s_1$ (or identical).
  3. Multi-Graph Tuple Message Passing: For each coordinate $j \in \{1, \dots, k\}$, tuple neighborhood graphs $G_j$ are constructed. GCN layers process the tuple graphs independently before an MLP merges representations across positions: $$\widehat{\mathbf{f}}_S = \text{MLP}\left(\mathbf{F}_S^{(1)}, \dots, \mathbf{F}_S^{(k)}\right)$$
  4. Node Feature Reconstruction: Tuple embeddings are pooled back to individual concepts using an average allocation scheme and merged via MLP into updated concept embeddings $\mathbf{f}_j$.
  5. Siamese Link Prediction: Concept pairs pass through weight-shared feed-forward networks, and their directed relationship probability is predicted using concatenated relational features (concatenation, difference, element-wise product, and bias): $$P(v_p, v_q) = \sigma\left(\mathbf{W} [\tilde{\mathbf{e}}_p : \tilde{\mathbf{e}}_q : \tilde{\mathbf{e}}_p - \tilde{\mathbf{e}}_q : \tilde{\mathbf{e}}_p \odot \tilde{\mathbf{e}}_q : 1]\right)$$

Datasets

The authors evaluate their method on three existing public benchmark datasets without introducing new ones:

  • ML of MOOCs: Machine learning concept dependencies mined from MOOC course contents.
  • University Courses: Prerequisite dependencies across university-level computer science and mathematics courses.
  • LectureBank: Prerequisite chains extracted from natural language processing lecture slides.

For each dataset, 80% of pairs are used for training and 20% for testing. Negative samples include both reversed positive edges and randomly sampled unrelated concept pairs.

Key Insights and Ideas

  • Sparsity-aware directed tuples mitigate $O(N^k)$ explosion: Classic $k$-WL methods scale poorly with graph size because they process all $N^k$ node tuples. Restricting tuples strictly to directed out-neighborhoods retains directional signal while keeping computation manageable.
  • Semantics alone are insufficient: Standard text classification models (SVM, RF) and even models using text features without graph structure miss relational topology. Conversely, GNNs without strong text semantics (e.g., vanilla GAE/VGAE) underperform because concept names alone carry ambiguity.
  • Structural expressivity boosts link prediction: Combining strong pre-trained semantic priors (BERT) with high-order structural testing ($2$-WL) consistently outperforms existing hybrid methods like ConLearn.

Key Results

The proposed approach achieves the highest F1-score across all three benchmark datasets when compared to classical classifiers, graph autoencoders, and dedicated CPRP baselines (PREREQ, CPRL, ConLearn):

Dataset Metric Best Baseline (ConLearn) Ours
MOOCs Precision / Recall / F1 0.895 / 0.850 / 0.872 0.915 / 0.860 / 0.887
LectureBank Precision / Recall / F1 0.831 / 0.960 / 0.891 0.857 / 0.960 / 0.906
University Courses Precision / Recall / F1 0.611 / 0.966 / 0.749 0.822 / 0.740 / 0.778

On University Courses, the model achieved a notable boost in precision ($0.822$ vs. $0.611$), raising the overall F1-score by nearly 3 percentage points over ConLearn.

Limitations and Future Work

  • Higher Orders Unexplored: The experiments evaluate only $k=2$. Scaling to $k \ge 3$ on directed structures remains computationally demanding and untested.
  • Recall Trade-offs: On the University Courses dataset, the model’s recall ($0.740$) dropped relative to baselines ($0.966$), suggesting the model was more conservative in predicting edges.
  • Future Directions: The authors indicate plans to incorporate persistent homology and richer topological graph invariants to capture global directed cycles and hierarchy.

Summary updated

BibTeX
@inproceedings{qu2024concept,
  author = {Xiran Qu and Xuequn Shang and Yupei Zhang},
  title = {{Concept Prerequisite Relation Prediction by Using Permutation-Equivariant Directed Graph Neural Networks}},
  booktitle = {AI4ED @ AAAI},
  year = {2024},
  url = {https://openreview.net/forum?id=2TB7EfOT4H},
}
Figure