用语言层面的细微变化测试模型鲁棒性,发现不同任务影响差异大。
FLUKE: A Linguistically-Driven and Task-Agnostic Framework for Robustness Evaluation
- 通过可控语言变异生成测试数据,结合大模型与人工验证。
- 推理类大模型在某些任务上比基础模型更脆弱,仅表层修改能随规模提升鲁棒性。
- 自然流畅的语法风格变化比拼写错误更易导致模型失效,尤其否定句最敏感。
我们提出FLUKE(面向语言驱动与任务无关鲁棒性评估的框架),通过系统化地对测试数据进行语言层级的微小变化来评估模型鲁棒性。该框架在拼写、方言和风格等语言层次引入可控变异,并利用大语言模型(LLMs)生成修改内容,辅以人工验证。我们在六个不同的NLP任务(四个分类任务和两个生成任务)上评估了微调模型和大语言模型,发现:(1) 语言变化的影响高度依赖任务,某些测试对特定任务至关重要,而对其他任务则无影响;(2) 大语言模型仍对某些语言变化表现出显著脆弱性,其中推理类模型在部分任务上的鲁棒性甚至低于基础模型,且仅在表层修改上,规模扩大才能提升鲁棒性;(3) 模型整体对自然流畅的语法或风格变化(尤其是否定句)更脆弱,远超拼写错误类测试;(4) 模型在生成中使用某种语言特征的能力,与其在下游任务中对该特征的鲁棒性无相关性。这些发现强调了系统性鲁棒性测试对于理解模型行为的重要性。
原文摘要 · Abstract (English)
We present FLUKE (Framework for LingUistically-driven and tasK-agnostic robustness Evaluation), a framework for assessing model robustness through systematic minimal variations of test data. FLUKE introduces controlled variations across linguistic levels -- from orthography to dialect and style -- and leverages large language models (LLMs) with human validation to generate modifications. We demonstrate FLUKE's utility by evaluating both fine-tuned models and LLMs across six diverse NLP tasks (four classification and two generation tasks), and reveal that (1) the impact of linguistic variations is highly task-dependent, with some tests being critical for certain tasks but irrelevant for others; (2) LLMs still exhibit significant brittleness to certain linguistic variations, with reasoning LLMs surprisingly showing less robustness on some tasks compared to base models, and scaling improving robustness only for surface-level modifications; (3) models are overall more brittle to natural, fluent modifications such as syntax or style changes (and especially to negation), compared to corruption-style tests such as letter flipping; (4) the ability of a model to use a linguistic feature in generation does not correlate to its robustness to this feature on downstream tasks. These findings highlight the importance of systematic robustness testing for understanding model behaviors.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。