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

大语言模型的自动一致性分析

Automated Consistency Analysis of LLMs

Stony Brook University(石溪大学);Rutgers University(罗格斯大学);Cisco Research(思科研究院)

Aditya Patwardhan, Vivek Vaidya, Ashish Kundu

AI总结:

本文形式化定义了大语言模型响应一致性,提出自验证与跨模型验证两种评估方法,并通过多个主流LLMs在网络安全基准上的实验证明其响应常不一致,因而在网络安全中不可信、不可靠。

摘要:

生成式人工智能(Gen AI)与大语言模型(LLMs)正在工业界、学术界和政府中被广泛采用。网络安全是LLMs可以或已经被使用的关键领域之一。有许多问题阻碍了可信的Gen AI和LLMs在网络安全及其他关键领域的采用。LLMs可信性与可靠性的一个关键挑战是:LLM在其响应中的一致性如何?在本文中,我们分析并给出了LLMs响应一致性的形式化定义。我们正式定义了什么是响应一致性,然后开发了一个一致性评估框架。本文提出了两种验证一致性的方法:自验证和跨多个LLMs的验证。我们在一个由若干网络安全问题(信息型和情境型)组成的安全基准上,对多个LLMs(如GPT4oMini、GPT3.5、Gemini、Cohere和Llama3)进行了大量实验。我们的实验证实了这样一个事实:尽管这些LLMs如今正被考虑和/或已被用于多项网络安全任务,但它们的响应往往不一致,因此对于网络安全而言是不可信和不可靠的。

英文摘要:

Generative AI (Gen AI) with large language models (LLMs) are being widely adopted across the industry, academia and government. Cybersecurity is one of the key sectors where LLMs can be and/or are already being used. There are a number of problems that inhibit the adoption of trustworthy Gen AI and LLMs in cybersecurity and such other critical areas. One of the key challenge to the trustworthiness and reliability of LLMs is: how consistent an LLM is in its responses? In this paper, we have analyzed and developed a formal definition of consistency of responses of LLMs. We have formally defined what is consistency of responses and then develop a framework for consistency evaluation. The paper proposes two approaches to validate consistency: self-validation, and validation across multiple LLMs. We have carried out extensive experiments for several LLMs such as GPT4oMini, GPT3.5, Gemini, Cohere, and Llama3, on a security benchmark consisting of several cybersecurity questions: informational and situational. Our experiments corroborate the fact that even though these LLMs are being considered and/or already being used for several cybersecurity tasks today, they are often inconsistent in their responses, and thus are untrustworthy and unreliable for cybersecurity.

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

↑