arXiv:2411.07336cs.CL2024-11NeurIPS

用集合运算测试大模型对词汇和语义变化的鲁棒性

SetLexSem Challenge: Using Set Operations to Evaluate the Lexical and Semantic Robustness of Language Models

  • 设计合成基准集,系统评估大模型在集合操作中的表现
  • 发现模型对操作和元素变化均缺乏鲁棒性,易受语义陷阱干扰
  • 提供可复现的测试框架,适合评估模型泛化能力

集合论是数学的基础,有限集合也构成了对世界进行推理的重要工具。智能系统应能在不同表达形式下保持集合操作的一致性。尽管大型语言模型(LLMs)最初为语义任务设计,如今也被用于算法类任务评估。由于集合由任意符号(如数字、词语)组成,因此为系统性检验大模型在词汇或语义变化下的算法能力不变性提供了机会。为此,我们提出了SetLexSem Challenge——一个评估大模型集合运算能力的合成基准。该基准考察模型在不同操作与集合成员构成条件下的指令遵循鲁棒性。对七种大模型的评估显示,它们在操作和输入元素的变化上表现出较差的鲁棒性。通过系统采样沿词汇与语义维度的集合成员,我们发现大模型不仅对这些变化不鲁棒,还对特定易构造的‘欺骗性’语义分组出现独特失效模式。此外,我们发现严格测量频率与长度变化对模型的影响具有挑战性,并提出独立分析方法。论文代码及数据集生成工具已开源。

原文摘要 · Abstract (English)

Set theory is foundational to mathematics and, when sets are finite, to reasoning about the world. An intelligent system should perform set operations consistently, regardless of superficial variations in the operands. Initially designed for semantically-oriented NLP tasks, large language models (LLMs) are now being evaluated on algorithmic tasks. Because sets are comprised of arbitrary symbols (e.g. numbers, words), they provide an opportunity to test, systematically, the invariance of LLMs' algorithmic abilities under simple lexical or semantic variations. To this end, we present the SetLexSem Challenge, a synthetic benchmark that evaluates the performance of LLMs on set operations. SetLexSem assesses the robustness of LLMs' instruction-following abilities under various conditions, focusing on the set operations and the nature and construction of the set members. Evaluating seven LLMs with SetLexSem, we find that they exhibit poor robustness to variation in both operation and operands. We show -- via the framework's systematic sampling of set members along lexical and semantic dimensions -- that LLMs are not only not robust to variation along these dimensions but demonstrate unique failure modes in particular, easy-to-create semantic groupings of "deceptive" sets. We find that rigorously measuring language model robustness to variation in frequency and length is challenging and present an analysis that measures them independently. The code for reproducing the results of this paper, and for generating the SetLexSem Challenge dataset, is available at \href{https://github.com/amazon-science/SetLexSem-Challenge}{https://github.com/amazon-science/SetLexSem-Challenge}.

语言模型鲁棒性评估集合运算合成数据

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。