arXiv:2610.22150cs.AIOct 2026

Manuscript Offprint

arXiv:2610.22150

RAG-RST: Retrieved Exemplars as In-Context Discourse Schema for RST Parsing

Mohammadreza Sediqin, Shlomo Engelson Argamon

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

In Rhetorical Structure Theory (RST), each edge of a discourse tree carries a nuclearity label, marking which span holds the central content, and a relation drawn from a closed inventory of functional categories. Neither label is a surface property: the same two clauses can be Elaboration or Background depending on rhetorical intent, and the boundary between them is fixed by annotation convention rather than by lexical cues. Predicting these labels therefore requires a formal discourse schema, and exposure to discourse-rich pretraining text does not supply it: given only a target EDU pair, a strong LLM recovers nuclearity at 0.794 F1 and relation at 0.738 F1. We propose RAG-RST, a retrieval-augmented framework that supplies this schema as in-context demonstration rather than through parameter updates, raising nuclearity to 0.846 F1 and relation to 0.788 F1 with no training. Two configurations are compared: a precomputed strategy that labels all EDU pairs before parsing, and a dynamic strategy that retrieves at each reduce step, so that the exemplars reaching the generator depend on the reductions the parser has already committed to. Both outperform existing RST parsers across span, nuclearity, relation, and full tree metrics, with the dynamic variant consistently strongest. Two properties of the retrieved schema emerge: its utility is bounded in number, saturating and then declining beyond fifty exemplars, and it depends on structural position. Both indicate that a formal linguistic schema can be supplied to a foundation model as a demonstration rather than trained into its parameters.

1 Introduction

Discourse parsing aims to uncover the logical and coherence relations between text units in a structured and hierarchical manner. Rhetorical Structure Theory (RST) [Mann and Thompson, 1988] represents a text as a tree whose leaves are Elementary Discourse Units (EDUs) and whose internal nodes are composite spans formed by grouping them. Parsing combines adjacent EDUs into higher-level spans and labels each connection with nuclearity and relation. Neither label is a surface property of the text: nuclearity marks which span carries the central content, and the relation is drawn from a closed inventory of functional categories fixed by annotation convention rather than by lexical cues [Carlson et al., 2002]. The same two clauses can be Elaboration or Background depending on rhetorical intent, so predicting these labels requires a model to acquire a formal discourse schema rather than merely perform a task. Accurate labels matter downstream, in summarization, information extraction, and discourse-aware representation learning [Marcu, 2000, Zhang et al., 2020, Sediqin and Argamon, 2025c]. As foundation models are increasingly deployed as agents, whose recorded outputs must be verified rather than merely scored [Sediqin et al., 2026a], explicit discourse structure offers one way to make the reasoning in their generated text inspectable.

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: Linguistic Principles for Foundation Models (LP4FM).

Methods for RST parsing range from top-down and bottom-up parsers that recursively divide or merge spans, to transition-based shift-reduce parsers that build the tree incrementally through actions managing and merging spans [Li and Xiao, 2021], to neural enhancements using contextualized span representations and deep encoders [Nguyen et al., 2021]. What these approaches share is that the annotation convention is acquired through training. Yet large pretrained models exposed to vast quantities of discourse-rich text still recover the RST schema poorly: given only a target EDU pair, a strong LLM reaches 0.794 F1 on nuclearity and 0.738 F1 on relation in our experiments. Scale over discourse-rich text is therefore not sufficient. The discourse phenomena are present in pretraining data; the annotation convention that carves them into these particular categories is not.

Retrieval-augmented generation (RAG) offers a way to supply that missing convention at inference time rather than through additional training. What form the supplied knowledge must take, however, remains open: labeled neighbors function as demonstrations of an annotation scheme, and their utility depends on how many are shown, how consistent they are, and where in the discourse structure the target pair sits [Mei et al., 2025].

We introduce RAG-RST, which integrates retrieval with a neural shift-reduce parser to improve nuclearity and relation prediction. Retrieval runs over the RST-annotated RST-GUM corpus [Zeldes, 2017], which supplies gold labels; no RST-DT material is placed in the index. We additionally index sentence pairs from CNN/DailyMail [Hermann et al., 2015] as an unlabeled discourse-rich corpus, used only to improve nearest-neighbor coverage and never to predict labels. To the best of our knowledge, this is the first work to supply the RST annotation schema through retrieval at inference time rather than through training, and the first to place retrieval inside the parsing loop, so that the exemplars shown to the generator depend on the reductions the parser has already committed to. Our contributions are as follows:

• We propose RAG-RST, combining neural EDU encoders, FAISS retrieval, and large language models for label prediction, and compare two strategies: precomputed labeling, which generates labels for all EDU pairs before parsing, and dynamic label generation, which retrieves at each reduce step so that the exemplars reflect the reductions already committed to.

• We quantify how much of the RST annotation schema is unrecoverable from the EDU pair alone, separating a model’s knowledge of discourse phenomena from its knowledge of the convention that categorizes them, and show that retrieved exemplars narrow this gap without any parameter update.

• We show that both strategies outperform existing RST parsers across all four standard evaluation metrics, with the dynamic approach consistently strongest.

• We scope our contribution to the label prediction stage: the shift/reduce action policy is adopted unmodified from prior work, and RAG-RST supplies nuclearity and relation labels to the reduce operation rather than altering how parser actions are selected.

References (29)