arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2403.10144cs.CLcs.AIcs.LGcs.LOcs.PL
收藏

NLP验证:迈向认证鲁棒性的通用方法论

NLP Verification: Towards a General Methodology for Certifying Robustness

Heriot-Watt University(赫瑞瓦特大学);University of Southampton(南安普顿大学);University of Birmingham(伯明翰大学);University of Western Australia(西澳大学);The Hebrew University of Jerusalem(耶路撒冷希伯来大学)

Marco Casadio, Tanvi Dinkar, Ekaterina Komendantskaya, Luca Arnaboldi, Matthew L. Daggitt, Omri Isac, Guy Katz, Verena Rieser, Oliver Lemon

AI总结:

本文针对NLP模型形式化验证缺乏通用方法论的问题,提出分析嵌入间隙的通用框架及量化方法,并给出利用更精确几何语义相似度估计来训练和验证神经网络的通用方法。

摘要:

机器学习(ML)在自然语言处理(NLP)领域已展现出显著成功。例如,大型语言模型已在经验上被证明能够生成高度复杂且连贯的文本。然而,它们容易出现不准确和幻觉。随着这些系统日益融入现实世界应用,确保其安全性和可靠性成为首要关注点。在安全关键场景中,此类模型必须对可变性或攻击具有鲁棒性,并对其输出提供保证。计算机视觉率先在此类场景中采用神经网络的形式化验证,并开发了通用的验证标准和流程,利用对数据流形几何特性的精确形式化推理。相比之下,NLP验证方法直到最近才出现在文献中。尽管这些论文提出了复杂的算法,但尚未凝结成一套通用方法论。它们往往对NLP验证的实际问题着墨较少,该领域仍然处于碎片化状态。在本文中,我们尝试提炼并评估NLP验证流程中的通用组件,这些组件源自该领域迄今的进展。我们的贡献有两点。首先,我们提出一种通用方法论,用于分析嵌入间隙(embedding gap)的影响。该问题指的是几何子空间的验证与这些几何子空间本应表示的句子语义含义之间的差异。我们提出了若干实用的NLP方法,可帮助量化嵌入间隙的影响。其次,我们给出一种用于神经网络训练和验证的通用方法,该方法利用对嵌入空间中句子语义相似度更精确的几何估计,并有助于在实践中克服嵌入间隙的影响。

英文摘要:

Machine Learning (ML) has exhibited substantial success in the field of Natural Language Processing (NLP). For example large language models have empirically proven to be capable of producing text of high complexity and cohesion. However, they are prone to inaccuracies and hallucinations. As these systems are increasingly integrated into real-world applications, ensuring their safety and reliability becomes a primary concern. There are safety critical contexts where such models must be robust to variability or attack, and give guarantees over their output. Computer Vision had pioneered the use of formal verification of neural networks for such scenarios and developed common verification standards and pipelines, leveraging precise formal reasoning about geometric properties of data manifolds. In contrast, NLP verification methods have only recently appeared in the literature. While presenting sophisticated algorithms, these papers have not yet crystallised into a common methodology. They are often light on the pragmatical issues of NLP verification and the area remains fragmented. In this paper, we attempt to distil and evaluate general components of an NLP verification pipeline, that emerges from the progress in the field to date. Our contributions are two-fold. Firstly, we propose a general methodology to analyse the effect of the embedding gap, a problem that refers to the discrepancy between verification of geometric subspaces and the semantic meaning of sentences, which the geometric subspaces are supposed to represent. We propose a number of practical NLP methods that can help to quantify the effects of the embedding gap. Secondly, we give a general method for training and verification of neural networks that leverages a more precise geometric estimation of semantic similarity of sentences in the embedding space and helps to overcome the effects of the embedding gap in practice.

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

↑