EDITOR: an Edit-Based Transformer with Repositioning for Neural Machine Translation with Soft Lexical Constraints

Weijia Xu, Marine Carpuat
11/13/2020
cs.CLcs.LG
transformer-attention

Official code: weijia-xu/fairseq-editor (29 stars, Python, MIT, last commit 2021-12-21).

Abstract

We introduce an Edit-Based Transformer with Repositioning (EDITOR), which makes sequence generation flexible by seamlessly allowing users to specify preferences in output lexical choice. Building on recent models for non-autoregressive sequence generation (Gu et al., 2019), EDITOR generates new sequences by iteratively editing hypotheses.

Show full abstract

It relies on a novel reposition operation designed to disentangle lexical choice from word positioning decisions, while enabling efficient oracles for imitation learning and parallel edits at decoding time. Empirically, EDITOR uses soft lexical constraints more effectively than the Levenshtein Transformer (Gu et al., 2019) while speeding up decoding dramatically compared to constrained beam search (Post and Vilar, 2018). EDITOR also achieves comparable or better translation quality with faster decoding speed than the Levenshtein Transformer on standard Romanian-English, English-German, and English-Japanese machine translation tasks.

View on arXivView PDF

Code Implementations(1)

MIT

EDITOR: an Edit-Based Transformer with Repositioning for Neural Machine Translation with Soft Lexical Constraints

294Python, CudaDec 13, 20204 years agoMIT

Similar Papers

Cite this paper

@article{xu2020editor,
  title  = {EDITOR: an Edit-Based Transformer with Repositioning for Neural Machine Translation with Soft Lexical Constraints},
  author = {Weijia Xu and Marine Carpuat},
  year   = {2020},
  eprint = {2011.06868},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.06868}
}

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

Discussion