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

开发一个可靠、快速、通用的幻觉检测与缓解服务

Developing a Reliable, Fast, General-Purpose Hallucination Detection and Mitigation Service

Microsoft(微软)

Song Wang, Xun Wang, Jie Mei, Yujia Xie, Sean Muarray, Zhang Li, Lingfeng Wu, Si-Qing Chen, Wayne Xiong

AI总结:

本文提出一个可靠、快速的通用幻觉检测与缓解生产系统,结合NER、NLI、跨度检测和决策树流程,并设计重写机制,经离线与实时流量评估验证其有效性。

摘要:

幻觉是大语言模型(LLM)产生与输入事实不符或无关输出的现象,对于需要准确性和可靠性的LLM应用而言,这是一个重大挑战。在本文中,我们介绍了一个可靠且高速的生产系统,旨在检测和纠正LLM中的幻觉问题。我们的系统涵盖命名实体识别(NER)、自然语言推理(NLI)、基于跨度的检测(SBD)以及基于决策树的复杂流程,以可靠地检测LLM响应中的各种幻觉。此外,我们设计了一种重写机制,在精度、响应时间和成本效益之间保持最佳平衡。我们详细阐述了框架的核心要素,并强调了与响应时间、可用性和性能指标相关的首要挑战,这些对于这些技术的实际部署至关重要。我们利用离线数据和实时生产流量进行的广泛评估,证实了我们所提出的框架和服务的有效性。

英文摘要:

Hallucination, a phenomenon where large language models (LLMs) produce output that is factually incorrect or unrelated to the input, is a major challenge for LLM applications that require accuracy and dependability. In this paper, we introduce a reliable and high-speed production system aimed at detecting and rectifying the hallucination issue within LLMs. Our system encompasses named entity recognition (NER), natural language inference (NLI), span-based detection (SBD), and an intricate decision tree-based process to reliably detect a wide range of hallucinations in LLM responses. Furthermore, we have crafted a rewriting mechanism that maintains an optimal mix of precision, response time, and cost-effectiveness. We detail the core elements of our framework and underscore the paramount challenges tied to response time, availability, and performance metrics, which are crucial for real-world deployment of these technologies. Our extensive evaluation, utilizing offline data and live production traffic, confirms the efficacy of our proposed framework and service.

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

↑