InstructABSA: Instruction Learning for Aspect Based Sentiment Analysis

Kevin Scaria, Himanshu Gupta, Siddharth Goyal, Saurabh Arjun Sawant, Swaroop Mishra, Chitta Baral

Abstract

InstructABSA is a high-performance instruction-learning framework designed for Aspect-Based Sentiment Analysis (ABSA). By fine-tuning a 200M-parameter Tk-Instruct model with task definitions and a balanced mix of positive, negative, and neutral exemplars, this approach outperforms state-of-the-art models significantly larger in size. This work demonstrates that specialized instruction tuning allows smaller models to excel in granular sentiment analysis tasks, achieving state-of-the-art results across multiple benchmarks.

Introduction

Traditional sentiment analysis often operates at a document or sentence level, providing a broad overview of sentiment. However, real-world reviews are frequently nuanced. Aspect-Based Sentiment Analysis (ABSA) addresses this by identifying specific entities (aspects) and the distinct sentiments associated with them. For example, in the sentence "The sushi was great, but it was pricey," the aspect "sushi" receives a positive sentiment, while the price (referred to as "it") receives a negative one.

Example of Aspect-Based Sentiment Analysis (ABSA) identifying aspects, opinions, and sentiment polarities.

The complexity of ABSA arises from its multiple subtasks, including aspect term extraction, opinion word identification, and sentiment polarity mapping. Previous solutions typically required massive Large Language Models (LLMs) or intricate, task-specific architectures. InstructABSA explores whether instruction tuning—providing models with explicit task "recipes"—can enable smaller, more efficient models to dominate these benchmarks.

Methodology

The researchers utilized Tk-Instruct, a T5-based model pre-trained on a wide variety of NLP instructions. They further fine-tuned this model for six distinct ABSA subtasks, ranging from simple term extraction to complex quadruplet extraction.

Overview of ABSA subtasks, including inputs and expected outputs for extraction and classification.

The core innovation lies in the prompting strategy. Rather than simple task prompts, the model is provided with:

  1. Task Definition: A clear explanation of the required output format.
  2. Exemplars: A balanced set of examples (two positive, two negative, and two neutral) for each training sample.

Two variants were evaluated: InstructABSA-1 (Definition + 2 Positive examples) and InstructABSA-2 (Definition + 2 Positive + 2 Negative + 2 Neutral examples) to investigate the impact of "negative constraints" on model learning.

Experimental Setup

The framework was evaluated on several gold-standard ABSA benchmarks:

  • SemEval 2014, 2015, and 2016: Covering "Laptops" and "Restaurants" domains.
  • Hotel15: Utilized for testing cross-domain generalization.
  • AOST Dataset: A specialized dataset for triplet extraction.

Results and Discussion

InstructABSA achieved significant performance gains across multiple categories. Notably, for Aspect Term Extraction (ATE), it reached F1-scores of 92.3 on Lapt14 and 92.76 on Rest14, surpassing previous SOTA by up to 5.69 points. In Sentiment Classification (ATSC), it achieved 84.50 accuracy on Rest15, a 9.59 point improvement over prior benchmarks.

Key Insights

  • Parameter Efficiency: A 200M parameter model, when properly instructed, can outperform 1.5B parameter models like GPT-2 Medium. This suggests that training methodology can be more critical than raw parameter count for specialized tasks.
  • The Power of Negative Constraints: Including negative and neutral examples (InstructABSA-2) generally improved performance, helping the model understand task boundaries and what not to extract.
  • Instruction Sensitivity: Introducing "delusive" examples (incorrect mappings) caused a ~10% performance drop, confirming the model's reliance on the provided instructions rather than simple memorization.
  • Sample Efficiency: The model maintained competitive performance using only 50% of training data, highlighting its utility in low-resource domains.

Conclusion

InstructABSA demonstrates the efficacy of instruction tuning for complex, granular NLP tasks. While the model showed strong generalization across domains, it faced challenges with highly complex "quadruplet" extraction tasks (ACOSQE), suggesting a potential complexity threshold for smaller models. Future work will explore multilingual datasets and even more compact instruction-tuned architectures.

Summary updated

BibTeX
@inproceedings{scaria2024instructabsa,
  author = {Kevin Scaria and Himanshu Gupta and Siddharth Goyal and Saurabh Arjun Sawant and Swaroop Mishra and Chitta Baral},
  title = {{InstructABSA: Instruction Learning for Aspect Based Sentiment Analysis}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.naacl-short.63},
}
Figure