From Sentiment Annotations to Sentiment Prediction through Discourse Augmentation

Patrick Huber, Giuseppe Carenini

TL;DR

This paper introduces a "sentiment-to-sentiment" framework that uses automatically generated discourse structures to improve sentiment analysis, particularly for long, complex documents. By training a discourse parser on a massive "silver-standard" treebank (MEGA-DT) derived from sentiment labels, the authors show that structural information significantly boosts performance on lengthy texts where simple sequential models often fail.

What Problem Does This Paper Address?

Traditional sentiment analysis models often treat text as a simple sequence of words or sentences. While effective for short snippets, this approach struggles with long documents where sentiment is nuanced. For example, a review might say, "The food was amazing, but the service was so bad it ruined the night." A simple model might get confused by the conflicting adjectives.

To solve this, researchers look to Rhetorical Structure Theory (RST), which breaks text into "Elementary Discourse Units" (EDUs) and organizes them into a tree. In these trees, some units are "Nuclei" (the main point) and others are "Satellites" (supporting info). The challenge is that high-quality, human-annotated discourse trees are scarce and usually limited to the news domain. This paper addresses the lack of large-scale, domain-specific discourse data for sentiment tasks.

Figure 1: Sentiment annotated discourse trees for non-trivial documents containing 13 (left) and 72 (right) clause-like components with positive and negative constituents. Gold-label sentiment is negative (left) and neutral (right). Dashed/Thin lines indicate supplementary information, solid/thick lines indicate primary importance. Full text for left example is: [I’ve been a member for a month now,]1, [and I guess]2, [I ’m able to get my workout done.]3, [I do find myself annoyed]4, [how cramped it is at the weights.]5, [The equipment is older,]6, [but it suffices.]7, [I worked out at another studio on 3rd]8, [and it was amazing!]9, [It was so clean, nice, and new -]10, [TV ’s on every cardio machine.]11, [When i came back to this location,]12, [I felt bad.]13 Due to space limitations a larger version as well as the corresponding full text for the right example is shown in Appendix A.

Methods

The authors propose a three-phase framework:

  1. Discourse Augmentation: They use a Multiple-Instance Learning (MIL) model to predict sentiment at the EDU level. Then, they use a CKY-style bottom-up approach to find the tree structure that best aggregates these EDU sentiments to match the overall document label. This creates the MEGA-DT treebank.
  2. Sentiment Learning: They train a discourse parser on MEGA-DT. This parser is then used to generate trees for a sentiment dataset. These trees feed into a new architecture: Discourse Augmented HAN (DAH).
  3. DAH Architecture: DAH builds on the Hierarchical Attention Network (HAN). It uses standard LSTMs for low-level word and EDU encoding but replaces the top-level document aggregation with a TreeLSTM guided by the predicted discourse tree. They also add a non-competitive attention mechanism to the TreeLSTM to help the model focus on the most important branches.
Figure 2: Our proposed sentiment analysis framework, containing, three phases of training/inference to integrate discourse parsing and sentiment analysis.

Datasets

  • Yelp’13: The primary sentiment dataset, containing ~250,000 customer reviews with 5-point ratings.
  • RST-DT: A "gold-standard" human-annotated treebank of 385 Wall Street Journal articles. Used as a baseline for discourse parsing.
  • MEGA-DT: The authors' "silver-standard" treebank, automatically generated from Yelp reviews. It contains roughly 250,000 documents, providing the scale needed for deep learning.

Key Insights and Ideas

  • Sentiment-to-Sentiment Loop: The most novel idea is using sentiment labels to infer discourse structure, and then using that structure to predict sentiment. It creates a task-specific structural bias that general-purpose parsers lack.
  • Silver-Standard Beats Gold-Standard: A parser trained on a massive amount of "noisy" sentiment-derived trees (MEGA-DT) outperformed a parser trained on a small set of perfect, human-annotated news trees (RST-DT) when applied to sentiment analysis.
  • Discourse is for the Long Haul: Structural information is a "nice-to-have" for short reviews but becomes critical as document length increases. The model learns how to weigh the "buts" and "howevers" in a 1,000-word rant.
Figure 3: Topology of our hybrid approach using sequential HAN components (blue) in combination with an attention-extended discourse-inspired TreeLSTM (green) aggregation on the dependency discourse tree. Inputs and outputs are red.

Key Results

  • Overall Performance: On the Yelp’13 dataset, the DAH model achieved an accuracy of 66.07%, which is statistically equivalent to the strong HAN baseline (66.20%).
  • Long Document Superiority: The real win appears in long documents (>632 words). As shown in the performance bins, the DAH model maintains much higher accuracy and F1-scores on long texts compared to the sequential HAN, which drops off sharply.
  • Ensemble Success: By creating an ensemble that chooses between HAN (for short texts) and DAH (for long texts) based on a simple length threshold, the authors achieved a new best accuracy of 66.27%, significantly outperforming individual models.
Accuracy and F1-score across different document lengths.

Limitations and Future Work

  • Computational Complexity: The CKY algorithm used to generate trees has high spatial complexity, limiting its use on very long documents without the authors' beam-search optimizations.
  • Relation Labels: This work focuses on tree structure and nuclearity (importance) but ignores the specific types of rhetorical relations (e.g., Contrast, Elaboration), which could provide even more signal.
  • Transformer Integration: The authors noted that tree-based Transformers are an emerging area they haven't yet integrated, which could be a potent next step given the current dominance of Transformer architectures in NLP.

Summary updated

BibTeX
@inproceedings{huber2020from,
  author = {Patrick Huber and Giuseppe Carenini},
  title = {{From Sentiment Annotations to Sentiment Prediction through Discourse Augmentation}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2020},
}
Figure