Cseq2seq: Cyclic Sequence-to-Sequence Learning

Biao Zhang, Deyi Xiong, Jinsong Su · DOI

Abstract

Vanilla sequence-to-sequence (seq2seq) learning encodes a source sequence into a fixed-length vector only once, often failing to capture complex structural correspondences. We propose Cyclic Sequence-to-Sequence Learning (Cseq2seq), which introduces a feedback loop from the decoder to the encoder. In Cseq2seq-I, a recurrent neural network (RNN) replaces the standard linear attention mechanism to dynamically re-encode source representations at each decoding step. Cseq2seq-II simplifies this by re-introducing the previous decoding state directly into the original encoder. By implementing parameter sharing (SGRU and SWord), we reduce parameter redundancy by 31% while improving performance. Experiments on Chinese-English and English-German translation show that Cseq2seq significantly outperforms standard seq2seq and remains competitive with attention-based models, particularly on long sequences.

Introduction

The standard sequence-to-sequence architecture has long faced a "bottleneck" problem: compressing an entire source sentence into a single fixed-length vector. While the attention mechanism was introduced to alleviate this by allowing the decoder to selectively focus on source tokens, the authors argue that standard attention—relying on a linear weighted sum—is relatively shallow. Cseq2seq addresses this by allowing the model to "re-read" the source sequence dynamically, guided by the partial translation already generated.

Proposed Architectures

The paper introduces two primary cyclic variants to enhance the interaction between the encoder and decoder:

  1. Cseq2seq-I: This model replaces the traditional attention layer with a Gated Recurrent Unit (GRU) acting as a context generator. At each step, the previous hidden state of the decoder initializes this RNN, which then processes the source representations to produce a context vector. This allows for a deeper, non-linear mapping between source and target.
  2. Cseq2seq-II: This iteration simplifies the feedback loop by feeding the previous decoding state directly back into the original encoder. This creates a unified cycle where the partial target sequence informs the encoder's focus on remaining untranslated source tokens.
Architectural comparison of standard attention-based seq2seq vs. the proposed Cseq2seq-I and Cseq2seq-II models.

Parameter Sharing and Efficiency

To optimize the architecture, the authors explored parameter sharing techniques:

  • Shared GRU (SGRU): The encoder and decoder share the same GRU parameters.
  • Shared Word Embeddings (SWord): The model utilizes a single matrix for different target-side word embeddings.

These modifications transform Cseq2seq-II into a highly efficient, single conditional RNN. This approach pruned approximately 31% of the model's parameters (reducing the count from 89.67M to 51.72M) while acting as a regularizer that improved translation quality.

Experimental Results

The models were evaluated on Chinese-English (Zh-En) and English-German (En-De) benchmarks. On Zh-En tasks, Cseq2seq-I achieved a BLEU score of 36.00, a significant jump from the 34.06 achieved by the standard RNNSearch baseline. Similar gains were observed in En-De tasks, where Cseq2seq-I (Last-State) reached 23.05 BLEU compared to the baseline's 20.87.

A key finding was the model's robustness to sentence length. While traditional attention models often see performance degrade as sentences exceed 50 words, Cseq2seq maintained higher stability, effectively managing long-range dependencies through its cyclic re-reading mechanism.

BLEU score performance across different sentence lengths, highlighting Cseq2seq's superior stability on long sequences compared to the RNNSearch baseline.

Conclusion

Cseq2seq demonstrates that cyclic feedback is a powerful alternative to shallow attention mechanisms. By allowing the decoder to inform the encoder's state, the model achieves better structural alignment and higher efficiency. Future work may extend this framework to neural conversation systems and simultaneous translation, where the ability to dynamically adjust understanding based on partial output is critical.

Summary updated

BibTeX
@misc{zhang2016cseq,
  author = {Biao Zhang and Deyi Xiong and Jinsong Su},
  title = {{Cseq2seq: Cyclic Sequence-to-Sequence Learning}},
  year = {2016},
  eprint = {1607.08725},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1607.08725},
}
Figure