Semantic Evaluation for Text-to-SQL with Distilled Test Suite

By Ruiqi Zhong, Tao Yu, Daniel Klein. 2020

190 citations recorded by the source corpus.

We propose test suite accuracy to approximate semantic accuracy for Text-to-SQL models. Our method distills a small test suite of databases that achieves high code coverage for the gold query from a large number of randomly generated databases. At evaluation time, it computes the denotation accuracy of the predicted queries on the distilled test suite, hence calculating a tight upper-bound for semantic accuracy efficiently. We use our proposed method to evaluate 21 models submitted to the Spider leader board and manually verify that our method is always correct on 100 examples. In contrast, the current Spider metric leads to a 2.5% false negative rate on average and 8.1% in the worst case, indicating that test suite accuracy is needed. Our implementation, along with distilled test suites for eleven Text-to-SQL datasets, is publicly available.

Subfields: Artificial Intelligence, Information Systems and Management, Management Science and Operations Research, Code Generation & Program Synthesis

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Luke S. Zettlemoyer
  2. Graham Neubig
  3. Percy Liang
  4. Caiming Xiong
  5. Noah A. Smith
  6. Mohit Bansal
  7. Richard Socher
  8. Hannaneh Hajishirzi

In Information Systems and Management

  1. Dzmitry Bahdanau
  2. M. Pourreza
  3. Davood Rafiei
  4. Torsten Scholak
  5. Nitarshan Rajkumar
  6. Raymond Li
  7. Nathan Schucher
  8. Noah A. Smith

In Management Science and Operations Research

  1. Dzmitry Bahdanau
  2. M. Pourreza
  3. Davood Rafiei
  4. Torsten Scholak
  5. Nitarshan Rajkumar
  6. Raymond Li
  7. Nathan Schucher
  8. Jungo Kasai

In Code Generation & Program Synthesis

  1. Dzmitry Bahdanau
  2. M. Pourreza
  3. Davood Rafiei
  4. Torsten Scholak
  5. Raymond Li
  6. Nathan Schucher
  7. Nitarshan Rajkumar
  8. Daniel Fried

Citations in the corpus