ConceptioArchivearXiv CS
arXiv CSopen access

Ensuring Reliability in Programming Knowledge Tracing: A Re-evaluation of Attention-augmented Models and Experimental Protocols

2026 · arxiv_cs
arXiv CS · Papers · License: Open Access · 2026
Open Source ↗Direct PDF ↓
software-architecturesoftware-engineeringtesting
software engineering, software architecture, testing

arXiv:2605.04727v1 [cs.LG] 6 May 2026

This is a preprint of a paper accepted at the International Conference on Intelligent Tutoring Systems (ITS 2026), to appear in Springer LNCS.

Ensuring Reliability in Programming Knowledge Tracing: A Re-evaluation of Attention-augmented Models and Experimental Protocols Jaewook Kim Korea University, Seoul, Republic of Korea [email protected] Hyeoncheol Kim∗ Korea University, Seoul, Republic of Korea [email protected]

Abstract Programming Knowledge Tracing (PKT) has recently advanced through hybrid approaches that integrate attention-based feature modeling for code representation with RNN-based sequential prediction. While these models report strong empirical performance, their reliability can be sensitive to subtle implementation and experimental design choices. This study revisits representative PKT models and shows that reported gains can be substantially influenced by model configuration and sequence construction practices. We identify issues in attention dimension settings that affect performance estimates, and demonstrate that improper ordering of student attempts—such as ignoring ServerTimestamp—can violate temporal causality and lead to overly optimistic results. To ensure consistent evaluation, hyperparameters are selected via grid search guided by a single designated fold and then fixed uniformly across all folds during cross-validation. We further analyze the role of assignment-wise characteristics and systematically explore the impact of maximum sequence length. Using this protocol, we re-evaluate PKT models on the CodeWorkout dataset. Our results show that, under controlled and consistent settings, the performance gap between attention-enhanced models and standard ∗ Corresponding author

1

DKT is significantly reduced, and increased architectural complexity does not consistently translate into superior performance. Beyond individual model comparisons, this work provides practical guidance for reliable and comparable evaluation in programming knowledge tracing.

1

Introduction

Knowledge Tracing (KT) aims to model the temporal evolution of a learner’s knowledge state by analyzing their historical interaction data. As programming education has become a cornerstone of the modern Computer Science curriculum, research into Programming Knowledge Tracing (PKT) has expanded rapidly. Unlike traditional KT domains such as mathematics, programming involves process-oriented problem-solving rather than single-correct-answer submissions. Learners engage in an iterative cycle of writing, executing, debugging, and refining code. Consequently, specialized PKT models have been developed to capture these sophisticated learning dynamics more precisely. In response to these requirements, recent PKT approaches have adopted hybrid architectures that integrate feature modeling—reflecting the structural and semantic information of code—with sequential prediction models. For code representation, some PKT models employ Abstract Syntax Tree (AST)-based code extraction and attention-based encoding methods, such as code2vec [1], while others leverage Transformer-based pretrained models (e.g., CodeSage [19]). These code representations are then combined with Recurrent Neural Networks (RNNs) or Transformer architectures to track the learner’s evolving knowledge state. These models have reported substantial performance gains over traditional DKT [13] baselines and have become a prevalent modeling paradigm in recent PKT research. However, as model architectures grow increasingly complex, ensuring the reliability and reproducibility of reported performance has become a critical challenge. In this study, we demonstrate that the empirical performance gains reported in representative PKT models [17, 18] utilizing code2vec-based code representations can be highly sensitive to subtle implementation details and experimental design choices. Specifically, we identify implementation-level issues in attention-based code representation that directly affect performance estimates. Furthermore, we experimentally confirm that failing to align student attempt sequences by the time stamp results in temporal causality violations. This leads to significant data leakage, where future information inadvertently influences past predictions, fundamentally undermining the validity of sequence-based modeling and systematically overestimating model performance. To systematically analyze these effects, we adopt a controlled evaluation protocol. We select optimal hyperparameters via grid search using a single designated fold (f old0 ) and subsequently fix these parameters across all folds during cross-validation. This approach allows us to focus on how assignmentwise data characteristics influence model behavior. Additionally, we explore the impact of the maximum sequence length, a factor often arbitrarily fixed in prior

