Abstract
Transformer-based models have revolutionized abstractive summarization but often struggle with capturing global semantic coherence and managing long-range dependencies due to input length constraints. We present the Friendly Topic Assistant (TA), a lightweight, plug-and-play module designed to inject global semantic information from topic models into Transformer architectures. By utilizing Semantic-Informed Attention (SIA), Topic Embedding with Masked Attention (TEMA), and Document-Related Modulation (DRM), the TA framework enhances the model's ability to maintain thematic consistency. Our evaluations across CNN/DailyMail, NYT, and XSum datasets show consistent improvements in ROUGE scores, particularly for long documents where truncation typically leads to significant information loss.
Introduction
While state-of-the-art Transformers like BART and PEGASUS excel at local context modeling, they frequently lack a "big picture" understanding of document-level themes. This limitation is exacerbated by the fixed input length of most Transformers (e.g., 512 tokens), which necessitates truncating longer documents. In contrast, traditional Topic Models (such as Poisson Factor Analysis) are naturally suited for global semantics as they treat documents as a "bag of words," capturing co-occurrence patterns across the entire text regardless of length. The Friendly Topic Assistant (TA) bridges this gap by integrating these global insights into the Transformer's attention and decoding mechanisms.
Methodology
The TA framework introduces three modular components that can be added to pre-trained Transformers with minimal parameter overhead:
- Semantic-Informed Attention (SIA): To reduce redundancy in standard multi-head attention, SIA adds a specialized head with fixed weights derived from word-topic similarities. This forces the model to prioritize relationships between words that share strong thematic links.
- Topic Embedding with Masked Attention (TEMA): This module identifies the most salient topics for a document and represents them as "virtual tokens." These tokens are integrated into the decoder, providing a thematic anchor that helps the model generate relevant content even if specific source words were lost during truncation.
- Document-Related Modulation (DRM): DRM applies a document-level bias to the decoder's hidden layers based on the overall topic distribution, nudging the generation process toward the correct thematic territory.
Experimental Setup and Datasets
The researchers evaluated the TA-enhanced models on three benchmark datasets for abstractive summarization:
- CNN/DailyMail (CNN/DM): News articles paired with multi-sentence bullet-point summaries.
- New York Times (NYT): A large-scale corpus of news articles with abstractive summaries.
- XSum (Extreme Summarization): A dataset focused on generating highly abstractive, single-sentence summaries.
Results and Discussion
Quantitative Performance
Adding TA to the BertSUM model yielded significant improvements in ROUGE-L scores across all datasets. For instance, on the NYT dataset, BertSUM+TA achieved a ROUGE-L of 46.67, compared to 45.55 for the base model. Furthermore, the TA module proved universally compatible, enhancing the performance of other architectures including BART, UNILM, and MASS.
Global Semantic Coherence
Qualitative analysis and metric-based evaluation (Semantic Similarity) confirmed that TA-enhanced summaries are more aligned with the original document's topic space. The model effectively learns to cluster related concepts, as shown in the t-SNE visualization of the learned topic embeddings.
Handling Long Documents
A key finding is that the performance boost from TA increases with document length. Because the topic model processes the entire document before truncation, the TA can "rescue" information from the end of long texts and pass it to the Transformer's decoder. This makes the system particularly robust for summarizing long-form content.
Conclusion
The Friendly Topic Assistant provides a computationally efficient way to enhance Transformers with global semantic awareness. By adding less than 10% more parameters to models like BART, TA significantly improves summary quality and thematic accuracy. Future work may involve integrating these topic-based signals directly into the pre-training phase or applying the TA framework to other document-level tasks such as machine translation.
Summary updated