Elamur Research
☰
home / papers / 2018 / Improving Text-to-SQL Evaluation Methodology

Improving Text-to-SQL Evaluation Methodology

Written for the Research library (claude-opus-5-5) from the paper text. Original — aclanthology.org/P18-1033.pdf

Summary

The paper argues that common practices for evaluating text-to-SQL systems overstate how well models generalize. The authors cleaned and unified seven existing corpora, giving them a consistent SQL style, removing duplicate queries, fixing annotation mistakes and marking query variables by hand. They also contribute Advising, a new dataset of student questions about University of Michigan courses, which require especially complex SQL. Comparing human-written with automatically generated questions, they find the human-written ones demand richer queries. They also identify a flaw in conventional data splits. When splitting by question, most test queries also appear in training with only different wording and entities. A simple template-filling baseline exploits this and still rivals published systems. Under their proposed query-based split, where each SQL query appears on only one side, strong models perform much worse. Finally, they show that anonymizing variables hides a real source of ambiguity. Together, the released data and guidelines support more honest benchmarking of NLIDB systems.

Key points

  • Resources are released at github.com/jkkummerfeld/text2sql-data. They include standardized versions of datasets such as ATIS, GeoQuery, Restaurants, Scholar, Academic, Yelp, IMDB and WikiSQL, plus the new Advising corpus.
  • Advising has 4,570 questions mapped to only 211 unique queries. By contrast, WikiSQL has 80,654 questions and 77,840 unique queries, yet those queries are much simpler (one table, no nesting).
  • Manual deduplication grouped equivalent questions that had been given different SQL:
    • ATIS: 380 affected queries in 141 sets
    • GeoQuery: 39 affected queries in 17 sets
    • Scholar: 152 affected queries in 60 sets
  • Canonicalization sorted fields, tables and constraints alphabetically and standardized table aliases (e.g. RIVERalias0) and formatting.
  • The authors recommend reporting results on both question-based and query-based splits, and on non-anonymized data. When applied to logical forms for ATIS and GeoQuery, the query-based split had only a limited effect.

Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.

Fields: Natural language processing

Cited by

142 papers of our library cite it (of the 140673 whose bibliographies we read); 2 of them have a page here, 140 not yet.

Cite

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/p18-1033

@inproceedings{finegandollak2018improving,
  title = {{Improving Text-to-SQL Evaluation Methodology}},
  author = {Finegan-Dollak, Catherine and Kummerfeld, Jonathan K. and Zhang, Li and Ramanathan, Karthik and Sadasivam, Sesh and Zhang, Rui and Radev, Dragomir},
  booktitle = {Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  year = {2018},
  doi = {10.18653/v1/p18-1033},
  url = {https://doi.org/10.18653/v1/p18-1033}
}

References

4 references, 1 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

  1. population even though the associated dataset only has population figures for cities (not area or any other measure of size). Similarly in ATIS, the logical form will add (flight $0) if the question mentions flights explicitly, making these two queries different, even though they convey the same use… find our card
  2. By being closer to a syntactic representation, the queries end up being more compositional, which encourages the model to learn more compositionality than the SQL models do. find
  3. Islam Beltagy, Katrin Erk, and Raymond Mooney. 2014. Semantic parsing using distributional semantics and probabilistic logic. Proceedings of the ACL 2014 Workshop on Semantic Parsing, pages 7–11. find
  4. Jonathan Berant and Percy Liang. 2014. Semantic parsing via paraphrasing. In Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics, pages 1415–1425. \#\# Conclusion find