Improving Multi-turn Dialogue Modelling with Utterance ReWriter

Hui Su, Xiaoyu Shen, Rongzhi Zhang, Fei Sun, Pengwei Hu, Cheng Niu, Jie Zhou

Introduction

Multi-turn dialogue systems face significant challenges due to the linguistic nuances of human conversation. Speakers frequently employ coreference (e.g., using "he" instead of "Messi") and information omission (e.g., asking "Why?" instead of "Why do you like Titanic most?"), relying on shared context to convey meaning. In "pro-drop" languages like Chinese or Japanese, these behaviors are particularly prevalent, occurring in over 70% of utterances. Failure to resolve these dependencies often leads to a complete loss of user intent in downstream chatbot systems.

The Utterance Rewriting Task

Instead of increasing the complexity of dialogue models to track long-term dependencies, this paper proposes a modular Utterance ReWriter. This component transforms context-dependent, "messy" utterances into self-contained, single-turn sentences. By decoupling context-handling from response generation, the system becomes model-agnostic, allowing the ReWriter to be plugged into any existing chatbot architecture.

Methodology: Transformer-Pointer Hybrid

The authors frame utterance rewriting as an extractive generation problem. They introduce a model architecture that combines the strengths of Transformers with Pointer Networks to capture long-range dependencies while accurately copying specific words from the dialogue history.

The Transformer-Pointer Hybrid architecture featuring the soft gating mechanism (λ) and turn embeddings for multi-turn context processing.

Key Architectural Components

  • Soft Gating Mechanism (λ): A learned weight determines whether the model should copy a word from the current utterance or the dialogue history at each decoding step. This acts as a sentinel for detecting when coreference resolution or information completion is required.
  • Turn Embeddings: Similar to positional encodings, these help the model distinguish between different speakers and turns within the dialogue history, providing essential structural context to the Transformer layers.
  • Pointer Mechanism: By "pointing" to specific words in the history, the model effectively handles out-of-vocabulary terms like proper nouns (e.g., movie titles or names) that pure generation models often struggle to produce accurately.

Experimental Setup and Dataset

The researchers developed a high-quality benchmark consisting of 40,000 Chinese multi-turn dialogue samples. This includes 20,000 "positive" samples requiring rewriting and 20,000 "negative" samples that were already self-contained. Human annotators provided ground-truth rewritten versions for all samples, ensuring a robust training signal for recovering omitted information.

Results and Evaluation

The proposed T-Ptr-λ model significantly outperformed baseline methods, including LSTM-based versions and standard pointer networks, across all primary metrics.

Performance comparison showing the superior Precision, Recall, and F1 scores of the T-Ptr-λ model against various baselines.

Beyond automated metrics, the model demonstrated substantial real-world impact:

  • Intention Detection: Precision in task-oriented systems rose from 80.77% to 89.91%.
  • User Engagement: A/B testing on a live chatbot showed an increase in Conversation-turns-per-session (CPS) from 6.3 to 7.7, indicating more coherent and engaging interactions.
  • Fluency: Human evaluators rated the rewritten output at 4.90/5.0, nearly matching the 4.97 rating of human-written text.

Discussion and Future Work

Visualization of the model's self-attention layers confirms that it naturally learns to align pronouns with the correct entities in the history without explicit linguistic rules. However, limitations remain regarding "implicit" information completion, where the missing context is a conceptual link rather than a specific word mentioned earlier. Future research may explore joint training of the ReWriter and downstream models to mitigate potential pipeline error propagation and test the architecture's efficacy on languages with different syntactic structures.

Summary updated

BibTeX
@inproceedings{su2019improving,
  author = {Hui Su and Xiaoyu Shen and Rongzhi Zhang and Fei Sun and Pengwei Hu and Cheng Niu and Jie Zhou},
  title = {{Improving Multi-turn Dialogue Modelling with Utterance ReWriter}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/p19-1003},
}
Figure