Smoothing and Shrinking the Sparse Seq2Seq Search Space

Ben Peters, André F. T. Martins
3/18/2021
cs.CL

Official code: deep-spin/S7 (6 stars, Python, MIT, last commit 2021-03-18).

Abstract

Current sequence-to-sequence models are trained to minimize cross-entropy and use softmax to compute the locally normalized probabilities over target sequences. While this setup has led to strong results in a variety of tasks, one unsatisfying aspect is its length bias: models give high scores to short, inadequate hypotheses and often make the empty string the argmax -- the so-called cat got your tongue problem.

Show full abstract

Recently proposed entmax-based sparse sequence-to-sequence models present a possible solution, since they can shrink the search space by assigning zero probability to bad hypotheses, but their ability to handle word-level tasks with transformers has never been tested. In this work, we show that entmax-based models effectively solve the cat got your tongue problem, removing a major source of model error for neural machine translation. In addition, we generalize label smoothing, a critical regularization technique, to the broader family of Fenchel-Young losses, which includes both cross-entropy and the entmax losses. Our resulting label-smoothed entmax loss models set a new state of the art on multilingual grapheme-to-phoneme conversion and deliver improvements and better calibration properties on cross-lingual morphological inflection and machine translation for 6 language pairs.

View on arXivView PDF

Code Implementations(1)

deep-spin/S7Official100%
MIT

Smoothing and Shrinking the Sparse Seq2Seq Search Space

60Python, PLSQLMar 18, 20215 years agoMIT

Similar Papers

Cite this paper

@article{peters2021smoothing,
  title  = {Smoothing and Shrinking the Sparse Seq2Seq Search Space},
  author = {Ben Peters and André F. T. Martins},
  year   = {2021},
  eprint = {2103.10291},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.10291}
}

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

Discussion