Few-Shot Semantic Parsing with Language Models Trained on Code

By Richard Shin, Benjamin Van Durme. 2021

74 citations recorded by the source corpus.

Large language models can perform semantic parsing with little training data, when prompted with in-context examples. It has been shown that this can be improved by formulating the problem as paraphrasing into canonical utterances, which casts the underlying meaning representation 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. Recently, models also pre-trained on code, like OpenAI Codex, have risen in prominence. For semantic parsing tasks where we map natural language into code, such models may prove more adept at it. In this paper, we test this hypothesis and find that Codex performs better on such tasks than equivalent GPT-3 models. We evaluate on Overnight and SMCalFlow and find that unlike GPT-3, Codex performs similarly when targeting meaning representations directly, perhaps because meaning representations are structured similar to code in these datasets.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Natural Language Processing, Prompting & Reasoning

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Graham Neubig
  2. Luyu Gao
  3. Luke S. Zettlemoyer
  4. Mohit Bansal
  5. Percy Liang
  6. Jianfeng Gao
  7. Pengfei Liu
  8. Jamie Callan

In Computer Vision and Pattern Recognition

  1. Luyu Gao
  2. Jamie Callan
  3. Graham Neubig
  4. Luc Van Gool
  5. Fei Sha
  6. Quoc V. Le
  7. Trevor Darrell
  8. Dacheng Tao

In Natural Language Processing

  1. Graham Neubig
  2. Luyu Gao
  3. Pengfei Liu
  4. Percy Liang
  5. Luke S. Zettlemoyer
  6. Jamie Callan
  7. Mohit Bansal
  8. Jonathan Berant

In Prompting & Reasoning

  1. Graham Neubig
  2. Pengfei Liu
  3. Yiming Yang
  4. Uri Alon
  5. Shuyan Zhou
  6. Jamie Callan
  7. Aman Madaan
  8. Panupong Pasupat

Citations in the corpus