LAGr: Label Aligned Graphs for Better Systematic Generalization in Semantic Parsing

Dora Jambor, Dzmitry Bahdanau
5/19/2022
cs.CLcs.AI

Official code: ElementAI/lagr (10 stars, Python, last commit 2022-06-01).

Abstract

Semantic parsing is the task of producing structured meaning representations for natural language sentences. Recent research has pointed out that the commonly-used sequence-to-sequence (seq2seq) semantic parsers struggle to generalize systematically, i.e. to handle examples that require recombining known knowledge in novel settings.

Show full abstract

In this work, we show that better systematic generalization can be achieved by producing the meaning representation directly as a graph and not as a sequence. To this end we propose LAGr (Label Aligned Graphs), a general framework to produce semantic parses by independently predicting node and edge labels for a complete multi-layer input-aligned graph. The strongly-supervised LAGr algorithm requires aligned graphs as inputs, whereas weakly-supervised LAGr infers alignments for originally unaligned target graphs using approximate maximum-a-posteriori inference. Experiments demonstrate that LAGr achieves significant improvements in systematic generalization upon the baseline seq2seq parsers in both strongly- and weakly-supervised settings.

View on arXivView PDF

Code Implementations(1)

ElementAI/lagrOfficial100%

LAGr: Label Aligned Graphs for Better Systematic Generalization in Semantic Parsing

100Python, ShellMar 18, 20224 years ago

Similar Papers

Cite this paper

@article{jambor2022lagr,
  title  = {LAGr: Label Aligned Graphs for Better Systematic Generalization in Semantic Parsing},
  author = {Dora Jambor and Dzmitry Bahdanau},
  year   = {2022},
  eprint = {2205.09607},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.09607}
}

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

Discussion