English

Turing: an Accurate and Interpretable Multi-Hypothesis Cross-Domain Natural Language Database Interface

Computation and Language 2021-06-09 v1

Abstract

A natural language database interface (NLDB) can democratize data-driven insights for non-technical users. However, existing Text-to-SQL semantic parsers cannot achieve high enough accuracy in the cross-database setting to allow good usability in practice. This work presents Turing, a NLDB system toward bridging this gap. The cross-domain semantic parser of Turing with our novel value prediction method achieves 75.1%75.1\% execution accuracy, and 78.3%78.3\% top-5 beam execution accuracy on the Spider validation set. To benefit from the higher beam accuracy, we design an interactive system where the SQL hypotheses in the beam are explained step-by-step in natural language, with their differences highlighted. The user can then compare and judge the hypotheses to select which one reflects their intention if any. The English explanations of SQL queries in Turing are produced by our high-precision natural language generation system based on synchronous grammars.

Keywords

Cite

@article{arxiv.2106.04559,
  title  = {Turing: an Accurate and Interpretable Multi-Hypothesis Cross-Domain Natural Language Database Interface},
  author = {Peng Xu and Wenjie Zi and Hamidreza Shahidi and Ákos Kádár and Keyi Tang and Wei Yang and Jawad Ateeq and Harsh Barot and Meidan Alon and Yanshuai Cao},
  journal= {arXiv preprint arXiv:2106.04559},
  year   = {2021}
}

Comments

ACL 2021 demonstration track

R2 v1 2026-06-24T02:58:24.147Z