Lune

ASE2023Top-tier venue

Fast and Reliable Program Synthesis via User Interaction

Yanju Chen, Chenglong Wang, Xinyu Wang, Osbert Bastani, Yu Feng

Abstract

The performance of programming-by-example systems varies significantly across different tasks and even across different examples in one task. The key issue is that the search space depends on the given examples in a complex way. In particular, scalable synthesizers typically rely on a combination of machine learning to prioritize search order and deduction to prune search space, making it hard to quantitatively reason about how much an example speeds up the search. We propose a novel approach for quantifying the effectiveness of an example at reducing synthesis time. Based on this technique, we devise an algorithm that actively queries the user to obtain additional examples that significantly reduce synthesis time. We evaluate our approach on 30 challenging benchmarks across two different data science domains. Even with ineffective initial user-provided examples for pruning, our approach on average achieves a 6.0× speed-up in synthesis time compared to state-of-the-art synthesizers.

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.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Abstraction Refinement-Guided Program Synthesis for Robot Learning from Demonstrations cites Program Synthesis Using Deduction-Guided Reinforcement Learning
  • Abstraction Refinement-Guided Program Synthesis for Robot Learning from Demonstrations cites Reward-Guided Synthesis of Intelligent Agents with Control Structures
  • Program Synthesis Using Deduction-Guided Reinforcement Learning cites Visualization by example
  • Choose, Don't Label: Multiple-Choice Query Synthesis for Program Disambiguation cites Question selection for interactive program synthesis
  • Choose, Don't Label: Multiple-Choice Query Synthesis for Program Disambiguation cites Multi-modal synthesis of regular expressions
  • Choose, Don't Label: Multiple-Choice Query Synthesis for Program Disambiguation cites Interactive Program Synthesis by Augmented Examples
  • Reward-Guided Synthesis of Intelligent Agents with Control Structures cites Program Synthesis Using Deduction-Guided Reinforcement Learning
  • Interactive Program Synthesis by Augmented Examples cites Visualization by example
  • Interactive Program Synthesis by Augmented Examples cites Multi-modal synthesis of regular expressions
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. Reward-Guided Synthesis of Intelligent Agents with Control StructuresGuofeng Cui, Yuning Wang, Wenjie Qiu, He ZhuPLDI 2024 · 3 citations
  2. Abstraction Refinement-Guided Program Synthesis for Robot Learning from DemonstrationsGuofeng Cui, Yuning Wang, Wensen Mao, Yuanlin Duan et al.OOPSLA 2025 · 1 citation
  3. Inductive Program Synthesis by Meta-Analysis-Guided Hole FillingDoyoon Lee, Woosuk Lee, Kwangkeun YiPOPL 2026
  4. Choose, Don't Label: Multiple-Choice Query Synthesis for Program DisambiguationCeleste Barnaby, Danny Ding, Osbert Bastani, Isil DilligPLDI 2026

Builds on7

  1. Multi-modal synthesis of regular expressionsQiaochu Chen, Xinyu Wang, Xi Ye, Greg Durrett et al.PLDI 2020 · 81 citations
  2. Interactive Program Synthesis by Augmented ExamplesTianyi Zhang, London Lowmanstone, Xinyu Wang, Elena L. GlassmanUIST 2020 · 57 citations
  3. Visualization by exampleChenglong Wang, Yu Feng, Rastislav Bodík, Alvin Cheung et al.POPL 2020 · 36 citations
  4. Question selection for interactive program synthesisRuyi Ji, Jingjing Liang, Yingfei Xiong, Lu Zhang et al.PLDI 2020 · 33 citations
  5. Program Synthesis Using Deduction-Guided Reinforcement LearningYanju Chen, Chenglong Wang, Osbert Bastani, Isil Dillig et al.CAV 2020 · 30 citations

Related papers

  1. Example-guided synthesis of relational queriesAalok Thakkar, Aaditya Naik, Nathaniel Sands, Rajeev Alur et al.PLDI 2021 · 12 citations
  2. Grammar Filtering for Syntax-Guided SynthesisKairo Morton, William T. Hallahan, Elven Shum, Ruzica Piskac et al.AAAI 2020 · 12 citations
  3. Generating Pragmatic Examples to Train Neural Program SynthesizersSaujas Vaduguru, Daniel Fried, Yewen PuICLR 2024 · 7 citations
  4. Guiding dynamic programing via structural probability for accelerating programming by exampleRuyi Ji, Yican Sun, Yingfei Xiong, Zhenjiang HuOOPSLA 2020 · 13 citations
  5. Adaptive restarts for stochastic synthesisJason R. Koenig, Oded Padon, Alex AikenPLDI 2021 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines