Amortizing Pragmatic Program Synthesis with Rankings
Yewen Pu, Saujas Vaduguru, Priyan Vaithilingam, Elena L. Glassman, Daniel Fried
Abstract
The usage of Rational Speech Acts (RSA) framework has been successful in building pragmatic program synthesizers that return programs which, in addition to being logically consistent with user-generated examples, account for the fact that a user chooses their examples informatively. We present a general method of amortizing the slow, exact RSA synthesizer. Our method first query the exact RSA synthesizer to compile a communication dataset. The dataset contains a number of example-dependent rankings of subsets of programs. It then distills a single global ranking of all programs as an approximation to every ranking in the dataset. This global ranking is then used at inference time to rank multiple logically consistent candidate programs generated from a fast, non-pragmatic synthesizer. Experiments on two program synthesis domains using our ranking method resulted in orders of magnitudes of speed ups compared to the exact RSA synthesizer, while being more accurate than a non-pragmatic synthesizer when communicating with humans. Finally, we prove that in the special case of synthesis from a single example, this approximation is exact.
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.
2 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 Program Synthesis with Pragmatic Communication
- Identifying & Interactively Refining Ambiguous User Goals for Data Visualization Code Generation cites Program Synthesis with Pragmatic Communication
- Identifying & Interactively Refining Ambiguous User Goals for Data Visualization Code Generation cites Generating Pragmatic Examples to Train Neural Program Synthesizers
Cited by top-tier papers2
Builds on4
- Inferring Rewards from Language in ContextJessy Lin, Daniel Fried, Dan Klein, Anca D. DraganACL 2022 · 71 citations
- Program Synthesis with Pragmatic CommunicationYewen Pu, Kevin Ellis, Marta Kryven, Josh Tenenbaum et al.NeurIPS 2020 · 26 citations
- Reference-Centric Models for Grounded Collaborative DialogueDaniel Fried, Justin T. Chiu, Dan KleinEMNLP 2021 · 12 citations
- Generating Pragmatic Examples to Train Neural Program SynthesizersSaujas Vaduguru, Daniel Fried, Yewen PuICLR 2024 · 7 citations
Related papers
- Learning to Mediate Disparities Towards Pragmatic CommunicationYuwei Bao, Sayan Ghosh, Joyce ChaiACL 2022
- Collaborative Rational Speech Act: Pragmatic Reasoning for Multi-Turn DialogLautaro Estienne, Gabriel Ben Zenou, Nona Naderi, Jackie CK Cheung et al.EMNLP 2025
- (RSA)²: A Rhetorical-Strategy-Aware Rational Speech Act Framework for Figurative Language UnderstandingCesare Spinoso Di Piano, David Eric Austin, Pablo Piantanida, Jackie CK CheungACL 2025 · 1 citation
- On the Same Wavelength? Evaluating Pragmatic Reasoning in Language Models across Broad ConceptsLinlu Qiu, Cedegao E. Zhang, Joshua B. Tenenbaum, Yoon Kim et al.EMNLP 2025
- Optimal Program Synthesis via Abstract InterpretationStephen Mell, Steve Zdancewic, Osbert BastaniPOPL 2024 · 6 citations
