TL;DR
While standard alignment techniques like RLHF teach Large Language Models (LLMs) what humans prefer to read, they fail to teach them how to structure long-form text. This paper introduces Structural Alignment, a novel framework that uses reinforcement learning to guide LLMs into generating text with human-like discourse organization. By optimizing for both surface-level text structures and deep rhetorical graphs, the method significantly improves the coherence and quality of long essays and summaries.
What Problem Does This Paper Address?
Generating long, coherent text (over 1,000 tokens) remains a major hurdle for LLMs. While modern models excel at sentence-level fluency, they often lack hierarchical planning, leading to abrupt topic shifts, repetitive arguments, or a breakdown in logical flow over extended passages.
Existing alignment frameworks, such as Reinforcement Learning from Human Feedback (RLHF), focus primarily on safety, helpfulness, and surface-level user preferences. They overlook the "rhetorical scaffolding"—such as problem-solution, cause-effect, or comparison-contrast structures—that human writers naturally use to maintain global consistency. The authors address this gap by explicitly incorporating linguistically grounded document structures into the LLM alignment process.
Methods
The authors implement Structural Alignment within a Proximal Policy Optimization (PPO) framework under a Reinforcement Learning from AI Feedback (RLAIF) paradigm. They explore two distinct, complementary reward modeling approaches:
- Surface-Level Text Scoring ($SA_S$): An off-the-shelf LLM (Qwen2-72B-Instruct) acts as an evaluator, scoring generated text from 1 to 5 across three dimensions: Logical Flow and Structure, Hierarchical Organization, and Balance and Emphasis.
- Graph-Level Discourse Scoring ($SA_G$): This approach uses Rhetorical Structure Theory (RST) to parse text into hierarchical discourse trees, which are then converted into recursive hypergraphs. From these, the system extracts "discourse motifs" (recurring structural patterns). A Longformer-based authorship classifier evaluates these motifs to determine how closely the text's global organization mirrors human writing, outputting a soft binary reward.
To combat the training instability typical of sparse rewards in long-form generation, the authors introduce a Discourse-Aware Dense Reward Scheme. Instead of applying a single reward at the very end of an essay, tokens that contribute to human-distinctive discourse motifs receive fine-grained, localized token-level rewards. They also apply a length-penalty normalization to prevent the model from short-changing the requested token count.
Datasets
- Essay Prompt Dataset: A newly compiled dataset of 26,013 training and 4,096 testing samples. It integrates essay prompts from English proficiency exams, the PERSUADE 2.0 persuasion corpus, and instructions derived from the Change My View (CMV) subreddit.
- Hewlett Foundation Automated Essay Scoring: Used to validate that the LLM-based surface-level evaluator correlates well with expert human graders.
- GOVREPORT: A large-scale dataset of ~19.5K long US government reports and expert summaries, used to evaluate the model's downstream performance on long-document summarization.
Key Insights and Ideas
- Surface and Graph Features are Complementary: Interestingly, the authors found little to no correlation between surface-level text scores and graph-level discourse logits. Surface-level alignment forces the explicit use of discourse connectives (e.g., however, therefore) and headings, while graph-level alignment fosters deeper rhetorical sophistication and global coherence.
- Standard RLHF Degrades Discourse Structure: Tracking the frequency of human-distinctive discourse motifs during training revealed a troubling trend: standard RLHF training actually causes a steady decline in human-like structural patterns over time. Conversely, graph-level structural alignment successfully reinforces these patterns.
Key Results
The authors evaluated their approach using a Qwen2-1.5B-Instruct base model.
- Essay Quality (GPT-4o Pairwise Evaluation): Structurally aligned models consistently outperformed both the unaligned base model and the standard RLHF baseline ($RLHF_{OA}$). The graph-aligned model ($SA_G$) achieved the highest win rates, and a two-step alignment combining both methods ($SA_{S\rightarrowG}$) yielded marginal additional gains.
- Long-Document Summarization (GOVREPORT): On downstream summarization tasks, structural alignment led to substantial improvements in ROUGE scores. The graph-based model ($Base+SA_G$) achieved the highest performance:
| Model | R-1 | R-2 | R-L |
|---|---|---|---|
| Base | 53.21 | 20.13 | 50.39 |
| Base + $RLHF_{OA}$ | 53.25 | 20.25 | 50.47 |
| Base + $SA_S$ | 55.45 | 21.43 | 52.30 |
| Base + $SA_G$ | 55.86 | 21.72 | 52.81 |
Limitations and Future Work
The primary bottleneck of the graph-level approach is the context window of the external RST discourse parser, which required the authors to segment long texts into paragraph-level chunks (400–512 tokens) before extracting motifs. Additionally, due to compute constraints, the PPO training was limited to a 1.5B parameter policy model.
Future directions include scaling structural alignment to larger models, expanding to more diverse datasets, and exploring other linguistic frameworks beyond RST to refine the reward signals.
Summary updated