paper-with-me

Papers

LLMs Lean on Priors, Not Programming Language Semantics

2025-10-03 · Aditya Thimmaiah, Jiyang Zhang, Jayanth Srinivasa, Junyi Jessy Li, Milos Gligoric arxiv

Recent work asks whether large language models (LLMs) condition their reasoning on explicit rules rather than statistical regularities from pretraining. Program execution provides a canonical instance: formal semantics define behavior through symbolic transition rules that can be systematically altered under distribution shift. We investigate whether LLMs can condition their reasoning on formal semantics through program execution and introduce PLSemanticsBench, pairing featherweight C programs with two semantic systems -- small-step operational semantics and K semantics -- and probing four capabilities: composing rules for final states, selecting rules when state is unmutated, sustaining such conditioning over long traces, and following supplied rules under novel semantics. To decouple semantic reasoning from syntactic familiarity, we redefine familiar operators to induce symbol-meaning conflict and introduce novel symbols defined only through the supplied rules, and stress-test models on Human-Written, LLM-Translated, and Fuzzer-Generated splits with increasing structural complexity. Across 11 frontier LLMs, strong final-state accuracy under standard semantics (up to 90%) drops sharply -- by as much as 40--60% points -- under semantic mutations and increasing structural complexity. Only a handful of models achieve non-zero long-horizon conditioning accuracy, and even the best systems reach just 35%. Together, these results suggest that contemporary LLMs often rely on pretrained lexical associations rather than systematically conditioning on supplied formal rules. PLSemanticsBench is publicly available at https://EngineeringSoftware.github.io/PLSemanticsBench.

📄 PDF Abstract BibTeX arXiv:2510.03415

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

A Functional View of Strong Negation in Answer Set Programming

2013-12-20 · Michael Bartholomew, Joohyung Lee

The distinction between strong negation and default negation has been useful in answer set programming. We present an alternative account of strong negation, which lets us view strong negation in terms of the functional …

Negation

Bound Founded Answer Set Programming

2014-05-14 · Rehan Abdul Aziz

Answer Set Programming (ASP) is a powerful modelling formalism that is very efficient in solving combinatorial problems. ASP solvers implement the stable model semantics that eliminates circular derivations between Boole…

An Evaluation Benchmark for Autoformalization in Lean4

2024-06-01 · Aryan Gulati, Devanshu Ladsaria, Shubhra Mishra, Jasdeep Sidhu 외

Large Language Models (LLMs) hold the potential to revolutionize autoformalization. The introduction of Lean4, a mathematical programming language, presents an unprecedented opportunity to rigorously assess the autoforma…

CodeRosetta: Pushing the Boundaries of Unsupervised Code Translation for Parallel Programming

2024-10-27 · Ali TehraniJamsaz, Arijit Bhattacharjee, Le Chen, Nesreen K. Ahmed 외

Recent advancements in Large Language Models (LLMs) have renewed interest in automatic programming language translation. Encoder-decoder transformer models, in particular, have shown promise in translating between differ…

Code TranslationDecoderTranslation

RepFusion: Leveraging Multimodal Priors for Denoising in Representation Space

2026-06-12 · Xichen Pan, Aashu Singh, Satya Narayan Shukla, Xiangjun Fan 외 arxiv

Large language models (LLMs) are widely used in text-to-image (T2I) systems, but they are typically limited to text encoding, while denoising is handled by newly trained generative backbones. The emergence of representat…