CoRE: A Fine-Grained Code Reasoning Benchmark Beyond Output Prediction
On the map: LLM reasoning → Reasoning for agents, planning and code
Abstract (arXiv)
Despite strong performance on code generation tasks, it remains unclear whether large language models (LLMs) genuinely reason about code execution. Existing code reasoning benchmarks primarily evaluate final output correctness under a single canonical implementation, leaving two critical aspects underexplored: (1) whether LLMs can maintain consistency to functionally equivalent implementations, and (2) whether LLMs can accurately reason about intermediate execution states. We introduce CoRE, a Code Reasoning benchmark that evaluates code reasoning through implementation invariance and process transparency. Extensive evaluations on eight frontier LLMs reveal two fundamental limitations. First, models exhibit a substantial robustness gap, with performance varying significantly across equivalent implementations. Second, we observe superficial execution, where models arrive at correct final outputs without correctly reasoning about intermediate execution states. Together, these findings demonstrate that output-only evaluations are insufficient for assessing code reasoning and position CoRE as a necessary benchmark for evaluating robust and faithful code reasoning.footnoteData and code are available at https://github.com/ZJUSig/CoRE.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 15 of its 36 references that are in the map. First posted on arXiv 28 Apr 2026.
Builds on
15 of 36 references.
Closest ancestors · 2
Same direction, newest first
- 2025textttReMind: Understanding Deductive Code Reasoning in LLMs1 Nov
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code12 Mar
Other references · 13
- 2025Qwen3 Technical Reportcited by 8,195
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
- 2024GPT-4o System Cardcited by 4,467
- 2022Solving math word problems with process- and outcome-based feedbackcited by 871
- 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 755
- 2024DeepSeek-V3 Technical Reportcited by 724
- 2023Measuring Faithfulness in Chain-of-Thought Reasoningcited by 668
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 294
- 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repaircited by 225
- 2025AnyTalker: Scaling Multi-Person Talking Video Generation with Interactivity Refinementcited by 19
- 2025Balancing Fidelity and Plasticity: Aligning Mixed-Precision Fine-Tuning with Linguistic Hierarchiescited by 5
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2025Demystifying Errors in LLM Reasoning Traces: An Empirical Study of Code Execution Simulation
- 2025CoRe: Benchmarking LLMs Code Reasoning Capabilities through Static Analysis Tasks
- 2026An Execution-Verified Multi-Language Benchmark for Code Semantic Reasoning
- 2025Beyond Synthetic Benchmarks: Evaluating LLM Performance on Real-World Class-Level Code Generation
- 2025A Tool for In-depth Analysis of Code Execution Reasoning of Large Language Models
- 2024CodeMind: Evaluating Large Language Models for Code Reasoning
- 2025EquiBench: Benchmarking Large Language Models' Reasoning about Program Semantics via Equivalence Checking
- 2026Inferring Code Correctness from Specification