Structural Supervision for Word Alignment and Machine Translation

Lei Li, Kai Fan, Hongjia Li, Chun Yuan

Abstract

Syntactic structure serves as the underlying "skeleton" of language, yet its potential is often underutilized in Neural Machine Translation (NMT). We present a multi-task learning framework that treats translation, word alignment, and target-syntax generation as interconnected objectives. By employing Dynamic Graph Convolution Networks (DGCN) to infer target-side syntax and Hierarchical Graph Random Walks (HGRW) to enforce structural consistency against learned "hidden graphs," our model achieves state-of-the-art alignment accuracy and superior translation quality across diverse language pairs.

Introduction

In Neural Machine Translation (NMT), models learn to map source sentences to target sentences. Despite significant advancements, modern NMT systems often struggle with precise word alignment—identifying the exact correspondence between source and target tokens—and maintaining global structural consistency.

Most existing methods focus solely on source-side syntax, neglecting the rich structural information inherent in the target language. Furthermore, standard autoregressive decoders generate words sequentially, often lacking a global view of the sentence's structural architecture. This paper addresses these gaps by proposing a framework that leverages cross-linguistic dependency patterns to guide both alignment and translation.

Proposed Methodology

The core of the proposed framework is a multi-task learning approach that integrates two novel components into the standard Transformer architecture:

The overall architecture of the proposed framework, integrating DGCN and HGRW for structural supervision.

1. Dynamic Graph Convolution Networks (DGCN)

Since ground-truth syntactic maps for target sentences are unavailable during inference, the model utilizes DGCNs to infer them on the fly. As the decoder generates tokens, the DGCN adaptively constructs a syntactic graph of the target sentence. It employs masking and attention mechanisms to determine grammatical relationships, effectively "predicting" the sentence's structure as it evolves.

2. Hierarchical Graph Random Walks (HGRW)

To ensure structural soundness, the model compares inferred target graphs against a set of trainable "hidden graphs"—structural templates learned during training. Using random walk kernels, the HGRW calculates the similarity (common paths) between the generated graph and these ideal templates. This provides a global structural constraint, guiding the translation toward linguistically plausible outputs.

Experimental Results

The model was evaluated on four language pairs: German-English (de-en), Romanian-English (ro-en), French-English (fr-en), and Chinese-English (zh-en).

Alignment and Translation Performance

The proposed method consistently outperformed statistical and neural baselines:

  • Alignment Accuracy: On Romanian-English, the model achieved an Alignment Error Rate (AER) of 18.8, significantly surpassing the previous state-of-the-art neural aligner (BTBA at 22.9) and the classic GIZA++ (26.0).
  • Translation Quality: BLEU scores improved across all pairs. For German-to-English, the model reached 25.9 BLEU, compared to 25.1 for a vanilla Transformer.

Key Insights

Cross-lingual syntactic dependencies for the sentence "you are naive" across English, French, German, and Chinese, illustrating shared structural patterns. Source, p. 1

Cross-lingual syntactic dependencies for the sentence "you are naive" across English, French, German, and Chinese, illustrating shared structural patterns.
  • Syntax as a Universal Bridge: Dependency trees often share similarities across languages despite surface-level differences. Capturing these cross-linguistic dependencies provides a powerful signal for alignment.
  • Unsupervised Target Structure: The model demonstrates that annotated target-side syntax is not strictly necessary; treating target-graph generation as an unsupervised auxiliary task allows the model to discover useful latent structures.

Conclusion

By integrating structural supervision, this framework bridges the gap between local word generation and global syntactic consistency. While the Hierarchical Graph Random Walk component introduces a slight computational overhead (reducing speed from ~70 to ~67 tokens/sec), the gains in alignment precision and translation quality are substantial. Future work will explore optimizing graph kernels and extending this structural approach to other natural language processing tasks.

Summary updated

BibTeX
@inproceedings{li2022structural,
  author = {Lei Li and Kai Fan and Hongjia Li and Chun Yuan},
  title = {{Structural Supervision for Word Alignment and Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.findings-acl.322},
}
Figure