Joint Tokenization and Translation

Xinyan Xiao, Yang Liu, Young-Sook Hwang, Qun Liu, Shouxun Lin

Abstract

Traditional machine translation (MT) pipelines treat word segmentation (tokenization) as an independent preprocessing step, often leading to error propagation where ambiguous segmentations result in incorrect translations. This paper introduces a joint decoder based on Synchronous Context-Free Grammars (SCFG) that performs tokenization and translation simultaneously. By leveraging the target language context to resolve source-side ambiguities, the proposed approach achieves significant improvements in both translation quality and word-segmentation accuracy across multiple language pairs.

Introduction

In many East Asian languages, such as Chinese and Korean, word boundaries are not explicitly marked by spaces. Consequently, Statistical Machine Translation (SMT) systems must first segment the source text into discrete tokens. However, this process is inherently ambiguous; a single character string can often be segmented in multiple ways depending on the context.

In a traditional pipeline, a mistake in tokenization propagates through the entire system, leading to "hallucinated" words or lost meanings. While some systems attempt to mitigate this using lattices to represent multiple segmentation hypotheses, these methods remain limited because the segmentation is still largely decoupled from the translation process. We propose that the translation process itself should serve as a disambiguator for source-side segmentation.

Comparison between (a) the traditional pipeline and (b) the proposed joint decoding approach.

The Joint Decoding Framework

The core innovation of this work is a joint decoder that operates on raw character strings rather than pre-tokenized sequences. The system is built upon a Synchronous Context-Free Grammar (SCFG) framework, which allows for the hierarchical modeling of both segmentation and translation.

Integrated Discriminative Model

The decoder utilizes a log-linear model that integrates 16 features:

  • Translation Features: Eight traditional features, including rule translation probabilities and target language models.
  • Tokenization Features: Eight new features designed to evaluate segmentation quality, including a Maximum Entropy (ME) model for character tagging (beginning, middle, end, or single-character word) and a source-side language model to evaluate the likelihood of word sequences.

Handling Out-of-Vocabulary (OOV) Words

To maintain robustness, the decoder includes a mechanism for handling unseen words, such as proper names. Any span of characters can be treated as an OOV word and copied directly to the target side, governed by specific "OOV Discount" features to prevent the model from over-relying on this mechanism.

Hierarchical joint decoding process showing how spans are combined to form a complete translation.

Search Algorithm

The system adapts the standard CKY algorithm with cube pruning. This allows the decoder to efficiently explore the vast search space created by combining all possible segmentations with all possible translation rules.

Experimental Evaluation

The researchers evaluated the joint decoder on three distinct tasks:

  1. Chinese-English Translation: Utilizing a 1.5M sentence pair corpus from the LDC, tested on NIST MT04 and MT05 sets.
  2. Korean-Chinese Translation: Utilizing a news corpus of 256k sentence pairs.
  3. Monolingual Chinese Tokenization: Evaluated on a 2k sentence test set from the People’s Daily corpus to measure segmentation accuracy independently.

Results and Discussion

Translation Quality

The joint method demonstrated substantial gains over traditional pipelines. On the Chinese-English task, the joint decoder outperformed the best 1-best baseline by up to 1.96 BLEU points and exceeded the performance of lattice-based approaches by 1.46 BLEU points.

Tokenization Accuracy

One of the most striking findings was that the joint decoder functioned as a superior tokenizer compared to specialized monolingual tools. It achieved a tokenization F1 score of 97.70, reducing the error rate of state-of-the-art segmenters (like ICTCLAS) by 8.7%. This confirms that translation context provides a powerful signal for linguistic segmentation.

Computational Complexity

The primary trade-off for this increased accuracy is computational cost. Because the search space for possible segmentations is significantly larger than in a pre-tokenized pipeline, the joint decoder is approximately 2.6 to 7 times slower than separate or lattice-based methods.

Conclusion

By integrating tokenization directly into the decoding process, we can resolve source-side ambiguities that are otherwise impossible to settle using monolingual information alone. This joint approach is not only more accurate but also more robust to the quality of initial training data. Future work will focus on optimizing the search space to reduce computational overhead and extending this joint framework to other MT architectures, such as string-to-tree models.

Summary updated

BibTeX
@inproceedings{xiao2010joint,
  author = {Xinyan Xiao and Yang Liu and Young-Sook Hwang and Qun Liu and Shouxun Lin},
  title = {{Joint Tokenization and Translation}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2010},
}
Figure