Introduction
Traditional question-answering (QA) systems typically focus on identifying a single continuous span of text or selecting a single sentence as the "golden nugget" answer. However, real-world information retrieval often requires synthesizing answers from multiple, non-consecutive parts of a document. This "compositional" QA challenge is the focus of ComQA, which introduces both a large-scale dataset and a novel Hierarchical Graph Neural Network (HGNN) architecture designed to navigate structured web content.
Methodology: Hierarchical Graph Neural Networks
The proposed HGNN model moves beyond treating documents as flat sequences. Instead, it leverages the inherent structure of documents—such as DOM trees and sentence boundaries—to build a relational graph that facilitates information flow across discontiguous elements.
The architecture operates in three primary phases:
- Sequence Encoding: Utilizing a BERT-based transformer to generate initial contextualized embeddings for the question and document tokens.
- Graph Construction: The document is mapped into a graph with three distinct edge types:
- Intra-sentence: Local connections between words within the same sentence.
- Inter-sentence: Connections between high-level "anchor" nodes (e.g.,
<EOS>or HTML tags), allowing the model to bridge disparate sections of the document. - Global: A central hub connecting the question indicator (
<SEP>) to all document nodes. - Hierarchical Aggregation: A "Fused Aggregation" mechanism combines these connections into a single adjacency matrix, allowing the model to learn representations that balance local context with global document structure.
To enhance performance, the authors also introduced two pre-training tasks: Question Selection (QS), which matches titles to documents, and Node Selection (NS), which identifies corrupted or shuffled sentences to improve document-level coherence.
The ComQA Dataset
The ComQA dataset consists of over 120,000 human-labeled Chinese QA pairs sourced from real-world web pages via the Sogou search engine. Unlike SQuAD or similar benchmarks, answers in ComQA are composed of discontiguous "nodes"—sentences, images, or table elements—spread across the page.
On average, each document contains approximately 23 nodes, with roughly 21% of these nodes contributing to the final compositional answer. The dataset covers a wide variety of query types, ranging from factual "what" questions to procedural "how to" guides.
Results and Analysis
The HGNN model demonstrates a significant performance leap over standard baselines. HGNN-large achieved an accuracy of 49.2% and an F1 score of 79.9, substantially outperforming standard BERT-large (43.2% accuracy) and BiDAF (30.2% accuracy).
Ablation studies highlighted that inter-sentence connections are the most critical structural component. Removing these "anchors" led to a sharp decline in accuracy, confirming that high-level document navigation is essential for compositional tasks. Despite these gains, a gap remains compared to human performance (80.5%), primarily due to challenges with redundant information and complex reasoning.
Conclusion
ComQA addresses the limitations of span-based QA by explicitly modeling document structure through hierarchical graphs. By treating a document as a structured network rather than a flat string, the HGNN framework provides a robust foundation for extracting complex, multi-part information from the modern web.
Summary updated