Skip to main content
QUICK REVIEW

[Paper Review] Neurosymbolic Repair for Low-Code Formula Languages

Rohan Bavishi, Harshit Joshi|arXiv (Cornell University)|Jul 24, 2022
Software Engineering ResearchComputer Science5 citations
TL;DR

LaMirage is a neurosymbolic framework that combines symbolic repair generation with neural error localization and ranking to fix syntax and semantic errors in low-code formula languages like Excel and PowerFx. It outperforms state-of-the-art symbolic and neural baselines on 400 real-world formulas by leveraging grammar and domain constraints to generate correct repairs efficiently.

ABSTRACT

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.

Motivation & Objective

  • To address the 'last-mile repair' problem in low-code platforms, where users make small, hard-to-detect errors in formula languages like Excel and PowerApps.
  • To improve user experience by providing accurate, context-aware repair suggestions for syntactic and semantic errors that are often unhelpfully reported.
  • To develop a repair engine generator that can be adapted to various low-code formula languages using grammar and domain-specific constraints.
  • To bridge the gap in tooling for low-code developers by offering feedback comparable to that available for traditional programmers.

Proposed method

  • LaMirage uses a symbolic framework guided by a formal grammar and domain constraints to generate candidate repairs that are syntactically and semantically valid.
  • It employs a neural localizer to identify the most likely error locations in a buggy formula, using a fallback strategy that combines symbolic tracking with neural predictions.
  • A neural ranker evaluates candidate repairs using a balanced, iterative classification-based training objective to predict the most natural repair, overcoming issues with skewed token sequences.
  • The system integrates neural components for error localization and repair ranking into a symbolic repair generation pipeline, ensuring correctness and efficiency.
  • It is trained on a combination of help forum data and product telemetry, using small, efficient models tailored for low-code domains.
  • The framework is designed as a repair engine generator, enabling deployment across multiple low-code platforms with minimal reconfiguration.

Experimental results

Research questions

  • RQ1Can a neurosymbolic approach effectively localize and rank repairs for low-code formula errors with high accuracy and low computational cost?
  • RQ2How does combining symbolic repair generation with neural error localization and ranking improve repair quality compared to purely symbolic or neural methods?
  • RQ3What training strategies are effective for neural components in low-code repair, especially given skewed and unreliable training data?
  • RQ4To what extent can a single framework be generalized across different low-code formula languages using grammar and constraints?
  • RQ5How does the fallback strategy between symbolic and neural components affect search space size and repair coverage?

Key findings

  • LaMirage outperforms state-of-the-art symbolic and neural baselines on 400 real-world Excel and PowerFx formulas, demonstrating superior repair accuracy.
  • The use of a balanced training objective and classification-based loss for the neural ranker significantly improves repair ranking performance compared to standard causal language modeling.
  • The fallback strategy—using neural localization only when symbolic tracking fails—maintains a manageable search space while increasing repair coverage.
  • The framework achieves high effectiveness with small, efficient neural models, making it practical for deployment in production low-code platforms.
  • Ablation studies confirm that both the neural localizer and ranker contribute meaningfully to overall performance, with the symbolic core ensuring correctness.
  • The authors released two benchmark datasets of real faulty formulas with correct repairs, enabling future research in low-code repair.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.