Program Synthesis with Pragmatic Communication
Yewen Pu, Kevin Ellis, Marta Kryven, Josh Tenenbaum, Armando Solar-Lezama
Abstract
Program synthesis techniques construct or infer programs from user-provided specifications, such as input-output examples. Yet most specifications, especially those given by end-users, leave the synthesis problem radically ill-posed, because many programs may simultaneously satisfy the specification. Prior work resolves this ambiguity by using various inductive biases, such as a preference for simpler programs. This work introduces a new inductive bias derived by modeling the program synthesis task as rational communication, drawing insights from recursive reasoning models of pragmatics. Given a specification, we score a candidate program both on its consistency with the specification, and also whether a rational speaker would chose this particular specification to communicate that program. We develop efficient algorithms for such an approach when learning from input-output examples, and build a pragmatic program synthesizer over a simple grid-like layout domain. A user study finds that end-user participants communicate more effectively with the pragmatic program synthesizer over a non-pragmatic one.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
5 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Generating Pragmatic Examples to Train Neural Program Synthesizers cites Amortizing Pragmatic Program Synthesis with Rankings
- Amortizing Pragmatic Program Synthesis with Rankings cites Generating Pragmatic Examples to Train Neural Program Synthesizers
- Identifying & Interactively Refining Ambiguous User Goals for Data Visualization Code Generation cites Generating Pragmatic Examples to Train Neural Program Synthesizers
- Identifying & Interactively Refining Ambiguous User Goals for Data Visualization Code Generation cites Amortizing Pragmatic Program Synthesis with Rankings
Cited by top-tier papers5
- I Cast Detect Thoughts: Learning to Converse and Guide with Intents and Theory-of-Mind in Dungeons and DragonsPei Zhou, Andrew Zhu, Jennifer Hu, Jay Pujara et al.ACL 2023 · 8 citations
- Generating Pragmatic Examples to Train Neural Program SynthesizersSaujas Vaduguru, Daniel Fried, Yewen PuICLR 2024 · 7 citations
- Amortizing Pragmatic Program Synthesis with RankingsYewen Pu, Saujas Vaduguru, Priyan Vaithilingam, Elena L. Glassman et al.ICML 2024 · 5 citations
- A Domain-Specific Probabilistic Programming Language for Reasoning about Reasoning (Or: A Memo on memo)Kartik Chandra, Tony Chen, Joshua B. Tenenbaum, Jonathan Ragan-KelleyOOPSLA 2025 · 2 citations
- Identifying & Interactively Refining Ambiguous User Goals for Data Visualization Code GenerationMert Inan, Anthony Sicilia, Alex Xie, Saujas Vaduguru et al.EMNLP 2025
Builds on1
Related papers
- Gauss: program synthesis by reasoning over graphsRohan Bavishi, Caroline Lemieux, Koushik Sen, Ion StoicaOOPSLA 2021 · 4 citations
- Can Humans Teach Machines to Code?Céline Hocquette, Johannes Langer, Andrew Cropper, Ute SchmidAAAI 2026
- Interpretable Program SynthesisTianyi Zhang, Zhiyang Chen, Yuanli Zhu, Priyan Vaithilingam et al.CHI 2021 · 25 citations
- Inductive Program Synthesis Guided by Observational Program SimilarityJohn K. Feser, Isil Dillig, Armando Solar-LezamaOOPSLA 2023 · 6 citations
- GENSYNTH: Synthesizing Datalog Programs without Language BiasJonathan Mendelson, Aaditya Naik, Mukund Raghothaman, Mayur NaikAAAI 2021 · 14 citations
