Structured Reordering for Modeling Latent Alignments in Sequence Transduction

Bailin Wang, Mirella Lapata, Ivan Titov
6/6/2021
cs.CLcs.LG

Official code: berlino/tensor2struct-public (92 stars, Python, MIT, last commit 2023-03-08).

Abstract

Despite success in many domains, neural models struggle in settings where train and test examples are drawn from different distributions. In particular, in contrast to humans, conventional sequence-to-sequence (seq2seq) models fail to generalize systematically, i.e., interpret sentences representing novel combinations of concepts (e.g., text segments) seen in training.

Show full abstract

Traditional grammar formalisms excel in such settings by implicitly encoding alignments between input and output segments, but are hard to scale and maintain. Instead of engineering a grammar, we directly model segment-to-segment alignments as discrete structured latent variables within a neural seq2seq model. To efficiently explore the large space of alignments, we introduce a reorder-first align-later framework whose central component is a neural reordering module producing {\it separable} permutations. We present an efficient dynamic programming algorithm performing exact marginal inference of separable permutations, and, thus, enabling end-to-end differentiable training of our model. The resulting seq2seq model exhibits better systematic generalization than standard models on synthetic problems and NLP tasks (i.e., semantic parsing and machine translation).

View on arXivView PDF

Code Implementations(1)

MIT

Semantic parsers based on encoder-decoder framework

9222Python, JsonnetMar 18, 20213 years agoMIT

Similar Papers

Cite this paper

@article{wang2021structured,
  title  = {Structured Reordering for Modeling Latent Alignments in Sequence Transduction},
  author = {Bailin Wang and Mirella Lapata and Ivan Titov},
  year   = {2021},
  eprint = {2106.03257},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.03257}
}

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

Discussion