English

Constrained Language Models Yield Few-Shot Semantic Parsers

Computation and Language 2021-11-18 v2

Abstract

We explore the use of large pretrained language models as few-shot semantic parsers. The goal in semantic parsing is to generate a structured meaning representation given a natural language input. However, language models are trained to generate natural language. To bridge the gap, we use language models to paraphrase inputs into a controlled sublanguage resembling English that can be automatically mapped to a target meaning representation. Our results demonstrate that with only a small amount of data and very little code to convert into English-like representations, our blueprint for rapidly bootstrapping semantic parsers leads to surprisingly effective performance on multiple community tasks, greatly exceeding baseline methods also trained on the same limited data.

Keywords

Cite

@article{arxiv.2104.08768,
  title  = {Constrained Language Models Yield Few-Shot Semantic Parsers},
  author = {Richard Shin and Christopher H. Lin and Sam Thomson and Charles Chen and Subhro Roy and Emmanouil Antonios Platanios and Adam Pauls and Dan Klein and Jason Eisner and Benjamin Van Durme},
  journal= {arXiv preprint arXiv:2104.08768},
  year   = {2021}
}

Comments

EMNLP 2021. Code is available at https://github.com/microsoft/semantic_parsing_with_constrained_lm

R2 v1 2026-06-24T01:17:31.648Z