2

studies despite significant variations in student interaction patterns. By re-evaluating representative PKT models on the CodeWorkout dataset using this protocol, we observe that the previously reported superiority of attention-augmented PK models is often diminished or even reversed under causally valid and consistent settings. Specifically, our results show that the performance advantage of the PK models is not consistent across tasks, and that traditional DKT can remain competitive—or even superior—under appropriate task-specific optimization. These findings suggest that many of the performance gains attributed to architectural innovations in prior work may have been overstated, arising from evaluation biases and inadequate baseline tuning rather than genuine improvements in predictive modeling. The primary contributions of this work are as follows: • Empirical Reliability Analysis: We clarify how implementation details and sequence construction methods can systematically distort PKT performance metrics. • Controlled Evaluation Protocol: We present a fair and reproducible benchmarking framework through a cross-validation process where data is partitioned assignment-wise into folds, and consistent hyperparameter settings are applied across all folds for each assignment. • Assignment and Sequence-level Insights: We reveal critical but overlooked factors by analyzing the impact of assignment characteristics and maximum sequence length on PKT performance. The source code for our experiments is available at https://github.com/l esit/Reliable-PKT.

2

Related Work

2.1

Evolution of Knowledge Tracing

Knowledge Tracing (KT) has evolved from Recurrent Neural Networks (RNNs) [13] to sophisticated attention-based architectures. For instance, SAINT [2] utilizes a Transformer encoder-decoder structure, while AKT [3] employs a monotonic attention mechanism with Rasch-based normalization. Recent models have introduced various mechanisms to enhance performance, such as removing noise through sparse attention (sparseKT) [6], incorporating individual priors (AT-DKT) [11], or modeling the forgetting process via linear biases (FoLiBiKT [7] and extraKT [9]). While these advancements have pushed the state-of-the-art in predictive AUC, recent audits suggest that architectural complexity can sometimes mask underlying experimental sensitivities [8]. Supporting this view, studies such as simpleKT [12] and ReKT [15] have demonstrated that streamlined architectures can achieve competitive or even superior results compared to more intricate models by focusing on core interaction patterns. Our work extends this critical 3

perspective by investigating how these performance gains are influenced by fundamental experimental protocols in the programming domain.

2.2

Programming Knowledge Tracing (PKT)

PKT differs from traditional Knowledge Tracing (KT) in that it explicitly incorporates the iterative and process-oriented nature of coding activities. Early PKT models focused on incorporating program structure through Abstract Syntax Tree (AST)-based representations. Among them, Code-DKT [17] leverages code2vec [1] to encode ASTs, combined with attention mechanisms and Long Short-Term Memory (LSTM) networks [5] to model students’ evolving knowledge states. Building on the Code-DKT architecture, more recent approaches such as ECKT [18] extend this line of work by integrating semantic-aware encoders and large language models to capture richer program semantics and problem-solving patterns.

2.3

Benchmarking and Data Integrity

The release of datasets like CodeWorkout [14] and ACcoding [10] has facilitated PKT research. However, evaluation protocols vary significantly across studies. Issues such as improper sequence alignment or arbitrary truncation of interaction histories can lead to temporal data leakage [4], where future information inadvertently inflates performance estimates. This study identifies and rectifies these systemic biases to establish a more reliable benchmarking framework.

3

Reliability Issues in Existing PKT Evaluations

While recent PKT models have reported significant performance improvements, the reliability of these results depends heavily on the integrity of their underlying implementation and evaluation protocols. In this section, we conduct a systematic audit of the official open-source implementation [16] of Code-DKT [17] to identify systemic evaluation biases. We find that this implementation contains critical structural flaws: (1) causal flaws in attention-based code representation (CRect, Section 3.1), (2) temporal causality violations during sequence construction (T Align, Section 3.2), and (3) performance distortions arising from hyperparameter sensitivity (Section 3.3). Furthermore, we extend our comparative analysis to ECKT [18] specifically regarding causal rectification (CRect) to examine if these attention-based biases persist across related PKT architectures. By exposing these issues, we establish the necessity for the controlled evaluation protocol proposed in Section 4.

