A Dataset for Modeling Iterative Problem-Solving

Fagun Patel, Sang T. Truong, Duc Q. Nguyen, Kazunori Fukuhara, Benjamin W. Domingue, Sanmi Koyejo, Nick HaberarXiv 2026

TL;DR

The authors introduce CodeInsight, a massive dataset of over 3 million iterative code submissions from university students, to benchmark how well models can predict step-by-step problem-solving trajectories. Their findings reveal that an adapted Recurrent State Space Model (RSSM) excels at tracking student progress, while Large Language Models (LLMs) function more as independent solvers than faithful simulators of human error.

What Problem Does This Paper Address?

When humans or autonomous agents solve complex problems, they rarely get it right on the first try. Instead, they engage in an iterative loop: write a solution, receive feedback (like compiler errors or failed test cases), and revise.

While traditional educational frameworks like Knowledge Tracing model whether a student understands a concept across different tasks, they fail to capture the fine-grained, noisy dynamics of debugging a single task. Predicting whether a solver will improve, plateau, or regress across repeated attempts is crucial for building adaptive tutoring systems and evaluating AI agents. However, research has been bottlenecked by a lack of large-scale, code-level datasets that track these exact trajectories.

Methods

The authors establish a rigorous benchmark to evaluate three distinct modeling traditions under a unified evaluation pipeline:

  1. Parametric Models: Standard Item Response Theory (IRT) and a temporal extension (CIRT) that estimates static student ability and item difficulty.
  2. Sequential Models: Traditional approaches like Bayesian Knowledge Tracing (BKT), Deep Knowledge Tracing (DKT), and code-aware variants (Code-DKT, TIKTOC).
  3. Adapted RSSM (Recurrent State Space Model): The authors adapt a model from the reinforcement learning world (DreamerV2). It embeds both the student's code and the problem description using a pretrained embedding model, passing them through a Gated Recurrent Unit (GRU) to update a hidden state. It infers discrete latent variables to track the solver's evolving characteristics over time.
  4. LLM-as-Predictor: The authors evaluate frozen LLMs (including Qwen3-14B, Gemma-4-31B, and Claude Opus) by providing them with a structured "behavioral persona" of the student, problem statistics, and the history of prior attempts, prompting the model to generate the student's next expected code submission.

The shared evaluation pipeline is structured to first estimate item difficulty on a training set, calibrate student ability on early-week data, and then predict performance on held-out future weeks.

Figure 2: Shared evaluation pipeline. After quality filtering, students are partitioned into train and test sets. Train students to estimate item difficulty parameters (bj) across all weeks. These frozen item parameters are transferred to the test set, where student ability (θtest) is calibrated in the early weeks. The calibrated model then predicts test student performance on held-out weeks. All models follow this pipeline.

Datasets

The paper introduces CodeInsight, a dataset containing 3,074,795 submissions from 3,286 undergraduate students across two introductory C++ courses (Programming Fundamentals and Data Structures & Algorithms) over two academic years.

Unlike existing datasets that only provide aggregate pass percentages or single verdicts, CodeInsight includes:

  • Full source code for every attempt.
  • Exact timestamps.
  • Fine-grained, per-test-case pass/fail labels across 3,888 distinct test cases.

Key Insights and Ideas

  • The Coding Proficiency Paradox: Surprisingly, an LLM’s coding capability is inversely related to its predictive performance. Weaker coding models (like Qwen3-14B) outperformed stronger models (like Claude Opus) at predicting student behavior. Stronger LLMs are over-optimized to generate correct, clean code, making them incapable of realistically emulating the messy, incremental errors that human students actually make.
  • LLMs Solve, They Don't Simulate: By subtracting problem-level difficulty from the evaluation, the authors found that the correlation between LLM predictions and actual student behavior dropped to near zero. This indicates that LLMs predict outcomes based almost entirely on how hard the problem is, rather than by modeling the specific student's traits or strategy.
  • Latent States Beat Static Parameters: The adapted RSSM outperformed traditional psychometric models because its discrete latent variables successfully capture the non-linear dynamics of debugging—where a student might plateau for five attempts before a single-character fix flips the code to correct.

Key Results

  • RSSM Dominance: The adapted RSSM achieved the highest predictive accuracy (AUC and Balanced Accuracy) on three out of the four evaluated course cohorts. On the complex Data Structures cohort, it achieved a late-attempt balanced accuracy of 0.71–0.73, significantly outperforming standard sequential models like DKT.
  • LLM Performance: The LLM predictors consistently underperformed compared to both the RSSM and basic parametric models (IRT/CIRT) across nearly every attempt number, hovering at a lower balanced accuracy of 0.57–0.65.
  • Error Distribution: Qualitative analysis showed that LLMs almost completely eliminate syntax and runtime errors in their predictions, whereas real students frequently struggle with them over multiple attempts.

Limitations and Future Work

The CodeInsight dataset is currently limited to C++ courses at a single institution, meaning the observed debugging patterns might be influenced by C++'s notoriously strict syntax and the specific automated grading platform used.

Furthermore, the LLMs were evaluated strictly in a zero-shot, frozen parameter setting. The authors note that future work should explore fault-guided fine-tuning—training LLMs specifically on buggy student code trajectories—to see if they can learn to simulate human flaws more accurately. Finally, probing the RSSM’s discrete latent space could reveal interpretable, symbolic "solver states" that teachers could use to diagnose specific student misconceptions.

Summary updated

BibTeX
@misc{patel2026dataset,
  author = {Fagun Patel and Sang T. Truong and Duc Q. Nguyen and Kazunori Fukuhara and Benjamin W. Domingue and Sanmi Koyejo and Nick Haber},
  title = {{A Dataset for Modeling Iterative Problem-Solving}},
  year = {2026},
  eprint = {2609.00940},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.00940},
}
Figure