BvSP: Broad-view Soft Prompting for Few-Shot Aspect Sentiment Quad Prediction

Yinhao Bai, Yalan Xie, Xiaoyi Liu, Yuhua Zhao, Zhixin Han +3 more
6/11/2024
cs.CLcs.AI

Official code: byinhao/BvSP (10 stars, last commit 2024-06-02).

Abstract

Aspect sentiment quad prediction (ASQP) aims to predict four aspect-based elements, including aspect term, opinion term, aspect category, and sentiment polarity. In practice, unseen aspects, due to distinct data distribution, impose many challenges for a trained neural model. Motivated by this, this work formulates ASQP into the few-shot scenario, which aims for fast adaptation in real applications. Therefore, we first construct a few-shot ASQP dataset (FSQP) that contains richer categories and is more balanced for the few-shot study. Moreover, recent methods extract quads through a generation paradigm, which involves converting the input sentence into a templated target sequence. However, they primarily focus on the utilization of a single template or the consideration of different template orders, thereby overlooking the correlations among various templates. To tackle this issue, we further propose a Broadview Soft Prompting (BvSP) method that aggregates multiple templates with a broader view by taking into account the correlation between the different templates. Specifically, BvSP uses the pre-trained language model to select the most relevant k templates with Jensen-Shannon divergence. BvSP further introduces soft prompts to guide the pre-trained language model using the selected templates. Then, we aggregate the results of multi-templates by voting mechanism. Empirical results demonstrate that BvSP significantly outperforms the stateof-the-art methods under four few-shot settings and other public datasets. Our code and dataset are available at https://github.com/byinhao/BvSP.

View on arXivView PDF

Code Implementations(1)

byinhao/BvSPOfficial100%

The Code of BvSP: Broad-view Soft Prompting for Few-Shot Aspect Sentiment Quad Prediction

101Shell, PythonJun 2, 20242 years ago

Similar Papers

Cite this paper

@article{bai2024bvsp,
  title  = {BvSP: Broad-view Soft Prompting for Few-Shot Aspect Sentiment Quad Prediction},
  author = {Yinhao Bai and Yalan Xie and Xiaoyi Liu and Yuhua Zhao and Zhixin Han and Mengting Hu and Hang Gao and Renhong Cheng},
  year   = {2024},
  eprint = {2406.07365},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.07365v1}
}

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/2406.07365.svg)](https://codeofpaper.com/paper/2406.07365)

Discussion