paper-with-me

Papers

Estimating Correctness Without Oracles in LLM-Based Code Generation

2025-06-26 · Thomas Valentin, Ardi Madadi, Gaetano Sapia, Marcel Böhme

Generating code from natural language specifications is one of the most successful applications of Large Language Models (LLMs). Yet, they hallucinate: LLMs produce outputs that may be grammatically correct but are factually incorrect. Without an existing, correct implementation (i.e., an oracle), can we quantify how likely the generated program is correct? In this paper, we propose a measure of incorrectness, called incoherence, that can be estimated efficiently in the absence of an oracle and provides a lower bound on the error, i.e., the probability that the LLM-generated program for that specification is incorrect. Our experiments demonstrate an extraordinary effectiveness. For the average code generation task, our incoherence-based methodology can automatically identify about two-thirds of incorrect programs without reports of false positives. In fact, an oracle-based evaluation of LLMs can be reliably replaced by an incoherence-based evaluation. In particular, we find a very strong agreement between the ranking of LLMs by the number of programs deemed correct via an oracle (pass@1) and the ranking of LLMs by the number of programs deemed correct via our incoherence.

📄 PDF Abstract BibTeX arXiv:2507.00057

Code (1)

mpi-softsec/difftrust 공식 구현

Tasks

Code Generation

Similar Papers 제목 키워드 기반

ALGO: Synthesizing Algorithmic Programs with LLM-Generated Oracle Verifiers

2023-05-24 · NeurIPS 2023 11 · Kexun Zhang, Danqing Wang, Jingtao Xia, William Yang Wang 외

Large language models (LLMs) excel at implementing code from functionality descriptions but struggle with algorithmic problems that require not only implementation but also identification of the suitable algorithm. Moreo…

Code Generation

ICE-Score: Instructing Large Language Models to Evaluate Code

2023-04-27 · Terry Yue Zhuo

Recent advancements in the field of natural language generation have facilitated the use of large language models to assess the quality of generated text. Although these models have shown promising results in tasks such …

Code GenerationMachine TranslationText Generation

VISOR: A Vision-Language Model-based Test Oracle for Testing Robots

2026-05-11 · Prasun Saurabh, Pablo Valle, Aitor Arrieta, Shaukat Ali 외 arxiv

Testing robots requires assessing whether they perform their intended tasks correctly, dependably, and with high quality, a challenge known as the test oracle problem in software testing. Traditionally, this assessment r…

Confidence and Calibration of Activation Oracles for Reliable Interpretation of Language Model Internals

2026-05-25 · Federico Torrielli, Peter Schneider-Kamp, Lukas Galke Poech arxiv

Activation oracles aim to make the activations of other models legible to humans and yield promising results compared to white-box interpretability techniques. However, uncertainty quantification (UQ) for the natural-lan…

SolidCoder: Bridging the Mental-Reality Gap in LLM Code Generation through Concrete Execution

2026-04-20 · Woojin Lee, Jin-Xia Huang arxiv

State-of-the-art code generation frameworks rely on mental simulation, where LLMs internally trace execution to verify correctness. We expose a fundamental limitation: the Mental-Reality Gap -- where models hallucinate e…

Code Generation