Papers › Improving Generalization in Language Model-Based Text-to-SQL Semantic Parsing: Two...

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

27 May 2023arXiv:2305.17378archive 2025-07-28

Daking Rai, Bailin Wang, Yilun Zhou, Ziyu Yao

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.

PaperPDFCode

In Syntology View this paper on Syntology, its page in Syntology's graph. That page lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

dakingrai/ood-generalization-semantic-boundary-techniques officialmentioned in papermentioned on GitHubpytorchMITSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to An Investigation of Neuron Activation as a Unified Lens to Explain Chain-of-Thought... (arXiv:2406.12288; that paper's own run record: 34 ran (of which 0 constructed an object rather than computing a result; 12 with no instrument failure: 2 honoured, 7 violated, 3 with no contract checked; 22 where Syntology's instrument failed) · 2 unverified); nothing checks that they implement this paper's method. report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

A paper named beside a repository with no sample linked to this paper is shown with that paper's own run record, not this paper's: “ran” means executed on a synthesized input, not that the code is correct, and “where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Papers are listed in arXiv-id order, at most three per repository.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Domain GeneralizationLanguage ModelingLanguage ModellingSemantic ParsingText to SQLText-To-SQL

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Text-To-SQL spider T5-3B+NatSQL+Token Preprocessing Exact Match Accuracy (Dev) 69.4 #9 of 20 Archive leaderboard report
Text-To-SQL spider T5-3B+NatSQL+Token Preprocessing Execution Accuracy (Dev) 73.7 #9 of 20 Archive leaderboard report
Text-To-SQL spider T5-3B+NatSQL+Token Preprocessing Execution Accuracy (Test) 78 #9 of 20 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections