PapersSelected

CTE-Bench for Stateful Software Simulators

CTE-Bench: Counterfactual Trace Evaluation for Stateful Software Simulators

Why we picked it

This benchmark reveals critical limitations in current AI models' understanding of stateful systems, showing they struggle to track intervention effects without continuous correct feedback. Developers building coding assistants should note that models make compounding errors over time, highlighting the need for robust error handling and state management in AI systems.

CTE-Bench evaluates AI models' ability to predict how interventions change stateful software behavior.

Body

The benchmark contains 255 scenarios across six Python services, requiring models to predict 10,200 future responses.

With correct earlier responses, API models like DeepSeek V4-Flash and Claude Sonnet 4.6 achieve 54.

3%-61.5% accuracy on effect-step value match.

Without correct feedback, accuracy drops to 23.2%-33.

2%.

Original · arXiv: DeepSeek

CTE-Bench: Counterfactual Trace Evaluation for Stateful Software Simulators

Coding agents change running software: they patch a service's code or overwrite its stored state, and then act on their own expectation of how the service will respond afterwards. A wrong expectation may surface only several calls later. Function-level code-execution benchmarks omit persistent service state, and agent benchmarks score the actions an agent takes or the final state it reaches. We introduce CTE-Bench, which measures whether a model can predict how an intervention changes a stateful service's future behavior, without asking it to choose actions. Each scenario gives the model Python service code, the calls and responses observed before the intervention, the intervention itself (a source edit or a state overwrite), and 40 fixed future calls; the model predicts every future response, and predictions are checked by executing the service. Three memory protocols control whether the model sees the correct earlier responses, none of them, or its own earlier predictions. CTE-Bench-Core-v1 contains 255 scenarios over six deterministic Python services, giving 10,200 predictions per model. The main score is effect-step value match (VM): exact response equality on the 2,476 future calls whose response the intervention changes. With correct earlier responses revealed, four API-hosted models (DeepSeek V4-Flash, Kimi K2.5, Qwen3.6-35B-A3B, and Claude Sonnet 4.6) reach 54.3%-61.5% effect-step VM. Hiding those responses lowers effect-step VM to 23.2%-28.9%; conditioning on self-generated predictions gives 24.8%-33.2%, and at most 1.2% of scenarios are predicted exactly end to end. Current models thus track intervention effects mainly when correct feedback is supplied, and their errors compound over a rollout. We release CTE-Bench-Core-v1 with its executable oracle, evaluation scripts, and an evaluation card mapping each claim to its protocol.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include CTE-Bench, DeepSeek V4-Flash, Kimi K2.5, Qwen3.6-35B-A3B.

Primary source verification: published directly by arXiv: DeepSeek with first-party authority. Cross-source corroboration: 2 independent sources have covered this development (including ARC Prize), confirming industry-wide signal strength.