Multi-View Similarity Retrieval for In-Context Learning in Aspect Sentiment Triplet Extraction
Abstract
Although large language models (LLMs) have shown strong performance across a wide range of natural language processing tasks, they still underperform fully supervised methods on aspect sentiment triplet extraction (ASTE), even in the in-context learning (ICL) setting. One challenge is that LLM predictions may deviate from task-specific annotation conventions, particularly in fine-grained structured extraction. To address this issue, we propose a Multi-View Similarity Retrieval (MVSR) framework for in-context demonstration selection, which jointly leverages semantic and syntactic information to identify demonstrations that are more structurally aligned with the target input. These structurally aligned demonstrations provide more effective in-context guidance, helping LLMs better adapt to task-specific extraction patterns and thereby improving triplet extraction accuracy. Experiments on four ASTE benchmark datasets demonstrate that our method achieves better overall performance than existing ICL baselines. In the 10-shot setting, our method outperforms the strongest existing ICL baseline by 2.27%, 2.03%, and 2.00% in F1 on 14RES, 15RES, and 16RES, respectively. Moreover, it even surpasses several supervised fine-tuning baselines. These findings demonstrate the effectiveness of MVSR for in-context demonstration selection and highlight the importance of structural information in LLM-based structured prediction.