arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2405.04793cs.CLcs.AIcs.LG
收藏

零样本大语言模型引导的反事实生成:以自然语言处理模型评估为例

Zero-shot LLM-guided Counterfactual Generation: A Case Study on NLP Model Evaluation

Worcester Polytechnic Institute(伍斯特理工学院)

Amrita Bhattacharjee, Raha Moraffah, Joshua Garland, Huan Liu

AI总结:

本文研究利用大语言模型以零样本方式生成反事实示例来对黑盒NLP模型进行压力测试和解释,提出结构化生成流水线,并通过多种LLMs和下游任务实验验证其有效性。

摘要:

随着用于解决众多自然语言处理(NLP)任务的大型、复杂黑盒模型的发展和普及,对这些模型进行压力测试并提供一定程度的可解释性或可说明性的方法需求也日益增加。虽然反事实示例在这方面很有用,但反事实的自动生成是一个数据和资源密集型过程。此类方法依赖于预训练语言模型等模型,这些模型随后需要在辅助的、通常针对特定任务的数据集上进行微调,而这些数据集在实践中可能难以构建,尤其是对于新任务和新数据领域而言。因此,在本工作中,我们探索了利用大语言模型(LLMs)进行零样本反事实生成以对NLP模型进行压力测试的可能性。我们提出了一个结构化流水线来促进这种生成,并假设近期LLMs的指令遵循和文本理解能力可以被有效利用,以零样本方式生成高质量反事实,而无需任何训练或微调。通过在多种专有和开源LLMs以及NLP中的各种下游任务上进行全面实验,我们探索了LLMs作为零样本反事实生成器在评估和解释黑盒NLP模型方面的有效性。

英文摘要:

With the development and proliferation of large, complex, black-box models for solving many natural language processing (NLP) tasks, there is also an increasing necessity of methods to stress-test these models and provide some degree of interpretability or explainability. While counterfactual examples are useful in this regard, automated generation of counterfactuals is a data and resource intensive process. such methods depend on models such as pre-trained language models that are then fine-tuned on auxiliary, often task-specific datasets, that may be infeasible to build in practice, especially for new tasks and data domains. Therefore, in this work we explore the possibility of leveraging large language models (LLMs) for zero-shot counterfactual generation in order to stress-test NLP models. We propose a structured pipeline to facilitate this generation, and we hypothesize that the instruction-following and textual understanding capabilities of recent LLMs can be effectively leveraged for generating high quality counterfactuals in a zero-shot manner, without requiring any training or fine-tuning. Through comprehensive experiments on a variety of propreitary and open-source LLMs, along with various downstream tasks in NLP, we explore the efficacy of LLMs as zero-shot counterfactual generators in evaluating and explaining black-box NLP models.

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

↑