SParC: Cross-Domain Semantic Parsing in Context
Tao Yu, Rui Zhang, Michihiro Yasunaga, Yi Chern Tan, Xi Victoria Lin, Suyi Li, Heyang Er, Irene Li, Bo Pang, Tao Chen, Emily Ji, Shreya Dixit, David Proctor, Sungrok Shim, Jonathan Kraft, Vincent Zhang, Caiming Xiong, Richard Socher, Dragomir Radev
TL;DR
SParC addresses the gap in context-aware semantic parsing by introducing a large, cross-domain dataset of 4,298 question sequences (12k+ questions) over 200 databases in 138 domains, annotated with executable SQL. The authors adapt two state-of-the-art context-dependent models (CD-Seq2Seq and SyntaxSQL-con) and show that, despite modeling history, the best approach achieves only 20.2% exact-match on all questions and under 10% on interaction-level sequences, underscoring significant modeling challenges for cross-domain, context-dependent text-to-SQL. The work provides a comprehensive data collection pipeline, in-depth analysis of contextual dependencies and linguistic phenomena, and rigorous benchmarking, highlighting the need for advances in context fusion and cross-domain generalization. The dataset and baselines, along with a public leaderboard, are intended to spur progress toward robust, multi-turn SQL understanding across diverse domains.
Abstract
We present SParC, a dataset for cross-domainSemanticParsing inContext that consists of 4,298 coherent question sequences (12k+ individual questions annotated with SQL queries). It is obtained from controlled user interactions with 200 complex databases over 138 domains. We provide an in-depth analysis of SParC and show that it introduces new challenges compared to existing datasets. SParC demonstrates complex contextual dependencies, (2) has greater semantic diversity, and (3) requires generalization to unseen domains due to its cross-domain nature and the unseen databases at test time. We experiment with two state-of-the-art text-to-SQL models adapted to the context-dependent, cross-domain setup. The best model obtains an exact match accuracy of 20.2% over all questions and less than10% over all interaction sequences, indicating that the cross-domain setting and the con-textual phenomena of the dataset present significant challenges for future research. The dataset, baselines, and leaderboard are released at https://yale-lily.github.io/sparc.
