While large-scale Pre-trained Language Models (PrLMs) like BERT and RoBERTa have revolutionized NLP, they often treat text as a flat, linear sequence of tokens. This approach is limited when dealing with multi-turn dialogues, which are structured interactions characterized by specific speaker roles, temporal flows, and complex discourse patterns. Researchers from Shanghai Jiao Tong University have introduced SPIDER (Structural Pre-traIned DialoguE Reader), a framework designed to make language models "dialogue-aware" by teaching them to respect the internal structure and factual consistency of a conversation.
The Challenge of Dialogue Structure
Standard models fine-tuned for dialogue tasks often struggle with two critical issues:
- Incoherence: They fail to capture the logical flow and dependencies between utterances across multiple turns.
- Inconsistency: They may lose track of "who did what," leading to factual errors in understanding the context.
Standard pre-training tasks like Masked Language Modeling (MLM) or Next Sentence Prediction (NSP) are insufficient for capturing the complex structural features exclusive to dialogue. SPIDER addresses this by introducing pre-training objectives that specifically target conversational structure.
The SPIDER Framework
SPIDER introduces two novel self-supervised training objectives to enhance dialogue comprehension:
1. Utterance Order Restoration (UOR)
To teach the model about discourse coherence, SPIDER randomly shuffles the utterances in a dialogue context. The model is then tasked with predicting the original, correct order. Unlike the binary "is this the next sentence?" task in BERT, UOR has a much larger search space, forcing the model to understand the semantic connections and logical transitions between every turn in the conversation.
2. Sentence Backbone Regularization (SBR)
To improve factual correctness, SPIDER focuses on the "backbone" of sentences: Subject-Verb-Object (SVO) triplets. Using a fact extractor, the model identifies these triplets and is regularized such that the vector representation of the Subject plus the Verb is close to the Object ($h_{subject} + h_{verb} \approx h_{object}$). This "who-did-what" intuition helps the model discover salient facts within lengthy dialogue turns.
Training Strategies
The authors evaluated these objectives using two distinct strategies to integrate structural knowledge into the model:
- Domain-Adaptive Post-training (DAP): The model undergoes further pre-training on a large dialogue corpus using the new objectives before being fine-tuned on specific tasks.
- Multi-task Fine-tuning (MTF): The model is trained on the structural objectives and the target task simultaneously.
Key Results and Insights
SPIDER achieved state-of-the-art or near-SOTA results across four major dialogue benchmarks (Ubuntu, Douban, ECD, and MuTual) without increasing the model's parameter count.
- Coherence and Reasoning: On the reasoning-heavy MuTual dataset, SPIDER pushed ELECTRA-large to a 95.6% MRR, demonstrating that structural pre-training significantly aids complex logical reasoning.
- Factual Entailment: A human evaluation of error cases on MuTual revealed that 78.6% of the cases SPIDER solved (which the baseline missed) were directly related to SVO factual entailment, validating the effectiveness of the SBR objective.
- Strategy Effectiveness: Results suggest that "soaking" the model in dialogue-specific structures via post-training (DAP) is generally more effective than learning those structures during downstream fine-tuning (MTF).
Conclusion
SPIDER demonstrates that treating dialogue as a structured interaction rather than a flat string of text is essential for deep comprehension. By explicitly modeling utterance order and factual backbones, SPIDER provides a robust framework for building more coherent and factually consistent dialogue agents.
Summary updated