Improving Generalization in Semantic Parsing by Increasing Natural Language Variation

Irina Saparina, Mirella Lapata
2/13/2024
cs.CL

No official code found. Best implementation: saparina/Text2SQL-NLVariation (5 stars, CC-BY-SA-4.0, last commit 2024-02-14).

Abstract

Text-to-SQL semantic parsing has made significant progress in recent years, with various models demonstrating impressive performance on the challenging Spider benchmark. However, it has also been shown that these models often struggle to generalize even when faced with small perturbations of previously (accurately) parsed expressions. This is mainly due to the linguistic form of questions in Spider which are overly specific, unnatural, and display limited variation. In this work, we use data augmentation to enhance the robustness of text-to-SQL parsers against natural language variations. Existing approaches generate question reformulations either via models trained on Spider or only introduce local changes. In contrast, we leverage the capabilities of large language models to generate more realistic and diverse questions. Using only a few prompts, we achieve a two-fold increase in the number of questions in Spider. Training on this augmented dataset yields substantial improvements on a range of evaluation sets, including robustness benchmarks and out-of-domain data.

View on arXivView PDF

Code Implementations(1)

CC-BY-SA-4.0

Improving Generalization in Semantic Parsing by Increasing Natural Language Variation

50Shell, PythonJan 29, 20242 years agoCC-BY-SA-4.0

Similar Papers

Cite this paper

@article{saparina2024improving,
  title  = {Improving Generalization in Semantic Parsing by Increasing Natural Language Variation},
  author = {Irina Saparina and Mirella Lapata},
  year   = {2024},
  eprint = {2402.08666},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.08666v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.08666.svg)](https://codeofpaper.com/paper/2402.08666)

Discussion