Rhetorical Recursive Neural Network (R2N2)
- R2N2 is a deep neural architecture that integrates discourse structure via Rhetorical Structure Theory to capture hierarchical relationships in text.
- It transforms RST trees into dependency-style representations and uses BiLSTM-derived EDU embeddings with relation-specific transformations and unnormalized attention.
- Empirical evaluations reveal that R2N2 outperforms traditional models in tasks like sentiment analysis and framing classification, highlighting the importance of high-quality discourse parsing.
The Rhetorical Recursive Neural Network (R2N2) is a deep architecture developed to leverage discourse structure, as defined by Rhetorical Structure Theory (RST), for tasks such as text classification and sentiment analysis. By explicitly incorporating syntactic and rhetorical dependencies among elementary discourse units (EDUs), R2N2 captures the information flow and relational salience dictated by RST trees, providing a compositional semantic representation that is highly sensitive to a document’s hierarchical organization and discourse function (Ji et al., 2017).
1. RST Discourse Parsing and Structure Representation
R2N2 operates on documents parsed by an RST parser. In the typical pipeline, a document is segmented into EDUs (minimal discourse segments, e.g., clauses), which are organized into a constituency-style RST tree. Each internal node represents a rhetorical relation such as “Contrast” or “Elaboration,” with a nucleus-satellite orientation marking argumentative centrality.
For efficient neural processing, the RST constituency tree is deterministically converted to a dependency-style tree: each EDU becomes a node, while arcs encode both the direction (satellite to nucleus) and the associated discourse relation. The root of this dependency tree aligns with the central nucleus of the document (Ji et al., 2017).
2. EDU Embeddings and Initialization
At the leaf level, each EDU is encoded by a BiLSTM over its word embeddings. The forward and backward hidden states are concatenated to form an initial university-level vector embedding: This embedding is subsequently passed through a activation to stabilize the encoding and form the base case for recursive composition.
3. Recursive Composition and Relation-Specific Modeling
Recursive composition is performed bottom-up on the RST dependency tree. The vector for node is computed as: where is a learned, relation-specific transformation matrix for the rhetorical relation on arc . This mechanism explicitly encodes different rhetorical relations by modulating how child contributions flow up the tree via specific affine transformations.
The scalar attention gate determines the weight for each child. This is computed as: where denotes the sigmoid function, and 0 is a global attention matrix. Notably, these attention values are unnormalized, reflecting an RST-theoretic bias that multiple satellites may simultaneously contribute maximally (Ji et al., 2017).
4. Prediction Layer and Classification
After recursive aggregation, the root node’s embedding 1 provides a document-level representation conditioned on both content and discourse structure. For 2-class classification (e.g., multi-way sentiment, framing), this vector is fed to a softmax classifier: 3 Here, 4 and 5 are classifier weights. The prediction 6 yields the inferred class label.
5. Training Procedures and Hyperparameters
The model is trained via cross-entropy loss between the predicted distribution 7 and the gold label 8. Optimization may use stochastic gradient descent or Adam, with hyperparameters such as learning rate and dropout rate (9 applied to both input and hidden layers) selected per corpus by held-out validation. Embedding and hidden sizes are chosen from 0. Word embeddings are either pre-trained (e.g., from GloVe) or initialized randomly.
Gradient clipping (norm capped at 1) is applied for stability. Dropout regularization is enforced throughout the architecture to mitigate overfitting, particularly important for neural models over structured input (Ji et al., 2017).
6. Empirical Performance and Ablation Studies
Empirical evaluation across five datasets—Yelp (5-way sentiment), Media Frames (15-way framing), Congressional Debates (2-way), Movie Reviews (2-way), and Congressional Bills (2-way survival)—demonstrates that the full R2N2 model consistently outperforms or matches state-of-the-art baselines in four out of five settings. Results are summarized below:
| Task | Prior Best (model) | R2N2 FULL |
|---|---|---|
| Yelp (5-way) | 71.0% (HierAtt) | 71.3% |
| Frames (15-way) | 56.8% (LR+ngrams) | 58.4% |
| Debates (2-way) | 74.0% (Struct-Reg) | 75.7% |
| Movies (2-way) | 82.9% (hand-wtg) | 83.1% |
| Bills (2-way) | 88.5% (Struct-Reg) | 78.4% |
Notably, R2N2 underperforms on legislative bills, likely due to RST parser mismatch with the document domain, establishing the importance of high-quality discourse parsing (Ji et al., 2017).
Ablation studies confirm that unnormalized attention induces superior performance relative to standard softmax normalization across siblings (degradation from 71.8% to 70.3% on Yelp when switching to softmax), supporting the non-competitive interpretation of RST satellite roles. Additional analyses reveal that parsing accuracy correlates linearly with model accuracy, suggesting advances in discourse parsing would directly translate to improved categorization (Ji et al., 2017).
7. Connections, Design Motivations, and Applications
By constructing the RNN over an RST-derived dependency tree, R2N2 inherits an inductive bias toward interpretative centrality, emphasizing nucleus EDUs. Simultaneously, it enables end-to-end, task-driven learning via relation-specific composition and learnable attention, subsuming both flat and hand-weighted discourse models. This design is particularly effective in tasks where the rhetorical salience and hierarchical structure of document components directly influence classification outcomes, such as opinion mining, news framing, and genre-specific text classification (Ji et al., 2017).
Visualizations of model-inferred attention weights demonstrate interpretability: R2N2 typically highlights the most sentiment-dense EDUs, but performance may degrade where parser errors misrepresent discourse structure. This suggests R2N2’s explanatory power is tied closely to upstream parsing fidelity, a key consideration in practical deployments.
In summary, R2N2 integrates RST argument structure, relation-type modeling, and neural composition into a unified architecture for discourse-aware text categorization, facilitating both improved predictive performance and interpretability through linguistically grounded modeling.