Abstract
Hierarchical neural architectures are often used to capture long-distance dependencies and have been applied to many document-level tasks such as summarization, document segmentation, and sentiment analysis. However, effective usage of such a large context can be difficult to learn, especially in the case where there is limited labeled data available. Building on the recent success of language model pretraining methods for learning flat representations of text, we propose algorithms for pre-training hierarchical document representations from unlabeled data. Unlike prior work, which has focused on pre-training contextual token representations or context-independent sentence/paragraph representations, our hierarchical document representations include fixed-length sentence/paragraph representations which integrate contextual information from the entire documents. Experiments on document segmentation, document-level question answering, and extractive document summarization demonstrate the effectiveness of the proposed pre-training algorithms.
Introduction
Early breakthroughs in Language Model (LM) pre-training, such as ELMo and BERT, primarily focused on "flat" representations, learning word meanings based on immediate local context. While highly effective for sentence-level tasks, these approaches often struggle with document-level understanding where long-range dependencies are crucial. Humans naturally use the context of an entire document to resolve ambiguities, a process that hierarchical architectures—which aggregate word vectors into sentence vectors and then into document vectors—are designed to emulate. However, these complex models are notoriously difficult to train from scratch due to the scarcity of labeled document-level data. This paper addresses this challenge by introducing methods to pre-train hierarchical architectures using massive amounts of unlabeled text.
Methods: Hierarchical Architectures and Pre-training
The authors propose two primary hierarchical architectures and two corresponding pre-training strategies designed to capture document-level semantics.
Architectures
- Bi-HLSTM: A bidirectional hierarchical model. It employs a "local" Bi-LSTM to encode words into sentence representations, followed by a "global" Bi-LSTM that processes the sequence of these sentence vectors.
- L+R-HLSTM: This variant consists of two separate unidirectional hierarchies (left-to-right and right-to-left) whose representations are concatenated, following the ELMo paradigm.
Pre-training Algorithms
The core innovation lies in the "global" pre-training tasks:
- L+R-LM_global: Generalizes standard language modeling by predicting the next word using both the current sentence context and the global representation of all preceding sentences.
- MASK-LM_global: An extension of the Masked Language Modeling (MLM) task. The model is required to predict masked tokens by leveraging both local sentence information and the broader global document context.
By forcing the model to predict words using document-level features, the higher-level "global" layers are compelled to learn meaningful inter-sentence relationships.
Experimental Evaluation
The models were pre-trained on a dataset of approximately 320,000 Wikipedia documents (0.9 billion tokens) and evaluated on three key document-level tasks:
- Document Segmentation: Predicting section boundaries in Wikipedia articles.
- Answer Passage Retrieval (TriviaQA): Identifying the specific paragraph containing the answer to a query.
- Extractive Summarization (CNN/Daily Mail): Selecting the most representative sentences from an article.
Key Results and Insights
The hierarchical pre-training approach consistently outperformed both "flat" baselines and models trained from scratch. A critical finding was the "Global Advantage": pre-training the document-level layers yielded significantly larger performance gains than pre-training word-level layers alone.
On the TriviaQA benchmark, the model achieved a 6% absolute improvement in precision (P@1) over previous state-of-the-art results by Clark & Gardner (2018). In extractive summarization, the model reached a ROUGE-L score of 37.6, surpassing more complex reinforcement learning-based models. Furthermore, the MASK-LM_global model demonstrated impressive zero-shot capabilities in finding answer passages, indicating it had successfully learned semantic similarity directly from the pre-training data.
Conclusion
This work demonstrates that hierarchical pre-training is a powerful technique for document-level natural language processing. By integrating global context into sentence representations, models can achieve state-of-the-art performance on complex tasks like summarization and question answering. Future research may involve extending these hierarchical concepts to Transformer-based architectures and exploring more sophisticated masking strategies, such as masking entire sentences to further enhance document-level logic.
Summary updated