Multi-modal Program Inference: a Marriage of Pre-trainedLanguage Models and Component-based Synthesis
Multi-modal program synthesis refers to the task of synthesizing programs (code) from their specification given in different forms, such as a combination of natural language and examples. Examples provide a precise but incomplete specification, and natural language provides an ambiguous but more "complete" task description. Machine-learned pre-trained models (PTMs) are adept at handling ambiguous natural language, but struggle with generating syntactically and semantically precise code. Program synthesis techniques can generate correct code, often even from incomplete but precise specifications, such as examples, but they are unable to work with the ambiguity of natural languages. We present an approach that combines PTMs with component-based synthesis (CBS): PTMs are used to generate candidates programs from the natural language description of the task, which are then used to guide the CBS procedure to find the program that matches the precise examples-based specification. We use our combination approach to instantiate multi-modal synthesis systems for two programming domains: the domain of regular expressions and the domain of CSS selectors. Our evaluation demonstrates the effectiveness of our domain-agnostic approach in comparison to a state-of-the-art specialized system, and the generality of our approach in providing multi-modal program synthesis from natural language and examples in different programming domains.
Code (0)
등록된 구현이 없습니다.
Tasks
Program SynthesisSimilar Papers 제목 키워드 기반
Stable Marriage Problems with Ties and Incomplete Preferences: An Empirical Comparison of ASP, SAT, ILP, CP, and Local Search Methods
We study a variation of the Stable Marriage problem, where every man and every woman express their preferences as preference lists which may be incomplete and contain ties. This problem is called the Stable Marriage prob…
Bride Kidnapping and Informal Governance Institutions
Bride kidnapping is a form of forced marriage in which a woman is taken against her will and coerced into accepting marriage with her captor. Post-Soviet Kyrgyzstan has seen a large increase in the prominence of this pra…
SurveyWhats the worth of a promise? Evaluating the indirect effects of a program to reduce early marriage in India
One important dimension of Conditional Cash Transfer Programs apart from conditionality is the provision of continuous frequency of payouts. On the contrary, the Apni Beti Apna Dhan program, implemented in the state of H…
Game Theoretic Consequences of Resident Matching
The resident matching algorithm, Gale-Shapley, currently used by SF Match and the National Residency Match Program (NRMP), has been in use for over 50 years without fundamental alteration. The algorithm is a 'stable-marr…
Nonparametric Estimation of Matching Efficiency and Elasticity in a Marriage Agency Platform: 2014--2025
This paper examines monthly matching efficiency in the Japanese marriage market using novel data from IBJ, the country's largest structured matching platform. Unlike administrative or dating app data, IBJ provides full s…