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

调和 LLMs 是值得信赖的

Harmonic LLMs are Trustworthy

Visa AI Platform(Visa人工智能平台);Visa Payment Product Development(Visa支付产品开发部门);Visa Data Science Platform(Visa数据科学平台)

Nicholas S. Kersting, Mohammad Rahman, Suchismitha Vedala, Yang Wang

AI总结:

提出基于调和性偏差 $γ$ 的模型无关且无监督方法,实时测试黑盒 LLM 鲁棒性,发现 $γ\to 0$ 指示可信度,并支持对抗性提示生成,实验证明中型开源模型可胜过大型商业模型。

摘要:

我们引入了一种直观的方法,通过其与调和性的局部偏差(记为 $γ$)来实时测试任何黑盒 LLM 的鲁棒性(稳定性和可解释性)。据我们所知,这是第一种完全模型无关且无监督的方法,用于测量 LLM 任何给定响应的鲁棒性,其基础是模型本身符合纯数学标准。为了展示结果的通用性和即时性,我们在三个客观领域(WebQA、ProgrammingQA 和 TruthfulQA)的数千个查询中测量了 10 个流行 LLM(ChatGPT、Claude-2.1、Claude3.0、GPT-4、GPT-4o、Smaug-72B、Mixtral-8x7B、Llama2-7B、Mistral-7B 和 MPT-7B)的 $γ$ 值。在所有测试的模型和领域中,人工标注确认 $γ\to 0$ 表示可信度,反之,搜索较高的 $γ$ 值很容易暴露幻觉的例子,这一事实使得通过 $γ$ 的随机梯度上升能够高效生成对抗性提示。在各自领域中,模型中低 $γ$ 值的领先者是 GPT-4o、GPT-4 和 Smaug-72B,这提供了中型开源模型能够胜过大型商业模型的证据。

英文摘要:

We introduce an intuitive method to test the robustness (stability and explainability) of any black-box LLM in real-time via its local deviation from harmoniticity, denoted as $γ$. To the best of our knowledge this is the first completely model-agnostic and unsupervised method of measuring the robustness of any given response from an LLM, based upon the model itself conforming to a purely mathematical standard. To show general application and immediacy of results, we measure $γ$ in 10 popular LLMs (ChatGPT, Claude-2.1, Claude3.0, GPT-4, GPT-4o, Smaug-72B, Mixtral-8x7B, Llama2-7B, Mistral-7B and MPT-7B) across thousands of queries in three objective domains: WebQA, ProgrammingQA, and TruthfulQA. Across all models and domains tested, human annotation confirms that $γ\to 0$ indicates trustworthiness, and conversely searching higher values of $γ$ easily exposes examples of hallucination, a fact that enables efficient adversarial prompt generation through stochastic gradient ascent in $γ$. The low-$γ$ leaders among the models in the respective domains are GPT-4o, GPT-4, and Smaug-72B, providing evidence that mid-size open-source models can win out against large commercial models.

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

↑