Structure-Discourse Hierarchical Graph for Conditional Question Answering on Long Documents

Haowei Du, Yansong Feng, Chen Li, Yang Li, Yunshi Lan, Dongyan Zhao

Introduction

Standard Question Answering (QA) systems are typically designed to answer direct queries like "What is X?" However, real-world information retrieval often involves more nuance. Conditional Question Answering (CQA) addresses more complex queries: "What is X, and under what circumstances is it true?" This is particularly critical when navigating dense documents such as government policies, legal texts, or medical guidelines, where an answer might only apply if specific criteria—such as age, residency, or income—are met.

An example of Conditional Question Answering (CQA) where the answer depends on specific criteria found in different document sections.

Existing approaches often struggle with long documents because they rely on a "segment-and-process" strategy. By chopping documents into smaller segments to fit Transformer model constraints, these systems lose two vital types of information: the document's hierarchical structure (sections and subsections) and the logical discourse relations between sentences (e.g., one sentence providing a condition for the next). Without these, models fail to retrieve conditions physically distant from the answer or perform the reasoning required to determine if a condition is satisfied.

Proposed Methodology: SDHG

To overcome these challenges, researchers from Peking University and Ant Group introduced the Structure-Discourse Hierarchical Graph (SDHG). This framework employs a bottom-up information propagation strategy across four integrated modules:

  1. Contextual Encoder: A pre-trained language model (such as T5) generates initial representations for each document section independently.
  2. Sentence-level Discourse Graph: Within each section, the model constructs a graph where nodes represent sentences and edges represent discourse relations (e.g., elaboration, condition, joint) parsed using Rhetorical Structure Theory (RST). A Graph Attention Network (GAT) then updates sentence representations based on these logical links.
  3. Section-level Structure Graph: This layer connects sections based on the document's natural hierarchy, including parent-child and sibling relations. A "question node" is included to facilitate interaction between the query and the document layout.
  4. Fusion and Decoding: The model concatenates raw token representations, discourse-aware sentence features, and structure-aware section features. This rich representation is passed to a T5 decoder to generate the final answer and its associated conditions.
The SDHG architecture, showing the bottom-up propagation from sentence-level discourse graphs to section-level structure graphs.

Experimental Evaluation

The model was evaluated on the ConditionalQA dataset, a benchmark characterized by long documents (averaging over 2,000 tokens) and complex queries requiring the identification of "unsatisfied conditions."

SDHG achieved a new state-of-the-art on this benchmark, significantly outperforming strong baselines like Fusion-in-Decoder (FiD) and DocHopper. Specifically, the model saw a 3.0 point gain in Exact Match (EM) and a 2.4 point gain in F1 score for answer accuracy. More importantly, it improved Joint Answer-Condition Accuracy by 2.2 points (EM), demonstrating its superior ability to identify the "fine print" necessary for a complete answer.

Discussion and Key Insights

The success of SDHG highlights several key principles for long-document reasoning:

  • Hierarchy as a Reasoning Map: Sibling sections often represent parallel alternatives or mutually exclusive conditions. Modeling this structure allows the model to "jump" between relevant sections more effectively than a linear scan.
  • Discourse Matters: By using RST to identify "condition" relations, the model explicitly links requirements (e.g., "You must be 18 or over") to specific actions or outcomes.
  • Bottom-Up Grounding: Propagating information from sentences to sections ensures that high-level structural nodes are grounded in the actual semantic content of the text.

Conclusion and Future Work

While SDHG sets a new standard for CQA, it currently relies on a pre-trained discourse parser. Future improvements could involve developing more efficient or domain-specific discourse parsing techniques. Additionally, optimizing the computational overhead of the multi-layer graph processing remains an area for exploration to enable real-time applications. Despite these challenges, SDHG proves that integrating structural and discourse-level information is essential for deep understanding of complex, long-form documents.

Summary updated

BibTeX
@inproceedings{du2023structure,
  author = {Haowei Du and Yansong Feng and Chen Li and Yang Li and Yunshi Lan and Dongyan Zhao},
  title = {{Structure-Discourse Hierarchical Graph for Conditional Question Answering on Long Documents}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.391},
}
Figure