Abstract
Multilingual document-grounded dialogue (MDGD) requires systems to generate contextually relevant responses by synthesizing information from both conversation history and external multilingual knowledge sources. Traditional pipeline methods, which separate knowledge identification from response generation, often suffer from error propagation and fail to capture the inherent interdependence between these tasks. To address these limitations, we propose the Sequential Latent Document Transformer (SLDT). Our approach treats passage-knowledge selection as a sequential decision process rather than a single-step task. The SLDT framework achieved 3rd place in the DialDoc 2023 Shared Task. Extensive ablation experiments demonstrate that our method significantly improves upon baseline models across multiple metrics and datasets.
1. Introduction: The Challenge of Multilingual Dialogue
Multilingual document-grounded dialogue is a complex AI challenge where a system must converse with a user in various languages while accurately retrieving facts from external documents, such as Wikipedia.
Traditional systems typically follow a rigid "pipeline" approach: a retriever first identifies a relevant document, and a generator then produces a response based on that document. This architecture introduces two primary weaknesses:
- Error Propagation: If the initial retrieval step fails to identify the correct document, the generator is forced to work with irrelevant information, leading to "hallucinations" or non-sequiturs.
- Task Independence: These systems often treat document selection and response generation as isolated problems. In reality, the flow of a conversation should dynamically influence which knowledge is relevant at any given moment.
2. Methodology: Sequential Latent Document Transformer (SLDT)
The core of our approach is the SLDT framework, which models knowledge selection as a continuous, sequential decision process using latent variables. This allows the model to maintain topical consistency by considering the trajectory of the entire conversation rather than just the immediate user prompt.
Key Technical Components
- Retrieval via XLM-R: We utilize a bi-encoder architecture based on XLM-R to encode both dialogue queries and document passages into a shared vector space. Fast retrieval is facilitated through Maximum Inner Product Search (MIPS).
- Sequential Latent Variables: The model factorizes the probability of a response by incorporating the history of previously selected knowledge. We use variational inference to approximate the "posterior"—the optimal knowledge to utilize given the current dialogue context.
- Utterance-Level Code-Switching: To handle multilingualism effectively, we implement code-switching at the utterance level. This strategy enables the transfer of knowledge from high-resource languages (e.g., English) to lower-resource ones (e.g., Vietnamese) without requiring perfectly parallel corpora.
- Copy Mechanism: Inspired by Pointer Networks, this mechanism allows the model to directly "copy" specific text spans from the source document into the generated response, significantly enhancing factual grounding.
3. Experimental Setup and Datasets
We evaluated SLDT on two primary benchmarks:
- FrViDoc2Bot: A dataset containing annotated Vietnamese and French document-grounded dialogues, which served as the basis for the DialDoc 2023 competition.
- Wizard of Wikipedia (WoW): An industry-standard English dataset for knowledgeable open-domain dialogue, used to test the model's robustness on both "seen" and "unseen" topics.
4. Results and Analysis
The SLDT approach proved highly effective, particularly when integrated with the copy mechanism. In the DialDoc 2023 Shared Task, our team secured 3rd place, scoring 208 points in online testing.
As shown in the ablation study, the combination of MBART + XLM-R + SLDT + Copy achieved a BLEU-1 of 53.7 and an F1 of 58.6 on the FrViDoc2Bot dev set. These results significantly outperform standard MBART and MT5 configurations. Furthermore, on the Wizard of Wikipedia "Test Unseen" set, the model maintained a BLEU-1 of 16.7, nearly triple the performance of a baseline MBART model without external knowledge (6.3).
Key Insights
- Joint Inference: By using latent variables, the model performs joint inference across multiple turns. The system anticipates how current knowledge choices will affect future dialogue states.
- Grounding via Copying: While SLDT improves selection logic, the Copy Mechanism is essential for performance, ensuring the transformer remains grounded in the source text and preventing it from wandering "off-script."
5. Conclusion and Future Work
While SLDT offers significant performance gains, it requires substantial computational resources, specifically high-end hardware like NVIDIA A100-80G GPUs. Future research will focus on exploring "weak correlation" knowledge—scenarios where documents may not be directly related to the current turn but can be used to proactively recommend new, relevant topics to the user, enhancing the proactive capabilities of conversational agents.
Summary updated