Generative Aspect-Based Sentiment Analysis with Contrastive Learning and Expressive Structure

Joseph J. Peper, Lu Wang
11/14/2022
cs.CL
contrastive-ssl

Official code: jpeper/GEN_SCL_NAT (22 stars, Python, last commit 2024-03-28).

Abstract

Generative models have demonstrated impressive results on Aspect-based Sentiment Analysis (ABSA) tasks, particularly for the emerging task of extracting Aspect-Category-Opinion-Sentiment (ACOS) quadruples. However, these models struggle with implicit sentiment expressions, which are commonly observed in opinionated content such as online reviews.

Show full abstract

In this work, we introduce GEN-SCL-NAT, which consists of two techniques for improved structured generation for ACOS quadruple extraction. First, we propose GEN-SCL, a supervised contrastive learning objective that aids quadruple prediction by encouraging the model to produce input representations that are discriminable across key input attributes, such as sentiment polarity and the existence of implicit opinions and aspects. Second, we introduce GEN-NAT, a new structured generation format that better adapts autoregressive encoder-decoder models to extract quadruples in a generative fashion. Experimental results show that GEN-SCL-NAT achieves top performance across three ACOS datasets, averaging 1.48% F1 improvement, with a maximum 1.73% increase on the LAPTOP-L1 dataset. Additionally, we see significant gains on implicit aspect and opinion splits that have been shown as challenging for existing ACOS approaches.

View on arXivView PDF

Code Implementations(1)

jpeper/GEN_SCL_NATOfficial100%
229Python, ShellOct 21, 20222 years ago

Similar Papers

Cite this paper

@article{peper2022generative,
  title  = {Generative Aspect-Based Sentiment Analysis with Contrastive Learning and Expressive Structure},
  author = {Joseph J. Peper and Lu Wang},
  year   = {2022},
  eprint = {2211.07743},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.07743}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.07743.svg)](https://codeofpaper.com/paper/2211.07743)

Discussion