Lune

UIST2020Top-tier venue

Interactive Program Synthesis by Augmented Examples

Tianyi Zhang, London Lowmanstone, Xinyu Wang, Elena L. Glassman

Abstract

Programming-by-example (PBE) has become an increasingly popular component in software development tools, human-robot interaction, and end-user programming. A long-standing challenge in PBE is the inherent ambiguity in user-provided examples. This paper presents an interaction model to disambiguate user intent and reduce the cognitive load of understanding and validating synthesized programs. Our model provides two types of augmentations to user-given examples: 1) semantic augmentation where a user can specify how different aspects of an example should be treated by a synthesizer via light-weight annotations, and 2) data augmentation where the synthesizer generates additional examples to help the user understand and validate synthesized programs. We implement and demonstrate this interaction model in the domain of regular expressions, which is a popular mechanism for text processing and data wrangling and is often considered hard to master even for experienced programmers. A within-subjects user study with twelve participants shows that, compared with only inspecting and annotating synthesized programs, interacting with augmented examples significantly increases the success rate of finishing a programming task with less time and increases users? confidence of synthesized programs.

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.

26 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

  • Grounded Copilot: How Programmers Interact with Code-Generating Models cites Wrex: A Unified Programming-by-Example Interaction for Synthesizing Readable Code for Data Scientists
  • Grounded Copilot: How Programmers Interact with Code-Generating Models cites Exploring the Learnability of Program Synthesizers by Novice Programmers
  • Grounded Copilot: How Programmers Interact with Code-Generating Models cites Discovering the Syntax and Strategies of Natural Language Programming with Generative Language Models
  • Grounded Copilot: How Programmers Interact with Code-Generating Models cites Falx: Synthesis-Powered Visualization Authoring
  • Validating AI-Generated Code with Live Programming cites Grounded Copilot: How Programmers Interact with Code-Generating Models
  • Validating AI-Generated Code with Live Programming cites Wrex: A Unified Programming-by-Example Interaction for Synthesizing Readable Code for Data Scientists
  • Exploring the Learnability of Program Synthesizers by Novice Programmers cites Wrex: A Unified Programming-by-Example Interaction for Synthesizing Readable Code for Data Scientists
  • Exploring the Learnability of Program Synthesizers by Novice Programmers cites Visualization by example
  • Exploring the Learnability of Program Synthesizers by Novice Programmers cites Discovering the Syntax and Strategies of Natural Language Programming with Generative Language Models
  • Exploring the Learnability of Program Synthesizers by Novice Programmers cites Falx: Synthesis-Powered Visualization Authoring
  • Discovering the Syntax and Strategies of Natural Language Programming with Generative Language Models cites Multi-modal synthesis of regular expressions
  • Falx: Synthesis-Powered Visualization Authoring cites Wrex: A Unified Programming-by-Example Interaction for Synthesizing Readable Code for Data Scientists
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers26

  1. Grounded Copilot: How Programmers Interact with Code-Generating ModelsShraddha Barke, Michael B. James, Nadia PolikarpovaOOPSLA 2023 · 408 citations
  2. Discovering the Syntax and Strategies of Natural Language Programming with Generative Language ModelsEllen Jiang, Edwin Toh, Alejandra Molina, Kristen Olson et al.CHI 2022 · 76 citations
  3. Exploring the Learnability of Program Synthesizers by Novice ProgrammersDhanya Jayagopal, Justin Lubin, Sarah E. ChasinsUIST 2022 · 40 citations
  4. Falx: Synthesis-Powered Visualization AuthoringChenglong Wang, Yu Feng, Rastislav Bodík, Isil Dillig et al.CHI 2021 · 35 citations
  5. Validating AI-Generated Code with Live ProgrammingKasra Ferdowsi, Ruanqianqian (Lisa) Huang, Michael B. James, Nadia Polikarpova et al.CHI 2024 · 27 citations

Builds on4

  1. Wrex: A Unified Programming-by-Example Interaction for Synthesizing Readable Code for Data ScientistsIan Drosos, Titus Barik, Philip J. Guo, Robert DeLine et al.CHI 2020 · 110 citations
  2. Multi-modal synthesis of regular expressionsQiaochu Chen, Xinyu Wang, Xi Ye, Greg Durrett et al.PLDI 2020 · 81 citations
  3. Visualization by exampleChenglong Wang, Yu Feng, Rastislav Bodík, Alvin Cheung et al.POPL 2020 · 36 citations
  4. Transforming Robot Programs Based on Social ContextDavid Porfirio, Allison Sauppé, Aws Albarghouthi, Bilge MutluCHI 2020 · 17 citations

Related papers

  1. Generating Pragmatic Examples to Train Neural Program SynthesizersSaujas Vaduguru, Daniel Fried, Yewen PuICLR 2024 · 7 citations
  2. Grammar Filtering for Syntax-Guided SynthesisKairo Morton, William T. Hallahan, Elven Shum, Ruzica Piskac et al.AAAI 2020 · 12 citations
  3. SynGuar: guaranteeing generalization in programming by exampleBo Wang, Teodora Baluta, Aashish Kolluri, Prateek SaxenaFSE 2021
  4. Interpretable Program SynthesisTianyi Zhang, Zhiyang Chen, Yuanli Zhu, Priyan Vaithilingam et al.CHI 2021 · 25 citations
  5. Guiding Program Synthesis by Learning to Generate ExamplesLarissa Laich, Pavol Bielik, Martin T. VechevICLR 2020 · 17 citations
Dusk over the sea between two cliffs drawn in fine vertical lines