Amortizing Pragmatic Program Synthesis with Rankings

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Pu, Yewen, Vaduguru, Saujas, Vaithilingam, Priyan, Glassman, Elena, Fried, Daniel
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909257947938816
author Pu, Yewen
Vaduguru, Saujas
Vaithilingam, Priyan
Glassman, Elena
Fried, Daniel
author_facet Pu, Yewen
Vaduguru, Saujas
Vaithilingam, Priyan
Glassman, Elena
Fried, Daniel
contents The usage of Rational Speech Acts (RSA) framework has been successful in building \emph{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 \textit{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.
format Preprint
id arxiv_https___arxiv_org_abs_2407_02499
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Amortizing Pragmatic Program Synthesis with Rankings
Pu, Yewen
Vaduguru, Saujas
Vaithilingam, Priyan
Glassman, Elena
Fried, Daniel
Programming Languages
Artificial Intelligence
The usage of Rational Speech Acts (RSA) framework has been successful in building \emph{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 \textit{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.
title Amortizing Pragmatic Program Synthesis with Rankings
topic Programming Languages
Artificial Intelligence
url https://arxiv.org/abs/2407.02499