TPDM: Selectively Removing Positional Information for Zero-shot Translation via Token-Level Position Disentangle Module

Xingran Chen, Ge Zhang, Jie FuarXiv 2023

Abstract

Due to Multilingual Neural Machine Translation's (MNMT) capability of zero-shot translation, many works have been carried out to fully exploit the potential of MNMT in zero-shot translation. It is often hypothesized that positional information may hinder the MNMT from outputting a robust encoded representation for decoding. However, previous approaches treat all the positional information equally and thus are unable to selectively remove certain positional information. In sharp contrast, this paper investigates how to learn to selectively preserve useful positional information. We describe the specific mechanism of positional information influencing MNMT from the perspective of linguistics at the token level. We design a token-level position disentangle module (TPDM) framework to disentangle positional information at the token level based on the explanation. Our experiments demonstrate that our framework improves zero-shot translation by a large margin while reducing the performance loss in the supervised direction compared to previous works.

Introduction

Multilingual Neural Machine Translation (MNMT) models serve as versatile tools capable of handling numerous languages within a single architecture. Their most significant potential lies in zero-shot translation: the ability to translate between language pairs (e.g., Chinese to Arabic) that were never explicitly paired during training.

However, zero-shot performance often lags behind supervised benchmarks. A primary obstacle is the interference of positional information. Because different languages utilize distinct word orders (e.g., SVO vs. SOV), an encoder that couples semantic meaning too tightly with source-specific word order produces representations that are difficult for the decoder to map into a target language with a different structure. While previous research attempted to remove positional information entirely, such "blunt" methods often discard essential data, such as the order of digits in numbers or the placement of punctuation. This paper introduces the Token-Level Position Disentangle Module (TPDM) to selectively strip harmful positional data while preserving linguistically necessary information.

Methodology: Token-Level Position Disentangle

The TPDM framework treats positional information as a latent variable that must be separated from a token's semantic core. The module is typically inserted into a middle layer of the Transformer encoder to refine representations before they reach the decoder.

The internal architecture of the TPDM module, featuring dual heads and adversarial training components.

Dual-Head Architecture and Adversarial Learning

As shown in the architecture diagram, the module splits the representation into two distinct paths:

  1. Semantic Head ($h_i$): Captures the core meaning of the token.
  2. Positional Head ($p_i$): Captures the token's location within the sequence.

To ensure the semantic head is truly invariant to word order, the authors employ Mutual Information (MI) Minimization via an adversarial setup. A generator ($G_\sigma$) attempts to reconstruct positional embeddings from the semantic output. The model is trained to minimize the MI between these two heads, effectively "scrubbing" positional bias from the semantic representation. Simultaneously, a Position Regularization loss forces the Positional Head to maintain accurate location data, preventing the module from simply zeroing out all positional signals. A gated variant (GTPDM) further refines this by using a learnable mask to decide which specific tokens require disentanglement.

Experimental Evaluation

Datasets and Setup

The researchers evaluated TPDM on two major benchmarks:

  • MultiUN: A large-scale corpus of UN documents (Arabic, Chinese, Russian, and English).
  • Europarl: European Parliament proceedings (German, French, and English).

Models were trained on English-centric pairs (e.g., Ar↔En) and tested on zero-shot pairs (e.g., Zh↔Ar).

Key Results

TPDM demonstrated substantial improvements in zero-shot translation quality across all tested pairs. On the MultiUN dataset, the TPDM-base model achieved an average zero-shot BLEU score of 31.8, a significant leap from the vanilla MNMT's 21.6.

Comparison of translation performance (BLEU) across MultiUN and Europarl datasets for various model configurations.

As seen in the results table, TPDM consistently outperformed the previous state-of-the-art method (MNMT-RC) by an average of 2.0 BLEU points. Crucially, TPDM minimized the performance degradation typically seen in supervised directions when optimizing for zero-shot capabilities, maintaining high quality for the language pairs seen during training.

Discussion and Insights

  • Selective Preservation: Probing experiments revealed that the model learned to retain positional information for specific token types, such as numbers, punctuation, and capitalized words. This selective approach prevents the factual errors and garbled numerical data common in earlier "scorched earth" position-removal methods.
  • Linguistic Robustness: The authors observed that languages with relatively free word order (like Russian) require less positional anchoring than strict-order languages. TPDM adapts to these linguistic nuances at the token level.
  • Model Scaling: The module proved particularly effective for smaller models, which are traditionally more susceptible to "forgetting" translation logic in zero-shot scenarios.

Conclusion and Future Work

TPDM offers a sophisticated mechanism for improving zero-shot translation by disentangling semantic meaning from source-specific word order. While the module adds approximately 40% to training time and increases parameter count by 1%, the gains in translation robustness are substantial. Future work will focus on reducing the computational overhead of the adversarial training process and developing methods to automatically determine the optimal encoder layer for module insertion.

Summary updated

BibTeX
@misc{chen2023tpdm,
  author = {Xingran Chen and Ge Zhang and Jie Fu},
  title = {{TPDM: Selectively Removing Positional Information for Zero-shot Translation via Token-Level Position Disentangle Module}},
  year = {2023},
  eprint = {2305.19857},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.19857},
}
Figure