mlsanityData to 24 Nov 2026

SCRBench: Beyond Equivalence Checking for Semantic Change Reasoning in Code

arXiv 2610.41562 ↗Submitted 30 Oct 2026cs.SE cs.CLcited by 0

On the map: LLM reasoning → Reasoning for agents, planning and code also fits: Reasoning benchmarks and evaluation

Abstract (arXiv)

Understanding how code changes affect program semantics is a core aspect of code reasoning in language models. It is commonly evaluated by asking whether two programs are semantically equivalent, but a yes/no answer does not reveal whether a model knows which code change caused a semantic difference, or which sequence of code changes produced the modified program. We study two tasks that ask these questions directly, diagnosing semantic change and reconstructing sequences of code changes, alongside detecting semantic equivalence. We build SCRBench, 67,658 Python program pairs generated by applying sequences of code changes that preserve or alter program semantics, and evaluate five language models on a stratified subset of 4,500 pairs. Detecting semantic equivalence exposes weaker models, whose accuracy declines as changes accumulate, but the strongest models remain near the ceiling. Diagnosing semantic change reveals weaknesses that equivalence accuracy hides: a model with 94.71% equivalence accuracy diagnoses only 54.44% of semantic changes. Reconstructing sequences of code changes is much harder: the best model reconstructs the exact sequence for only 39.27% of pairs, and no model exceeds 1.11% when five changes are applied. High equivalence accuracy therefore overestimates how well models reason about the semantic effects of code changes.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 13 of its 37 references that are in the map. Submitted 30 Oct 2026.

Builds on

13 of 37 references.

Closest ancestors · 1

Same direction, newest first

  1. 2025EquiBench: Benchmarking Large Language Models' Reasoning about Program Semantics via Equivalence Checking18 Feb

Other references · 12

  1. 2024The Llama 3 Herd of Modelscited by 16,113
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,938
  3. 2021Program Synthesis with Large Language Modelscited by 3,972
  4. 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,638
  5. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,530
  6. 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 337
  7. 2022ReCode: Robustness Evaluation of Code Generation Modelscited by 114
  8. 2022NatGen: Generative pre-training by "Naturalizing" source codecited by 55
  9. 2020Semantic Robustness of Models of Source Codecited by 46
  10. 2024What can Large Language Models Capture about Code Functional Equivalence?cited by 16
  11. 2024Large Language Models for Equivalent Mutant Detection: How Far Are We?cited by 7
  12. 2025LLMs are Brittle to Simple Code Transformations: Introducing CETBench - A Benchmark for Code-Equivalence Checkingcited by 3

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Evaluating Language Models on Cross-Language Code Functional Equivalence
  2. 2026An Execution-Verified Multi-Language Benchmark for Code Semantic Reasoning
  3. 2025Disproving Program Equivalence with LLMs
  4. 2026Code as Explanations: Executable and Verifiable LLM Explanations
  5. 2026The Path Not Taken: Duality in Reasoning about Program Execution
  6. 2025Do Code Semantics Help? A Comprehensive Study on Execution Trace-Based Information for Code Large Language Models
  7. 2025Demystifying Errors in LLM Reasoning Traces: An Empirical Study of Code Execution Simulation
  8. 2025Evaluating Code Reasoning Abilities of Large Language Models Under Real-World Settings