Stylized Dialogue Response Generation Using Stylized Unpaired Texts

Yinhe Zheng, Zikai Chen, Rongsheng Zhang, Shilei Huang, Xiaoxi Mao, Minlie Huang

Abstract

Building dialogue agents that exhibit specific personas or styles typically requires large-scale parallel datasets of stylized conversations. However, such data is often unavailable for niche styles like archaic prose or formal business language. This paper introduces a novel framework that leverages unpaired stylized text to train dialogue models. By employing an inverse dialogue model to generate synthetic "pseudo-pairs" and a "style routing" mechanism for deep stylistic integration, the proposed approach produces responses that are both contextually appropriate and stylistically consistent.

Introduction

Modern conversational AI relies heavily on "post-response" pairs for training. While stylized text is abundant in the form of novels or documents, it is rarely structured as dialogue. Previous attempts to bridge this gap often utilized pipelined approaches—generating a neutral response and then applying style transfer. However, these methods frequently lose contextual nuances. For instance, a model might incorrectly apply a gendered honorific like "Sir" in a formal style transfer if it lacks awareness of the original conversation's context.

The Pipeline Trap: Pipelined approaches often fail to maintain contextual consistency compared to the proposed integrated model.

Methodology

The researchers propose a two-pronged strategy to utilize unpaired stylized data effectively.

Inverse Dialogue Modeling and Pseudo-Pairs

To overcome the lack of parallel data, the framework uses an Inverse Dialogue Model. This model functions as a "back-translation" mechanism for chat: given a stylized sentence (the "response"), it predicts a plausible preceding "post." This process generates synthetic pseudo-pairs, allowing the model to learn the transition from standard input to stylized output without requiring human-annotated dialogue.

The Inverse Dialogue Model framework for generating synthetic pseudo-pairs from unpaired stylized text.

Style Routing

Beyond data augmentation, the authors introduce Style Routing to ensure stylistic consistency. Unlike standard models that inject style information only at the initial layer, Style Routing embeds style vectors into every block of the Transformer decoder. This deep injection prevents the stylistic influence from decaying during the generation of longer sequences.

Joint Training

The model undergoes iterative joint training. It learns conversational flow from real, non-stylized dialogue pairs while simultaneously mastering the target style through synthetic pseudo-pairs. This dual-objective approach balances relevance with stylistic intensity.

Experiments and Results

The model was evaluated on two benchmarks: WDJN (Weibo-Jinyong Kung Fu novels) and TCFC (Text-Formality).

Key Findings

  • Superior Performance: On the WDJN dataset, the model achieved a BLEU score of 13.6, nearly double that of the back-translation baseline (6.22).
  • Style Intensity: BERT-based classifiers confirmed that the model maintains higher style conformity than previous state-of-the-art methods.
  • Human Evaluation: Blind tests indicated that the model's responses are more coherent and stylistically accurate, closely approaching human-level performance in some metrics.

Conclusion

This research demonstrates that stylized dialogue agents can be effectively trained using unpaired text. By combining synthetic data generation via inverse modeling with deep architectural style injection, the model avoids the pitfalls of traditional pipeline methods. Future work will explore applying this logic to other domains, such as stylized summarization and creative writing assistance.

Summary updated

BibTeX
@inproceedings{zheng2021stylized,
  author = {Yinhe Zheng and Zikai Chen and Rongsheng Zhang and Shilei Huang and Xiaoxi Mao and Minlie Huang},
  title = {{Stylized Dialogue Response Generation Using Stylized Unpaired Texts}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i16.17711},
}
Figure