Introduction
Extractive summarization of long documents, such as scientific papers, presents a significant challenge for standard NLP models. While typical news articles average around 600 words, scientific papers often exceed 7,000 words. Standard Transformer architectures struggle with these lengths due to the quadratic scaling ($O(n^2)$) of their self-attention mechanism. Furthermore, sequential models like RNNs often fail to capture long-distance dependencies—for instance, connecting a sentence in the "Conclusion" to a relevant one in the "Introduction" across thousands of intervening words.
Existing graph-based approaches attempt to bridge these gaps by linking sentences, but they are generally limited to pairwise interactions. Language, however, is inherently more complex, involving high-order relationships where groups of sentences share common structural or semantic contexts.
The HEGEL Framework
To address these limitations, we introduce HEGEL (HypErGraph transformer for Extractive Long document summarization). HEGEL represents a document as a hypergraph, where a single "hyperedge" can connect multiple sentence nodes simultaneously, capturing high-order relationships that standard graphs miss.
Hyperedge Construction
HEGEL constructs three distinct types of hyperedges to capture different document perspectives:
- Section Hyperedges: Group all sentences within the same structural section (e.g., "Introduction" or "Methodology"), capturing local structural context.
- Topic Hyperedges: Use Latent Dirichlet Allocation (LDA) to cluster sentences sharing underlying themes, capturing global semantic context.
- Keyword Hyperedges: Link sentences containing specific keywords extracted via KeyBERT, regardless of their position in the document.
Model Architecture
The HEGEL architecture consists of an encoder followed by a specialized Hypergraph Transformer Layer. Initial sentence embeddings are generated using Sentence-BERT and enhanced with Hierarchical Position Embeddings to preserve both section-level and document-level structural context.
The Hypergraph Transformer Layer employs a two-phase message-passing mechanism:
- Node-to-Edge Aggregation: Sentence nodes pass information to their associated hyperedges, forming group representations ($g^l$).
- Edge-to-Node Aggregation: Hyperedges distribute aggregated information back to the nodes ($h^{l+1}$), allowing sentences to learn from all related peers efficiently.
Experimental Evaluation
The model was evaluated on the arXiv and PubMed datasets, which contain long-form scientific papers with rich discourse structures.
Key Results
HEGEL achieved state-of-the-art performance on both benchmarks:
- PubMed: ROUGE-1 score of 47.13, outperforming the previous best extractive model, HiStruct+ (46.59).
- arXiv: ROUGE-1 score of 46.41, setting a new benchmark for extractive summarization.
Beyond performance, HEGEL is highly efficient. By utilizing a sparse hypergraph structure instead of a dense attention matrix, it uses 90% fewer parameters than a Longformer-base model while delivering superior results.
Insights and Analysis
Ablation studies revealed that Section hyperedges are the most critical component for performance, confirming that local structural context is a primary driver in scientific discourse. Qualitative analysis using T-SNE visualizations demonstrated that the model effectively learns to cluster "salient" (summary-worthy) sentences, distinguishing them from background content.
Conclusion and Future Work
HEGEL demonstrates that hypergraph-based modeling is a powerful and efficient approach for long document summarization. While the current model relies on external preprocessing for topics and keywords, future work could explore end-to-end hyperedge discovery. Additionally, extending the framework to include syntactic or more complex discourse-level hyperedges could further improve the granularity of sentence selection across diverse document genres.
Summary updated