arXiv:2609.00940cs.CLSep 2026

Manuscript Offprint

arXiv:2609.00940

A Dataset for Modeling Iterative Problem-Solving

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

Abstract

Solving problems through repeated attempts is a sequential modeling task: at each step, the solver receives feedback and decides how to revise their solutions. Predicting whether performance improves, plateaus, or regresses across attempts is central to understanding any iterative problem-solving process in both human learners and autonomous agents. Beyond outcomes, modeling what errors persist and how strategies shift across attempts provides deeper insight into the mechanics of sequential learning. Studying these dynamics requires observing many solvers as they attempt, receive feedback, and revise. Programming courses with automated grading provide this setting, as students iteratively submit code to test suites and receive feedback on every attempt. We therefore curate CodeInsight, a large-scale dataset of over 3 million submissions from 3,286 undergraduates across 2 introductory C++ courses in 2 academic years, with test-case-level outcomes, timestamps, and source code. On this dataset, we build a benchmark that evaluates models spanning parametric, sequential, and generative traditions under a shared calibration-and-scoring protocol, including a Recurrent State Space Model (RSSM) adapted to track solver characteristics through discrete latent variables and an LLM-based predictor that generates explicit solutions. The adapted RSSM achieves the strongest predictive accuracy on three of the four courses. The LLM predictor is less accurate but produces full submissions at each attempt, enabling direct analysis of failure modes. We find that the model's coding proficiency is inversely related to predictive performance in this setting, with the LLM better understood as a generative solver conditioned on context rather than a faithful predictor of solver behavior. We publicly release our code and the dataset on request to facilitate future research. 1^{1}

1 Introduction

Problem-solving is inherently iterative: a solver receives feedback, revises their solutions, and tries again. The resulting trajectory of attempts encodes how their solutions evolve. Students submitting code against a test suite or LLMs solving a coding task both produce sequential records of iterative refinement (Fahid et al., 2021; Rivers et al., 2016). These trajectories are rich but noisy: a single-character change can flip a submission from incorrect to correct, and solvers may improve steadily, plateau for long stretches, or regress after apparent progress on a given task. Predicting these dynamics is a sequential modeling problem with practical applications from evaluating autonomous agents to adaptive instruction (Piech et al., 2015). Beyond predicting outcomes, modeling which errors persist and how strategies shift across attempts can inform personalized feedback, diagnose systematic failure modes, and support use cases such as routing model decisions on LLMs (Ong et al., 2025; Chen et al., 2024b).

Several families of models have been applied to predicting problem-solving trajectories. Parametric models such as Item Response Theory (IRT) (Embreton and Reise, 2000) estimate fixed solver and problem parameters to predict binary outcomes, but do not typically model how solvers' skill levels evolve over attempts. Sequential prediction models track how solver performance changes but remain limited to binary correctness; Bayesian Knowledge Tracing (BKT) (Corbett and Anderson, 1994), a hidden Markov model, and Deep Knowledge Tracing (DKT) (Piech et al., 2015), a type of Recurrent Neural Network, are the primary examples in this domain. More recently, LLMs have been used to emulate problem-solving behavior (Markel et al., 2023), generating solutions (Scarlatos et al., 2025) and operating over richer representations that can

1^{1}Code: github.com/aims-foundations/dynamic-irt; Dataset: huggingface.co/datasets/CodeInsightTeam/

code_insights_csv.

capture failure modes directly from context. These approaches have developed independently, and no existing study compares them for next-step prediction under a shared evaluation framework.

Programming courses provide rich temporal data for such a comparison: students submit code repeatedly against automated test suites, receive immediate feedback, and generate longitudinal trajectories that span the full arc of iterative problem-solving (Messer et al., 2024; Blikstein et al., 2014). We curate CodeInsight, a large-scale dataset of 3,286 undergraduates learning C++ across 394 problems at a Vietnamese university (2022–2024), comprising over 3 million submissions with test-case-level correctness, timestamps, and source code. On this dataset we build a benchmark that evaluates models spanning parametric, sequential, and generative traditions under a shared calibration-and-scoring protocol. Among these, we adapt a Recurrent State Space Model (RSSM) with discrete latent variables that tracks solver characteristics over time, and an LLM-based predictor that generates the solutions based on students' profiles. We find that RSSM achieves stronger predictive accuracy on three of the four courses by training directly on response patterns, while the LLM predictor falls below all trained models. Because the LLM generates complete solution attempts, we can diagnose this gap directly: its predictive signal is driven more by problem difficulty than by solver-specific behavior, and models with stronger coding ability predict worse. Our contributions are as follows:

• Dataset. We curate CodeInsight, a large-scale dataset of 3,286 undergraduates learning C++ across 394 problems at a Vietnamese university (2022–2024), comprising over 3 million code submissions with test-case-level correctness, timestamps, and source code, released under a departmental license upon request.

• Benchmarking Predictive Models. We introduce a benchmark for next-attempt prediction on sequential data that evaluates models spanning parametric, sequential, and generative traditions under a shared calibration-and-scoring protocol; to our knowledge, this is the first study to compare these modeling traditions under one evaluation framework. The RSSM achieves the highest AUC on three of the four courses, while the LLM predictor falls below the parametric models and the RSSM at nearly every attempt, with a predictive signal driven more by problem difficulty than solver-specific behavior.