Abstract
When natural language phrases are combined, their meaning is often more than the sum of their parts. In the context of NLP tasks such as sentiment analysis, where the meaning of a phrase is its sentiment, that still applies. Many NLP studies on sentiment analysis, however, focus on the fact that sentiment computations are largely compositional. We, instead, set out to obtain non-compositionality ratings for phrases with respect to their sentiment. Our contributions are as follows: a) a methodology for obtaining those non-compositionality ratings, b) a resource of ratings for 259 phrases – NonCompSST – along with an analysis of that resource, and c) an evaluation of computational models for sentiment analysis using this new resource.
Introduction
In Natural Language Processing (NLP), the principle of compositionality suggests that the sentiment of a complex expression is a predictable function of its constituent parts. For instance, combining a positive adjective ("delicious") with a neutral noun ("cake") typically yields a positive phrase ("delicious cake"). However, human language frequently violates this principle through idioms, sarcasm, and metaphors.
Phrases like "break a leg" or "all the excitement of eating oatmeal" demonstrate that the whole can be significantly different from the sum of its parts. While these exceptions are well-known, there has been a lack of systematic quantification of non-compositionality in sentiment analysis. This research introduces NONCOMPSST, a benchmark designed to evaluate how well modern language models handle these "surprising" sentiments.
Methodology
The researchers developed a robust protocol to quantify non-compositionality through a comparison of observed sentiment against a baseline of "expected" compositional sentiment.
The process involves four key steps:
- Selection: Phrases were extracted from the Stanford Sentiment Treebank (SST) that consisted of two distinct subphrases.
- Control Stimuli Generation: To establish a compositional baseline, "control" phrases were created by replacing one subphrase with another of the same grammatical category and sentiment label.
- Human Annotation: Sentiment ratings for both original and control phrases were gathered via human annotators on the Prolific platform.
- Metric Calculation: A non-compositionality rating was derived by measuring the distance between the observed sentiment of the original phrase and the average sentiment of its controls. High deviation indicates high non-compositionality.
The NONCOMPSST Dataset
The resulting dataset, NONCOMPSST, contains 259 target phrases with human-annotated non-compositionality ratings. To support this, 1,554 control phrases were used to establish the baseline expectations. This resource allows for a targeted evaluation of models on the "long tail" of figurative and context-dependent language.
Key Insights and Results
The analysis of NONCOMPSST revealed several critical findings regarding the nature of sentiment and model performance:
- Drivers of Non-Compositionality: Figurative language—including metaphor, hyperbole, and irony—is the primary cause of sentiment deviation. For example, "a nearly terminal case of the cutes" is perceived as highly positive despite the negative literal meaning of "terminal."
- The Role of Common Sense: Many non-compositional instances require world knowledge. Understanding the negative sentiment in "all the excitement of eating oatmeal" requires knowing that oatmeal is stereotypically viewed as bland.
- Model Performance Gap: State-of-the-art models struggle with these nuances. RoBERTa-Large achieved only a 0.42 Pearson correlation with human non-compositionality ratings. Furthermore, when tested on the 67 most non-compositional phrases, RoBERTa-Base’s F1 score dropped from 0.40 to 0.32.
- Literal Bias: Qualitative analysis shows that models often default to literal interpretations. In the phrase "the franchise's best years are long past," models are frequently swayed by the positive word "best," whereas humans correctly identify the overall negative sentiment.
Conclusion and Future Work
Current benchmarks may overestimate model performance by focusing on standard compositional language. This study highlights a significant gap in "true" linguistic understanding. Future sentiment analysis systems require multi-faceted evaluation protocols that specifically target non-compositional exceptions. While NONCOMPSST serves as a diagnostic tool, future work could expand the dataset size and explore non-compositionality in other semantic dimensions like logical entailment.
Summary updated