Abstract: The goal of document-grounded dialogue (DocGD) is to generate a response by anchoring the evidence in a supporting document in accordance with the dialogue context. This entails four causally interconnected variables. While task-specific pre-training has significantly enhanced performances on numerous downstream tasks, existing DocGD methods still rely on general pre-trained language models without a specifically tailored pre-training approach that explicitly captures the causal relationships. To address this, we present the first causally-complete dataset construction strategy for developing million-scale DocGD pre-training corpora. Additionally, we propose a causally-perturbed pre-training strategy to better capture causality by introducing perturbations on the variables and optimizing the overall causal effect. Experiments conducted on three benchmark datasets demonstrate that our causal pre-training yields substantial and consistent improvements in fully-supervised, low-resource, few-shot, and zero-shot settings.
Introduction
Document-Grounded Dialogue (DocGD) requires a system to generate a response based on a specific piece of evidence found within a supporting document, all while staying relevant to the conversation history. Despite the success of general-purpose language models, they often struggle with the specific logic of grounding. Current models face two primary challenges:
- Data Scarcity: A lack of large-scale datasets containing the four essential variables—document, evidence, context, and response—structured to show their causal influence.
- Spurious Correlations: Standard training objectives often fail to force models to understand why a response is correct, leading to hallucinations where the model ignores the document and guesses based on dialogue context alone.
To address these, we introduce CausalDD, a pre-training framework that explicitly models the causal relationships between these variables.
Methodology
The CausalDD framework consists of two main components: a dataset construction strategy and a novel pre-training objective.
Causally-complete Dataset Construction
We developed a million-scale pre-training corpus by combining two diverse sources:
- WikiDialog: Wikipedia articles were transformed into dialogues using a "dialogue inpainter" for user queries and a paraphrase model for agent responses.
- Causally-complete Reddit: We curated Reddit threads containing URLs, where the webpage content serves as the document and the conversation as the context/response. Evidence was manually inserted to ensure a clear causal link.
Causally-perturbed Pre-training
Beyond standard next-token prediction, we introduce causal interventions to ensure the model relies on the correct evidence.
As shown in the figure above, we utilize two primary objectives:
- Natural Direct Effect (NDE) Minimization: By introducing noise (irrelevant sentences) into the document, the model is trained to remain robust and produce the same response, effectively ignoring irrelevant information.
- Total Indirect Effect (TIE) Maximization: By removing the actual evidence, the model is trained to not generate the original response, forcing it to recognize the evidence as the essential cause of the answer.
Experimental Setup
We pre-trained on a combined corpus of 2 million dialogues (4.39M turns) and evaluated on three benchmark datasets:
- Doc2dial: A standard goal-oriented grounding dataset.
- MultiDoc2dial: A complex variant involving multiple documents.
- Doc2bot: A Chinese-language dataset for testing cross-lingual transfer.
Key Results
CausalDD achieves state-of-the-art performance across all metrics, including F1, Exact Match, and BLEU, outperforming the previous strongest baseline, UniGDD.
- Superior Grounding: CausalDD significantly outperforms GPT-3.5 on the Doc2dial response generation task (43.0 vs 3.57 BLEU), as GPT-3.5 tends to provide general information rather than strictly adhering to the document.
- Low-Resource Performance: In a 5-shot setting, CausalDD achieved an F1 of 25.8 on Doc2dial, nearly doubling the baseline's 13.7.
- Efficiency: The model demonstrates faster convergence, reaching high performance levels much earlier in the fine-tuning process.
Conclusion
By treating document grounding as a causal problem, CausalDD moves beyond simple pattern matching to robust logical anchoring. While the reliance on model-generated synthetic data and task-specific causal structures presents avenues for future refinement, the current framework sets a new standard for document-grounded dialogue systems, particularly in low-resource and zero-shot scenarios.
Summary updated