paper-with-me

Papers

Towards Verified Code Reasoning by LLMs

2025-09-30 · Meghana Sistla, Gogul Balakrishnan, Pat Rondon, José Cambronero, Michele Tufano, Satish Chandra arxiv

While LLM-based agents are able to tackle a wide variety of code reasoning questions, the answers are not always correct. This prevents the agent from being useful in situations where high precision is desired: (1) helping a software engineer understand a new code base, (2) helping a software engineer during code review sessions, and (3) ensuring that the code generated by an automated code generation system meets certain requirements (e.g. fixes a bug, improves readability, implements a feature). As a result of this lack of trustworthiness, the agent's answers need to be manually verified before they can be trusted. Manually confirming responses from a code reasoning agent requires human effort and can result in slower developer productivity, which weakens the assistance benefits of the agent. In this paper, we describe a method to automatically validate the answers provided by a code reasoning agent by verifying its reasoning steps. At a very high level, the method consists of extracting a formal representation of the agent's response and, subsequently, using formal verification and program analysis tools to verify the agent's reasoning steps. We applied this approach to a benchmark set of 20 uninitialized variable errors detected by sanitizers and 20 program equivalence queries. For the uninitialized variable errors, the formal verification step was able to validate the agent's reasoning on 13/20 examples, and for the program equivalence queries, the formal verification step successfully caught 6/8 incorrect judgments made by the agent.

📄 PDF Abstract BibTeX arXiv:2509.26546

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

rStar-Coder: Scaling Competitive Code Reasoning with a Large-Scale Verified Dataset

2025-05-27 · Yifei Liu, Li Lyna Zhang, Yi Zhu, Bingcheng Dong 외

Advancing code reasoning in large language models (LLMs) is fundamentally limited by the scarcity of high-difficulty datasets, especially those with verifiable input-output test cases necessary for rigorous solution vali…

SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolution

2025-02-25 · Yuxiang Wei, Olivier Duchenne, Jade Copet, Quentin Carbonneaux 외

The recent DeepSeek-R1 release has demonstrated the immense potential of reinforcement learning (RL) in enhancing the general reasoning capabilities of large language models (LLMs). While DeepSeek-R1 and other follow-up …

MathReinforcement Learning (RL)

Reliable Reasoning with Large Language Models via Preference-Based Maximum Satisfiability

2026-05-28 · Pedro Orvalho, Marta Kwiatkowska, Guillem Alenyà, Felip Manyà arxiv

Large Language Models (LLMs) excel at understanding natural language but struggle with optimisation tasks involving multiple constraints and user-defined preferences, which commonly arise in domains such as robotics. We …

Code Generation

X-PCR: A Benchmark for Cross-modality Progressive Clinical Reasoning in Ophthalmic Diagnosis

2026-04-22 · Gui Wang, Zehao Zhong, YongSong Zhou, Yudong Li 외 arxiv

Despite significant progress in Multi-modal Large Language Models (MLLMs), their clinical reasoning capacity for multi-modal diagnosis remains largely unexamined. Current benchmarks, mostly single-modality data, can't ev…

Image Quality Assessment

CORE: Benchmarking LLMs Code Reasoning Capabilities through Static Analysis Tasks

2025-07-03 · Danning Xie, Mingwei Zheng, Xuwei Liu, Jiannan Wang 외

Large language models (LLMs) have been widely adopted across diverse software engineering domains, such as code generation, program repair, and vulnerability detection. These applications require understanding beyond sur…

BenchmarkingCode GenerationProgram RepairVulnerability Detection