4

3.1

Causal Invalidity in Attention-integrated Code Representation

Recent PKT models have increasingly adopted hybrid architectures that integrate feature modeling to capture the semantic nuances of source code. A representative approach is Code-DKT [17], which utilizes code2vec [1] for code representation but augments its attention mechanism by incorporating student performance data (xt ) to assign weights to code paths. Specifically, the model represents student code ct as a set of R leaf-to-leaf paths extracted from an Abstract Syntax Tree (AST). For each code path, the embeddings of the starting node, the path, and the ending node are concatenated with the student’s correctness vector xt to form a path representation er : er = [es,r ; eo,r ; eq,r ; xt ]

(1)

The model employs a Score-Attended Path Selection mechanism where the attention weight αr for each path is calculated using an attention matrix Wa : exp(er Wa ) αr = PR i=1 exp(ei Wa )

(2)

In our study, we executed the official source code [16] provided by the authors and successfully replicated the empirical results reported in the original paper, including the performance gain of approximately 0.03–0.04 in AUC, a standard metric for binary classification performance, over the DKT [13] baseline. During this replication process, we identified a critical structural flaw in the implementation: the Softmax operation in the attention layer is applied across the temporal dimension, specifically dim=1. We argue that this configuration is causally invalid for the Knowledge Tracing task. Applying Softmax across the time-step dimension (dim=1) allows the model to normalize weights by considering the entire interaction sequence. This inherently introduces temporal data leakage, as the importance of code features at a specific time step t is influenced by information from future states. Such a "look-ahead" mechanism violates the fundamental principle of Knowledge Tracing, which dictates that predictions must be conditioned strictly on current and historical data. To maintain temporal causality and ensure the model correctly weights paths within a single code submission, the operation must be performed across the path dimension (dim=2). Our analysis demonstrates that the reported performance gains are not a result of architectural superiority but are consequences of this causal violation. By effectively bypassing temporal constraints, the model achieves an artificially inflated performance that does not reflect its true predictive capability.

3.2

Temporal Causality Violation and Data Leakage

Knowledge Tracing (KT) models inherently assume that a learner’s future performance is conditioned only on past interactions. Therefore, preserving the 5

ORDER ISSUE

Attempt 2 P: 234 S: 1

