On Automatic Text Extractive Summarization Based on Graph and pre-trained Language Model Attention

Yuan-Ching Lin, Jinwen MaarXiv 2021

Abstract

Representing a text as a graph for obtaining automatic text summarization has been investigated for over ten years. With the development of attention or Transformer on natural language processing (NLP), it is possible to make a connection between the graph and attention structure for a text. In this paper, an attention matrix between the sentences of the whole text is adopted as a weighted adjacent matrix of a fully connected graph of the text, which can be produced through the pre-training language model. The GCN is further applied to the text graph model for classifying each node and finding out the salient sentences from the text. It is demonstrated by the experimental results on two typical datasets that our proposed model can achieve a competitive result in comparison with sate-of-the-art models.

Introduction

Automatic text summarization generally falls into two categories: abstractive and extractive. While abstractive methods generate new text, they often suffer from "hallucinations" or ungrammatical output. Extractive methods are more stable and readable but rely heavily on how the relationships between sentences are defined. Traditional graph-based extractive methods, such as TextRank, use simple rules like TF-IDF similarity to link sentences, often missing deep semantic connections. Modern deep learning models are powerful but are often "black boxes" with hundreds of millions of parameters, making them computationally expensive. This research introduces a novel extractive summarization method that bridges the gap between Transformer-based attention and Graph Convolutional Networks (GCNs), creating a model that is both semantically rich and highly efficient.

Methods: The Attention Weight Matrix Text Graph Model

The authors propose the Attention Weight Matrix Text Graph Model, which leverages the internal "knowledge" of pre-trained models without requiring massive additional training. The workflow is as follows:

  1. Feature Extraction: Documents are fed into a pre-trained BERT-base model. The [CLS] token embeddings are used as representative vectors for each sentence.
  2. Graph Construction: Instead of manual rules, the model extracts BERT’s internal self-attention scores between [CLS] tokens to create an inter-sentence attention matrix.
  3. Binarization: A threshold is applied to this matrix to turn it into a sparse adjacency matrix, effectively treating the text as a graph where nodes are sentences and edges are high-attention relationships.
  4. GCN Classification: This graph (nodes + adjacency matrix) is fed into a Graph Convolutional Network. The GCN performs "message passing" to aggregate information across the document structure.
  5. Selection: The GCN outputs a saliency score for each sentence, and the top $K$ sentences are selected as the summary.
Inter-sentence attention matrix construction using CLS tokens.

Crucially, the graph construction phase requires no additional training. The resulting GCN model uses only 504,839 parameters—roughly 1% of the parameters used by state-of-the-art models like PEGASUS (568 million parameters).

Experimental Results

The model (GCN_Attn) was evaluated on two gold-standard benchmarks: CNN/Dailymail and Newsroom.

Performance on CNN/Dailymail

On the CNN/Dailymail dataset, the model achieved a ROUGE-1 score of 29.85, comfortably beating the Lead-3 baseline (22.22) and performing comparably to GPT-2 (29.34), despite its significantly smaller size.

ROUGE scores on the CNN/Dailymail dataset.

Performance on Newsroom

On a curated version of the Newsroom dataset, the model showed even stronger performance, reaching a ROUGE-1 of 36.75. The authors emphasize that their model is much faster to execute in both training and inference phases, making it a practical choice for environments with limited computational memory or time.

Conclusion

The most significant insight of this work is that the attention mechanism in Transformers is not just a weighting tool, but a latent representation of a document's structure. By extracting this structure, sophisticated graphs can be built without manual feature engineering. While the model is currently limited by BERT’s 512-token input limit, future work will explore merging information from multiple attention heads and layers to improve accuracy for long-form text summarization.

Summary updated

BibTeX
@misc{lin2021automatic,
  author = {Yuan-Ching Lin and Jinwen Ma},
  title = {{On Automatic Text Extractive Summarization Based on Graph and pre-trained Language Model Attention}},
  year = {2021},
  eprint = {2110.04878},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.04878},
}
Figure