Introduction
Large Language Models (LLMs) have achieved remarkable fluency at the sentence level, yet they frequently falter when tasked with generating long-form content. In essays, stories, or complex arguments, these models often lose their logical thread, introduce redundancies, or fail to connect disparate ideas into a cohesive whole. Existing methods for controllable generation typically rely on "blunt" instruments—such as style or sentiment prompts—which lack the granularity required to dictate the structural flow of a document.
To address this, the RSTGen framework provides a neuro-symbolic approach to long-form generation. By leveraging Rhetorical Structure Theory (RST), RSTGen provides models with a "discourse blueprint," ensuring that generated text follows a rigorous logical and structural path.
The Challenge of Long-Form Coherence
The primary obstacle to long-form coherence is the lack of a high-level structural map. While Dependency Structure Theory (DST) is effective for managing intra-sentence relationships (how words relate to each other), it is too granular and "noisy" for document-level planning. Long-form coherence is fundamentally an inter-sentence problem.
Standard prompting methods struggle to specify complex rhetorical sequences, such as "state a claim, provide a contrasting viewpoint, and then offer a clarifying explanation." RSTGen fills this gap by utilizing RST, which organizes text into a hierarchy of Elementary Discourse Units (EDUs) connected by specific rhetorical relations.
The RSTGen Framework
RSTGen integrates rhetorical structures directly into the architecture of models like GPT-2 and BART through three key components:
1. RST Tree Encodings
RST represents a document as a binary tree. The leaves are EDUs, while the internal nodes define the relationship between segments (e.g., Contrast, Attribution, Condition). Crucially, these nodes also define "Nuclearity"—identifying which segment contains the core message (the nucleus) and which provides supporting detail (the satellite).
2. RST-Aware Attention (R.A.A.)
The core architectural innovation of RSTGen is RST-Aware Attention. In standard self-attention, every word can attend to every other word, which often leads to "contextual noise" and logical hallucinations. R.A.A. constrains the model’s attention mechanism based on the RST tree: a word is only permitted to attend to its structural ancestors. This ensures that the model remains focused on the relevant rhetorical context, preventing it from wandering off-topic.
3. RST Predictor
To lower the barrier to entry for users, the framework includes a neural sampler known as the RST Predictor. This component can automatically generate a valid RST structure based on a simple text prompt or a set of keywords, allowing the model to plan its discourse structure before generating the actual text.
Data and Evaluation
The authors trained RSTGen on a massive dataset of 965,000 examples derived from Reddit (specifically r/changemyview and r/PoliticalDiscussion), processed through an automated RST parser. The framework was evaluated across two distinct domains:
- Argument Generation: Using the ChangeMyView (CMV) dataset.
- Story Generation: Using the Writing Prompts dataset.
Key Insights and Results
RSTGen demonstrates that "more context" is not always better; rather, relevant structural context is the key to coherence.
- Superior Coherence: In evaluations using the GRUEN metric—which assesses grammaticality, non-redundancy, focus, and structure—RSTGen consistently outperformed strong baselines such as PAIR and DYPLOC in "Structure and Coherence."
- Parameter Efficiency: Remarkably, RSTGen achieved performance levels comparable to the much larger CTRL model while utilizing only one-tenth of the parameters. This suggests that structural inductive biases can significantly compensate for raw model scale.
- Natural Length Control: Unlike traditional models that require "length penalties" during decoding, RSTGen controls text length naturally via the input tree size. A more complex tree results in a longer, more detailed output without sacrificing information density.
- Qualitative Improvements: Human evaluations revealed that RSTGen produces far fewer logical inconsistencies than baseline models. While standard LLMs might contradict themselves within a few paragraphs, RSTGen maintains a stable logical trajectory.
Limitations and Future Directions
Despite its success, RSTGen faces several challenges. It is currently dependent on the accuracy of automated RST parsers; errors in the training data's structure can propagate to the generator. Additionally, the model’s adherence to the assigned RST structure begins to degrade as the document length exceeds 20 EDUs. Finally, while the RST Predictor simplifies the process, effective use of the system still benefits from an understanding of rhetorical theory.
Future research will focus on tighter integration between content planning (the "what") and discourse planning (the "how"), aiming to create AI systems capable of even more sophisticated and persuasive long-form writing.
Summary updated