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

基础设施项目意见长上下文情感分析的上下文学习

In-Context Learning for Long-Context Sentiment Analysis on Infrastructure Project Opinions

The University of Texas at Arlington(德克萨斯大学阿灵顿分校)

Alireza Shamshiri, Kyeong Rok Ryu, June Young Park

AI总结:

本研究在零样本和少样本场景下评估了GPT-4o、Claude 3.5 Sonnet和Gemini 1.5 Pro在基础设施项目长上下文情感分析中的表现,发现Claude 3.5 Sonnet整体更优且擅长处理复杂情感,而GPT-4o在简单任务和少样本稳定性上更具优势。

摘要:

大型语言模型(LLMs)在各类任务中取得了显著成果。然而,它们在处理长上下文文档时仍面临挑战。本研究在零样本和少样本场景下,评估了GPT-4o、Claude 3.5 Sonnet和Gemini 1.5 Pro三款领先LLMs在处理关于基础设施项目的冗长、复杂且意见多变的文档上的表现。结果表明,GPT-4o在较简单、较短文档的零样本场景中表现优异,而Claude 3.5 Sonnet在处理更复杂、情感波动的意见时超越了GPT-4o。在少样本场景中,Claude 3.5 Sonnet整体表现更佳,而GPT-4o随着示例数量的增加展现出更高的稳定性。

英文摘要:

Large language models (LLMs) have achieved impressive results across various tasks. However, they still struggle with long-context documents. This study evaluates the performance of three leading LLMs: GPT-4o, Claude 3.5 Sonnet, and Gemini 1.5 Pro on lengthy, complex, and opinion-varying documents concerning infrastructure projects, under both zero-shot and few-shot scenarios. Our results indicate that GPT-4o excels in zero-shot scenarios for simpler, shorter documents, while Claude 3.5 Sonnet surpasses GPT-4o in handling more complex, sentiment-fluctuating opinions. In few-shot scenarios, Claude 3.5 Sonnet outperforms overall, while GPT-4o shows greater stability as the number of demonstrations increases.

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

↑