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

Aru Maekawa, Tsutomu Hirao, Hidetaka Kamigaito, Manabu Okumura

TL;DR

This paper explores the effectiveness of large language models (LLMs), specifically Llama 2, for Rhetorical Structure Theory (RST) discourse parsing. By framing parsing steps as prompts, they achieve state-of-the-art results on multiple benchmark datasets, demonstrating LLMs' potential for this complex NLP task and their domain portability.

What Problem Does This Paper Address?

Discourse parsing, the task of analyzing the rhetorical structure of text, is crucial for understanding document-level coherence and has applications in summarization, question answering, and more. While traditional methods using encoder-only or encoder-decoder pre-trained language models (PLMs) have shown success, the potential of massive decoder-only LLMs (like GPT-3 and Llama 2) for this task remained an open question. The authors aim to bridge this gap by investigating how LLMs can be leveraged for RST discourse parsing, a task that requires understanding complex relationships between text segments.

Methods

The core of the paper's methodology lies in adapting existing RST discourse parsing strategies (top-down and bottom-up) into a prompt-based format that LLMs can understand.

  • Prompt Engineering: The authors translate the sequential decision-making processes of bottom-up (shift-reduce) and top-down (span splitting) parsing into specific prompts. These prompts provide the LLM with the current state of the parsing process (e.g., elements on a stack and queue for bottom-up parsing, or a text span to be split for top-down parsing) and ask it to predict the next action, nuclearity, or relation label.
  • Fine-tuning with QLoRA: To adapt Llama 2 for this task, they fine-tune it using QLoRA. QLoRA is an efficient fine-tuning technique that injects trainable low-rank matrices into the Transformer architecture while keeping the original model weights frozen. This approach significantly reduces computational costs and memory requirements, making it feasible to fine-tune large models.
  • Default Rules for Error Handling: To address potential issues where the LLM might generate invalid labels that prevent RST tree construction, the authors implement default rules. These rules ensure that the parsing process can continue by substituting invalid labels with common ones from the datasets (e.g., "Shift" for actions, "Nucleus-satellite" for nuclearity, and "Elaboration" for relations).

Datasets

The experiments were conducted on three benchmark datasets:

  • RST-DT (Rhetorical Structure Theory Discourse Treebank): A widely used dataset containing 385 documents from the Wall Street Journal, with 18 coarse rhetorical relations.
  • Instr-DT (Instructional Discourse Treebank): A dataset of 176 documents from home-repair instruction manuals, featuring 39 rhetorical relations.
  • GUM Corpus: A diverse corpus of 213 documents across 12 genres (e.g., News, Speech, Reddit, Vlog), with rhetorical relation labels adapted to match RST-DT.

Key Insights and Ideas

  • LLMs Excel at Prompt-Based Parsing: The study demonstrates that by framing RST parsing as a sequence of prompt-response interactions, LLMs can effectively learn and execute parsing strategies. This suggests that LLMs' strength in understanding and generating text can be directly applied to structured linguistic tasks.
  • Bottom-up Parsing Advantage: The bottom-up parsing strategy, when implemented with LLMs, consistently outperformed the top-down approach. This is attributed to the bottom-up strategy's ability to process richer contextual information (multiple text spans in stack/queue) compared to the top-down approach's focus on a single input span.
  • Domain Portability is Strong: The parsers trained on one dataset (especially GUM) showed remarkable generalizability when evaluated on another (RST-DT), with minimal performance degradation. This highlights the inherent adaptability of LLMs and their ability to learn domain-agnostic discourse structures.
  • LLM Size Matters: The performance gains were directly correlated with the size of the Llama 2 model, with the 70B parameter version achieving state-of-the-art results across all datasets. This underscores the importance of model scale for complex NLP tasks.

Key Results

  • State-of-the-Art Performance: The Llama 2 (70B) model, using the bottom-up parsing strategy, achieved state-of-the-art (SOTA) results on RST-DT, Instr-DT, and the GUM corpus, surpassing previous parsers by significant margins (e.g., 2-3 points on RST-DT, 0.4-3.7 points on Instr-DT, and 1.5-6 points on GUM).
  • Competitive Performance with Smaller Models: Even the smaller Llama 2 models (7B and 13B) achieved performance comparable to existing SOTA parsers, indicating that LLMs offer a strong baseline even without the largest parameter counts.
  • Cross-Corpus Generalization: Parsers trained on the GUM corpus and tested on RST-DT showed comparable Span F1 scores to parsers trained directly on RST-DT, with only small degradations in other metrics. This demonstrates strong domain portability.

Limitations and Future Work

  • Computational Resources: The primary limitation is the significant computational resources (high-end GPUs, substantial training time) required for training and inference, especially for the largest Llama 2 models. Parsing a single document can take several minutes.
  • Future Work: The authors suggest incorporating richer information to further improve the top-down parsing model and exploring other LLM-based approaches for RST discourse parsing. They also note that while LLMs offer impressive generalizability, further research is needed to address the computational demands.

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