Abstract
Standard autoregressive Neural Machine Translation (NMT) models suffer from high inference latency due to their sequential decoding nature. We present the Syntactically Supervised Transformer (SynST), a model that utilizes syntactic "skeletons" as a supervised scaffold to accelerate translation. SynST employs a two-stage decoding process: an autoregressive parse decoder predicts syntactic chunks, followed by a single-pass token decoder that generates all words in parallel. Our results demonstrate that SynST achieves a ~5x speedup over baseline Transformers while maintaining higher translation quality than existing non-autoregressive and latent-variable models.
Introduction
The Transformer architecture has set the standard for Neural Machine Translation (NMT). However, its autoregressive nature—predicting one token at a time—creates a significant computational bottleneck during inference. While non-autoregressive models attempt to predict all tokens simultaneously to improve speed, they often struggle with the "multimodality problem," failing to capture complex structural dependencies. Semi-autoregressive models like the Latent Transformer (LT) introduce abstract latent variables to bridge this gap, but these variables are often difficult to interpret and optimize.
SynST addresses these challenges by replacing abstract latent variables with explicit syntactic supervision. By leveraging the inherent structure of language, SynST provides a more robust and interpretable framework for fast, high-quality translation.
Methodology
The SynST architecture consists of three primary components: a standard encoder and two specialized decoders.
Two-Stage Decoding
- Autoregressive Parse Decoder: This component predicts a sequence of syntactic chunk identifiers (e.g.,
NP3for a three-token Noun Phrase). Because the sequence of chunks is significantly shorter than the full sentence, this stage remains highly efficient. - Single-Pass Token Decoder: Using the predicted chunks as a template, this decoder generates all target words in a single parallel step.
The Chunking Algorithm
To generate training data, the authors utilize a constituency parser (Stanford CoreNLP) and a chunking algorithm. This algorithm traverses the parse tree and groups nodes into chunks based on a maximum span size parameter, $k$. This parameter $k$ serves as a tunable "knob" for the speed-vs-quality trade-off: smaller values of $k$ increase autoregressive steps for better quality, while larger values maximize speed.
Experimental Results
The model was evaluated on standard benchmarks, including WMT 2014 (En-De, De-En, En-Fr) and IWSLT 2016 (En-De).
Performance and Speed
As shown in the results table, SynST ($k=6$) achieved a ~5x speedup over the baseline autoregressive Transformer. On the WMT En-De task, SynST reached 20.74 BLEU, surpassing the Latent Transformer's 19.8 BLEU. Across all tested language pairs, SynST consistently provided a better balance of speed and quality than the Semi-Autoregressive Transformer (SAT).
Key Insights
- The Value of Syntax: Ablation studies revealed that syntactic labels (e.g., NP, VP) are critical. Removing these labels and relying solely on chunk sizes caused BLEU scores to plummet (e.g., from 23.82 to 8.19 on IWSLT En-De).
- Model Resilience: The token decoder demonstrates an ability to "correct" minor errors made by the parse decoder, suggesting a complementary relationship between the two stages.
- The Latent Gap: A significant performance gap exists between using predicted chunks (23.8 BLEU) and ground-truth chunks (41.5 BLEU). This indicates that improvements in parse prediction could lead to substantial gains in translation quality.
Conclusion and Future Work
SynST demonstrates that explicit syntactic supervision is a powerful tool for accelerating NMT without sacrificing significant quality. However, the model's reliance on external constituency parsers limits its applicability to high-resource languages. Future research may focus on unsupervised tree induction to learn optimal chunking strategies directly from data, potentially making the approach language-agnostic and closing the performance gap with ground-truth syntax.
Summary updated