arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.02524cs.CL
收藏

CheckEmbed:对开放任务中大语言模型解决方案的有效验证

CheckEmbed: Effective Verification of LLM Solutions to Open-Ended Tasks

ETH Zurich(苏黎世联邦理工学院);Cledar;Warsaw University of Technology(华沙理工大学);IDEAS Research Institute(IDEAS研究院)
Maciej Besta, Lorenzo Paleari, Marcin Copik, Robert Gerstenberger, Ales Kubicek, Piotr Nyczyk, Patrick Iff, Eric Schreiber, Tanja Srindran, Tomasz Lehmann, Hube… 展开作者

Maciej Besta, Lorenzo Paleari, Marcin Copik, Robert Gerstenberger, Ales Kubicek, Piotr Nyczyk, Patrick Iff, Eric Schreiber, Tanja Srindran, Tomasz Lehmann, Hubert Niewiadomski, Torsten Hoefler

AI总结:

CheckEmbed通过现代嵌入模型将LLM回答压缩为单一向量,实现整体级快速语义比较,有效检测幻觉,并适用于文本及视觉等模态。

摘要:

大语言模型(LLMs)正在变革众多领域,然而验证其输出仍然是一个重大挑战,尤其是在诸如整合、摘要和知识提取等复杂的开放式任务中。为解决这一问题,我们引入了CheckEmbed(CE):一种简单、可扩展且准确的验证方法。CE利用强大的现代嵌入型LLM模型(如SFR-Embedding-Mistral)将每个LLM回答缩减为单个嵌入向量。先前的方法如BERTScore和SelfCheckGPT依赖于较弱的编码器(如BERT),迫使它们在词元或句子粒度上操作。相比之下,CE直接在整体回答层面进行快速、语义丰富的比较,克服了准确性和可扩展性方面的关键限制。我们对13个验证基线进行了全面的设计和时间复杂度分析,包括经典文本评分器(如BLEU)、基于稳定性的方法(如SelfCheckGPT)和生成式评估器(如LLM-as-a-Judge),这凸显了CE的有效性、效率、通用性和简单性。实证结果表明,CE能可靠地检测封闭和开放任务中的幻觉。我们进一步提供了证据表明,CE可泛化到文本之外的其他模态(如视觉),确立其作为一种实用且多功能的验证框架。

英文摘要:

Large Language Models (LLMs) are transforming a wide range of domains, yet verifying their outputs remains a significant challenge, especially for complex open-ended tasks such as consolidation, summarization, and knowledge extraction. To address this, we introduce CheckEmbed (CE): a simple, scalable, and accurate verification method. CE reduces each LLM answer to a single embedding vector using powerful modern embedding LLM models like SFR-Embedding-Mistral. Prior methods such as BERTScore and SelfCheckGPT relied on weaker encoders like BERT, forcing them to operate at token or sentence granularity. In contrast, CE performs fast, semantically rich comparisons directly at the whole-answer level, overcoming key limitations in both accuracy and scalability. We conduct a comprehensive design and time complexity analysis across 13 verification baselines, including classical text scorers (e.g., BLEU), stability-based methods (e.g., SelfCheckGPT), and generative evaluators (e.g., LLM-as-a-Judge), which highlights the effectiveness, efficiency, versatility, and simplicity of CE. Empirical results show that CE reliably detects hallucinations in both closed and open-ended tasks. We further present evidence that CE generalizes beyond text to other modalities such as vision, establishing it as a practical and versatile verification framework.

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

↑