Few-Shot Semantic Parsing with Language Models Trained On Code

12/16/2021
by   Richard Shin, et al.
0

Large language models, prompted with in-context examples, can perform semantic parsing with little training data. They do better when we formulate the problem as paraphrasing into canonical utterances, which cast the underlying meaning representations into a controlled natural language-like representation. Intuitively, such models can more easily output canonical utterances as they are closer to the natural language used for pre-training. More recently, models also pre-trained on code, like OpenAI Codex, have risen in prominence. Since accurately modeling code requires understanding of executable semantics. such models may prove more adept at semantic parsing. In this paper, we test this hypothesis and find that Codex performs better at semantic parsing than equivalent GPT-3 models. We find that unlike GPT-3, Codex performs similarly when targeting meaning representations directly, perhaps as meaning representations used in semantic parsing are structured similar to code.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/18/2021

Constrained Language Models Yield Few-Shot Semantic Parsers

We explore the use of large pretrained language models as few-shot seman...
research
10/16/2021

The Power of Prompt Tuning for Low-Resource Semantic Parsing

Prompt tuning has recently emerged as an effective method for adapting p...
research
05/01/2023

Evaluating statistical language models as pragmatic reasoners

The relationship between communicated language and intended meaning is o...
research
03/19/2018

Polyglot Semantic Parsing in APIs

Traditional approaches to semantic parsing (SP) work by training individ...
research
01/01/2021

Semantic Parsing with Less Prior and More Monolingual Data

Semantic parsing is the task of converting natural language utterances t...
research
11/14/2022

CST5: Data Augmentation for Code-Switched Semantic Parsing

Extending semantic parsers to code-switched input has been a challenging...
research
05/15/2023

Natural Language Decomposition and Interpretation of Complex Utterances

Natural language interfaces often require supervised data to translate u...

Please sign up or login with your details

Forgot password? Click here to reset