Discourse Relation-Enhanced Neural Coherence Modeling

Wei Liu, Michael StrubeACL 2025

While modern NLP models excel at capturing local semantics, they often overlook the high-level logical "glue" that holds a document together. This research demonstrates that explicit discourse relations (e.g., Cause, Contrast) are vital for assessing text coherence. The authors introduce a novel Fusion Transformer that integrates these relations using position-aware attention and structural masking to significantly improve coherence modeling.

The Problem: Beyond Local Semantics

In linguistics, coherence is what makes a text a meaningful whole rather than a disjointed collection of sentences. Traditionally, coherence modeling focused on "entity centering"—tracking how subjects transition between sentences. With the advent of Deep Learning, the field shifted toward "Text-Only" neural models that process raw strings.

However, these models often ignore Discourse Relations: the logical links between text spans. For instance, knowing that Sentence B instantiates an example for Sentence A, or that Sentence D causes Sentence E, is crucial for understanding flow. These relations are often implicit and structurally complex, making them difficult to incorporate into standard Transformer architectures designed for linear sequences.

Methods: The Fusion Transformer

The proposed "Discourse Relation-Enhanced" modeling follows a two-stage approach:

  1. Extraction: An off-the-shelf discourse parser (discopy), trained on the Penn Discourse Treebank (PDTB 3.0), identifies relations between adjacent sentences.
  2. The Fusion Transformer: To enable a Transformer to process graph-like structures, three innovations are implemented:
  3. Flat Structure with Positions: Documents are converted into sequences of triples. Sentences are represented by content and position (e.g., s1, 1, 1), while relations are represented by type and the sentences they connect (e.g., Contrast, 1, 2).
  4. Position-Aware Attention: Instead of absolute positions, the model uses relative positional embeddings based on node start and end points. This allows a sentence to "know" which relations act upon it.
  5. Visible Matrix: A visibility mask prevents "noisy" logical leaps. A sentence can only attend to other sentences or discourse relations that directly connect to it.
The Fusion Transformer architecture featuring Multi-head Position-Aware Attention and a Visible Matrix for structural masking.

Datasets and Evaluation

The model was evaluated on two primary benchmarks:

  • GCDC (Grammarly Corpus of Discourse Coherence): Texts from four domains (Yahoo, Enron, Clinton emails, Yelp) labeled by coherence level.
  • TOEFL: Student essays, where logical transitions are a common challenge for automated scoring systems.

Key Insights

  • Relations as a Coherence Signal: Specific N-gram patterns of relations correlate with quality. For example, Disjunction → Cause indicates high coherence in essays, while Cause → NoRel in emails suggests disjointedness.
  • Structural Importance: Shuffling the sequence of discourse relations caused performance to drop by over 7 points, proving the model captures logical structure, not just keywords.
  • Complementary Information: "Text-Only" and "Relation-Only" models overlapped on only 60% of correct predictions, suggesting discourse relations provide a unique linguistic signal.
  • Long-Document Superiority: The fusion method showed the greatest gains on longer documents, where global logical structure outweighs local word choice.
Performance comparison across different text lengths, showing the Fusion model's increasing advantage as document length grows.

Key Results

The Fusion Transformer consistently outperformed both "Text-Only" baselines and simple concatenation:

  • GCDC: On Enron emails, the model achieved 59.60% accuracy, surpassing the RoBERTa-TextOnly baseline (57.50%).
  • TOEFL: The model reached 77.49% average accuracy, significantly higher than the Text-Only baseline (75.08%).
  • LLM Comparison: The RoBERTa-based fusion model outperformed much larger models like GPT-4 (~51% on GCDC) and Llama-2-7B on these specific coherence tasks.

Limitations and Future Work

While effective, the model's performance is currently limited by the accuracy of the underlying discourse parser. Future work could incorporate RST (Rhetorical Structure Theory) for hierarchical document modeling or combine discourse relations with traditional entity-grid features to merge "who" is being discussed with "how" the logic is structured.

Summary updated

BibTeX
@inproceedings{liu2025discourse,
  author = {Wei Liu and Michael Strube},
  title = {{Discourse Relation-Enhanced Neural Coherence Modeling}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure