Ambiguous Learning from Retrieval: Towards Zero-shot Semantic Parsing

Shan Wu, Chunlei Xin, Hongyu Lin, Xianpei Han, Cao Liu, Jiansong Chen, Fan Yang, Guanglu Wan, Le Sun

Abstract

Semantic parsing translates natural language into machine-readable logic, a task typically requiring vast amounts of labeled data. We present Retrieval as Ambiguous Supervision (RaAS), a framework that enables zero-shot semantic parsing by treating the output of a retriever as a set of noisy, "multiple-choice" candidates. Through an iterative self-training process, the model learns to identify the correct meaning representation (MR) from these candidates. RaAS achieves state-of-the-art results on several benchmarks, demonstrating that off-the-shelf retrieval models can provide a sufficient "warm start" for complex logical tasks.

Introduction

The primary bottleneck in scaling semantic parsers is the high cost of human annotation. While zero-shot approaches attempt to bypass this, they often struggle with the structural complexity of logical forms. The RaAS framework addresses this by reframing the problem: instead of generating logic from scratch, the model selects and refines candidates retrieved from a domain-specific grammar.

Methodology: Retrieval as Ambiguous Supervision

The RaAS framework consists of two main phases: initial noisy retrieval and iterative refinement.

1. Retrieval as "Noisy" Supervision

The process begins by generating a comprehensive datastore of possible meaning representations (MRs) using a domain's Context-Free Grammar (CFG). For any given unannotated query, a Pre-trained Language Model (PLM) retrieves the top-$k$ most similar MRs based on their canonical utterances.

The RaAS framework overview, illustrating the iterative loop between retrieval, confidence evaluation, and semantic parsing.

2. Iterative Self-Training and Denoising

Because the top-1 retrieval result is often incorrect, the system treats the top-$k$ results as ambiguous labels. It then enters a confidence-driven loop:

  • Training: A T5-based semantic parser, utilizing soft prompt tuning to preserve pre-trained knowledge, is trained on the highest-confidence candidates.
  • Expansion & Re-estimation: The parser generates new candidates via beam search. These are merged with the retrieved set, and confidence scores are re-calculated based on the agreement between the parser and a paraphrase model (PEGASUS).

The Power of Top-k Retrieval

The success of RaAS hinges on the observation that while a retriever might fail to find the exact match as its first choice, the correct logic is highly likely to appear within the top 20 results.

Top-k retrieval accuracy across various domains in the OVERNIGHT dataset. Accuracy significantly improves as k increases, reaching near 100% for k=20 in most cases.

As shown in the figure above, the "top-20" accuracy across diverse domains like Basketball and Recipes is remarkably high (~95%). This provides a reliable "haystack" in which the "needle" (the correct MR) is almost certainly present, allowing the parser to act as a structural filter that cleans the noisy data over successive iterations.

Experimental Results

RaAS was evaluated on the OVERNIGHT, GEOGRANNO, and GEO(FunQL) benchmarks. On the OVERNIGHT dataset, RaAS achieved an average accuracy of 71.4%, outperforming the previous zero-shot state-of-the-art (SSD) by over 9%. Notably, in some domains, the zero-shot RaAS model performed better than few-shot models trained on 200 manual examples.

Conclusion

RaAS demonstrates that zero-shot semantic parsing is achievable by leveraging the latent knowledge in PLMs through retrieval and iterative self-correction. While currently dependent on domain grammars, future work aims to generalize this approach to grammar-free environments, further reducing the human effort required to deploy intelligent natural language interfaces.

Summary updated

BibTeX
@inproceedings{wu2023ambiguous,
  author = {Shan Wu and Chunlei Xin and Hongyu Lin and Xianpei Han and Cao Liu and Jiansong Chen and Fan Yang and Guanglu Wan and Le Sun},
  title = {{Ambiguous Learning from Retrieval: Towards Zero-shot Semantic Parsing}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.787},
}
Figure