BRIDGE: Building Representations In Domain Guided Program Synthesis

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: George, Robert Joseph, Eisenach, Carson, Ghai, Udaya, Perrault-Joncas, Dominique, Anandkumar, Anima, Foster, Dean
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916010890625024
author George, Robert Joseph
Eisenach, Carson
Ghai, Udaya
Perrault-Joncas, Dominique
Anandkumar, Anima
Foster, Dean
author_facet George, Robert Joseph
Eisenach, Carson
Ghai, Udaya
Perrault-Joncas, Dominique
Anandkumar, Anima
Foster, Dean
contents Large language models can generate plausible code, but remain brittle for formal verification in proof assistants such as Lean. A central scalability challenge is that verified synthesis requires consistent artifacts across several coupled domains: executable code, formal specifications, theorem statements, and proof attempts. Existing approaches often treat these artifacts separately. We present BRIDGE, a structured prompting framework for multi-artifact program synthesis. BRIDGE decomposes generation into three interconnected domains: Code, Specification, and Theorem/Proof, and uses domain-specific intermediate reasoning to connect them. In Lean, BRIDGE often follows a code-first workflow, using the generated implementation as a semantic anchor for downstream specification, theorem statement, and proof-attempt generation. Across 178 algorithmic problems and five LLMs, BRIDGE improves Lean executable correctness by up to nearly 1.5x over direct prompting and can be roughly 2x more sample efficient at comparable generation lengths. We further find that specification-oriented prompting improves Python pass rates by up to 17.5 percentage points. Beyond inference-time prompting, supervised fine-tuning on BRIDGE-style reasoning traces yields nearly 1.5x higher Lean pass success than code-only fine-tuning, suggesting that these intermediate representations provide a learnable inductive bias. BRIDGE provides a practical framework for scaling verified synthesis while highlighting the remaining gap between executable correctness and full formal proof generation.
format Preprint
id arxiv_https___arxiv_org_abs_2511_21104
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle BRIDGE: Building Representations In Domain Guided Program Synthesis
George, Robert Joseph
Eisenach, Carson
Ghai, Udaya
Perrault-Joncas, Dominique
Anandkumar, Anima
Foster, Dean
Machine Learning
Programming Languages
68N30, 68Q55, 68T07
F.3.1; D.2.4; I.2.3
Large language models can generate plausible code, but remain brittle for formal verification in proof assistants such as Lean. A central scalability challenge is that verified synthesis requires consistent artifacts across several coupled domains: executable code, formal specifications, theorem statements, and proof attempts. Existing approaches often treat these artifacts separately. We present BRIDGE, a structured prompting framework for multi-artifact program synthesis. BRIDGE decomposes generation into three interconnected domains: Code, Specification, and Theorem/Proof, and uses domain-specific intermediate reasoning to connect them. In Lean, BRIDGE often follows a code-first workflow, using the generated implementation as a semantic anchor for downstream specification, theorem statement, and proof-attempt generation. Across 178 algorithmic problems and five LLMs, BRIDGE improves Lean executable correctness by up to nearly 1.5x over direct prompting and can be roughly 2x more sample efficient at comparable generation lengths. We further find that specification-oriented prompting improves Python pass rates by up to 17.5 percentage points. Beyond inference-time prompting, supervised fine-tuning on BRIDGE-style reasoning traces yields nearly 1.5x higher Lean pass success than code-only fine-tuning, suggesting that these intermediate representations provide a learnable inductive bias. BRIDGE provides a practical framework for scaling verified synthesis while highlighting the remaining gap between executable correctness and full formal proof generation.
title BRIDGE: Building Representations In Domain Guided Program Synthesis
topic Machine Learning
Programming Languages
68N30, 68Q55, 68T07
F.3.1; D.2.4; I.2.3
url https://arxiv.org/abs/2511.21104