Abstract
Document-grounded dialogue (DocGD) aims to generate responses by grounding evidence from a supporting document within a specific dialogue context. This process involves four causally connected variables: the document, the context, the evidence, and the response. While task-specific pre-training has improved many downstream tasks, existing DocGD methods typically rely on general-purpose language models that fail to explicitly capture these causal relationships. This paper introduces CausalDD, a framework featuring a causally-complete dataset construction strategy and a causally-perturbed pre-training approach. By optimizing for causal effects through perturbations, CausalDD achieves significant performance gains across fully-supervised, low-resource, and zero-shot settings.
Introduction
In Document-Grounded Dialogue (DocGD), a system must navigate a document to find relevant evidence and formulate a response that satisfies the user's query within an ongoing conversation. Despite the success of large-scale pre-trained models, many systems still struggle with "spurious correlations"—for instance, generating responses based solely on dialogue history while ignoring the provided document, or hallucinating information not present in the source text.
These failures stem from a lack of explicit causal modeling. In a robust DocGD system, the document and context should cause the selection of evidence, and that evidence, combined with the context, should cause the final response. Standard training objectives, such as simple likelihood maximization, often fail to enforce this logic. To address this, we propose CausalDD, the first pre-training framework designed to capture the complete causal chain of the DocGD task.
Methodology
1. Causally-Complete Dataset Construction
To facilitate causal learning, the training data must contain clear, unbroken links between the document, context, evidence, and response. We constructed a million-scale corpus using two primary sources:
- WikiDialog: Using a "dialogue inpainter," we transformed Wikipedia articles into multi-turn conversations. Sentences within the articles were treated as the grounding evidence and paraphrased to create natural agent responses.
- Reddit: We collected Reddit threads containing external URLs. The linked webpage served as the document, the thread history as the context, and the reply as the response. We then utilized a virtual evidence insertion technique to complete the causal chain.
This resulted in a combined corpus of 2 million dialogues where every response is explicitly tied to a document segment.
2. Causally-Perturbed Pre-training
Beyond standard next-token prediction, CausalDD introduces two "causal intervention" losses to ensure the model relies on the correct variables:
- Natural Direct Effect (NDE): This objective perturbs irrelevant sections of the document (e.g., by adding or deleting random sentences). The model is trained to minimize the change in its output, teaching it to remain robust against document "noise."
- Total Indirect Effect (TIE): This objective removes the actual evidence from the document. The model is trained to maximize the change in its output, effectively forcing it to rely on the grounding evidence rather than its internal parametric memory.
Experimental Results
We evaluated CausalDD on three major benchmarks: Doc2dial, MultiDoc2dial, and Doc2bot.
State-of-the-Art Performance
CausalDD consistently outperformed strong baselines like UniGDD across all metrics. Notably, on the Doc2dial benchmark, CausalDD achieved a BLEU score of 43.0, significantly outperforming GPT-3.5, which scored only 3.57. This discrepancy highlights the tendency of general LLMs to provide conversational but ungrounded answers, whereas CausalDD adheres strictly to the provided document.
Efficiency in Low-Resource Settings
The causal framework proves exceptionally powerful when data is scarce. In a "5-shot" evaluation (training on only 5 examples), CausalDD improved F1 scores for evidence identification by over 12 points compared to standard models. Furthermore, the model demonstrates faster convergence, reaching peak performance earlier in the fine-tuning process because it already understands the underlying logic of the grounding task.
Discussion and Conclusion
CausalDD demonstrates that "likelihood is not enough" for complex, knowledge-intensive tasks like DocGD. By explicitly modeling the causal flow from document to response and utilizing perturbation-based losses, we can create models that are more robust, less prone to hallucination, and highly efficient in low-resource scenarios.
Future work will explore extending this causal framework to other domains, such as Knowledge-Graph-grounded dialogue, and improving the quality of synthetic data generation to further bridge the gap between automated pre-training and human-level reasoning.
Summary updated