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.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
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
Cited by top-tier papers9
- Charformer: Fast Character Transformers via Gradient-based Subword TokenizationYi Tay, Vinh Q. Tran, Sebastian Ruder, Jai Prakash Gupta et al.ICLR 2022 · 198 citations
- Tokenization Is More Than CompressionCraig W. Schmidt, Varshini Reddy, Haoran Zhang, Alec Alameddine et al.EMNLP 2024 · 16 citations
- You should evaluate your language model on marginal likelihood over tokenisationsKris Cao, Laura RimellEMNLP 2021 · 6 citations
- Improving Tokenisation by Alternative Treatment of SpacesEdward Gow-Smith, Harish Tayyar Madabushi, Carolina Scarton, Aline VillavicencioEMNLP 2022 · 6 citations
- Subwords as Skills: Tokenization for Sparse-Reward Reinforcement LearningDavid Yunis, Justin Jung, Falcon Z. Dai, Matthew R. WalterNeurIPS 2024 · 5 citations
Builds on2
Related papers
- Subword Segmental Machine Translation: Unifying Segmentation and Target Sentence GenerationFrancois Meyer, Jan BuysACL Findings 2023 · 3 citations
- Char2Subword: Extending the Subword Embedding Space Using Robust Character CompositionalityGustavo Aguilar, Bryan McCann, Tong Niu, Nazneen Rajani et al.EMNLP Findings 2021 · 10 citations
- Lexically Grounded Subword SegmentationJindrich Libovický, Jindrich HelclEMNLP 2024 · 2 citations
- Retrofitting Large Language Models with Dynamic TokenizationDarius Feher, Ivan Vulic, Benjamin MinixhoferACL 2025
- Byte Pair Encoding is Suboptimal for Language Model PretrainingKaj Bostrom, Greg DurrettEMNLP Findings 2020 · 180 citations
