paper-with-me

홈 › Papers

Models That Prove Their Own Correctness

2024-05-24 · Noga Amit, Shafi Goldwasser, Orr Paradise, Guy Rothblum

How can we trust the correctness of a learned model on a particular input of interest? Model accuracy is typically measured *on average* over a distribution of inputs, giving no guarantee for any fixed input. This paper proposes a theoretically-founded solution to this problem: to train *Self-Proving models* that prove the correctness of their output to a verification algorithm $V$ via an Interactive Proof. Self-Proving models satisfy that, with high probability over a random input, the model generates a correct output *and* successfully proves its correctness to $V\!$. The *soundness* property of $V$ guarantees that, for *every* input, no model can convince $V$ of the correctness of an incorrect output. Thus, a Self-Proving model proves correctness of most of its outputs, while *all* incorrect outputs (of any model) are detected by $V$. We devise a generic method for learning Self-Proving models, and we prove convergence bounds under certain assumptions. The theoretical framework and results are complemented by experiments on an arithmetic capability: computing the greatest common divisor (GCD) of two integers. Our learning method is used to train a Self-Proving transformer that computes the GCD *and* proves the correctness of its answer.

📄 PDF Abstract BibTeX arXiv:2405.15722

Code (1)

orrp/self-proving-models 공식 구현 pytorch

Similar Papers 제목 키워드 기반

Confidence Geometry Reveals Trace-Level Correctness in Large Language Model Reasoning

2026-05-16 · Shuo Liu, Ding Liu, Shi-Ju Ran arxiv

Large language models (LLMs) generate not only reasoning text, but also token-level confidence trajectories that record how uncertainty evolves during inference. Whether these trajectories are relevant to reasoning corre…

Evaluating Large Language Models for Code Review

2025-05-26 · Umut Cihan, Arda İçöz, Vahid Haratian, Eray Tüzün

Context: Code reviews are crucial for software quality. Recent AI advances have allowed large language models (LLMs) to review and fix code; now, there are tools that perform these reviews. However, their reliability and…

HumanEval

Generalized Correctness Models: Learning Calibrated and Model-Agnostic Correctness Predictors from Historical Patterns

2025-09-29 · Hanqi Xiao, Vaidehi Patil, Hyunji Lee, Elias Stengel-Eskin 외 arxiv

Generating accurate and calibrated confidence estimates is critical for deploying LLMs in high-stakes or user-facing applications, and remains an open challenge. Prior research has often framed confidence as a problem of…

When are likely answers right? On Sequence Probability and Correctness in LLMs

2026-06-25 · Johannes Zenn, Jonas Geiping arxiv

Many decoding methods for large language models can be understood as shifting probability mass toward outputs that are more likely under the model, either locally at the token level or globally at the sequence level. The…

LLM4EFFI: Leveraging Large Language Models to Enhance Code Efficiency and Correctness

2025-02-17 · Tong Ye, Weigang Huang, Xuhong Zhang, Tengfei Ma 외

Large Language Models (LLMs), particularly Code LLMs, have demonstrated impressive performance in code generation. Current research primarily focuses on the correctness of generated code, while efficiency remains less ex…

Code Generation