mlsanityData to 7 Oct 2026

textttReMind: Understanding Deductive Code Reasoning in LLMs

arXiv 2511.00488 ↗First posted 1 Nov 2025cs.PL cs.CLcited by 2

On the map: LLM reasoning → Reasoning for agents, planning and code

Abstract (arXiv)

Large Language Models (LLMs) have achieved remarkable progress in code-related tasks. Despite their advancement, empirical evidence reveals that they still struggle with deductive code reasoning, the ability to reason about the program execution process. While prior studies have recognized this limitation, the underlying causes remain largely underexplored. In this paper, we begin by presenting a comprehensive empirical study that reveals three key challenges undermining deductive code reasoning: (1) an intrinsic gap between generation and reasoning abilities, (2) a consistent bias towards code sources, and (3) weak zero-shot generalization on complex benchmarks. In light of these challenges, we propose textttReMind, a multi-agent framework composed of textttMutator, textttExecutor, and textttInspector. The textttMutator generates code variants to mitigate bias towards code sources, the textttExecutor traces variable states step-by-step to expose inconsistency, and the textttInspector identifies problematic reasoning steps and provides control-flow refinement to bridge the intrinsic reasoning gap. Through their coordinated collaboration, textttReMind systematically identifies and refines reasoning flaws, achieving outstanding performance and enabling robust zero-shot generalization. Extensive experiments on two benchmarks with five LLMs demonstrate the superior advantages of textttReMind compared to baseline approaches in deductive code reasoning.

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 26 of its 30 references that are in the map. First posted on arXiv 1 Nov 2025.

Builds on

26 of 30 references.

Closest ancestors · 5

Same direction, newest first

  1. 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMs26 Feb
  2. 2025Unveiling the Magic of Code Reasoning through Hypothesis Decomposition and Amendment17 Feb
  3. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code12 Mar
  4. 2023An LLM Compiler for Parallel Function Calling7 Dec
  5. 2023Chain of Code: Reasoning with a Language Model-Augmented Code Emulator7 Dec

Other references · 21

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  2. 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
  3. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,628
  4. 2025s1: Simple test-time scalingcited by 1,311
  5. 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 294
  6. 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repaircited by 225
  7. 2025Preference Leakage: A Contamination Problem in LLM-as-a-judgecited by 119
  8. 2023InferFix: End-to-End Program Repair with LLMscited by 113
  9. 2025A Survey on Code Generation with LLM-based Agentscited by 104
  10. 2025MasRouter: Learning to Route LLMs for Multi-Agent Systemscited by 80
  11. 2023Igniting Language Intelligence: The Hitchhiker's Guide From Chain-of-Thought Reasoning to Language Agentscited by 72
  12. 2024Enchanting Program Specification Synthesis by Large Language Models using Static Analysis and Program Verificationcited by 55
9 more
  1. 2025RepoAudit: An Autonomous LLM-Agent for Repository-Level Code Auditingcited by 47
  2. 2024Iterative Refinement of Project-Level Code Context for Precise Code Generation with Compiler Feedbackcited by 45
  3. 2024CodeHalu: Investigating Code Hallucinations in LLMs via Execution-based Verificationcited by 32
  4. 2025Mutation-Guided LLM-based Test Generation at Metacited by 23
  5. 2022Don't Complete It! Preventing Unhelpful Code Completion for Productive and Sustainable Neural Code Completion Systemscited by 12
  6. 2024SelfPiCo: Self-Guided Partial Code Execution with LLMscited by 7
  7. 2024Mutation-based Consistency Testing for Evaluating the Code Understanding Capability of LLMscited by 6
  8. 2023Towards Trustworthy AI Software Development Assistancecited by 4
  9. 2025Assessing the Impact of Code Changes on the Fault Localizability of Large Language Modelscited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Demystifying Errors in LLM Reasoning Traces: An Empirical Study of Code Execution Simulation
  2. 2026TDD-Agent: Test-Driven Reasoning for Code Generation
  3. 2024CodeMind: Evaluating Large Language Models for Code Reasoning
  4. 2026Exploring Extrinsic and Intrinsic Properties for Effective Reasoning with Code Interpreter
  5. 2025A Tool for In-depth Analysis of Code Execution Reasoning of Large Language Models
  6. 2025Evaluating Code Reasoning Abilities of Large Language Models Under Real-World Settings
  7. 2025Breakpoint: Scalable evaluation of system-level reasoning in LLM code agents
  8. 2025Code Reasoning for Software Engineering Tasks: A Survey and A Call to Action