[Paper Review] Learning to Search in Long Documents Using Document Structure
This paper proposes DocQN, a reinforcement learning agent that navigates long documents using their structural tree representation to locate answer-relevant sections efficiently. By interleaving document traversal with answer extraction via a reading comprehension model, the agent reads only 6% of the document yet outperforms an information retrieval baseline and achieves further gains when ensembled, demonstrating that structured navigation improves long-document question answering.
Reading comprehension models are based on recurrent neural networks that sequentially process the document tokens. As interest turns to answering more complex questions over longer documents, sequential reading of large portions of text becomes a substantial bottleneck. Inspired by how humans use document structure, we propose a novel framework for reading comprehension. We represent documents as trees, and model an agent that learns to interleave quick navigation through the document tree with more expensive answer extraction. To encourage exploration of the document tree, we propose a new algorithm, based on Deep Q-Network (DQN), which strategically samples tree nodes at training time. Empirically we find our algorithm improves question answering performance compared to DQN and a strong information-retrieval (IR) baseline, and that ensembling our model with the IR baseline results in further gains in performance.
Motivation & Objective
- To address the inefficiency of recurrent neural networks in processing long documents for question answering.
- To explore whether document structure can guide intelligent, efficient search for answers in long texts.
- To develop a navigation agent that balances exploration and answer extraction while minimizing text consumption.
- To overcome data bias in training that causes premature stopping and poor exploration in document traversal.
- To improve end-to-end question-answering performance by combining structured navigation with reading comprehension models.
Proposed method
- Documents are represented as hierarchical trees, with nodes corresponding to sections, subsections, paragraphs, and sentences.
- An agent performs actions in a Markov Decision Process: move to a child node, extract an answer using a reading comprehension model, or terminate.
- The agent is trained using a modified Deep Q-Network (DQN) algorithm called DocQN, which enhances exploration by sampling nodes from diverse parts of the tree during training.
- The model uses self-attention to attend to relevant text in each node during navigation decisions.
- The agent consumes only a small fraction of the document (6%) by stopping early at relevant nodes, avoiding full sequential processing.
- Performance is improved by ensembling DocQN with an information retrieval baseline, combining their strengths in navigation and retrieval.
Experimental results
Research questions
- RQ1Can an agent learn to navigate long documents using structural hierarchy to locate answer-relevant content efficiently?
- RQ2Does a structured navigation strategy outperform traditional information retrieval in long-document question answering?
- RQ3Can a reinforcement learning agent effectively explore document trees without being biased toward early stops due to training data?
- RQ4To what extent does interleaving navigation with answer extraction improve overall QA performance?
- RQ5Can combining a navigation agent with an IR baseline yield superior performance compared to either method alone?
Key findings
- DocQN consumes only 6.2% of the document tokens on average, significantly less than full-document processing.
- Despite minimal text consumption, DocQN outperforms an information retrieval baseline in end-to-end question-answering performance.
- DocQN achieves longer navigation trajectories (average path length 15.2 steps) compared to DQN (7.7 steps), indicating deeper exploration.
- DocQN stops at sentence nodes 24.5% of the time, compared to 8.3% for DQN, showing finer-grained navigation and better answer localization.
- Ensembling DocQN with the IR baseline yields substantial performance gains over both individual components.
- Qualitative analysis confirms that DocQN explores more sections and uses the RC model more frequently during navigation, leading to better answer confidence and accuracy.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.