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.
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.
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