NL-EDIT: Correcting semantic parse errors through natural language interaction
Ahmed Elgohary, Christopher Meek, Matthew Richardson, Adam Fourney, Gonzalo Ramos, Ahmed Hassan Awadallah
TL;DR
NL-EDIT tackles correcting semantic parse errors in text-to-SQL via natural-language feedback. It introduces a formal SQL-Edit representation and an edit-based correction model that grounds feedback in the full interaction context using a relation-aware encoder and a standard decoder to output edits, rather than full queries. A synthetic data generation pipeline augments training, enabling substantial improvements over Splash baselines and across multiple parsers in zero-shot settings. The work demonstrates that one-turn NL feedback can markedly boost parsing accuracy and offers avenues for better user experience and broader applicability of the edit-based correction paradigm.
Abstract
We study semantic parsing in an interactive setting in which users correct errors with natural language feedback. We present NL-EDIT, a model for interpreting natural language feedback in the interaction context to generate a sequence of edits that can be applied to the initial parse to correct its errors. We show that NL-EDIT can boost the accuracy of existing text-to-SQL parsers by up to 20% with only one turn of correction. We analyze the limitations of the model and discuss directions for improvement and evaluation. The code and datasets used in this paper are publicly available at http://aka.ms/NLEdit.
