Learning Transductions and Alignments with RNN Seq2seq Models

Zhengxiang Wang
3/13/2023
1 citation
cs.CL

Official code: jaaack-wang/rnn-seq2seq-learning (0 stars, Jupyter Notebook, MIT, last commit 2023-06-25).

Abstract

The paper studies the capabilities of Recurrent-Neural-Network sequence to sequence (RNN seq2seq) models in learning four transduction tasks: identity, reversal, total reduplication, and quadratic copying. These transductions are traditionally well studied under finite state transducers and attributed with increasing complexity.

Show full abstract

We find that RNN seq2seq models are only able to approximate a mapping that fits the training or in-distribution data, instead of learning the underlying functions. Although attention makes learning more efficient and robust, it does not overcome the out-of-distribution generalization limitation. We establish a novel complexity hierarchy for learning the four tasks for attention-less RNN seq2seq models, which may be understood in terms of the complexity hierarchy of formal languages, instead of string transductions. RNN variants also play a role in the results. In particular, we show that Simple RNN seq2seq models cannot count the input length.

View on arXivView PDF

Code Implementations(1)

MIT

RNN seq2seq models learning transductions and alignments

00Jupyter Notebook, PythonDec 10, 20223 years agoMIT

Similar Papers

Cite this paper

@article{wang2023learning,
  title  = {Learning Transductions and Alignments with RNN Seq2seq Models},
  author = {Zhengxiang Wang},
  year   = {2023},
  eprint = {2303.06841},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.06841v4}
}

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

Discussion