Abstract
Large Language Models (LLMs) often struggle with long-document summarization due to the "lost in the middle" phenomenon and fragmented narrative structures. We present HERA, a novel framework that improves summarization performance by "packaging" relevant context and "reordering" it into a logical sequence. Evaluated on arXiv and PubMed datasets, HERA significantly enhances the informativeness and factual consistency of models such as GPT-4 and Gemini 1.5 without requiring fine-tuning.
Introduction
Despite the advent of million-token context windows in models like Gemini 1.5 and Claude 3, effective "digestion" of long documents remains a challenge. Two primary hurdles persist: the tendency of LLMs to ignore information in the middle of long prompts and the scattered nature of related facts in technical documents. HERA addresses these by pre-processing the input to present a coherent, filtered narrative to the model.
Methodology
The HERA pipeline consists of four distinct stages designed to optimize the context provided to the LLM:
- Context Packaging: The document is segmented into paragraphs, each summarized by a small model. These summaries act as keys to retrieve and group relevant paragraphs into "segment bags" focused on specific events.
- Context Reordering: To mitigate sensitivity to information order, a specialized sentence-ordering model (NAON) arranges paragraphs within each bag into a logically consistent sequence.
- Event Summarization: The LLM generates summaries for these cleaned and ordered segment bags, reducing the likelihood of distraction or hallucination.
- Summary Aggregation: Individual event summaries are synthesized into a final, comprehensive document summary.
Experimental Results
The framework was evaluated using the arXiv and PubMed datasets, which feature dense technical content. HERA was tested against foundation models including LLaMA 2, LLaMA 3, Gemini 1.5, and GPT-4.
Key findings include:
- Consistent Performance Gains: HERA consistently outperformed base models across ROUGE, BERTScore (BS), and FactCC (FC) metrics.
- Enhanced Faithfulness: On the arXiv dataset, Gemini 1.5 + HERA showed a 17.9% improvement in factual consistency (FactCC).
- Efficiency: The pipeline increases inference time by approximately 1.5x, a modest cost compared to the benefits of avoiding expensive fine-tuning.
Discussion and Insights
The success of HERA highlights that narrative order is a critical factor in LLM synthesis. Simply reordering information to be more logical significantly boosts performance, suggesting that LLMs share human-like difficulties with fragmented sequences. Furthermore, the "Context Packaging" results indicate that less is often more; providing a smaller, highly relevant subset of data (5-6 paragraphs) often yields superior results compared to processing the entire document.
Limitations
Future work will explore more sophisticated retrieval-augmented generation (RAG) techniques for packaging and optimize prompt templates. While HERA significantly reduces hallucinations, it does not eliminate them entirely, as they remain an inherent property of the underlying LLMs. Human evaluation is also needed to further validate the qualitative nuances of the generated summaries.
Summary updated