Pith. sign in

REVIEW 4 cited by

Natural Language to Code Translation with Execution

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2204.11454 v2 pith:VUE66IBD submitted 2022-04-25 cs.CL cs.SE

classification cs.CLcs.SE
keywords codeprogramexecutionmbr-execlanguagemodelsnaturalsemantics
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Generative models of code, pretrained on large corpora of programs, have shown great success in translating natural language to code (Chen et al., 2021; Austin et al., 2021; Li et al., 2022, inter alia). While these models do not explicitly incorporate program semantics (i.e., execution results) during training, they are able to generate correct solutions for many problems. However, choosing a single correct program from a generated set for each problem remains challenging. In this work, we introduce execution result--based minimum Bayes risk decoding (MBR-EXEC) for program selection and show that it improves the few-shot performance of pretrained code models on natural-language-to-code tasks. We select output programs from a generated candidate set by marginalizing over program implementations that share the same semantics. Because exact equivalence is intractable, we execute each program on a small number of test inputs to approximate semantic equivalence. Across datasets, execution or simulated execution significantly outperforms the methods that do not involve program semantics. We find that MBR-EXEC consistently improves over all execution-unaware selection methods, suggesting it as an effective approach for natural language to code translation. We open-source our code at github.com/facebookresearch/mbr-exec and data at dl.fbaipublicfiles.com/mbr-exec/mbr-exec-release.zip

Discussion (0). Sign in to comment.

Forward citations

Cited by 4 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. LogiDroid: Individual Functional Test Generation via Business Logic Extraction and Adaptation

    cs.SE 2026-02 conditional novelty 6.0 of 10

    LogiDroid generates functional Android test cases with verification assertions by retrieving similar test cases, fusing their business logic, and adapting it to the target app's real-time GUI state.

  2. SketchAgent: Generating Structured Diagrams from Hand-Drawn Sketches

    cs.AI 2025-08 reject novelty 6.0 of 10

    SketchAgent automates sketch-to-diagram conversion with a three-agent pipeline, but its benchmark replaces hand-drawn sketches with simplified renderings of the very diagrams the system must produce.

  3. Detailed radial scale height profile of dust grains as probed by dust self-scattering in HL Tau

    astro-ph.EP 2025-08 unverdicted novelty 5.0 of 10

    From the near-far side asymmetry and azimuthal contrast in HL Tau's polarized intensity, the authors infer a radial dust scale height profile and a turbulence parameter alpha increasing from 1e-5 at 100 au to 1e-2.5 at 20 au.

  4. From Legal Text to Tech Specs: Generative AI's Interpretation of Consent in Privacy Law

    cs.SE 2025-07 conditional novelty 4.0 of 10

    An LLM pipeline that flags and fixes non-compliant consent use cases works imperfectly: it catches about two-thirds of relevant cases with reasoning prompts, and most of its fixes are legally sound but logically inconsistent.

Pith tools