atlas

Research map / Large language models / Agents, code and math

Synthetic Programming Elicitation for Text-to-Code in Very Low-Resource Programming and Formal Languages

NeurIPS 2024 · Large language models › Agents, code and math · approach: Execution-based code verification · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes SPEAC, which designs a Python-subset intermediate language LLMs naturally produce, repairs out-of-language code with MAX-SMT-based compiler techniques and LLM hole-filling, and instantiates it as Eudoxus for the UCLID5 verification language.

Problem

LLMs struggle to generate syntactically valid code in very low-resource programming languages (VLPLs) such as the UCLID5 formal verification language, which are scarce in pre-training data and public examples.

Approach

Use synthetic programming elicitation (grounded-theory analysis of LLM outputs) to pick a parent language (Python) and a child subset that LLMs naturally write, then compile the child subset to the target VLPL, repairing out-of-subset code with largest-consistent-subtree MAX-SMT edits and LLM-filled holes.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use SPEAC/Eudoxus instead of standard LLM baselinesUCLID5 text-to-code generation · Textbook benchmarks (33)parse rate: 28/33 vs. 2/33Helped
Use SPEAC/Eudoxus instead of standard LLM baselinesUCLID5 text-to-code generation · Textbook benchmarks (33)semantic correctness: 33/52 programs (24 unique problems) scored four or higherNo clear effect
Use Eudoxus with GPT3t instead of direct UCLID5 generationGPT-3.5-turbo-0125 · UCLID5 regression tests (33)syntactic correctness: 9.1% -> 84.8%Helped
Use Eudoxus with GPT4t instead of direct in-context generationGPT-4-turbo-2024-04-09 · UCLID5 regression tests (33)syntactic correctness: 12.1% -> 84.8%Helped

Surprising findings

Limitations

Experimental setup

Datasets: UCLID5 regression tests (33 curated, 317 unlabeled) 33 exercises from three textbooks

Benchmarks: 33 UCLID5 textbook exercises

Metrics: parse rate (passes compiler checks) semantic score 1-5 (manual)

Baselines: few-shot prompting few-shot with chain-of-thought fine-tuning self-repair

Builds on: natural programming elicitation Pavlinovic et al. MAX-SMT repair chain-of-thought self-instruct

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy