paper-with-me

홈 › Papers

Evaluating Program Semantics Reasoning with Type Inference in System F

2025-09-28 · Yifeng He, Luning Yang, Christopher Castro Gaw Gonzalo, Hao Chen arxiv

Large Language Models (LLMs) are increasingly integrated into the software engineering ecosystem. Their test-time compute (TTC) reasoning capabilities show significant potential for understanding program logic and semantics beyond mere token recognition. However, current benchmarks for code reasoning lack a formal, program-centric deductive framework to ensure sound evaluation, and are incapable of assessing whether models genuinely reason about program semantics or merely exploit superficial associations between natural language and code tokens. To bridge this gap, we introduce TF-Bench, a benchmark designed to evaluate LLM reasoning based on type inference in System F, a task we refer to as program semantics reasoning. By employing verified transformations to remove semantically irrelevant natural language, we construct TF-Bench_pure, a purely semantics-driven variant of TF-Bench. Our analysis reveals substantial limitations in state-of-the-art LLMs, with the best-performing LLM (Claude-3.7-sonnet) achieving only 55.85% accuracy on TF-Bench_pure. Additionally, we propose two novel metrics to assess robustness and the effectiveness of test-time reasoning, underscoring critical limitations in current LLM capabilities and highlighting essential directions for future research.

📄 PDF Abstract BibTeX arXiv:2509.23686

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Human Conditional Reasoning in Answer Set Programming

2023-11-08 · Chiaki Sakama

Given a conditional sentence "P=>Q" (if P then Q) and respective facts, four different types of inferences are observed in human reasoning. Affirming the antecedent (AA) (or modus ponens) reasons Q from P; affirming the …

Logical FallaciesSentencevalid

RankPL: A Qualitative Probabilistic Programming Language

2017-05-19 · Tjitze Rienstra

In this paper we introduce RankPL, a modeling language that can be thought of as a qualitative variant of a probabilistic programming language with a semantics based on Spohn's ranking theory. Broadly speaking, RankPL ca…

Causal InferenceProbabilistic Programming

Probability Aggregates in Probability Answer Set Programming

2013-04-05 · Emad Saad

Probability answer set programming is a declarative programming that has been shown effective for representing and reasoning about a variety of probability reasoning tasks. However, the lack of probability aggregates, e.…

Proceedings 36th International Conference on Logic Programming (Technical Communications)

2020-09-19 · Francesco Ricca, Alessandra Russo, Sergio Greco, Nicola Leone 외

Since the first conference held in Marseille in 1982, ICLP has been the premier international event for presenting research in logic programming. Contributions are solicited in all areas of logic programming and related …

Automated Theorem ProvingData IntegrationInductive logic programming

Can LLMs Reason About Program Semantics? A Comprehensive Evaluation of LLMs on Formal Specification Inference

2025-02-22 · Thanh Le-Cong, Bach Le, Toby Murray

Large Language Models (LLMs) are increasingly being used to automate programming tasks. Yet, LLMs' capabilities in reasoning about program semantics are still inadequately studied, leaving significant potential for furth…