arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.01569cs.CLcs.AIcs.LG
收藏

使用对比集评估大型语言模型:一种实验方法

Evaluating Large Language Models Using Contrast Sets: An Experimental Approach

News Corporation(新闻集团)

Manish Sanwal

AI总结:

本文面向 SNLI 提出基于同义词自动替换的对比集构建方法,发现 ELECTRA-small 准确率下降 17%,并通过对比增强微调将其恢复至 85.5%。

摘要:

在自然语言推理(NLI)领域,尤其是在涉及多个输入文本分类的任务中,交叉熵损失指标被广泛用作误差衡量标准。然而,该指标在有效评估模型理解语言蕴含关系的能力方面存在不足。在本研究中,我们提出了一种为 Stanford Natural Language Inference(SNLI)数据集生成对比集的创新技术。我们的策略是将动词、副词和形容词自动替换为其同义词,以保持句子的原意。该方法旨在评估模型的性能究竟是基于真正的语言理解,还是仅仅基于模式识别。我们使用 ELECTRA-small 模型进行了分析。该模型在传统 SNLI 数据集上取得了 89.9% 的准确率,但在我们的对比集上准确率降至 72.5%,表明性能显著下降了 17%。这一结果促使我们对模型的学习行为进行详细检查。随后,我们通过使用专门为 SNLI 设计的对比增强训练数据集对模型进行微调,提升了模型的鲁棒性,使其在对比集上的准确率提高到 85.5%。我们的研究结果强调了在 NLI 任务的数据集中纳入多样化语言表达的重要性。我们希望本研究能够推动构建更具包容性的数据集,从而促进更精密、更有效的 NLI 模型的发展。

英文摘要:

In the domain of Natural Language Inference (NLI), especially in tasks involving the classification of multiple input texts, the Cross-Entropy Loss metric is widely employed as a standard for error measurement. However, this metric falls short in effectively evaluating a model's capacity to understand language entailments. In this study, we introduce an innovative technique for generating a contrast set for the Stanford Natural Language Inference (SNLI) dataset. Our strategy involves the automated substitution of verbs, adverbs, and adjectives with their synonyms to preserve the original meaning of sentences. This method aims to assess whether a model's performance is based on genuine language comprehension or simply on pattern recognition. We conducted our analysis using the ELECTRA-small model. The model achieved an accuracy of 89.9% on the conventional SNLI dataset but showed a reduced accuracy of 72.5% on our contrast set, indicating a substantial 17% decline. This outcome led us to conduct a detailed examination of the model's learning behaviors. Following this, we improved the model's resilience by fine-tuning it with a contrast-enhanced training dataset specifically designed for SNLI, which increased its accuracy to 85.5% on the contrast sets. Our findings highlight the importance of incorporating diverse linguistic expressions into datasets for NLI tasks. We hope that our research will encourage the creation of more inclusive datasets, thereby contributing to the development of NLI models that are both more sophisticated and effective.

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

↑