Despite being virtually ubiquitous in natural language processing, standard sequence-to-sequence (seq2seq) models suffer from a lack of diversity and an inability to be externally controlled. This paper argues that a fundamental shortcoming of these models is their strict left-to-right decoding process. Because early tokens heavily constrain later ones, outputs generated earlier have a profound, sometimes restrictive, effect on the rest of the sequence.
To address this, the authors introduce a novel Middle-Out Decoder architecture. By starting from a central, high-information word and expanding the sequence in both directions simultaneously, this approach achieves significantly better control over sequence content and improved output diversity.
The Problem with Left-to-Right Decoding
Most seq2seq models—the backbone of translation and captioning—operate strictly from left to right. This creates several major bottlenecks:
- Lack of Control: It is nearly impossible to force a specific word (like a crucial action verb) to appear later in a sentence without potentially ruining the grammatical flow of the prefix.
- Diversity Issues: Early tokens heavily constrain later ones, often leading models to fall back on generic, high-probability "safe" phrases rather than generating diverse, descriptive text.
- Symmetry Breaking: For sequences that are naturally symmetric (like certain mathematical or biological data), a left-to-right approach introduces an artificial bias that makes it hard for the model to maintain that symmetry.
The authors argue that the "start-at-the-beginning" approach is fundamentally flawed when the most important information in a sequence often resides in the middle.
The Middle-Out Architecture
The proposed Middle-Out Decoder departs from traditional sequential generation by utilizing three main components:
- The Middle-Word Classifier: Before decoding begins, a classifier analyzes the input (e.g., a video) and predicts the most "important" word—typically a verb or a prominent noun. This word serves as the anchor for the sequence.
- Dual-Directional LSTMs: Instead of a single decoder, the model employs two LSTMs. One decodes to the right, and the other decodes to the left, starting from the anchor word. They alternate steps until both hit a STOP token.
- Dual Self-Attention: To keep the two LSTMs synchronized and ensure the final sentence is coherent, the authors introduce a novel attention mechanism.
As illustrated above, the decoders attend over both the embedded outputs (the chosen words) and the hidden states (the internal representations) of all previously generated tokens in both directions. This acts as a crucial communication bridge between the left and right branches, allowing complex dependencies to be modeled effectively.
Key Insights and Results
The model was evaluated on two distinct tasks: a synthetic sequence de-noising task (reconstructing a clean symmetric sequence from a noisy version) and video captioning using the MSVD (Microsoft Video Description) dataset.
1. Natural Symmetry and De-noising
The middle-out approach is inherently better at modeling sequences with bidirectional dependencies. In the synthetic de-noising task, the middle-out decoder achieved a 75% decrease in Mean Squared Error (MSE) compared to a standard seq2seq baseline. More impressively, the "Symmetric MSE" (a measure of how well the two halves matched) was 570 times smaller than the baseline, proving it maintains mathematical symmetry far more effectively than a standard RNN.
2. Video Captioning Performance and Diversity
On the MSVD benchmark, the model achieved competitive quality results (METEOR: 34.1, CIDEr-D: 79.5), outperforming several previous state-of-the-art models.
Crucially, it quantifiably improved caption diversity. Using "Self-METEOR" and "Self-BLEU" metrics (where lower scores indicate more unique captions), the middle-out model scored 44.8 versus the baseline's 49.6.
3. User-Centric Control
This architecture allows for highly effective "controlled decoding." A user can manually provide the middle word (e.g., "playing"), and the model will generate a coherent sentence around it (e.g., "a man is playing the guitar"). When given the "perfect" middle word from a human (Oracle), the model's performance jumped significantly (METEOR: 40.9, CIDEr-D: 124.4), demonstrating its high susceptibility to external control.
Limitations and Future Work
While promising, the middle-out approach does have constraints:
- Classifier Dependency: The model's performance is heavily tied to the accuracy of the middle-word classifier. If the classifier picks a nonsensical anchor, the resulting sentence will likely be poor.
- Computational Overhead: Running two decoders and a complex dual self-attention mechanism is more computationally expensive than a single-pass left-to-right decoder.
- Vocabulary Constraints: In the video captioning task, the authors limited the middle-word classifier to verbs ending in "-ing" to simplify the task. Future work could involve more complex strategies for selecting the anchor word across different parts of speech.
Summary updated