Abstract
This paper introduces Doc2Bot, a novel dataset designed to advance the development of conversational agents capable of navigating complex, real-world documents. Unlike existing datasets that often focus on homogeneous text, Doc2Bot addresses the challenges of "heterogeneous" documents—manuals and instruction books that integrate text, tables, sequences, and conditional rules. The dataset comprises over 100,000 conversational turns based on Chinese documents across five domains, making it the largest document-grounded dialogue dataset for information seeking to date. We propose a three-tiered task framework—dialogue state tracking, dialogue policy learning, and response generation—and provide baseline benchmarks using state-of-the-art deep learning models. Our results demonstrate that navigating structural complexity and clarifying underspecified user needs remain significant challenges for current AI systems.
Introduction
Most Document-Grounded Dialogue Systems (DGDS) are trained on simplified data, typically consisting of flat paragraphs of text. However, organizational knowledge—such as insurance policies, technical manuals, or public service guides—is rarely so straightforward. These documents are inherently heterogeneous, featuring nested structures, tabular data, and complex "if-then" logic.
Existing systems struggle with two primary issues in these contexts:
- Structural Complexity: Extracting information that requires reasoning across different document elements (e.g., a table cell governed by a footnote condition).
- Under-specified Queries: Users often provide vague initial requests (e.g., "How do I apply for benefits?"). A robust system must engage in proactive clarification rather than providing a generic or incorrect answer.
Doc2Bot was developed to systematically address these gaps by providing a large-scale, structurally rich dataset that forces models to reason across diverse formats and engage in multi-turn clarification.
The Doc2Bot Dataset
The Doc2Bot dataset represents a significant leap in scale and complexity for document-grounded dialogue research.
- Scale: It contains 6,619 dialogues and 101,994 turns.
- Domains: The data spans five diverse domains: Public Services, Technology, Insurance, Health, and wikiHow.
- Language: The dataset is curated in Chinese, providing a critical resource for non-English conversational AI.
Compared to previous benchmarks like Doc2Dial or MultiDoc2Dial, Doc2Bot is not only larger but also more structurally diverse, requiring models to handle transitions between different document types and sections seamlessly.
Methodology
To transform static documents into dynamic, natural conversations, the researchers developed a systematic pipeline focusing on structural preservation and realistic user behavior.
Document Graph Construction
Instead of treating a document as a flat string, Doc2Bot transforms it into a directed graph. Nodes represent specific spans of text, tagged with types such as section, table, sequence, or condition. This architecture preserves the semantic relationships between elements, such as the link between a "Requirement" header and the specific "Value" found in a corresponding table cell.
Agenda-Based Flow Generation
To ensure realistic dialogue, the authors utilized an algorithm to simulate "user agendas." This simulates a user's journey through a document, including:
- Follow-up: Moving logically through a sequence.
- In-jump: Jumping to a related section within the same document.
- Out-jump: Switching to a different document entirely to satisfy an information need.
Task Framework and Benchmarks
The paper proposes three sub-tasks to evaluate model performance:
- Dialog State Tracking (DST): Identifying the user's intent and the specific document snippets (grounding) they are referring to.
- Dialog Policy Learning (DPL): Determining the system's next action, such as providing a direct answer, asking for clarification, or offering multiple-choice options.
- Response Generation (RG): Synthesizing the chosen policy and grounded information into a natural language response.
Experimental Results
Baseline evaluations using models like BERT, RoBERTa, and T5 highlight the difficulty of the Doc2Bot tasks:
- DST Performance: Using RoBERTa with Dense Passage Retrieval (DPR) achieved a Joint Accuracy of only 34.55%. This low score underscores the difficulty of correctly identifying both user intent and the exact supporting text in complex documents.
- Policy Learning: Predicting the system's next action (DPL) resulted in a macro-F1 score of 46.66%, as models struggled to balance different system actions.
- Generation: T5 proved to be the strongest model for response generation, achieving a BLEU-4 score of 45.20. Notably, providing the model with the intended "system action" significantly improved the quality of the output, suggesting that planning is essential for high-quality dialogue.
Key Insights and Future Work
The Doc2Bot project demonstrates that document structure must be treated as a "first-class citizen" in dialogue modeling. The high rate of clarification questions in the dataset (approximately 20% of system turns) reflects the necessity of proactive AI behavior in real-world scenarios.
Future research directions include:
- Automated Graph Construction: Reducing the manual effort required to transform PDFs into structured Document Graphs.
- Handling Unanswerable Questions: Training models to recognize when a user's query cannot be answered by the provided document collection.
- Cross-Lingual Transfer: Exploring how the structural reasoning skills learned from Doc2Bot can be applied to other languages.
Summary updated