arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.01876cs.CL
收藏

通过大语言模型协商实现情感分析

Sentiment Analysis through LLM Negotiations

Zhejiang University(浙江大学);Peking University(北京大学);Bytedance(字节跳动);Nanyang Technological University(南洋理工大学)

Xiaofei Sun, Xiaoya Li, Shengyu Zhang, Shuhe Wang, Fei Wu, Jiwei Li, Tianwei Zhang, Guoyin Wang

AI总结:

针对单LLM单轮上下文学习情感分析易出错的问题,提出多LLM协商框架,通过带推理的生成器与带解释的判别器迭代达成共识,在多个基准上优于ICL基线,部分数据集超有监督基线。

摘要:

情感分析的标准范式依赖单个大语言模型(LLM),并在上下文学习(in-context learning, ICL)框架下以单轮方式做出决策。该框架存在关键缺陷:单个LLM生成的单轮输出可能无法给出完美决策,正如人类有时需要多次尝试才能把事情做对。这一点在情感分析任务中尤为突出,因为该任务需要深度推理来处理输入中的复杂语言现象(例如从句组合、反讽等)。\n为解决这一问题,本文提出了一种面向情感分析的多LLM协商框架。该框架包含一个注入推理能力的生成器(用于给出决策及相应理由),以及一个推导解释的判别器(用于评估生成器的可信度)。生成器和判别器会迭代交互直到达成共识。所提框架自然地解决了上述挑战,因为我们能够利用两个LLM的互补能力,让它们通过理由互相说服以修正错误。\n在多个情感分析基准(SST-2、Movie Review、Twitter、yelp、amazon、IMDB)上的实验证明了所提方法的有效性:它在所有基准上的表现均持续优于ICL基线,在Twitter和Movie Review数据集上的表现甚至优于有监督基线。

英文摘要:

A standard paradigm for sentiment analysis is to rely on a singular LLM and makes the decision in a single round under the framework of in-context learning. This framework suffers the key disadvantage that the single-turn output generated by a single LLM might not deliver the perfect decision, just as humans sometimes need multiple attempts to get things right. This is especially true for the task of sentiment analysis where deep reasoning is required to address the complex linguistic phenomenon (e.g., clause composition, irony, etc) in the input. To address this issue, this paper introduces a multi-LLM negotiation framework for sentiment analysis. The framework consists of a reasoning-infused generator to provide decision along with rationale, a explanation-deriving discriminator to evaluate the credibility of the generator. The generator and the discriminator iterate until a consensus is reached. The proposed framework naturally addressed the aforementioned challenge, as we are able to take the complementary abilities of two LLMs, have them use rationale to persuade each other for correction. Experiments on a wide range of sentiment analysis benchmarks (SST-2, Movie Review, Twitter, yelp, amazon, IMDB) demonstrate the effectiveness of proposed approach: it consistently yields better performances than the ICL baseline across all benchmarks, and even superior performances to supervised baselines on the Twitter and movie review datasets.

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

↑