SafePassage:基于黑盒LLM的高保真信息抽取
SafePassage: High-Fidelity Information Extraction with Black Box LLMs
AI总结:
针对黑盒LLM信息抽取易产生无依据幻觉的问题,本文提出SafePassage三步流水线,通过生成有文档依据的安全通道验证抽取结果,可降低最多85%的幻觉,还可用于LLM评估,且少量标注微调的Transformer编码器识别效果更优。
摘要:
黑盒大语言模型(LLM)让信息抽取(IE)的配置变得简单,但其结果却难以令人信任。与传统信息抽取流水线不同,这类模型“抽取”出的信息无法保证有文档依据。为解决这一问题,本文提出了“安全通道(safe passage)”的概念:由LLM生成的、既具备文档依据又与抽取信息一致的上下文。该概念通过名为SafePassage的三步流水线落地实现,具体包括:(1)LLM抽取器,负责从文档中生成结构化实体及其上下文;(2)基于字符串的全局对齐器;(3)评分模型。实验结果表明,在信息抽取任务中,三者结合使用可将幻觉现象最多降低85%,同时误判非幻觉内容的风险极低。SafePassage流水线与人类对抽取质量的判断高度一致,这意味着该流水线还可用于评估LLM。出人意料的是,实验结果还显示,在少量任务特定示例上微调的Transformer编码器,在识别不安全通道方面的表现能够优于LLM评分模型,而这些标注数据仅需1-2小时即可收集完成。
英文摘要:
Black box large language models (LLMs) make information extraction (IE) easy to configure, but hard to trust. Unlike traditional information extraction pipelines, the information "extracted" is not guaranteed to be grounded in the document. To prevent this, this paper introduces the notion of a "safe passage": context generated by the LLM that is both grounded in the document and consistent with the extracted information. This is operationalized via a three-step pipeline, SafePassage, which consists of: (1) an LLM extractor that generates structured entities and their contexts from a document, (2) a string-based global aligner, and (3) a scoring model. Results show that using these three parts in conjunction reduces hallucinations by up to 85% on information extraction tasks with minimal risk of flagging non-hallucinations. High agreement between the SafePassage pipeline and human judgments of extraction quality mean that the pipeline can be dually used to evaluate LLMs. Surprisingly, results also show that using a transformer encoder fine-tuned on a small number of task-specific examples can outperform an LLM scoring model at flagging unsafe passages. These annotations can be collected in as little as 1-2 hours.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。