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

用于生成和评估反事实的大型语言模型:一项全面研究

LLMs for Generating and Evaluating Counterfactuals: A Comprehensive Study

University of Marburg(马尔堡大学);University of Mannheim(曼海姆大学)

Van Bach Nguyen, Paul Youssef, Christin Seifert, Jörg Schlötterer

AI总结:

本研究全面评估了LLMs在两个NLU任务中生成和评估反事实的能力,发现LLMs虽能生成流畅的CFs但难以保持最小改动,且在评估时存在偏向同意给定标签的问题,而GPT4表现更鲁棒。

摘要:

随着NLP模型变得更加复杂,理解其决策变得愈发关键。反事实(CFs)通过对输入进行最小改动来翻转模型的预测,为解释这些模型提供了一种途径。尽管大型语言模型(LLMs)在NLP任务中表现出色,但其在生成高质量CFs方面的有效性仍不确定。本研究通过调查LLMs在两个自然语言理解(NLU)任务中生成CFs的效果来填补这一空白。我们对几种常见的LLMs进行了全面比较,并评估了它们生成的CFs,既评估了内在指标,也评估了这些CFs在数据增强方面的影响。此外,我们分析了人类与LLM生成的CFs之间的差异,为未来的研究方向提供了见解。结果表明,LLMs能生成流畅的CFs,但难以保持所引起的变化最小化。为情感分析(SA)生成CFs的难度低于自然语言推理(NLI),在NLI中,LLMs在生成能翻转原始标签的CFs方面表现出弱点。这也反映在数据增强性能上,我们观察到使用人类CFs与LLMs CFs进行增强之间存在巨大差距。此外,我们在错误标记数据设置中评估了LLMs评估CFs的能力,并表明它们强烈偏向于同意所提供的标签。GPT4对这种偏见更具鲁棒性,且其得分与自动指标高度相关。我们的发现揭示了若干局限性,并指出了未来潜在的研究方向。

英文摘要:

As NLP models become more complex, understanding their decisions becomes more crucial. Counterfactuals (CFs), where minimal changes to inputs flip a model's prediction, offer a way to explain these models. While Large Language Models (LLMs) have shown remarkable performance in NLP tasks, their efficacy in generating high-quality CFs remains uncertain. This work fills this gap by investigating how well LLMs generate CFs for two NLU tasks. We conduct a comprehensive comparison of several common LLMs, and evaluate their CFs, assessing both intrinsic metrics, and the impact of these CFs on data augmentation. Moreover, we analyze differences between human and LLM-generated CFs, providing insights for future research directions. Our results show that LLMs generate fluent CFs, but struggle to keep the induced changes minimal. Generating CFs for Sentiment Analysis (SA) is less challenging than NLI where LLMs show weaknesses in generating CFs that flip the original label. This also reflects on the data augmentation performance, where we observe a large gap between augmenting with human and LLMs CFs. Furthermore, we evaluate LLMs' ability to assess CFs in a mislabelled data setting, and show that they have a strong bias towards agreeing with the provided labels. GPT4 is more robust against this bias and its scores correlate well with automatic metrics. Our findings reveal several limitations and point to potential future work directions.

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

↑