An Instruction Tuning-Based Contrastive Learning Framework for Aspect Sentiment Quad Prediction with Implicit Aspects and Opinions

Hao Zhang, Yu-N Cheah, Congqing He, Feifan YiEMNLP 2024

Abstract

Aspect Sentiment Quad Prediction (ASQP) is a complex task in sentiment analysis requiring the simultaneous extraction of aspect terms, categories, opinion terms, and sentiment polarities. This paper introduces ITSCL, a framework that integrates instruction tuning with multi-dimensional supervised contrastive learning to enhance the detection of implicit aspects and opinions. By leveraging T5-large and specialized latent representation clustering, ITSCL achieves state-of-the-art performance on the ACOS benchmark.

Introduction

Aspect-Based Sentiment Analysis (ABSA) has transitioned from simple sentiment classification to the more granular Aspect Sentiment Quad Prediction (ASQP). A complete quad consists of:

  • Aspect (A): The specific feature (e.g., "burger").
  • Category (C): The general class (e.g., "food quality").
  • Opinion (O): The descriptive term (e.g., "tasty").
  • Sentiment (S): The polarity (e.g., "positive").

A significant challenge in ASQP is handling implicit components—cases where the aspect or opinion is not explicitly stated in the text. For instance, in "It costs an arm and a leg," both the aspect (price) and the opinion (expensive) are implicit. Traditional models often fail to capture these nuances, necessitating more sophisticated reasoning frameworks that can bridge the gap between pre-trained knowledge and contextual inference.

Methodology: The ITSCL Framework

The proposed ITSCL (Instruction Tuning and Supervised Contrastive Learning) framework employs a dual strategy to enhance the generative capabilities of language models for quad extraction.

The ITSCL framework architecture combining manual prompts, instruction tuning, and contrastive learning layers.

Unified Instruction Prompt Tuning

Instead of standard fine-tuning, ITSCL utilizes Instruction Tuning (IT). The model is provided with a manual prompt containing a few-shot example and a specific task instruction: "What are the aspect terms, opinion terms, categories and sentiments?" This approach "primes" the T5 model (base or large) to utilize its internal knowledge for generative quad extraction more effectively than simple input-output mapping. Additionally, the authors introduced a "New Category Label" mapping, converting machine-readable tags into human-readable strings (e.g., "laptop functionality") to improve model comprehension.

Multi-dimensional Supervised Contrastive Learning (SCL)

To improve the discriminative power of the model, four fully connected layers are added to the encoder's output. These layers generate specific representations for Sentiment, Aspect, Opinion, and the combined Aspect&Opinion. The SCL objective encourages the model to cluster similar labels in the latent space while maximizing the distance between dissimilar ones. This spatial organization in the latent space is what allows the model to identify implicit quads more accurately.

Experimental Results

The framework was evaluated on the ACOS dataset, which includes annotated implicit components for the Restaurant (2,284 sentences) and Laptop (4,076 sentences) domains.

Performance comparison of ITSCL against baseline models and ablation study results.

State-of-the-Art Performance

ITSCL (T5-large) established new benchmarks on the ACOS dataset. On the Restaurant domain, it achieved an F1 score of 64.86, significantly outperforming previous top models like GEN-SCL-NAT (62.62). The use of T5-large proved crucial, suggesting that the "knowledge density" required for implicit reasoning benefits significantly from increased parameter counts.

Handling Implicit Components

The model demonstrated particular strength in the most difficult sub-tasks. For the Implicit Aspect & Implicit Opinion (IAIO) category, ITSCL achieved an F1 of 52.2 on the Restaurant dataset, a notable lead over the competition. Ablation studies confirmed the necessity of each component; removing the SCL layers (Sentiment, Aspect, or Opinion representations) led to a consistent drop in F1 scores, proving that contrastive clustering provides essential structural information beyond simple text generation.

Conclusion

The ITSCL framework demonstrates that combining instruction tuning with multi-dimensional contrastive learning significantly enhances ASQP performance, particularly for implicit aspects and opinions. By organizing latent representations into distinct clusters and providing clear task instructions, the model effectively leverages the power of large pre-trained language models for complex sentiment reasoning. Future work will explore scaling to even larger decoder-only models and addressing the challenges of sentences with multiple conflicting quadruples.

Summary updated

BibTeX
@inproceedings{zhang2024instruction,
  author = {Hao Zhang and Yu-N Cheah and Congqing He and Feifan Yi},
  title = {{An Instruction Tuning-Based Contrastive Learning Framework for Aspect Sentiment Quad Prediction with Implicit Aspects and Opinions}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.453},
}
Figure