RST Parsing from Scratch

Thanh-Tung Nguyen, Xuan-Phi Nguyen, Shafiq R. Joty, Xiaoli Li

TL;DR

This paper introduces a novel end-to-end neural network approach for Rhetorical Structure Theory (RST) discourse parsing. By framing parsing as a sequence of token-level splitting decisions, their model can simultaneously segment text into elementary discourse units (EDUs) and build the hierarchical discourse tree, eliminating the need for a separate segmentation step and handcrafted features. This leads to state-of-the-art performance and increased efficiency.

What Problem Does This Paper Address?

Understanding how sentences and clauses within a document connect to form a coherent whole is crucial for many Natural Language Processing (NLP) tasks, such as summarization, text classification, and machine translation evaluation. Rhetorical Structure Theory (RST) provides a framework for analyzing this coherence by representing discourse as a hierarchical tree structure. However, traditional RST parsing involves two distinct, sequential steps: first, segmenting the text into elementary discourse units (EDUs), and second, parsing these EDUs into a discourse tree. This pipeline approach has several drawbacks: errors in the initial segmentation step can propagate to the parsing stage, and many existing methods, even neural ones, rely on handcrafted features that are time-consuming to develop and difficult to adapt to new languages or domains. This paper aims to overcome these limitations by proposing a unified, end-to-end approach that handles both segmentation and parsing simultaneously.

Methods

The core innovation of this work lies in reframing discourse parsing as a sequence of splitting decisions at token boundaries. Instead of first identifying EDUs, the model treats the entire document as a single span and recursively splits it into smaller spans until terminal nodes (EDUs) are formed. This is achieved using a seq2seq pointer network.

Here's a breakdown of their approach:

  • Token-Level Splitting: The input document is first encoded to obtain representations for each token and token boundary. The model then learns to predict a splitting point k for any given span (i, j), effectively dividing it into (i, k) and (k, j). This process continues until terminal EDUs are identified.
  • Unified Framework: This splitting mechanism naturally handles both discourse segmentation (when a span is split into (i, k) and (k, j)) and the formation of EDUs (when a span is not split further, i.e., k=j). This allows for end-to-end parsing without a separate segmentation module.
  • Seq2Seq Pointer Network: A unidirectional LSTM acts as the decoder, taking the representation of the current span as input and outputting a probability distribution over all possible token boundaries within that span. A biaffine attention mechanism is used to compute scores for potential splitting points.
  • Beam Search: To improve the accuracy of tree structure prediction, the authors incorporate beam search during inference. This allows the model to explore multiple high-scoring tree structures rather than making greedy decisions at each step.
  • Structure-then-Label: The model first predicts the tree structure and then assigns coherence relation labels to the internal nodes.
  • No Handcrafted Features: Crucially, the model relies solely on learned representations and does not use any external features like part-of-speech tags, syntactic parses, or manually engineered features, making it more adaptable and efficient.

Datasets

The experiments were conducted on the standard English RST Discourse Treebank (RST-DT). This dataset contains 385 annotated Wall Street Journal news articles, with 347 used for training and 38 for testing. A 10% subset of the training data was used as a development set for hyper-parameter tuning.

Key Insights and Ideas

  • Parsing as Splitting: The most significant insight is the re-framing of discourse parsing as a sequence of token-boundary splitting decisions. This elegant formulation unifies segmentation and parsing into a single, coherent process.
  • End-to-End Advantage: By eliminating the need for a separate discourse segmenter and handcrafted features, the model becomes more efficient, faster to train and test, and more easily adaptable to new languages and domains.
  • Beam Search for Structure: Applying beam search to discourse parsing, a technique common in other NLP tasks like machine translation, significantly improves the ability to find the optimal tree structure by exploring a wider search space.
  • Sentence Boundary Inductive Bias: Incorporating a constraint that encourages sentence boundaries to align with internal nodes in the discourse tree improves end-to-end parsing performance, reflecting the observation that discourse structures often align with sentence structures.

Key Results

The proposed model achieves state-of-the-art (SoTA) results on the RST-DT dataset in both end-to-end parsing and parsing with gold segmentation.

  • With Gold Segmentation:
    • The model with GloVe embeddings achieves a Full F1 score of 46.8, outperforming previous methods that do not use pretrained models.
  • Using the XLNet-base pretrained model, the parser achieves SoTA with an F1 score of 50.2 (Full), surpassing existing methods by a significant margin (e.g., 2.1 absolute points improvement over the best previous system).
  • End-to-End Parsing:
    • The end-to-end model with GloVe embeddings achieves 1.5%, 2.9%, 2.4%, and 2.5% absolute gains in Span, Nuclearity, Relation, and Full F1 scores, respectively, compared to the previous SoTA end-to-end model.
  • The model also achieves a high EDU segmentation F1 score of 96.30, rivaling existing SoTA segmentation methods.
  • Efficiency: The model demonstrates significant speedups, with the gold-segmented parser being up to 11 times faster than a non-neural baseline and 2.4 times faster than a previous neural baseline. The end-to-end parser is also faster than baselines that rely on pre-segmented EDUs.

Limitations and Future Work

  • Limitations:
    • The paper notes that the imbalanced distribution of relation labels in the RST-DT dataset affects the model's performance, leading to confusion between semantically similar relations.
  • While the model is faster, the authors suggest that further speed improvements could be achieved by using more efficient architectures like Longformer, which has a linear time complexity for encoding.
  • Future Work:
    • Joint Training: The authors propose exploring joint training of discourse and syntactic parsing tasks, as these are related and can be modeled within their unified conditional splitting framework.
  • Improved Architectures and Training: Further improvements are expected from exploring better neural architectures and training mechanisms.
  • Cross-Lingual Adaptation: Extending the parser to other languages is a key future direction, facilitated by the model's lack of handcrafted features.

Summary updated

BibTeX
@inproceedings{nguyen2021rst,
  author = {Thanh-Tung Nguyen and Xuan-Phi Nguyen and Shafiq R. Joty and Xiaoli Li},
  title = {{RST Parsing from Scratch}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.naacl-main.128},
}
Figure