Compositional Generalisation with Structured Reordering and Fertility Layers

Matthias Lindemann, Alexander Koller, Ivan Titov
10/6/2022
cs.CL

Official code: namednil/f-then-r (1 star, Python, last commit 2023-05-08).

Abstract

Seq2seq models have been shown to struggle with compositional generalisation, i.e. generalising to new and potentially more complex structures than seen during training. Taking inspiration from grammar-based models that excel at compositional generalisation, we present a flexible end-to-end differentiable neural model that composes two structural operations: a fertility step, which we introduce in this work, and a reordering step based on previous work (Wang et al., 2021).

Show full abstract

To ensure differentiability, we use the expected value of each step. Our model outperforms seq2seq models by a wide margin on challenging compositional splits of realistic semantic parsing tasks that require generalisation to longer examples. It also compares favourably to other models targeting compositional generalisation.

View on arXivView PDF

Code Implementations(1)

namednil/f-then-rOfficial100%

Code for "Compositional Generalisation with Structured Reordering and Fertility Layers"

10Python, PrologFeb 1, 20233 years ago

Similar Papers

Cite this paper

@article{lindemann2022compositional,
  title  = {Compositional Generalisation with Structured Reordering and Fertility Layers},
  author = {Matthias Lindemann and Alexander Koller and Ivan Titov},
  year   = {2022},
  eprint = {2210.03183},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.03183}
}

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

Discussion