Dialog-Post: Multi-Level Self-Supervised Objectives and Hierarchical Model for Dialogue Post-Training

Zhenyu Zhang, Lei Shen, Yuming Zhao, Meng Chen, Xiaodong HeACL 2023

Researchers from JD AI Research have introduced DIALOG-POST, a post-training framework designed to bridge the gap between general-purpose language models and the unique complexities of human conversation. By combining a novel hierarchical model architecture with five specialized self-supervised learning objectives, the system achieves a 3.3% average improvement over state-of-the-art models across various dialogue understanding tasks while being significantly more computationally efficient.

The Challenge of Dialogue Modeling

Standard Pre-trained Language Models (PLMs) like BERT or RoBERTa are typically trained on "free-form" text (such as Wikipedia or books), which is fundamentally different from dialogue. Conversations possess two distinct characteristics that flat models often fail to capture:

  1. Hierarchical Structure: A dialogue is not merely a string of words; it is a hierarchy where tokens form utterances, which in turn form a complete conversation.
  2. Multi-facet Attributes: Dialogues involve speaker shifts, factual consistency across turns, and varying levels of coherence and relatedness between different parts of the exchange.

Existing "Dialogue-adaptive post-training" (DialPost) methods usually treat dialogues as flat sequences or focus on only one level of semantics. DIALOG-POST addresses this by modeling the entire hierarchical structure and diverse attributes of dialogue simultaneously.

Hierarchical Segment-wise Self-Attention (HSSA)

The core of the DIALOG-POST architecture is the Hierarchical Segment-wise Self-Attention (HSSA) model. Unlike the standard "flat" attention mechanism, HSSA splits a dialogue into segments to process information more naturally and efficiently.

The HSSA architecture utilizes inner-segment and inter-segment self-attention to capture local and global dialogue context.

As shown in the architecture diagram, the model employs:

  • Inner-segment attention: To capture local context within a specific turn.
  • Inter-segment attention: To capture global context across the entire dialogue.
  • Segment Updater: A module that aggregates these local and global signals.

This approach reduces computational complexity from $O(n^2)$ to a more manageable level, making it faster and less memory-intensive for long conversations. For a sequence length of 512 tokens, DIALOG-POST uses approximately 13.6GB of VRAM compared to BERT’s 18.7GB.

Multi-Level Self-Supervised Objectives (SSOs)

To teach the model the nuances of conversation, the researchers implemented five objectives across three levels of granularity:

Overview of the five self-supervised objectives used in DIALOG-POST across token, utterance, and dialogue levels.
  • Token-level: Dialogue Span Masking (DSM) ensures factual consistency, while Dialogue Role Masking (DRM) helps the model understand speaker dynamics.
  • Utterance-level: Dialogue Utterance Corruption (DUC) requires the model to detect if a turn has been replaced or shuffled out of order.
  • Dialogue-level: Dialogue Utterance Position (DUP) predicts where a specific turn fits in a sequence, and Dialogue Contrastive Learning (DCL) matches incomplete dialogues with their missing parts.

Training is managed via Continuous Multi-Task Learning (CMTL), which introduces these tasks sequentially to prevent "catastrophic forgetting" of earlier lessons as the model masters new ones.

Evaluation and Key Insights

The model was post-trained on two massive Chinese e-commerce dialogue corpora: JDDC (over 1 million customer service conversations) and ECD (a large-scale Taobao corpus). Evaluation was conducted on standard benchmarks like Semantic Retrieval (SR) and a newly-labelled dataset for tasks including Intent Classification and Sentiment Recognition.

Key findings include:

  • State-of-the-Art Performance: DIALOG-POST outperformed specialized models like TOD-BERT and DialCSE, achieving an average score of 87.5% on downstream tasks—a 3.3% absolute improvement over previous leaders.
  • The Power of Contrast: Ablation studies revealed that Dialogue Contrastive Learning (DCL) provided the most significant performance boost, suggesting that distinguishing real continuations from "fake" ones is critical for capturing high-level dialogue semantics.
  • Efficiency Gains: The HSSA architecture's local-to-global processing not only improves accuracy but also significantly enhances scalability for long-form dialogue processing.

While currently focused on Chinese e-commerce, the framework's success suggests a promising path forward for dialogue-aware post-training across diverse languages and domains.

Summary updated

BibTeX
@inproceedings{zhang2023dialog,
  author = {Zhenyu Zhang and Lei Shen and Yuming Zhao and Meng Chen and Xiaodong He},
  title = {{Dialog-Post: Multi-Level Self-Supervised Objectives and Hierarchical Model for Dialogue Post-Training}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.564},
}
Figure