Lune

ACL Findings2021

Grammar-Constrained Neural Semantic Parsing with LR Parsers

Artur Baranowski, Nico Hochgeschwender

Abstract

Target meaning representations for semantic parsing tasks are often based on programming or query languages, such as SQL, and can be formalized by a context-free grammar. Assuming a priori knowledge of the target domain, such grammars can be exploited to enforce syntactical constraints when predicting logical forms. To that end, we assess how syntactical parsers can be integrated into modern encoder-decoder frameworks. Specifically, we implement an attentional SEQ2SEQ model that uses an LR parser to maintain syntactically valid sequences throughout the decoding procedure. Compared to other approaches to grammar-guided decoding that modify the underlying neural network architecture or attempt to derive full parse trees, our approach is conceptually simpler, adds less computational overhead during inference and integrates seamlessly with current SEQ2SEQ frameworks. We present preliminary evaluation results against a recurrent SEQ2SEQ baseline on GEOQUERY and ATIS and demonstrate improved performance while enforcing grammatical constraints.

Ask Lune

Ask anything. The answer quotes the paper.

Lune reads all of it and the papers around it, then shows you the passages behind every answer.

Questions to start from

Lune answers from

the full paper · 1 top-tier paper that cites it · related work

Get the answer

Free to start. No credit card required.

Cited by top-tier papers1

  1. GraphQ IR: Unifying the Semantic Parsing of Graph Query Languages with One Intermediate RepresentationLunyiu Nie, Shulin Cao, Jiaxin Shi, Jiuding Sun et al.EMNLP 2022 · 20 citations

Related papers

  1. S²SQL: Injecting Syntax to Question-Schema Interaction Graph Encoder for Text-to-SQL ParsersBinyuan Hui, Ruiying Geng, Lihan Wang, Bowen Qin et al.ACL Findings 2022 · 66 citations
  2. DRTS Parsing with Structure-Aware Encoding and DecodingQiankun Fu, Yue Zhang, Jiangming Liu, Meishan ZhangACL 2020 · 8 citations
  3. Compositional Generalization via Semantic TaggingHao Zheng, Mirella LapataEMNLP Findings 2021 · 22 citations
  4. LAGr: Label Aligned Graphs for Better Systematic Generalization in Semantic ParsingDora Jambor, Dzmitry BahdanauACL 2022
  5. Syntax-guided Localized Self-attention by Constituency Syntactic DistanceShengyuan Hou, Jushi Kai, Haotian Xue, Bingyu Zhu et al.EMNLP Findings 2022 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines