CLGT: A Graph Transformer for Student Performance Prediction in Collaborative Learning

Tianhao Peng, Yu Liang, Wenjun Wu, Jian Ren, Zhao Pengrui, Yanjun Pu

Abstract

Modeling and predicting student performance in collaborative learning (CL) paradigms is essential for effective pedagogical intervention. While existing research often focuses on social learning networks or discussion forums, few studies investigate the specific interaction dynamics within team-based projects. This paper introduces CLGT (Collaborative Learning Graph Transformer), a framework designed to evaluate and predict student performance by modeling interactions as a weighted heterogeneous graph. By incorporating spatial and temporal dynamics from platforms like GitLab, CLGT achieves superior predictive accuracy and provides an interpretation module to visualize student influence patterns. Experimental results on real-world datasets demonstrate that CLGT outperforms baseline models, offering instructors a reliable early warning system for identifying at-risk students.

Introduction

In collaborative learning environments, such as Software Engineering (SE) courses, assessing individual performance within a team is a complex task. Traditional methods often rely on peer evaluations, which can be subjective, or team-wide grading, which may fail to account for "free-riders." While digital version control and project management platforms provide a detailed trail of student activity, standard machine learning approaches typically rely on "coarse-granular" metrics, such as simple commit counts. These methods overlook the rich context of how students interact. CLGT addresses this gap by treating collaboration as a dynamic, weighted graph, capturing the nuances of peer-to-peer influence.

Methodology

The CLGT framework consists of three primary components designed to transform raw activity data into actionable insights:

1. Interaction Graph Generation

The model represents students as nodes and their collaborative activities—writing documentation, committing code, and raising issues—as directed, weighted edges. This creates a "weighted heterogeneous graph" where different types of work carry distinct weights of influence. For example, a complex code review or a high-severity bug report is weighted more heavily than a minor documentation update.

2. The Graph Transformer (CLGT)

Building upon the Graph Transformer architecture, CLGT includes a specialized pipeline to handle edge features. While standard transformers focus primarily on node attributes, CLGT explicitly embeds the type and intensity of interactions (e.g., lines of code modified or issue severity) into the attention mechanism. This allows the model to learn the relative importance of different collaboration patterns over a 16-week semester.

3. The Explainer Module

To mitigate the "black box" nature of deep learning, the framework integrates an interpretation module inspired by PGM-Explainer. Using a Bayesian network, this module visualizes influence patterns, allowing educators to see exactly how a student’s performance is influenced by their peers. This transparency is vital for justifying pedagogical interventions.

Dataset and Experimental Setup

The study utilized a real-world dataset from a 16-week graduate Software Engineering course (Spring 2021):

  • Source: A private GitLab-based platform.
  • Scale: 75 students organized into 11 teams.
  • Data Points: 4,903 commit records and 862 issues.
  • Labels: Weekly and final grades (A, B, or C) assigned by instructors based on contribution quality and quantity.

Results and Discussion

CLGT was evaluated against several baselines, including Ada Boost and state-of-the-art Graph Neural Networks (GNNs) like R-GCN and GTN.

Method Accuracy (ACC) F1-score AUC
Ada Boost 41.53% 29.36% 48.81%
Graph Trans 72.46% 59.04% 86.21%
CLGT (Ours) 73.92% 66.75% 90.57%

The results indicate that CLGT significantly outperforms traditional models, particularly in AUC (90.57%). This confirms that incorporating weighted edge features is critical for capturing the complexities of collaborative work.

Key Insights

  • Interaction vs. Activity: The quality and direction of interactions are stronger predictors of academic success than isolated activity counts.
  • Indirect Influence: The explainer module identified "latent" impacts, where students influence peers in other teams indirectly through shared interactions with "bridge" teams.
  • Early Warning System: Because the model processes data on a weekly basis, it can identify students trending toward poor performance early in the term, allowing for timely instructor support.

Conclusion

CLGT represents a significant step forward in modeling collaborative learning. By leveraging Graph Transformers to analyze weighted interactions, the framework provides both high predictive accuracy and meaningful interpretability. Future work will focus on expanding the sample size and adapting the model's weighting system to other collaborative domains beyond Software Engineering.

Summary updated

BibTeX
@inproceedings{peng2023clgt,
  author = {Tianhao Peng and Yu Liang and Wenjun Wu and Jian Ren and Zhao Pengrui and Yanjun Pu},
  title = {{CLGT: A Graph Transformer for Student Performance Prediction in Collaborative Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i13.26893},
}
Figure