Abstract
Open-domain dialogue generation remains a significant challenge in natural language processing due to the "one-to-many" mapping problem, which often results in generic and uninformative responses. This paper investigates the efficacy of pre-trained, auto-regressive Transformer models, such as GPT-2, for this task. We propose a weighted joint prediction loss that encourages the model to learn both conversation context and response generation. Through extensive experiments on five large-scale Chinese and English datasets, we demonstrate that pre-training on massive general corpora significantly enhances response relevance and diversity. Furthermore, our results show that incorporating context prediction into the training objective further improves performance, particularly in multi-turn dialogue scenarios.
Introduction
The goal of open-domain dialogue generation is to create conversational agents capable of engaging in coherent and interesting discussions on any topic. However, traditional sequence-to-sequence models frequently suffer from the "generic response" trap, producing safe but dull answers like "I don't know." This phenomenon stems from the inherent ambiguity of dialogue, where a single input can validly lead to numerous distinct outputs. While large-scale pre-training has revolutionized various NLP tasks, its specific impact on dialogue generation—and how to best adapt these models—requires deeper empirical investigation.
Methods
The study utilizes a Transformer-based auto-regressive architecture, similar to GPT-2. To adapt this for dialogue, the authors implement a Unified Input strategy where the dialogue context ($X$) and the response ($Y$) are concatenated into a single sequence, separated by a special <bos> (beginning of sentence) token.
A key innovation is the Weighted Joint Prediction loss. Unlike standard models that only calculate loss on the response tokens, this approach includes a weighted loss for the context tokens: $$L_{nll} = L^y_{nll} + \lambda \times L^x_{nll}$$ By setting $\lambda > 0$, the model is forced to reconstruct the context, which fosters a more robust semantic representation of the conversation history. The researchers compared "LM" models (trained solely on dialogue data) with "BigLM" models (pre-trained on massive general-purpose corpora like Wikipedia before fine-tuning).
Results
The empirical evaluation across five datasets (Weibo, Douban, Reddit, DailyDialog, and Persona-Chat) reveals several critical insights. Pre-training proved to be the most significant factor in performance; the "BigLM" models consistently outperformed their "LM" counterparts.
As shown in the results for the Weibo dataset, the 24-layer BigLM model (BigLM-24) achieved a BLEU score of 2.32, nearly doubling the performance of the baseline Seq2Seq model (1.31). The inclusion of the context prediction loss ($\lambda$) was particularly beneficial for multi-turn datasets, suggesting that better context understanding is a prerequisite for high-quality response generation.
The study also highlights the importance of decoding strategies. While greedy and beam search often lead to repetitive outputs, sampling methods like top-$k$ and nucleus (top-$p$) sampling significantly boost diversity metrics (e.g., Distinct n-grams), though they require careful parameter tuning to maintain logical coherence.
Discussion and Conclusion
This investigation confirms that pre-trained Transformer models provide a powerful foundation for open-domain dialogue. The proposed joint prediction loss effectively leverages conversation history to improve response quality. However, challenges remain, including occasional grammatical errors, topic drift in long-form interactions, and the potential for generating factual hallucinations. Future research should focus on enhancing the grounding and safety of these models to ensure more reliable and consistent conversational agents.
Summary updated