Learning to Start for Sequence to Sequence Architecture

Qingfu Zhu, Weinan Zhang, Lianqiang Zhou, Ting LiuarXiv 2016

Abstract

Standard Sequence-to-Sequence (Seq2Seq) models often struggle with a "cold start" problem, where a generic, non-informative start symbol (e.g., </s>) is used to trigger the first word of a response. This reliance frequently leads to repetitive, high-frequency outputs and error propagation. We introduce Learning to Start (LTS), a novel approach that predicts the first word directly from the encoder's context and the decoder's embedding matrix. By treating the initial word generation as a specialized classification task rather than a standard language modeling step, LTS achieves significantly better diversity and accuracy in short-text conversation tasks.

Introduction

In traditional Seq2Seq architectures, the decoder generates a sentence word-by-word. To initiate this process, the decoder typically receives a context vector from the encoder and a static "start-of-sentence" symbol. This approach suffers from three primary flaws:

  1. Lack of Semantic Relationship: There is no inherent link between a generic start symbol and the varied semantic meanings of potential first words.
  2. Frequency Bias: The model often defaults to "safe," high-frequency words (like "I" or "The"), resulting in generic responses.
  3. Error Accumulation: A poorly chosen first word negatively impacts every subsequent word in the sequence.

Methodology

The proposed LTS (Learning to Start) model modifies the standard architecture by predicting the first word ($y_1$) through a dedicated calculation independent of the decoder's initial RNN state.

The LTS architecture predicts the first word y1 directly from the context vector c and embedding matrix E, bypassing the traditional start symbol.

The first word is determined by the function $y_1 = g(c, E)$, where $c$ is the context vector summarizing the source sentence and $E$ is the decoder's embedding matrix. The model learns a transformation matrix that maps the source context into the word embedding space, essentially selecting the most appropriate starting word based on the "gist" of the input. Once $y_1$ is selected, it is fed into the decoder RNN to generate the remainder of the sequence ($y_2, y_3, ...$) as per standard practice.

Experimental Setup

Datasets

  • Training Data: The authors utilized a dataset of 1 million one-to-one dialogue pairs crawled from the web, featuring a vocabulary of approximately 35,000 words.
  • Test Data: Evaluation was conducted on a benchmark of 1,000 posts, utilizing multiple human-generated reference responses per post to ensure robust BLEU metric calculations.

Key Results

The LTS model was compared against a strong baseline, the "Hybrid Model" (HYP).

Quantitative Performance

LTS outperformed the baseline across all BLEU metrics. While the improvement in BLEU-1 was incremental, the gains in higher-order n-grams were substantial, indicating improved phrase-level coherence.

BLEU score comparison showing that LTS significantly outperforms the HYP baseline in higher-order n-grams (BLEU-2 and BLEU-3).

Diversity and Human Evaluation

Beyond BLEU scores, LTS demonstrated superior diversity. Using a custom metric ($accw-i$), the authors found that while the baseline's accuracy plummeted when high-frequency words were filtered, LTS remained stable, proving its ability to select context-specific vocabulary. In blind human evaluations, LTS achieved a Mean Score of 0.590 (on a 0-2 scale), significantly higher than the baseline's 0.510, with judges noting fewer generic or inappropriate responses.

Conclusion

By recognizing that the first word of a sequence is fundamentally different from subsequent words, the LTS framework successfully mitigates the "cold start" problem in Seq2Seq models. While the current study focuses on RNN-based architectures for short-text conversations, the principle of specialized start-word prediction offers a promising avenue for improving diversity in various generative NLP tasks. Future work may explore the application of this logic to modern Transformer-based architectures and long-form document generation.

Summary updated

Abstract

The sequence to sequence architecture is widely used in the response generation and neural machine translation to model the potential relationship between two sentences. It typically consists of two parts: an encoder that reads from the source sentence and a decoder that generates the target sentence word by word according to the encoder's output and the last generated word. However, it faces to the cold start problem when generating the first word as there is no previous word to refer. Existing work mainly use a special start symbol </s>to generate the first word. An obvious drawback of these work is that there is not a learnable relationship between words and the start symbol. Furthermore, it may lead to the error accumulation for decoding when the first word is incorrectly generated. In this paper, we proposed a novel approach to learning to generate the first word in the sequence to sequence architecture rather than using the start symbol. Experimental results on the task of response generation of short text conversation show that the proposed approach outperforms the state-of-the-art approach in both of the automatic and manual evaluations.
BibTeX
@misc{zhu2016learning,
  author = {Qingfu Zhu and Weinan Zhang and Lianqiang Zhou and Ting Liu},
  title = {{Learning to Start for Sequence to Sequence Architecture}},
  year = {2016},
  eprint = {1608.05554},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1608.05554},
}
Figure