Cargando…

MACER: A Modular Framework for Accelerated Compilation Error Repair

Automated compilation error repair, the problem of suggesting fixes to buggy programs that fail to compile, has pedagogical applications for novice programmers who find compiler error messages cryptic and unhelpful. Existing works frequently involve black-box application of generative models, e.g. s...

Descripción completa

Detalles Bibliográficos
Autores principales: Chhatbar, Darshak, Ahmed, Umair Z., Kar, Purushottam
Formato: Online Artículo Texto
Lenguaje:English
Publicado: 2020
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7334193/
http://dx.doi.org/10.1007/978-3-030-52237-7_9
_version_ 1783553886127128576
author Chhatbar, Darshak
Ahmed, Umair Z.
Kar, Purushottam
author_facet Chhatbar, Darshak
Ahmed, Umair Z.
Kar, Purushottam
author_sort Chhatbar, Darshak
collection PubMed
description Automated compilation error repair, the problem of suggesting fixes to buggy programs that fail to compile, has pedagogical applications for novice programmers who find compiler error messages cryptic and unhelpful. Existing works frequently involve black-box application of generative models, e.g. sequence-to-sequence prediction (TRACER) or reinforcement learning (RLAssist). Although convenient, this approach is inefficient at targeting specific error types as well as increases training costs. We present MACER, a novel technique for accelerated error repair based on a modular segregation of the repair process into repair identification and repair application. MACER uses powerful yet inexpensive learning techniques such as multi-label classifiers and rankers to first identify the type of repair required and then apply the suggested repair. Experiments indicate that this fine-grained approach offers not only superior error correction, but also much faster training and prediction. On a benchmark dataset of 4K buggy programs collected from actual student submissions, MACER outperforms existing methods by 20% at suggesting fixes for popular errors while being competitive or better at other errors. MACER offers a training time speedup of [Formula: see text] over TRACER and [Formula: see text] over RLAssist, and a test time speedup of [Formula: see text] over both.
format Online
Article
Text
id pubmed-7334193
institution National Center for Biotechnology Information
language English
publishDate 2020
record_format MEDLINE/PubMed
spelling pubmed-73341932020-07-06 MACER: A Modular Framework for Accelerated Compilation Error Repair Chhatbar, Darshak Ahmed, Umair Z. Kar, Purushottam Artificial Intelligence in Education Article Automated compilation error repair, the problem of suggesting fixes to buggy programs that fail to compile, has pedagogical applications for novice programmers who find compiler error messages cryptic and unhelpful. Existing works frequently involve black-box application of generative models, e.g. sequence-to-sequence prediction (TRACER) or reinforcement learning (RLAssist). Although convenient, this approach is inefficient at targeting specific error types as well as increases training costs. We present MACER, a novel technique for accelerated error repair based on a modular segregation of the repair process into repair identification and repair application. MACER uses powerful yet inexpensive learning techniques such as multi-label classifiers and rankers to first identify the type of repair required and then apply the suggested repair. Experiments indicate that this fine-grained approach offers not only superior error correction, but also much faster training and prediction. On a benchmark dataset of 4K buggy programs collected from actual student submissions, MACER outperforms existing methods by 20% at suggesting fixes for popular errors while being competitive or better at other errors. MACER offers a training time speedup of [Formula: see text] over TRACER and [Formula: see text] over RLAssist, and a test time speedup of [Formula: see text] over both. 2020-06-09 /pmc/articles/PMC7334193/ http://dx.doi.org/10.1007/978-3-030-52237-7_9 Text en © Springer Nature Switzerland AG 2020 This article is made available via the PMC Open Access Subset for unrestricted research re-use and secondary analysis in any form or by any means with acknowledgement of the original source. These permissions are granted for the duration of the World Health Organization (WHO) declaration of COVID-19 as a global pandemic.
spellingShingle Article
Chhatbar, Darshak
Ahmed, Umair Z.
Kar, Purushottam
MACER: A Modular Framework for Accelerated Compilation Error Repair
title MACER: A Modular Framework for Accelerated Compilation Error Repair
title_full MACER: A Modular Framework for Accelerated Compilation Error Repair
title_fullStr MACER: A Modular Framework for Accelerated Compilation Error Repair
title_full_unstemmed MACER: A Modular Framework for Accelerated Compilation Error Repair
title_short MACER: A Modular Framework for Accelerated Compilation Error Repair
title_sort macer: a modular framework for accelerated compilation error repair
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7334193/
http://dx.doi.org/10.1007/978-3-030-52237-7_9
work_keys_str_mv AT chhatbardarshak maceramodularframeworkforacceleratedcompilationerrorrepair
AT ahmedumairz maceramodularframeworkforacceleratedcompilationerrorrepair
AT karpurushottam maceramodularframeworkforacceleratedcompilationerrorrepair