Exact Hard Monotonic Attention for Character-Level Transduction

Shijie Wu, Ryan Cotterell
5/15/2019
cs.CL

Official code: shijie-wu/neural-transducer (77 stars, MIT, last commit 2023-09-13).

Abstract

Many common character-level, string-to string transduction tasks, e.g., grapheme-tophoneme conversion and morphological inflection, consist almost exclusively of monotonic transductions. However, neural sequence-to sequence models that use non-monotonic soft attention often outperform popular monotonic models. In this work, we ask the following question: Is monotonicity really a helpful inductive bias for these tasks? We develop a hard attention sequence-to-sequence model that enforces strict monotonicity and learns a latent alignment jointly while learning to transduce. With the help of dynamic programming, we are able to compute the exact marginalization over all monotonic alignments. Our models achieve state-of-the-art performance on morphological inflection. Furthermore, we find strong performance on two other character-level transduction tasks. Code is available at https://github.com/shijie-wu/neural-transducer.

View on arXivView PDF

Code Implementations(1)

MIT

This repo contains a set of neural transducer, e.g. sequence-to-sequence model, focusing on character-level tasks.

7725C, ShellSep 8, 20193 years agoMIT
character-level-transductionsequence-to-sequencetransducers

Cite this paper

@article{wu2019exact,
  title  = {Exact Hard Monotonic Attention for Character-Level Transduction},
  author = {Shijie Wu and Ryan Cotterell},
  year   = {2019},
  eprint = {1905.06319},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1905.06319}
}

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

Discussion