Simplifying Neural Machine Translation with Addition-Subtraction Twin-Gated Recurrent Networks

Biao Zhang, Deyi Xiong, Jinsong Su, Qian Lin, Huiji Zhang

Abstract

Standard gated recurrent neural networks like LSTMs and GRUs are computationally intensive and difficult to interpret due to their complex gating mechanisms and numerous weight matrices. We introduce the Addition-Subtraction Twin-Gated Recurrent Network (ATR), a minimalist architecture that reduces the number of weight matrices to just two. By employing a twin-gated mechanism based on addition and subtraction, ATR achieves translation quality comparable to traditional models while significantly improving efficiency and interpretability.

Introduction

Neural Machine Translation (NMT) has long been dominated by gated recurrent units like LSTMs and GRUs. While effective at capturing long-distance dependencies, these units are "heavy," relying on numerous weight matrices and complex non-linear functions. This complexity leads to computational inefficiency, making deployment on mobile or edge devices difficult, and creates "black box" models that are hard to interpret. The ATR unit addresses these issues by stripping away redundant parameters without sacrificing performance.

The ATR Architecture

The ATR unit is a radical simplification of the gated RNN. While a standard GRU uses six weight matrices and an LSTM uses eight, ATR uses only two: one for the current input ($W_x$) and one for the previous hidden state ($W_h$).

Architectural comparison between LSTM, GRU, and the proposed ATR unit.

Twin-Gated Mechanism

Instead of learning separate weights for input and forget gates, ATR derives both from the same two weighted components. It uses simple addition to create the input gate and subtraction to create the forget gate. This design ensures that the gates are naturally negatively correlated: as the input gate opens to accept new information, the forget gate tends to close to remove old information, mimicking the behavior of more complex units with half the parameters.

Linear Recurrence

By removing the recurrent non-linearity (the tanh typically found in GRUs), the hidden state in ATR becomes a direct, unnormalized weighted sum of previous inputs. This allows the recurrence to be mathematically "rolled out," effectively establishing a form of forward self-attention. This transparency allows researchers to see exactly which previous words influenced the current state.

Experimental Evaluation

The model was rigorously tested across several standard NLP benchmarks, including:

  • WMT14 English-German & English-French: Large-scale NMT evaluation.
  • NIST Chinese-English: Performance on linguistically distant language pairs.
  • SNLI (Stanford Natural Language Inference): Sentence relationship understanding.
  • PKU & MSR: Chinese word segmentation tasks.

Results and Insights

ATR demonstrates that the "essential" components of an RNN are the gates that prevent vanishing gradients, and much of the remaining structure can be removed.

Performance comparison on the WMT14 English-German translation task.

Key Findings

  • Competitive Accuracy: On the WMT14 English-German task, the ATR-based model achieved a BLEU score of 24.97, performing on par with or better than much deeper LSTM and GRU models.
  • Efficiency: ATR reduced the number of parameters by approximately 24% compared to a GRU baseline. In decoding, it processed 186 words per second, significantly faster than GRU (168 wps) and nearly 4x faster than the Transformer (44 wps) in sequential settings.
  • Interpretability: Dependency visualizations confirmed that ATR correctly "attends" to linguistically related words across long distances, such as connecting components of German compound words.

Conclusion

The Addition-Subtraction Twin-Gated Recurrent Network (ATR) provides a streamlined and efficient alternative to traditional gated RNNs. By simplifying the architecture to its core essentials, ATR achieves state-of-the-art translation performance while offering superior speed and transparency. While it remains a sequential model, its efficiency makes it highly suitable for real-time applications and resource-constrained environments. Future work will explore its application to other complex NLP tasks like document summarization.

Summary updated

BibTeX
@inproceedings{zhang2018simplifying,
  author = {Biao Zhang and Deyi Xiong and Jinsong Su and Qian Lin and Huiji Zhang},
  title = {{Simplifying Neural Machine Translation with Addition-Subtraction Twin-Gated Recurrent Networks}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
}
Figure