Neural Transformation Machine: A New Architecture for Sequence-to-Sequence Learning

Fandong Meng, Zhengdong Lu, Zhaopeng Tu, Hang Li, Qun LiuarXiv 2015 · OpenReview

Abstract

We propose DEEPMEMORY (also referred to as the Neural Transformation Machine or NTram), a novel deep architecture for sequence-to-sequence learning. This model performs tasks through a series of nonlinear transformations from the input sequence representation (e.g., a Chinese sentence) to the final output sequence (e.g., translation to English). Inspired by Neural Turing Machines, we store intermediate representations in stacked layers of memories and use read-write operations to realize transformations. Through layer-by-layer transformations, NTram can model complicated relations necessary for applications like machine translation between distant languages. The architecture is trainable via back-propagation and scales to large corpora. NTram subsumes state-of-the-art attention models as special cases while significantly improving performance through its deeper architecture.

Introduction: The Challenge of Sequence-to-Sequence Learning

Sequence-to-sequence (seq2seq) learning is fundamental to tasks such as machine translation. Prior to this work, two paradigms were dominant: standard Encoder-Decoders and Attention-based models (like RNNsearch). Encoder-Decoders compress the entire source sentence into a single fixed-length vector, creating a significant information bottleneck. Attention models mitigate this by allowing the decoder to dynamically "look back" at the source sentence.

Comparison of standard Encoder-Decoder and Attention-based models.

However, the authors argue that even attention-based models are relatively "shallow." Translating between structurally distant languages, such as Chinese and English, requires capturing complex, non-local transformations that a single layer of attention may struggle to represent.

The Neural Transformation Machine (NTram)

The Neural Transformation Machine (NTram) addresses these limitations by treating the transformation from input to output as a multi-layered process operating on stacked memory layers.

Architecture and Memory Layers

Instead of using simple hidden vectors, each layer in NTram is an $N \times d$ matrix, or "memory." To transition from a lower layer ($R$-memory) to a higher layer ($W$-memory), a controller (typically an LSTM) utilizes "heads" to read data from the previous layer and write it into the next. The entire system is trained end-to-end using standard back-propagation and stochastic gradient descent.

Shallow vs. deep memory architectures in sequence-to-sequence learning.

Addressing Strategies

NTram employs three primary addressing strategies to manage information flow:

  • Location-based (L): Follows the natural sequence order, similar to a standard RNN.
  • Content-based (C): Uses an attention-like mechanism to retrieve information based on similarity, enabling global reordering.
  • Hybrid (H): Combines both, allowing the model to maintain sequence context while jumping to relevant distant tokens.

The authors explored several architectural variants (Arc-I through Arc-IV). Arc-III, for instance, utilizes four intermediate layers and "Short-Cut" connections, allowing higher layers to read from multiple lower layers simultaneously.

Experimental Evaluation

The model was evaluated on a Chinese-to-English translation task using 1.25 million sentence pairs from LDC corpora and tested on NIST MT Evaluation sets (2003-2005).

  • RNNsearch (Baseline): 30.17 BLEU
  • NTram (Arc-II): 31.64 BLEU
  • Moses (Phrase-based SMT): 31.95 BLEU

The Arc-II architecture achieved a BLEU score of 31.64, significantly outperforming the RNNsearch baseline. Remarkably, this purely neural model approached the performance of Moses, the industry-standard phrase-based statistical system, despite having a much smaller vocabulary (16K words) and a modest parameter count (42M).

Key Insights and Discussion

  • Depth is Crucial: Deeper models (Arc-II and Arc-III) consistently outperformed shallower ones, confirming that multi-layered transformations are essential for capturing the nuances of distant language pairs.
  • RNNsearch as a Special Case: The analysis reveals that the popular RNNsearch model is essentially a "shallow" version of NTram with only one intermediate layer.
  • Hybrid Addressing: The success of the hybrid strategy suggests that maintaining both temporal order and content-based relevance is key to effective translation.

Limitations and Future Work

While NTram shows great promise, some configurations, like Arc-IV (which used content-based addressing for writing), proved difficult to optimize. Future work will focus on scaling the architecture to larger vocabularies and exploring automated architecture searches to find the optimal configuration of nonlinear transformations.

Summary updated

Abstract

We propose DEEPMEMORY, a novel deep architecture for sequence-to-sequence learning, which performs the task through a series of nonlinear transformations from the representation of the input sequence (e.g., a Chinese sentence) to the final output sequence (e.g., translation to English). Inspired by the recently proposed Neural Turing Machine (Graves et al., 2014), we store the intermediate representations in stacked layers of memories, and use read-write operations on the memories to realize the nonlinear transformations between the representations. The types of transformations are designed in advance but the parameters are learned from data. Through layer-by-layer transformations, DEEPMEMORY can model complicated relations between sequences necessary for applications such as machine translation between distant languages. The architecture can be trained with normal back-propagation on sequenceto-sequence data, and the learning can be easily scaled up to a large corpus. DEEPMEMORY is broad enough to subsume the state-of-the-art neural translation model in (Bahdanau et al., 2015) as its special case, while significantly improving upon the model with its deeper architecture. Remarkably, DEEPMEMORY, being purely neural network-based, can achieve performance comparable to the traditional phrase-based machine translation system Moses with a small vocabulary and a modest parameter size.
BibTeX
@misc{meng2015neural,
  author = {Fandong Meng and Zhengdong Lu and Zhaopeng Tu and Hang Li and Qun Liu},
  title = {{Neural Transformation Machine: A New Architecture for Sequence-to-Sequence Learning}},
  year = {2015},
  eprint = {1506.06442},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1506.06442},
}
Figure