Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Improving Generalization in Language Model-Based Text-to-SQL Semantic Parsing: Two Simple Semantic Boundary-Based Techniques

About

Compositional and domain generalization present significant challenges in semantic parsing, even for state-of-the-art semantic parsers based on pre-trained language models (LMs). In this study, we empirically investigate improving an LM's generalization in semantic parsing with two simple techniques: at the token level, we introduce a token preprocessing method to preserve the semantic boundaries of tokens produced by LM tokenizers; at the sequence level, we propose to use special tokens to mark the boundaries of components aligned between input and output. Our experimental results on two text-to-SQL semantic parsing datasets show that our token preprocessing, although simple, can substantially improve the LM performance on both types of generalization, and our component boundary marking method is particularly helpful for compositional generalization.

Daking Rai, Bailin Wang, Yilun Zhou, Ziyu Yao• 2023

Related benchmarks

TaskDatasetResultRank
Text-to-SQLSpider (test)
Execution Accuracy78
140
Text-to-SQLSpider 1.0 (test)
EM Acc (Overall)78
91
Semantic ParsingSMCalFlow-CS (16-C)
Accuracy67.7
20
Showing 3 of 3 rows

Other info

Code

Follow for update