[Paper Review] You May Not Need Attention
This paper proposes a non-attention, end-to-end recurrent neural machine translation model that unifies encoder and decoder into a single architecture, enabling low-latency, constant-memory translation by generating target tokens as soon as the first source token is read. The model performs on par with standard attention-based models and outperforms them on long sequences, achieving competitive BLEU scores without attention mechanisms or separate encoding/decoding modules.
In NMT, how far can we get without attention and without separate encoding and decoding? To answer that question, we introduce a recurrent neural translation model that does not use attention and does not have a separate encoder and decoder. Our eager translation model is low-latency, writing target tokens as soon as it reads the first source token, and uses constant memory during decoding. It performs on par with the standard attention-based model of Bahdanau et al. (2014), and better on long sentences.
Motivation & Objective
- To investigate whether neural machine translation can achieve competitive performance without using an attention mechanism.
- To evaluate the feasibility of eliminating the separate encoder-decoder architecture in favor of a unified, recurrent sequence-to-sequence model.
- To enable low-latency, constant-memory translation by allowing the model to generate target tokens as soon as the first source token is processed.
- To explore whether preprocessing with aligned, eager-feasible sentence pairs can enable effective training of such a model.
- To compare the performance of the proposed model against standard attention-based models, especially on long sequences.
Proposed method
- The model uses a single, multi-layered LSTM that processes both source and target tokens in a unified sequence, with input and output embeddings concatenated at each timestep.
- The model is trained on preprocessing-transformed data where target sequences are made 'eager feasible' by inserting minimal ε (empty) tokens to ensure source word indices are non-decreasing relative to target word positions.
- Initial padding ε tokens are added at the start of target sequences to allow the model to consume more source context before generating output, with beam search used during inference.
- The model uses a shared embedding space for source and target tokens and applies a linear transformation to the LSTM output to predict the next target word.
- Preprocessing ensures that for every aligned word pair (si, tj), the source index i ≤ target index j, enabling causal, prefix-based translation.
- During inference, the model emits predictions incrementally after each source token, maintaining constant memory by storing only the current hidden state.
Experimental results
Research questions
- RQ1Can a neural machine translation model achieve competitive performance without using an attention mechanism?
- RQ2Does a unified, recurrent architecture without separate encoder and decoder modules still yield strong translation quality?
- RQ3Can a model generate translations in real time with constant memory usage by emitting tokens incrementally after each source input?
- RQ4How does the model's performance compare to standard attention-based models, particularly on long sequences?
- RQ5To what extent does preprocessing with ε tokens to enforce eager feasibility improve training and inference efficiency?
Key findings
- The proposed model achieves a BLEU score of 28.47 on the EN→DE translation task with five initial ε tokens, closely matching the reference model's 28.56 BLEU score.
- On long sequences (81+ tokens), the model outperforms the baseline attention model, achieving a BLEU score of 27.44 on FR→EN compared to 22.10 for the reference model.
- For DE→EN, the model achieves 24.73 BLEU on long sequences (81+), surpassing the reference model's 21.24 BLEU.
- The model performs worse than the baseline on short sequences (1–20 tokens), with BLEU scores of 23.74 vs. 26.22 on FR→EN, indicating a trade-off in short-sequence performance.
- The use of up to five initial ε padding tokens improves performance, with BLEU increasing from 24.42 to 28.47 on EN→DE, suggesting that early context helps the model stabilize generation.
- The model uses constant memory during decoding, as it only retains the current hidden state, unlike attention-based models that store all hidden states.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.