BenchCLAMP: A Benchmark for Evaluating Language Models on Syntactic and Semantic Parsing

Subhro Roy, Sam Thomson, Tongfei Chen, Richard Shin, Adam Pauls +2 more
6/21/2022
cs.CL
benchmark-dataset

Official code: microsoft/semantic_parsing_with_constrained_lm (67 stars, Python, MIT, last commit 2024-05-31).

Abstract

Recent work has shown that generation from a prompted or fine-tuned language model can perform well at semantic parsing when the output is constrained to be a valid semantic representation. We introduce BenchCLAMP, a Benchmark to evaluate Constrained LAnguage Model Parsing, that includes context-free grammars for seven semantic parsing datasets and two syntactic parsing datasets with varied output representations, as well as a constrained decoding interface to generate only valid outputs covered by these grammars.

Show full abstract

We provide low, medium, and high resource splits for each dataset, allowing accurate comparison of various language models under different data regimes. Our benchmark supports evaluation of language models using prompt-based learning as well as fine-tuning. We benchmark eight language models, including two GPT-3 variants available only through an API. Our experiments show that encoder-decoder pretrained language models can achieve similar performance or surpass state-of-the-art methods for syntactic and semantic parsing when the model output is constrained to be valid.

View on arXivView PDF

Code Implementations(1)

MIT

Code to reproduce experiments in the paper "Constrained Language Models Yield Few-Shot Semantic Parsers" (EMNLP 2021).

676PythonSep 8, 20212 years agoMIT

Similar Papers

Cite this paper

@article{roy2022benchclamp,
  title  = {BenchCLAMP: A Benchmark for Evaluating Language Models on Syntactic and Semantic Parsing},
  author = {Subhro Roy and Sam Thomson and Tongfei Chen and Richard Shin and Adam Pauls and Jason Eisner and Benjamin Van Durme},
  year   = {2022},
  eprint = {2206.10668},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.10668}
}

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/2206.10668.svg)](https://codeofpaper.com/paper/2206.10668)

Discussion