Interactive program synthesis by augmented examples

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

Research output: Chapter in Book/Report/Conference proceedingConference contribution

36 Scopus citations

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.

Original languageEnglish (US)
Title of host publicationUIST 2020 - Proceedings of the 33rd Annual ACM Symposium on User Interface Software and Technology
PublisherAssociation for Computing Machinery, Inc
Pages627-648
Number of pages22
ISBN (Electronic)9781450375146
DOIs
StatePublished - Oct 20 2020
Event33rd Annual ACM Symposium on User Interface Software and Technology, UIST 2020 - Virtual, Online, United States
Duration: Oct 20 2020Oct 23 2020

Publication series

NameUIST 2020 - Proceedings of the 33rd Annual ACM Symposium on User Interface Software and Technology

Conference

Conference33rd Annual ACM Symposium on User Interface Software and Technology, UIST 2020
Country/TerritoryUnited States
CityVirtual, Online
Period10/20/2010/23/20

Bibliographical note

Publisher Copyright:
© 2020 ACM.

Keywords

  • Disambiguation
  • Example augmentation
  • Program synthesis

Fingerprint

Dive into the research topics of 'Interactive program synthesis by augmented examples'. Together they form a unique fingerprint.

Cite this