Predicting Discourse Trees from Transformer-based Neural Summarizers

Wen Xiao, Patrick Huber, Giuseppe Carenini

Abstract

Previous work indicates that discourse information benefits summarization. In this paper, we explore whether this synergy between discourse and summarization is bidirectional, by inferring document-level discourse trees from pre-trained neural summarizers. In particular, we generate unlabeled RST-style discourse trees from the self-attention matrices of the transformer model. Experiments across models and datasets reveal that the summarizer learns both, dependency- and constituency-style discourse information, which is typically encoded in a single head, covering long- and short-distance discourse dependencies. Overall, the experimental results suggest that the learned discourse information is general and transferable inter-domain.

Introduction

Neural summarization models are typically evaluated on their ability to identify salient information. However, recent research suggests these models may implicitly learn the underlying structural "logic" of document construction. Discourse parsing—the task of uncovering structural relationships between text segments (Elementary Discourse Units or EDUs)—is a challenging field hampered by a lack of large-scale annotated data. This paper investigates whether a model trained on the data-rich task of extractive summarization naturally learns discourse structures as a byproduct, potentially serving as an unsupervised discourse parser.

Methodology

The study utilizes a standard Transformer-based extractive summarizer. The core of the approach involves analyzing the self-attention matrices within the Transformer layers. These matrices represent the degree to which each EDU attends to every other unit in the document.

The overall pipeline: from a trained extractive summarizer to extracted discourse trees via attention analysis.

To transform these raw attention scores into formal discourse trees, the researchers applied three established algorithms:

  1. CKY: For generating constituency trees, which group units into nested hierarchies.
  2. Eisner & Chu-Liu-Edmonds (CLE): For generating dependency trees, which map direct parent-child relationships between units.
Visualization of the CKY matrix used to compute hierarchical constituency structures from attention scores.

A significant methodological contribution is the use of hierarchical constraints. By prioritizing the construction of sub-trees within sentences before connecting them at the document level, the authors align the model's output with known linguistic properties where discourse structures rarely cross sentence boundaries haphazardly.

Experimental Setup

The summarization models were trained on two large-scale news datasets: CNN/Daily Mail (CNNDM) and the New York Times (NYT). Evaluation was conducted against three human-annotated "gold standard" treebanks:

  • RST-DT: The standard news-domain benchmark.
  • Instruction-DT: A cross-domain dataset of home-repair instructions.
  • GUM: A multi-domain dataset covering interviews, travel guides, and more.

Key Insights and Results

The "Single Head" Phenomenon

Discourse information is not distributed uniformly across the Transformer. Instead, it is often concentrated in a single attention head that specializes in capturing the document's structural backbone.

Dependency vs. Constituency

The summarizers demonstrated a stronger proficiency in learning dependency relationships compared to constituency groupings. This aligns with the requirements of summarization, where identifying which "satellite" units support a central "nucleus" sentence is crucial for determining importance.

Universal Structural Logic

The learned discourse knowledge appears to be domain-agnostic. Models trained on news data (CNNDM) successfully predicted discourse structures in repair manuals (Instruction-DT), suggesting that the structural logic of documents is a generalizable feature.

Quantitative Performance

The extracted trees significantly outperformed random baselines across all evaluation datasets. On the RST-DT dataset, the best-performing attention head achieved an Unlabeled Attachment Score (UAS) of 34.13% without constraints, with performance further improving when hierarchical constraints were applied. These results were consistent across different model initializations, indicating that discourse learning is a robust byproduct of the summarization objective.

Conclusion and Future Work

This research demonstrates that Transformer-based summarizers implicitly learn document-level discourse structures. While current methods focus on unlabeled trees and extractive models, future work could extend this to labeling relationship types and investigating abstractive summarizers. Additionally, the concentration of discourse information in specific heads suggests potential for model pruning and compression by identifying and preserving structurally significant components.

Summary updated

BibTeX
@inproceedings{xiao2021predicting,
  author = {Wen Xiao and Patrick Huber and Giuseppe Carenini},
  title = {{Predicting Discourse Trees from Transformer-based Neural Summarizers}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2021},
  url = {https://openreview.net/forum?id=IrjkcZBx9E},
}
Figure