Can we obtain significant success in RST discourse parsing by using Large Language Models?

Aru Maekawa, Tsutomu Hirao, Hidetaka Kamigaito, Manabu Okumura

TL;DR

Researchers have successfully applied massive decoder-only Large Language Models (LLMs) like Llama 2 to Rhetorical Structure Theory (RST) discourse parsing, achieving new state-of-the-art results. By framing the parsing process as a series of text-based prompts and fine-tuning with QLoRA, the 70B parameter model significantly outperforms previous specialized encoder-only models and demonstrates remarkable ability to generalize across different text domains.

What Problem Does This Paper Address?

Discourse parsing is the task of uncovering the hidden structural organization of a text. Under Rhetorical Structure Theory (RST), a document is represented as a tree where leaf nodes are "Elementary Discourse Units" (EDUs—essentially clauses) and internal nodes describe how these units relate (e.g., one unit might be an "Attribution" for another, or an "Elaboration").

Historically, this has been tackled using encoder-only models (like BERT) as feature extractors for custom classification layers. While these worked well, they often struggled with long-range dependencies and generalizing to new types of text (e.g., moving from news articles to Reddit threads). The authors wanted to see if the massive scale and general reasoning capabilities of modern decoder-only LLMs could overcome these hurdles.

Methods

The authors didn't just ask an LLM to "parse this text." Instead, they translated two classic parsing algorithms into a sequence of prompts that an LLM could process:

  1. Bottom-up (Shift-Reduce): The model maintains a "stack" of completed sub-trees and a "queue" of incoming EDUs. The LLM is prompted to decide the next action: Shift (move an item from queue to stack) or Reduce (merge the top two items on the stack). If it chooses Reduce, it is further prompted to assign a "nuclearity" label (identifying which part is the central 'Nucleus' and which is the supporting 'Satellite') and a rhetorical relation label. Example of the bottom-up parsing process using an LLM with prompts
  2. Top-down (Span-Split): The model starts with the whole text and is prompted to find the best point to split it into two, then recursively repeats the process for each half until it reaches individual EDUs.
Figure 4: Example of the bottom-up parsing process using an LLM with prompts. In the example, Stack2 stores a text span, an already constructed subtree, consisting of two EDUs: e1: [Westinghouse Electric Corp. said], e2: [it will buy Shaw-Walker Co.]. Stack1 stores a text span of single EDU, e3: [Terms weren’t disclosed.]. Queue1 stores an EDU, e4: [Shaw-Walker,]. After this step, the parsing process goes on to the next steps while updating Stack* and Queue.

To make training feasible, they used QLoRA (Quantized Low-Rank Adaptation), which allowed them to fine-tune the massive 70B parameter Llama 2 model on consumer-grade or mid-tier enterprise hardware by only updating a small fraction of the model's weights.

Datasets

The models were evaluated on three distinct benchmarks to test domain portability:

  • RST-DT: The "gold standard" in the field, consisting of Wall Street Journal articles (News domain).
  • Instr-DT: A smaller dataset of home-repair manuals (Instructional domain).
  • GUM Corpus: A diverse dataset covering 12 genres, including interviews, news, travel guides, and Reddit (Multi-genre domain).

Key Insights and Ideas

  • Prompting the Algorithm: The core innovation is treating the state of a parsing algorithm as a text prompt. This allows the LLM to use its internal "knowledge" of language to make structural decisions.
  • Context is King: The bottom-up strategy consistently outperformed the top-down strategy. The authors attribute this to the prompts: the bottom-up prompt includes three distinct spans (two from the stack, one from the queue), providing the LLM with richer local context than the single-span top-down prompt.
  • Superior Generalization: One of the most striking findings was that a model trained on the diverse GUM corpus performed nearly as well on the news-heavy RST-DT as models trained specifically on RST-DT. This suggests LLMs are learning fundamental principles of discourse that transcend specific datasets.
  • Scale Matters: There is a clear performance ladder. The 70B model significantly outperformed the 13B and 7B versions, proving that the sheer number of parameters is critical for capturing complex rhetorical nuances.

Key Results

The Llama 2 (70B) bottom-up parser achieved new State-of-the-Art (SOTA) results across the board:

  • RST-DT: Improved the "Full" F1 score (which accounts for span, nuclearity, and relation) by approximately 2-3 points over the previous best model (DeBERTa-based).
  • GUM Corpus: Achieved a massive jump of 6-7 points in F1 score compared to previous benchmarks.
  • Cross-Corpus: When trained on GUM and tested on RST-DT, the 70B model's performance degraded by only 12%, whereas previous models saw drops of 15-20%.

Limitations and Future Work

Despite the impressive accuracy, there are significant practical trade-offs:

  • Computational Cost: Training the 70B model requires high-end hardware (like an NVIDIA A100 80GB) and takes about five days.
  • Inference Speed: While standard parsers take seconds to process a document, the LLM-based approach takes several minutes. This makes it difficult to deploy for real-time applications.
  • Future Directions: The authors suggest that the top-down approach could be improved by including more context in the prompts. There is also a clear need for research into making these models more efficient (e.g., through distillation or more optimized inference) without losing their structural reasoning capabilities.

Summary updated

BibTeX
@inproceedings{maekawa2024can,
  author = {Aru Maekawa and Tsutomu Hirao and Hidetaka Kamigaito and Manabu Okumura},
  title = {{Can we obtain significant success in RST discourse parsing by using Large Language Models?}},
  booktitle = {EACL},
  year = {2024},
}
Figure