TL;DR
Researchers have developed PERS (Programming Exercise Recommender with Learning Style), a deep learning framework that provides personalized exercise recommendations by modeling the unique, iterative "trial-and-error" nature of coding. By integrating the classical Felder-Silverman pedagogical theory, the model tracks a student's evolving programming ability and learning style to significantly improve the accuracy of guidance in online judging systems.
What Problem Does This Paper Address?
Online judge platforms are essential for learning to code, but they suffer from high student dropout rates. While standard recommendation systems (like those used by Netflix or Amazon) are great at predicting interests, they fail in programming education for two main reasons:
- Iterative Behavior: Unlike buying a book, programming involves making multiple attempts on the same task, editing code based on compiler feedback, and slowly converging on a solution.
- Intrinsic Patterns: Current models often ignore how a student learns. Some students are "reflective" (trial-and-error), while others are "active" (thinking through the whole solution before typing). Some learn "sequentially" (step-by-step), while others take "global" leaps.
The authors aim to bridge the gap between raw behavioral data (code snippets, execution time) and pedagogical theory to create a more "human-aware" recommender.
Methods
The authors propose the PERS Framework, which consists of four specialized modules:
- Representing Module: Uses CodeBERT to transform raw source code into embeddings, while also incorporating "side features" like execution time, memory usage, and compiler status. It uses sinusoidal positional encoding to track where a student is in their learning sequence.
- Differentiating Module: This is the "secret sauce" for handling iterative behavior. It calculates the delta (change) between consecutive submissions. This allows the model to distinguish between a student struggling with the same problem (intra-exercise) versus moving to a new one (inter-exercise).
- Updating Module: Inspired by the Felder-Silverman Learning Style Model (FSLSM), this module maintains and updates three latent vectors for every student:
- Programming Ability ($PA_t$): Their current skill level.
- Processing Style ($PS_t$): Whether they are currently acting more "active" or "reflective."
- Understanding Style ($US_t$): Whether they are following a "sequential" or "global" path.
- Predicting Module: A multi-layer perceptron (MLP) that takes these three latent states and predicts the most suitable next exercise.
Datasets
The model was evaluated on two major real-world datasets:
- BePKT: Data from a university online judge system, primarily featuring beginners.
- CodeNet: A massive dataset from IBM containing millions of submissions from AIZU and AtCoder. The researchers created two subsets: CodeNet-len (focusing on long behavioral sequences) and CodeNet-time (focusing on a specific time window).
Key Insights and Ideas
- Learning Styles are Dynamic: Unlike traditional pedagogy which often treats a "learning style" as a static label, PERS treats it as a latent state that can evolve as a student gains proficiency or encounters harder problems.
- The "Delta" Matters: Simply looking at a student's current code isn't enough. The change between their last failed attempt and their current attempt reveals their "processing style"—essentially how they respond to failure.
- Pedagogy Improves Interpretability: By aligning latent vectors with FSLSM dimensions, the model isn't just a "black box." Researchers can visualize a student's trajectory (e.g., seeing their $US_t$ value move toward "sequential" as they settle into a curriculum).
Key Results
PERS consistently outperformed state-of-the-art sequential recommendation models (like GRU4Rec and BERT4Rec) and pedagogical models (like LPKT).
- Performance Boost: On the large-scale CodeNet dataset, PERS showed a 1.41% improvement in Hit Ratio (HR@10) and a 1.30% improvement in Mean Reciprocal Rank (MRR@10) over the best baselines.
- Ablation Success: Removing the code features or the learning style modules led to a sharp decline in performance, proving that both the "what" (code) and the "how" (style) are critical for accurate recommendations.
- Visualization: Case studies showed that the model could successfully distinguish between a student who solves problems in a systematic, step-by-step order versus one who "leaps" between different types of challenges.
Limitations and Future Work
The authors identify a few areas for growth:
- Structural Features: Currently, the model uses CodeBERT for code embeddings. The authors suggest that incorporating structural features, such as Abstract Syntax Trees (ASTs), could capture even finer-grained changes in how students refactor their logic.
- Cold Start: While not explicitly detailed as a failure, the model relies on historical interaction sequences; performance on brand-new users with zero history remains a classic challenge for such systems.
- Broader Styles: The current model focuses on the processing and understanding dimensions of FSLSM; future versions could incorporate the perception (sensing/intuitive) and input (visual/verbal) dimensions.
Summary updated