Neural Task Synthesis for Visual Programming

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Pădurean, Victor-Alexandru, Tzannetos, Georgios, Singla, Adish
Format: Preprint
Publié: 2023
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866911757574864896
author Pădurean, Victor-Alexandru
Tzannetos, Georgios
Singla, Adish
author_facet Pădurean, Victor-Alexandru
Tzannetos, Georgios
Singla, Adish
contents Generative neural models hold great promise in enhancing programming education by synthesizing new content. We seek to design neural models that can automatically generate programming tasks for a given specification in the context of visual programming domains. Despite the recent successes of large generative models like GPT-4, our initial results show that these models are ineffective in synthesizing visual programming tasks and struggle with logical and spatial reasoning. We propose a novel neuro-symbolic technique, NeurTaskSyn, that can synthesize programming tasks for a specification given in the form of desired programming concepts exercised by its solution code and constraints on the visual task. NeurTaskSyn has two components: the first component is trained via imitation learning procedure to generate possible solution codes, and the second component is trained via reinforcement learning procedure to guide an underlying symbolic execution engine that generates visual tasks for these codes. We demonstrate the effectiveness of NeurTaskSyn through an extensive empirical evaluation and a qualitative study on reference tasks taken from the Hour of Code: Classic Maze challenge by Code-dot-org and the Intro to Programming with Karel course by CodeHS-dot-com.
format Preprint
id arxiv_https___arxiv_org_abs_2305_18342
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Neural Task Synthesis for Visual Programming
Pădurean, Victor-Alexandru
Tzannetos, Georgios
Singla, Adish
Machine Learning
Artificial Intelligence
Computation and Language
Computers and Society
Programming Languages
Generative neural models hold great promise in enhancing programming education by synthesizing new content. We seek to design neural models that can automatically generate programming tasks for a given specification in the context of visual programming domains. Despite the recent successes of large generative models like GPT-4, our initial results show that these models are ineffective in synthesizing visual programming tasks and struggle with logical and spatial reasoning. We propose a novel neuro-symbolic technique, NeurTaskSyn, that can synthesize programming tasks for a specification given in the form of desired programming concepts exercised by its solution code and constraints on the visual task. NeurTaskSyn has two components: the first component is trained via imitation learning procedure to generate possible solution codes, and the second component is trained via reinforcement learning procedure to guide an underlying symbolic execution engine that generates visual tasks for these codes. We demonstrate the effectiveness of NeurTaskSyn through an extensive empirical evaluation and a qualitative study on reference tasks taken from the Hour of Code: Classic Maze challenge by Code-dot-org and the Intro to Programming with Karel course by CodeHS-dot-com.
title Neural Task Synthesis for Visual Programming
topic Machine Learning
Artificial Intelligence
Computation and Language
Computers and Society
Programming Languages
url https://arxiv.org/abs/2305.18342