NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Detecting Struggling Student Programmers using Proficiency Taxonomies

Noga Schwartz, Roy Fairstein, Avi Segal, Kobi GalarXiv 2025

TL;DR

The Proficiency Taxonomy Model (PTM) combines deep learning code embeddings with an educator-informed proficiency taxonomy to predict which students will struggle on upcoming programming tasks. By tracking complete submission histories and explicitly modeling specific coding skills, PTM significantly outperforms state-of-the-art knowledge tracing baselines across both Java and Python environments.

What Problem Does This Paper Address?

Introductory programming courses (CS1) often suffer from high dropout and failure rates. While early intervention can help, instructors in large classrooms lack the tools to identify exactly which students are falling behind before it's too late.

Existing AI-driven approaches to "knowledge tracing" typically treat student code as a black box, rely on shallow metadata (like time spent or number of attempts), or look only at a student's final code submission. Crucially, these models fail to reason about why a student is struggling in a way that aligns with pedagogical goals—such as distinguishing between a fundamental misunderstanding of loops versus a failure to handle edge cases.

Methods

The authors introduce the Proficiency Taxonomy Model (PTM), a multi-task deep learning architecture that simultaneously estimates a student's current programming skill profile and predicts their likelihood of struggling on a new task.

The method relies on two core components:

  1. Coding Proficiency Taxonomy: Developed through in-depth interviews with computer science educators and inspired by Bloom's Taxonomy, this framework maps observable coding behaviors to hierarchical educational goals (e.g., from basic reading comprehension up to algorithmic design and edge-case handling).
  2. PTM Architecture:
  3. Task Submission Modeling: Instead of analyzing only the final code, PTM processes a student's entire sequence of attempts for a given task. Each code snapshot is embedded using CodeBERT, and the sequence is passed through an LSTM to capture the student's debugging trajectory.
  4. Taxonomy-Based Proficiency Profile (TBPP): The model outputs a 13-dimensional vector representing the student's mastery. This includes 10 explicit programming concepts (e.g., loops, conditionals, string manipulations) and 3 latent skills meant to capture implicit cognitive abilities unique to the student.
  5. Struggling Prediction: To evaluate a new target task, the model uses a cross-attention mechanism to compare the student's TBPP against a BERT-encoded representation of the new task's description, modified by a "skill weight" vector that dictates which concepts the task demands.
PTM Architecture overview

Datasets

The model was evaluated on two distinct, freely available datasets:

  • CodeWorkout: Contains Java submissions from 630 students across 50 uniformly structured, fully online tasks.
  • FalconCode: Contains Python submissions from 1,330 students across 408 tasks. This dataset features highly variable task complexities (ranging from 1-line exercises to 50-line labs) and includes gaps in history due to students compiling code locally before submitting.

Key Insights and Ideas

  • The Anatomy of Struggle: An analysis of the data confirmed that struggling students are disproportionately missing core concepts like loops and if-else statements in their code compared to their non-struggling peers, validating the need for concept-aware modeling.
  • History Has a Cliff: A sensitivity analysis revealed that the model's predictive accuracy remains stable when given between 22 and 30 past tasks of student history. However, dropping below 20 tasks causes a steep decline in performance, proving that short-term snapshots are insufficient for tracking learning trajectories.
Sensitivity of ROC-AUC to the number of past coding tasks included
  • Pedagogy + Deep Learning = Success: The ablation studies proved that incorporating the proficiency taxonomy yields better results than relying purely on raw code submission histories. Merging expert human insights with deep language models creates a powerful synergy.

Key Results

PTM was evaluated using the ROC-AUC metric (measuring the model's ability to distinguish between struggling and non-struggling students) and compared against standard baselines like Deep Knowledge Tracing (DKT) and SAKT.

  • CodeWorkout (Java): PTM achieved an ROC-AUC of 77.09%, significantly outperforming DKT (76.27%) and Code-DKT (70.93%).
  • FalconCode (Python): PTM achieved an ROC-AUC of 73.18%, drastically outperforming DKT (63.54%) and SAKT (70.52%).

The lower overall performance on FalconCode was attributed to its structural complexity and the missing data from local code compilation, highlighting how sensitive student modeling is to data consistency.

Limitations and Future Work

  • The Generative AI Threat: The datasets used predate the widespread adoption of tools like ChatGPT and GitHub Copilot. If students use GenAI to generate correct code without understanding it, their true struggles may be masked from the model.
  • Superficial Correctness: The ground truth for student success relies on automated unit tests, which measure functional correctness but cannot fully evaluate deep conceptual comprehension or code quality.
  • Static Task Weighting: Currently, the model treats all past tasks equally. The authors suggest that future iterations should dynamically weight tasks based on recency and difficulty to create a more realistic, evolving representation of student proficiency.

Summary updated

BibTeX
@misc{schwartz2025detecting,
  author = {Noga Schwartz and Roy Fairstein and Avi Segal and Kobi Gal},
  title = {{Detecting Struggling Student Programmers using Proficiency Taxonomies}},
  year = {2025},
  eprint = {2508.17353},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.17353},
}
Figure