Introduction
Standard sentiment analysis typically provides a high-level overview of whether a review is positive or negative. However, Aspect-Based Sentiment Analysis (ABSA) offers a more granular view by identifying specific attributes (e.g., "battery life" or "wait time") and the sentiment associated with each.
A major hurdle in ABSA is its extreme domain dependency. A model trained on laptop reviews, focusing on "processor speed," will struggle with restaurant reviews focusing on "service quality." Traditionally, adapting to a new domain required thousands of hand-labeled examples—a process that is both expensive and slow. This paper introduces CORN (Contrastive post-training on Review Natural Language Inference), a method designed to achieve state-of-the-art ABSA performance in a zero-shot setting, requiring no human-annotated data from the target domain.
Methodology: ABSA as Inference
The core innovation of CORN is reframing ABSA tasks as Natural Language Inference (NLI). NLI involves determining if a "premise" logically entails a "hypothesis."
- Aspect Extraction (AE): The review acts as the premise. The model evaluates hypotheses like "The product has [span]," where [span] is a candidate aspect.
- Sentiment Classification (ASC): The model asks if the premise entails a sentiment-laden hypothesis such as "[Aspect] is great."
- End-to-End (E2E): The model identifies both the aspect and its polarity simultaneously by combining these logical steps.
The RNLI Dataset and Contrastive Learning
To train the model without human labels, the authors developed the RNLI dataset. Using rule-based "double propagation" and sentiment lexicons on raw Amazon reviews, they automatically generated 300,000 examples across 29 product categories. This allows the model to learn the underlying linguistic logic of reviews—for instance, that "vibrant display" implies the product "has a display" and that the sentiment is "positive."
Furthermore, the authors employed Supervised Contrastive Learning (SCL). This training technique uses a loss function to cluster examples with similar NLI labels (entailment, neutral, contradiction) in the vector space while pushing dissimilar ones apart, enhancing the model's ability to distinguish subtle sentiment nuances.
Experimental Results
The authors evaluated CORN on standard benchmarks, including the SemEval 2014 (Laptop) and SemEval 2016 (Restaurant) datasets, comparing it against strong baselines like BERT, RoBERTa, and models fine-tuned on the human-annotated MNLI dataset.
CORN demonstrated significant improvements across all tasks:
- Aspect Extraction (AE): On restaurant reviews, CORN achieved 58.0% accuracy, outperforming raw BERT by over 13 points.
- Sentiment Classification (ASC): The model reached a Macro-F1 of 70.0% (Restaurant) and 71.0% (Laptop), rivaling models trained on expensive human-annotated data.
- End-to-End (E2E): CORN showed its greatest strength here, achieving Macro-F1 scores of 37.2% and 40.3% for Restaurant and Laptop domains respectively, beating the best baselines by 4-5 points.
Insights and Future Directions
The success of CORN suggests that the logical structure of reviews—how we express possession and sentiment—is largely domain-invariant. By treating aspect extraction as a series of NLI questions rather than a sequence labeling task, the model leverages the inherent reasoning capabilities of Transformer architectures.
However, limitations remain. The current model relies on specific templates (e.g., "The product has [S]"), which may not capture aspects mentioned in a negative context (e.g., "It lacks a keyboard"). Future work will focus on diversifying these templates and refining the rule-based data generation to further bridge the gap between zero-shot and fully supervised performance.
Summary updated