Lune

ACL2020Top-tier venue

Dynamic Programming Encoding for Subword Segmentation in Neural Machine Translation

Xuanli He, Gholamreza Haffari, Mohammad Norouzi

Abstract

This paper introduces Dynamic Programming Encoding (DPE), a new segmentation algorithm for tokenizing sentences into subword units. We view the subword segmentation of output sentences as a latent variable that should be marginalized out for learning and inference. A mixed character-subword transformer is proposed, which enables exact log marginal likelihood estimation and exact MAP inference to find target segmentations with maximum posterior probability. DPE uses a lightweight mixed character-subword transformer as a means of pre-processing parallel data to segment output sentences using dynamic programming. Empirical results on machine translation suggest that DPE is effective for segmenting output sentences and can be combined with BPE dropout for stochastic segmentation of source sentences. DPE achieves an average improvement of 0.9 BLEU over BPE (Sennrich et al., 2016) and an average improvement of 0.55 BLEU over BPE dropout (Provilkov et al., 2019) on several WMT datasets including English ↔ (German, Romanian, Estonian, Finnish, Hungarian).

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

9 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Subwords as Skills: Tokenization for Sparse-Reward Reinforcement Learning cites BPE-Dropout: Simple and Effective Subword Regularization
  • Tokenization Is More Than Compression cites BPE-Dropout: Simple and Effective Subword Regularization
  • Tokenization Is More Than Compression cites Improving Tokenisation by Alternative Treatment of Spaces
  • You should evaluate your language model on marginal likelihood over tokenisations cites BPE-Dropout: Simple and Effective Subword Regularization
  • Charformer: Fast Character Transformers via Gradient-based Subword Tokenization cites BPE-Dropout: Simple and Effective Subword Regularization
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers9

  1. Charformer: Fast Character Transformers via Gradient-based Subword TokenizationYi Tay, Vinh Q. Tran, Sebastian Ruder, Jai Prakash Gupta et al.ICLR 2022 · 198 citations
  2. Tokenization Is More Than CompressionCraig W. Schmidt, Varshini Reddy, Haoran Zhang, Alec Alameddine et al.EMNLP 2024 · 16 citations
  3. You should evaluate your language model on marginal likelihood over tokenisationsKris Cao, Laura RimellEMNLP 2021 · 6 citations
  4. Improving Tokenisation by Alternative Treatment of SpacesEdward Gow-Smith, Harish Tayyar Madabushi, Carolina Scarton, Aline VillavicencioEMNLP 2022 · 6 citations
  5. Subwords as Skills: Tokenization for Sparse-Reward Reinforcement LearningDavid Yunis, Justin Jung, Falcon Z. Dai, Matthew R. WalterNeurIPS 2024 · 5 citations

Builds on2

  1. Imputer: Sequence Modelling via Imputation and Dynamic ProgrammingWilliam Chan, Chitwan Saharia, Geoffrey E. Hinton, Mohammad Norouzi et al.ICML 2020 · 127 citations
  2. BPE-Dropout: Simple and Effective Subword RegularizationIvan Provilkov, Dmitrii Emelianenko, Elena VoitaACL 2020 · 17 citations

Related papers

  1. Subword Segmental Machine Translation: Unifying Segmentation and Target Sentence GenerationFrancois Meyer, Jan BuysACL Findings 2023 · 3 citations
  2. Char2Subword: Extending the Subword Embedding Space Using Robust Character CompositionalityGustavo Aguilar, Bryan McCann, Tong Niu, Nazneen Rajani et al.EMNLP Findings 2021 · 10 citations
  3. Lexically Grounded Subword SegmentationJindrich Libovický, Jindrich HelclEMNLP 2024 · 2 citations
  4. Retrofitting Large Language Models with Dynamic TokenizationDarius Feher, Ivan Vulic, Benjamin MinixhoferACL 2025
  5. Byte Pair Encoding is Suboptimal for Language Model PretrainingKaj Bostrom, Greg DurrettEMNLP Findings 2020 · 180 citations
Dusk over the sea between two cliffs drawn in fine vertical lines