ZZU-NLP at SIGHAN-2024 dimABSA Task: Aspect-Based Sentiment Analysis with Coarse-to-Fine In-context Learning
Senbin Zhu, Hanjie Zhao, Xingren Wang, Shanhong Liu, Yuxiang Jia, Hongying Zan
TL;DR
DimABSA requires fine-grained valence-arousal intensity predictions for restaurant aspects. The authors introduce a two-stage coarse-to-fine in-context learning (CFICL) framework based on Baichuan2-7B, where Stage 1 uses fixed in-context examples to form initial predictions and Stage 2 refines these via similarity-based retrieval of Opinion-field–aware training examples encoded with BERT, coupled with polarity filtering. This approach leverages both sentence-level context and word-level score cues to boost accuracy and reduce polarity bias, achieving notable improvements in VA quality and quadruple/triple extraction on the SIGHAN 2024 DimABSA task. The work demonstrates a practical, data-efficient pathway for fine-grained sentiment analysis, while highlighting limitations such as compute costs and dependency on effective similarity measures for the Opinion field.
Abstract
The DimABSA task requires fine-grained sentiment intensity prediction for restaurant reviews, including scores for Valence and Arousal dimensions for each Aspect Term. In this study, we propose a Coarse-to-Fine In-context Learning(CFICL) method based on the Baichuan2-7B model for the DimABSA task in the SIGHAN 2024 workshop. Our method improves prediction accuracy through a two-stage optimization process. In the first stage, we use fixed in-context examples and prompt templates to enhance the model's sentiment recognition capability and provide initial predictions for the test data. In the second stage, we encode the Opinion field using BERT and select the most similar training data as new in-context examples based on similarity. These examples include the Opinion field and its scores, as well as related opinion words and their average scores. By filtering for sentiment polarity, we ensure that the examples are consistent with the test data. Our method significantly improves prediction accuracy and consistency by effectively utilizing training data and optimizing in-context examples, as validated by experimental results.
