Most users of low-code platforms, such as Excel and PowerApps, write programs in domain-specific formula languages to carry out nontrivial tasks. Often users can write most of the program they want, but introduce small mistakes that yield broken formulas. These mistakes, which can be both syntactic and semantic, are hard for low-code users to identify and fix, even though they can be resolved with just a few edits. We formalize the problem of producing such edits as the last-mile repair problem. To address this problem, we developed LaMirage, a LAst-MIle RepAir-engine GEnerator that combines symbolic and neural techniques to perform last-mile repair in low-code formula languages. LaMirage takes a grammar and a set of domain-specific constraints/rules, which jointly approximate the target language, and uses these to generate a repair engine that can fix formulas in that language. To tackle the challenges of localizing the errors and ranking the candidate repairs, LaMirage leverages neural techniques, whereas it relies on symbolic methods to generate candidate repairs. This combination allows LaMirage to find repairs that satisfy the provided grammar and constraints, and then pick the most natural repair. We compare LaMirage to state-of-the-art neural and symbolic approaches on 400 real Excel and PowerFx formulas, where LaMirage outperforms all baselines. We release these benchmarks to encourage subsequent work in low-code domains.
翻译:诸如 Excel 和 PowerApps 等低码平台的多数用户都很难识别和修正, 尽管只要几处编辑就可以解决。 我们将制作这类编辑的问题正式确定为最后一英里的修复问题。 为了解决这个问题, 我们开发了LaMirage, 一个Last-MIle RepAir-engine Generator, 将他们想要的多数程序都写成, 但经常会引入小错误, 但却会生成破解的公式。 这些错误既可以是语法, 也可以是语法, 也可以是语法, 低码平台的用户很难识别和修正。 我们把制作这类编辑的问题正式确定为最后一英里的修复问题。 为了解决这个问题, 我们开发了LaMirage, 一个Last-MIle Repair-engineeral Cengerator, 使用LAMirgerage, 来结合符号和神经技术, 来进行最后一英里的修复。 使得LaMirmair 能够进行最精确的修复, 和最精确的修复。