Attempt Sequences (CSV Order

2/24. 23:36

Attempt 3 P: 3 S: 1

2/24. 23:39 2/24. 23:40

Attempt 4 P: 5 S: 1

Attempt 5 P: 12 S: 1

2/24. 23:44

ORDER ISSUE

Attempt 6 P: 12 S: 0

Attempt 7 P: 236 S: 1

2/24. 23:52

Attempt 8 P: 1 S: 1

2/24. 23:59

Attempt 9 P: 236 S: 0

2/25. 00:02 2/25. 00:03

Acture Timeline (ServerTimestamp)

Figure 1: Chronological misalignment between dataset appearance order (CSV order) and actual server timestamps. strict chronological order of student interactions is a fundamental requirement for valid evaluation. However, we identify a critical flaw in the official open-source implementation [16] of Code-DKT [17]. Specifically, the codebase fails to perform chronological sorting by ServerTimestamp and instead aggregates interactions based on their raw appearance order. As illustrated in Figure 1, this leads to a direct violation of temporal causality. For instance, in the sequence for SubjectID 106, Attempt 6 (a failure) actually occurred before Attempt 5 (a success) in the actual timeline. When later attempts appear earlier in the input sequence, it introduces look-ahead bias and explicit data leakage. Formally, a causally valid model must operate on a sorted sequence S ′ such that ′ P (a′t+1 | a′1 , . . . , a′t ) where τ1′ < · · · < τt+1 . (3) Our analysis reveals that this condition is frequently violated, particularly in programming contexts with rapid “submit-and-fix” cycles. Without strict sorting, the model can exploit future information unavailable at prediction time, leading to spurious learning signals and a systematic overestimation of performance that obscures the true latent learning process.

3.3

Hyperparameter Sensitivity Across Models and Assignments

Before introducing our assignment-wise cross-validation protocol, we examine the sensitivity of PKT models (Code-DKT [17], ECKT [18]) performance to hyperparameter choices. Although hyperparameter tuning is often treated as a secondary detail, our analysis indicates that its impact is substantial and highly dependent on both the model architecture and the programming assignment. We observe that optimal configurations vary not only across different PKT models, but also across assignments within the same model. Differences in assignment difficulty, interaction length, and response distributions induce distinct optimization landscapes, such that hyperparameters effective for one assignment may lead to degraded performance on another. Notably, this variability is 6

observed consistently across both DKT and PKT models, suggesting that hyperparameter sensitivity is an inherent characteristic of programming interaction data rather than a byproduct of architectural complexity. These findings imply that adopting a single global hyperparameter configuration can obscure true model behavior and bias comparative evaluations, motivating the need for a task-aware evaluation strategy developed in the following sections.

4

Controlled Evaluation Protocol

To address the causal flaws and hyperparameter sensitivity issues identified in Section 3, this study proposes three evaluation protocols that ensure causal integrity and experimental fairness.

4.1

Implementation Rectification for Causal Integrity

To correct the dimensionality error of the Softmax operation pointed out in Section 3.1, this study changes the normalization axis of the attention mechanism from the time axis (dim = 1) to the path axis (dim = 2). This is to fundamentally prevent temporal data leakage, where predictions at a specific point in time refer to future sequence information. The weight αr defined in Equation (2) is now normalized only across AST paths within a single code submission, thereby restoring the causal validity of the modeling.

4.2

Chronological Sequence Alignment

To address the sequence composition error discussed in Section 3.2, we enforce a strict ascending sort by the ServerTimestamp column as a preprocessing protocol before processing all student attempt records. This is to reconstruct the actual student learning trajectories without relying on the physical storage order of the dataset. This sorting process eliminates look-ahead bias, where future successful debugging attempts within a sequence influence past predictions.

4.3

Assignment-wise Cross-Validation and Reproducibility

To address the hyperparameter sensitivity identified in Section 3.3, we adopt an assignment-wise tuning strategy where models are trained and evaluated independently for each task. For each assignment, we identify the optimal hyperparameter configuration θ∗ through a grid search on a designated validation fold (f old0 ). This configuration is then fixed and applied uniformly across all remaining folds to prevent overfitting and ensure that performance variations arise solely from data variability. We enforce strict reproducibility by utilizing independent fixed random seeds for each experimental stage. A seed governs the initial training and test set separation, while a separate, distinct seed is employed to generate

7

identical five-fold cross-validation splits. Furthermore, every model is initialized with a consistent seed to eliminate stochastic variance during training. This multi-layered protocol justifies task-specific tuning while preserving fairness and comparability across all evaluated assignments.

4.4

Impact of Maximum Sequence Length Table 1: 95th percentile of attempt sequence lengths by assignment. Assignment ID 95th Percentile

439 90

487 109

492 135

494 91

502 81

In many PKT implementations, the maximum sequence length is treated primarily as a technical constraint for computational efficiency, as exemplified by Code-DKT, which adopts Lmax = 50 [17]. However, programming education often involves extended sequences of iterative debugging, where aggressive truncation may remove important problem-solving context. As shown in Table 1, the 95th percentile of student attempt sequence lengths consistently exceeds the commonly adopted limit of Lmax = 50, ranging from 81 to 135 across assignments. This observation indicates that a substantial portion of student interaction histories is not fully captured under the conventional setting. However, incorporating longer sequences does not necessarily guarantee improved modeling, as extended interaction histories may also introduce irrelevant or noisy information. Motivated by this analysis, we explicitly compare two predefined settings, Lmax = 50 and Lmax = 100, to examine whether preserving longer interaction histories leads to measurable performance differences. The corresponding experimental results are reported in Section 6.4.

5

Experimental Setup

5.1

Dataset and Sequence Analysis

We utilize the CodeWorkout dataset [14], consisting of 69,627 interactions from 413 students across five assignments. To account for varying problem-solving durations, we analyzed the sequence length distribution for each assignment.

5.2

Evaluation Protocol and Hyperparameters

For each assignment, data is split into an 80% training set and a 20% test set, with the training set further partitioned into five folds. To ensure causal integrity and fair benchmarking among DKT [13], Code-DKT [17], and ECKT [18], we implement a controlled tuning procedure: 1. Fold Configuration: One fold is designated for validation while the other four are used for training. 8

Table 2: Impact of Chronological Alignment and Causal Rectification on Model Performance Model Setting 439 487 492 494 502 DKT − 0.6768±0.02 0.7359±0.01 0.7650±0.02 0.6838±0.02 0.7469±0.01 CodeDKT − 0.7445±0.01 0.7651±0.01 0.8049±0.01 0.7265±0.01 0.7932±0.01 *DKT T Align 0.6821±0.02 0.7065±0.01 0.7312±0.02 0.7184±0.02 0.7358±0.01 CodeDKT T Align 0.7116±0.01 0.7659±0.01 0.7895±0.01 0.7465±0.01 0.7928±0.01 *CodeDKT CRect 0.6914±0.01 0.7512±0.01 0.7716±0.01 0.7235±0.01 0.7695±0.01

2. Grid Search on f old0 : We perform an exhaustive search exclusively on the first fold to identify the optimal configuration θ∗ . For DKT, the learning rate is tuned within {5e − 5, 1e − 4, 5e − 4}. For Code-DKT and ECKT, we tune the embedding size ∈ {50, 100, 150, 300, 350}, dropout ∈ {0.1, 0.2, 0.3, 0.4, 0.5}, and learning rate ∈ {5e − 5, 1e − 4, 5e − 4}. 3. Hyperparameter Fixation: Once θ∗ is determined, it is fixed across all subsequent folds to ensure that performance variations stem solely from data variability and to prevent hyperparameter-induced overfitting.

6

Results and Analysis

This section presents a comprehensive re-evaluation of DKT [13] and models (Code-DKT [17], ECKT [18]), progressing from faithful reproduction to a more rigorous, task-aware evaluation protocol. In Section 6.1, we reproduce the original Code-DKT performance and compare it with results obtained after rectifying sequence alignment (T Align) and the softmax dimension in the attention mechanism (CRect). Building on these observations, Sections 6.2 and 6.3 adopt a more granular protocol based on assignment-wise cross-validation. For each model–task pair, hyperparameters are tuned exclusively on a designated validation fold (f old0 ) and then fixed across all five folds to ensure fairness and reproducibility. All results are reported as the mean ± standard deviation across folds.

6.1

Impact of Chronological Alignment and Causal Rectification

In this section, we examine the performance impact of a corrected evaluation pipeline. Specifically, we evaluate chronological alignment (T Align) to DKT [13], while for PKT models (Code-DKT [17], ECKT [18]), we evaluate the combined effect of T Align and causal rectification (CRect). Rather than seeking performance gains, this re-evaluation aims to establish a transparent baseline by eliminating potential data leakage and implementation oversights present in prior work. The results in Table 2 show that applying T Align leads to inconsistent performance shifts. For instance, while DKT’s AUC on dataset 439 slightly 9

increases from 0.6768 to 0.6821, Code-DKT experiences a noticeable drop on several datasets (e.g., 0.7445 → 0.7116 on 439). This suggests that previous high scores might have been partially inflated by the inadvertent use of future information within non-chronological sequences. Furthermore, the introduction of CRect reveals that the original implementation of Code-DKT was sensitive to the dimensionality of the softmax operation. The adjustment of the attention mechanism ensures causal integrity, providing a more rigorous assessment of the model’s ability to predict future performance based solely on past interactions. Table 3: Performance comparison (AUC) of DKT and PKT models (Code-DKT, ECKT) under task-specific hyperparameter optimization with chronologically aligned sequences. T Align denotes chronological sequence alignment, CRect indicates causal rectification of the attention computation, and CRect+ further includes the W0 component described in the original model specification. Standard deviations are omitted for brevity as they are consistently below 0.01, except for DKT on Assignment 502 (±0.04). Model *DKT CodeDKT *CodeDKT *CodeDKT *ECKT *ECKT

6.2

Setting T Align T Align CRect CRect+ CRect CRect+

439 0.7480 0.7254 0.7120 0.7268 0.7239 0.7364

487 0.7518 0.7672 0.7604 0.7633 0.7762 0.7588

492 0.7705 0.7905 0.7864 0.7831 0.8050 0.8017

494 0.7630 0.7507 0.7082 0.7162 0.7463 0.7632

502 0.7490 0.7967 0.7768 0.7731 0.7947 0.7958

Criticality of Task-specific Hyperparameter Optimization

Based on the corrected evaluation pipeline established in Section 6.1, Table 3 presents the performance of DKT [13] and PKT models (Code-DKT [17], ECKT [18]) when provided with task-specific hyperparameter optimization. While the experiments in Section 6.1 adhered to the original studies’ fixed settings (e.g., a 40-epoch limit) to isolate the impact of T Align and CRect, the results here reflect each model’s true competitive capacity achieved through independent tuning and early stopping for each assignment. Our findings demonstrate that applying uniform training configurations across different models and tasks can lead to a systematic underestimation of performance, particularly for baseline architectures. Consequently, we establish that task-specific optimization is a prerequisite for any reliable comparative evaluation, ensuring that architectural advantages are assessed only after each model has reached its optimal state. A particularly illustrative case is Assignment 439, where the AUC of DKT improves from 0.6821 to 0.7480 (approximately +0.07) solely through taskspecific tuning. As summarized in Table 4, the optimal training duration for DKT varies substantially across assignments, with mean early-stopped epochs

10

Table 4: Task-specific optimal learning rates and early-stopped epochs for DKT [13]. Assignment 439 487 492 494 502

Learning rate 0.0005 0.0005 0.0005 0.0005 0.0001

Epoch 42.4 ± 21.7 68.4 ± 15.9 46.2 ± 08.4 75.2 ± 24.6 46.0 ± 30.2

ranging from 42.4 to 75.2. Notably, Assignment 494 requires nearly twice as many training epochs as the previously fixed setting, while Assignment 502 favors a smaller learning rate (1e−4) than other tasks. These results indicate that previously reported performance gaps between DKT and more complex PKT models may stem, at least in part, from insufficient optimization of baseline models rather than intrinsic architectural advantages. Since hyperparameter sensitivity is jointly dependent on both the model architecture and the task context, task-specific optimization is not an optional refinement but a prerequisite for rigorous and fair comparative evaluation in programming knowledge tracing.

6.3

Comparative Analysis of Rectified PKT Models

We now examine the performance of DKT [13] and PKT models (Code-DKT [17], ECKT [18]) after correcting issues at the implementation level. Models marked with an asterisk (∗) ensure causal validity, which is achieved through temporally aligned (T Align) sequences for DKT, and by both T Align and a causally valid attention computation (CRect) for PKT models, with CRect+ further denoting the inclusion of the W0 component. As shown in Table 3, rectifying the attention computation does not uniformly improve performance. In several assignments (e.g., 439 and 494), the rectified Code-DKT model underperforms the tuned DKT baseline despite utilizing codelevel representations. This indicates that the inclusion of code embeddings, such as those from code2vec [1], does not consistently improve performance under causally valid and optimized settings. Notably, our results for both Code-DKT and ECKT show that restoring the W0 component (CRect+) yields only marginal changes in AUC across most assignments. This limited empirical impact suggests that the core predictive behavior is dominated by sequence modeling and task-specific dynamics rather than this specific projection weight. In contrast, ECKT exhibits a more stable performance profile. Even without the W0 component, the CRect version of ECKT consistently matches or outperforms DKT, effectively narrowing the gap in assignments where Code-DKT struggles. These findings suggest that the structured integration of programming context in ECKT provides a robust advantage over simple feature concatenation.

11

Table 5: Performance comparison of DKT and PKT models (Code-DKT, ECKT) with maximum sequence length extended to 100. DKT results are reported under chronological alignment (T Align), while PKT models are evaluated with causal rectification (CRect). ∆ denotes the AUC variance relative to the baseline (L = 50). Model

Setting 439 487 492 494 502 T Align 0.7147±0.04 0.7640±0.00 0.7677±0.02 0.7193±0.02 0.7608±0.01 *DKT ∆ −0.0333 +0.0122 −0.0028 −0.0437 +0.0118 CRect 0.7308±0.00 0.7434±0.01 0.7754±0.01 0.7088±0.01 0.7604±0.01 *CodeDKT ∆ +0.0188 −0.0170 −0.0110 +0.0006 −0.0164 CRect+ 0.7051±0.00 0.7354±0.01 0.7728±0.01 0.7057±0.01 0.7567±0.00 *CodeDKT ∆ −0.0217 −0.0279 −0.0103 −0.0105 −0.0164 CRect 0.7214±0.00 0.7761±0.00 0.7981±0.01 0.7325±0.00 0.7653±0.01 *ECKT ∆ −0.0025 −0.0001 −0.0069 −0.0138 −0.0294 CRect+ 0.7316±0.00 0.7709±0.01 0.7908±0.01 0.7205±0.01 0.7463±0.01 *ECKT ∆ −0.0048 +0.0121 −0.0109 −0.0427 −0.0495

Overall, the effectiveness of PKT models depends on causally valid implementations and the alignment between model assumptions and task characteristics, rather than architectural complexity alone.

6.4

Impact of Maximum Sequence Length

Table 5 reports the performance differences between the conventional setting (Lmax = 50) and the extended context setting (Lmax = 100). Despite the strong motivation for using longer sequences discussed in Section 4.4, extending the maximum sequence length does not lead to consistent performance improvements. Across both DKT [13] and PKT models (Code-DKT [17], ECKT [18]), most assignments exhibit either marginal changes or clear performance degradation when Lmax is increased to 100. Performance gains are sporadic and limited in magnitude, whereas negative ∆ values appear more frequently and consistently across models and datasets. These results suggest that, although longer interaction histories are structurally well-motivated in programming education, simply increasing the context window is insufficient to improve knowledge tracing performance. Instead, extended sequences may introduce additional irrelevant or weakly informative interactions, offsetting the potential benefits of longer temporal context.

7

Discussion and Limitations

Our results indicate that the reported performance gains of PKT models (CodeDKT [17], ECKT [18]) are highly sensitive to evaluation and optimization choices. In particular, task-specific hyperparameter tuning reveals that baseline models such as DKT [13] can be substantially underestimated under standardized

12

settings, leading to potentially biased architectural comparisons. Moreover, the inconsistent gains of Code-DKT across assignments suggest that the effectiveness of code-level representations is task-dependent rather than universal. This study is limited to a specific dataset (CodeWorkout [14]) and a subset of PKT models; extending the proposed rectified evaluation protocol to broader domains and architectures remains an important direction for future work.

8

Conclusion

In this paper, we have re-examined the performance of PKT models (CodeDKT [17], ECKT [18]) by identifying and rectifying critical biases in the evaluation pipeline. Through extensive experiments, we demonstrated that chronological alignment and causal rectification are essential for valid model assessment. Furthermore, we showed that per-assignment hyperparameter optimization is a prerequisite for fair comparison, as it reveals the true competitive capacity of baseline models like DKT [13]. By providing a rectified evaluation protocol, our work offers a more rigorous foundation for measuring progress in programming knowledge tracing. We believe that the insights and standardized procedures established in this study will guide future research toward more reliable and transparent evaluations in the field of intelligent tutoring systems. Collectively, this work contributes (i) an empirical analysis of evaluation biases in programming knowledge tracing, (ii) a controlled and reproducible evaluation protocol, and (iii) task- and sequence-level insights that clarify when architectural complexity translates into genuine performance gains.

Acknowledgments This work was supported by the National Research Foundation of Korea(NRF) grant funded by the Korea government(Ministry of Science and ICT)(No.RS202516064585).

References [1] Uri Alon, Meital Zilberstein, Omer Levy, and Eran Yahav. code2vec: Learning distributed representations of code. Proceedings of the ACM on Programming Languages, 3(POPL):1–29, 2019. [2] Youngduck Choi, Youngnam Lee, Junghyun Cho, Jineon Baek, Byungsoo Kim, Yeongmin Cha, Dongmin Shin, Chan Bae, and Jaewe Heo. Towards an appropriate query, key, and value computation for knowledge tracing. In Proceedings of the seventh ACM conference on learning@ scale, pages 341–344, 2020.

13

[3] Aritra Ghosh, Neil Heffernan, and Andrew S Lan. Context-aware attentive knowledge tracing. In Proceedings of the 26th ACM SIGKDD international conference on knowledge discovery & data mining, pages 2330–2339, 2020. [4] Trevor Hastie, Robert Tibshirani, Jerome H Friedman, and Jerome H Friedman. The elements of statistical learning: data mining, inference, and prediction, volume 2. Springer, 2009. [5] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997. [6] Shuyan Huang, Zitao Liu, Xiangyu Zhao, Weiqi Luo, and Jian Weng. Towards robust knowledge tracing models via k-sparse attention. In Proceedings of the 46th international ACM SIGIR conference on research and development in information retrieval, pages 2441–2445, 2023. [7] Yoonjin Im, Eunseong Choi, Heejin Kook, and Jongwuk Lee. Forgettingaware linear bias for attentive knowledge tracing. In Proceedings of the 32nd ACM International Conference on Information and Knowledge Management, pages 3958–3962, 2023. [8] Mohammad Khajah, Robert V Lindsey, and Michael C Mozer. How deep is knowledge tracing? arXiv preprint arXiv:1604.02416, 2016. [9] Xueyi Li, Youheng Bai, Teng Guo, Ying Zheng, Mingliang Hou, Bojun Zhan, Yaying Huang, Zitao Liu, Boyu Gao, and Weiqi Luo. Extending context window of attention based knowledge tracing models via length extrapolation. In ECAI 2024, pages 1479–1486. IOS Press, 2024. [10] Z Liu. Accoding-dataset: v1.0.0 zenodo. https://doi.org/10.5281/zeno do.6522395, 2022. Accessed on 2024-05-16. [11] Zitao Liu, Qiongqiong Liu, Jiahao Chen, Shuyan Huang, Boyu Gao, Weiqi Luo, and Jian Weng. Enhancing deep knowledge tracing with auxiliary tasks. In Proceedings of the ACM web conference 2023, pages 4178–4187, 2023. [12] Zitao Liu, Qiongqiong Liu, Jiahao Chen, Shuyan Huang, and Weiqi Luo. simplekt: A simple but tough-to-beat baseline for knowledge tracing. In The Eleventh International Conference on Learning Representations, 2023. [13] Chris Piech, Jonathan Bassen, Jonathan Huang, Surya Ganguli, Mehran Sahami, Leonidas J Guibas, and Jascha Sohl-Dickstein. Deep knowledge tracing. Advances in neural information processing systems, 28, 2015. [14] Thomas W. Price and Yang Shi. Codeworkout data spring 2019. https: //pslcdatashop.web.cmu.edu/Files?datasetId=3458, 2021. Principal Investigator: Clifford A. Shaffer (Virginia Tech).

14

[15] Xiaoxuan Shen, Fenghua Yu, Yaqi Liu, Ruxia Liang, Qian Wan, Kai Yang, and Jianwen Sun. Revisiting knowledge tracing: A simple and powerful model. In Proceedings of the 32nd ACM International Conference on Multimedia, pages 263–272, 2024. [16] Yang Shi. Code-dkt source code. https://github.com/YangAzure/Cod e-DKT, 2026. Accessed: 2026-02-28. [17] Yang Shi, Min Chi, Tiffany Barnes, and Thomas W Price. Code-dkt: A code-based knowledge tracing model for programming tasks. In EDM, 2022. [18] Yang Yu, Yingbo Zhou, Yaokang Zhu, Yutong Ye, Liangyu Chen, and Mingsong Chen. Eckt: Enhancing code knowledge tracing via large language models. In Proceedings of the Annual Meeting of the Cognitive Science Society, volume 46, 2024. [19] Dejiao Zhang, Wasi Uddin Ahmad, Ming Tan, Hantian Ding, Ramesh Nallapati, Dan Roth, Xiaofei Ma, and Bing Xiang. Code representation learning at scale. In The Twelfth International Conference on Learning Representations, 2024.

15

Record · ID 168403 · SHA-256 42c17a15846a049d
Retrieved via Conceptio — every document is proof-bundled with source, license, and retrieval metadata.