Interactive Program Synthesis by Augmented Examples

Programming Education & Computational ThinkingComputational Methods in HCISoftware Engineers & DevelopersUI/UX Designers

Programming-by-example (PBE) has become an increasingly popular component in software development tools, humanrobot 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.

Quick Actions

Share

Share this page

ios_share

https://hci.top/en/papers/uist/42115/2020

AdRecommended

Learn AI Coding at CodeNow

open_in_newOpen DOI Link
DOI: https://dl.acm.org/doi/10.1145/3379337.3415900
At a Glance

Paper Snapshot

fact_check
dataset
Source
UIST
calendar_month
Year
2020
emoji_events
Award
No award tagged
group
Authors
4 authors
sell
Subtopics
Programming Education & Computational Thinking, Computational Methods in HCI
work
Professions
Software Engineers & Developers, UI/UX Designers
article
Content Status
Abstract only
hub
Related Papers
10 related papers