arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.18025cs.CLcs.AI
收藏

用于方面级情感分析的大型语言模型

Large language models for aspect-based sentiment analysis

Q Agentur für Forschung GmbH(Q研究机构有限公司)

Paul F. Simmering, Paavo Huoviala

AI总结:

本文评估了GPT-4和GPT-3.5在方面级情感分析中的表现,发现微调GPT-3.5以更高推理成本取得最优F1,并分析了成本性能权衡及提示工程与微调的选择。

摘要:

大型语言模型(LLMs)提供了前所未有的文本补全能力。作为通用模型,它们可以承担广泛的角色,包括更专门化模型的角色。我们评估了GPT-4和GPT-3.5在零样本、少样本和微调设置下在方面级情感分析(ABSA)任务上的性能。微调后的GPT-3.5在SemEval-2014 Task 4的联合方面词提取和极性分类任务上取得了83.8的最新F1分数,比InstructABSA提高了5.7%。然而,这是以1000倍的模型参数量为代价的,因此增加了推理成本。我们讨论了不同模型的成本-性能权衡,并分析了它们产生的典型错误。我们的结果还表明,详细的提示在零样本和少样本设置下能提高性能,但对于微调模型则不是必需的。这一证据对于在将LLMs用于ABSA时面临提示工程与微调选择问题的从业者具有参考价值。

英文摘要:

Large language models (LLMs) offer unprecedented text completion capabilities. As general models, they can fulfill a wide range of roles, including those of more specialized models. We assess the performance of GPT-4 and GPT-3.5 in zero shot, few shot and fine-tuned settings on the aspect-based sentiment analysis (ABSA) task. Fine-tuned GPT-3.5 achieves a state-of-the-art F1 score of 83.8 on the joint aspect term extraction and polarity classification task of the SemEval-2014 Task 4, improving upon InstructABSA [@scaria_instructabsa_2023] by 5.7%. However, this comes at the price of 1000 times more model parameters and thus increased inference cost. We discuss the the cost-performance trade-offs of different models, and analyze the typical errors that they make. Our results also indicate that detailed prompts improve performance in zero-shot and few-shot settings but are not necessary for fine-tuned models. This evidence is relevant for practioners that are faced with the choice of prompt engineering versus fine-tuning when using LLMs for ABSA.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