arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2208.08235cs.SEcs.PL
收藏

通过综合和轻量级错误反馈进行输入修复

Input Repair via Synthesis and Lightweight Error Feedback

Lukas Kirschner, Ezekiel Soremekun, Rahul Gopinath, Andreas Zeller

摘要:

通常,输入数据表面上可能符合给定的输入格式,但例如由于人为错误或数据损坏而不能被符合格式的程序解析。在这种情况下,数据工程师的任务是输入修复,即,她必须手动修复损坏的数据,使得它遵循给定的格式,并因此可以由符合的程序处理。这种手动修复可能是耗时且容易出错的。特别地,在没有输入规范(例如,输入语法)或程序分析。在这项工作中,我们表明,将轻量级的失败反馈(例如,输入不完整性)足以以最大程度接近输入数据的语义来修复任何损坏的输入数据。我们提出了一种方法(称为FSYNTH),利用轻量级的错误反馈和输入合成来修复无效的输入。FSYNTH是语法不可知的,它不需要程序分析。给定一个符合要求的程序和任何无效的输入,FSYNTH提供一组按修复与原始输入的距离优先的修复。我们使用四种众所周知的输入格式,即INI,TinyC,SExp和cJSON,在806个(真实世界)无效输入上评估FSYNTH。在我们的评估中,我们发现FSYNTH恢复了91%的有效输入数据。FSYNTH在输入修复方面也非常高效:它在四分钟内修复了77%的无效输入。它比以前最知名的方法DDMax的效率高出35%。总的来说,我们的方法解决了DDMax的几个限制,无论是在它可以修复的方面,还是在提供的修复集合方面。

英文摘要:

Often times, input data may ostensibly conform to a given input format, but cannot be parsed by a conforming program, for instance, due to human error or data corruption. In such cases, a data engineer is tasked with input repair, i.e., she has to manually repair the corrupt data such that it follows a given format, and hence can be processed by the conforming program. Such manual repair can be time-consuming and error-prone. In particular, input repair is challenging without an input specification (e.g., input grammar) or program analysis. In this work, we show that incorporating lightweight failure feedback (e.g., input incompleteness) to parsers is sufficient to repair any corrupt input data with maximal closeness to the semantics of the input data. We propose an approach (called FSYNTH) that leverages lightweight error-feedback and input synthesis to repair invalid inputs. FSYNTH is grammar-agnostic, and it does not require program analysis. Given a conforming program, and any invalid input, FSYNTH provides a set of repairs prioritized by the distance of the repair from the original input. We evaluate FSYNTH on 806 (real-world) invalid inputs using four well-known input formats, namely INI, TinyC, SExp, and cJSON. In our evaluation, we found that FSYNTH recovers 91% of valid input data. FSYNTH is also highly effective and efficient in input repair: It repairs 77% of invalid inputs within four minutes. It is up to 35% more effective than DDMax, the previously best-known approach. Overall, our approach addresses several limitations of DDMax, both in terms of what it can repair, as well as in terms of the set of repairs offered.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